qiskit.circuit.QuantumCircuit.snapshot¶
- QuantumCircuit.snapshot(label, snapshot_type='statevector', qubits=None, params=None)¶
Take a statevector snapshot of the internal simulator representation. Works on all qubits, and prevents reordering (like barrier).
For other types of snapshots use the Snapshot extension directly.
- Parameters
label (str) -- a snapshot label to report the result.
snapshot_type (str) -- the type of the snapshot.
qubits (list or None) -- the qubits to apply snapshot to [Default: None].
params (list or None) -- the parameters for snapshot_type [Default: None].
- Returns
with attached command
- Return type
- Raises
ExtensionError -- malformed command