Diagonal.snapshot_probabilities

Diagonal.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

QuantumCircuit

Raises

ExtensionError – if snapshot is invalid.