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
Ensure that DAGCircuit.__eq__ (and by extension QuantumCircuit.__eq__) works in the presence of manual variables. It is not immediately clear whether any sort of variable equivalence should be checked by default, but for the sake of conservatism in the initial implementation, we can say that only Var instances that directly compare equal will be considered equal (despite the expr.structurally_equivalent checker giving us the option to expand this). With expr.Var expected to contain a UUID field to facilitate comparisons between differently serialised variables (#10923), the main reason to allow a more semantic-equality checker is far less prominent.
The text was updated successfully, but these errors were encountered:
Ensure that
DAGCircuit.__eq__
(and by extensionQuantumCircuit.__eq__
) works in the presence of manual variables. It is not immediately clear whether any sort of variable equivalence should be checked by default, but for the sake of conservatism in the initial implementation, we can say that onlyVar
instances that directly compare equal will be considered equal (despite theexpr.structurally_equivalent
checker giving us the option to expand this). Withexpr.Var
expected to contain a UUID field to facilitate comparisons between differently serialised variables (#10923), the main reason to allow a more semantic-equality checker is far less prominent.The text was updated successfully, but these errors were encountered: