-
Notifications
You must be signed in to change notification settings - Fork 2
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
feat: add boolean xor support #747
Conversation
implement with not and equality for now - can be replaced with op once CQCL/hugr#1418 is done
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #747 +/- ##
==========================================
- Coverage 93.00% 93.00% -0.01%
==========================================
Files 71 71
Lines 8151 8178 +27
==========================================
+ Hits 7581 7606 +25
- Misses 570 572 +2 ☔ View full report in Codecov by Sentry. |
guppylang/std/builtins.py
Outdated
# TODO: Use hugr op once implemented: https://github.com/CQCL/hugr/issues/1418 | ||
@guppy | ||
def __xor__(self: bool, other: bool) -> bool: | ||
return not (self == other) # noqa: SIM201 |
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.
We should definitely add a __ne__
implementation 😅
Raised an issue #750
Closes #750
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.
Thanks!
implement with not and equality for now - can be replaced with op once CQCL/hugr#1418 is done
Closes #750