qiskit.providers.aer.library.set_statevector¶
-
set_statevector
(self, state)[source]¶ Set the statevector state of the simulator.
- Paramètres
state (Statevector) – A state matrix.
- Renvoie
with attached instruction.
- Type renvoyé
- Lève
ExtensionError – If the state is the incorrect size for the current circuit.