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
classSnapshotStatevector(Snapshot):
__init__(self, label, num_qubits):
super(label, "statevector", num_qubits, 0, None)
# Monkey patch functiondefsnapshot_statevector(self, label, qubits=None):
# see base snapshot monkey patch for converting qubits to# be all qubits in circuitcircuit.snapshot_statevector=snapshot_statevector
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 should have signature
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: