qiskit.circuit.QuantumCircuit.snapshot_statevector¶
-
QuantumCircuit.
snapshot_statevector
(label)¶ Take a statevector snapshot of the simulator state.
- Parameters
label (str) – a snapshot label to report the result.
- Returns
with attached instruction.
- Return type
- Raises
ExtensionError – if snapshot is invalid.
- Additional Information:
This snapshot is always performed on all qubits in a circuit. The number of qubits parameter specifies the size of the instruction as a barrier and should be set to the number of qubits in the circuit.
Note
This method will be deprecated after the qiskit-aer 0.8 release. It has been superseded by the
qiskit.providers.aer.library.save_statevector()
circuit method.