-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove non-deterministic hash from circuit diagram. #4712
Conversation
@@ -88,11 +88,6 @@ def device(self) -> devices.Device: | |||
def __hash__(self): | |||
return hash((self.moments, self.device)) | |||
|
|||
def diagram_name(self): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is no longer used anywhere within the Cirq library. Do you think it is safe to remove?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems fine to me - I only added it to handle the CircuitOperation
tests.
581f39e
to
2a0b506
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me.
@@ -88,11 +88,6 @@ def device(self) -> devices.Device: | |||
def __hash__(self): | |||
return hash((self.moments, self.device)) | |||
|
|||
def diagram_name(self): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems fine to me - I only added it to handle the CircuitOperation
tests.
* Remove non-deterministic hash from circuit diagram. * Fix CI issues. Co-authored-by: Nate Thompson <thanacles@google.com>
* Remove non-deterministic hash from circuit diagram. * Fix CI issues. Co-authored-by: Nate Thompson <thanacles@google.com>
This is to fix bug #4240