Skip to content

Commit 7c55850

Browse files
committed
hash RDP
1 parent 6c6abb1 commit 7c55850

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

qupulse/program/linspace.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,9 @@ def __eq__(self,o):
151151
return False
152152
return self.__dict__ == o.__dict__
153153

154+
def __hash__(self):
155+
return hash((self.bases,self.offset,self.multiplicities,self.__is_time_or_int))
156+
154157

155158
@dataclass(frozen=True)
156159
class DepKey:

0 commit comments

Comments
 (0)