qiskit.circuit.QuantumCircuit.set_statevector¶
-
QuantumCircuit.
set_statevector
(state)¶ Set the statevector state of the simulator.
- Parameters
state (Statevector) – A state matrix.
- Returns
with attached instruction.
- Return type
- Raises
ExtensionError – If the state is the incorrect size for the current circuit.