qiskit.providers.aer.library.set_statevector¶
-
set_statevector
(self, state)[código fonte]¶ Set the statevector state of the simulator.
- Parâmetros
state (Statevector) – A state matrix.
- Retorna
with attached instruction.
- Tipo de retorno
- Levanta
ExtensionError – If the state is the incorrect size for the current circuit.