You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This will be used by the density matrix method of the QasmSimulator.
classSnapshotDensityMatrix(Snapshot):
__init__(self, label, num_qubits):
super(label, "density_matrix", num_qubits, 0, None)
# Monkey patch functiondefsnapshot_density_matrix(self, label, qubits=None):
# see base snapshot monkey patch for converting qubits to# be all qubits in circuitcircuit.snapshot_density_matrix=snapshot_density_matrix
The num_qubits parameter is actually ignored by Aer (it is always an all-qubit instruction), however it is used by Terra to make the snapshot act as a barrier.
The text was updated successfully, but these errors were encountered:
What is the expected behavior?
This will be used by the density matrix method of the QasmSimulator.
The
num_qubits
parameter is actually ignored by Aer (it is always an all-qubit instruction), however it is used by Terra to make the snapshot act as a barrier.The text was updated successfully, but these errors were encountered: