qiskit.circuit.QuantumCircuit.snapshot_probabilities¶
-
QuantumCircuit.
snapshot_probabilities
(label, qubits, variance=False)¶ Take a probability snapshot of the simulator state.
- Parameters
label (str) – a snapshot label to report the result
qubits (list) – the qubits to snapshot.
variance (bool) – compute variance of probabilities [Default: False]
- Returns
with attached instruction.
- Return type
- Raises
ExtensionError – if snapshot is invalid.
Note
This method will be deprecated after the qiskit-aer 0.8 release. It has been superseded by the
qiskit.providers.aer.library.save_probabilities()
andqiskit.providers.aer.library.save_probabilities_dict()
circuit methods.