qiskit.providers.aer.library.set_statevector¶
-
set_statevector
(self, state)[Quellcode]¶ Set the statevector state of the simulator.
- Parameter
state (Statevector) – A state matrix.
- Rückgabe
with attached instruction.
- Rückgabetyp
- Verursacht
ExtensionError – If the state is the incorrect size for the current circuit.