Skip to content

Commit

Permalink
jasp.__eq__ now returns equality based on object identity
Browse files Browse the repository at this point in the history
  • Loading branch information
positr0nium committed Dec 22, 2024
1 parent 9227287 commit f71e540
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/qrisp/jasp/jasp_expression/centerclass.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,10 +160,7 @@ def __eq__(self, other):
if not isinstance(other, Jaxpr):
return False

return (self.hashvalue == hash(other)
and len(self.eqns) == len(other.eqns)
and len(self.invars) == len(other.invars)
and check_aval_equivalence(self.invars, other.invars))
return id(self) == id(other)

def inverse(self):
"""
Expand Down

0 comments on commit f71e540

Please sign in to comment.