-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Correct minor typo in BitMaskKeyCondition #7251
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
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Collaborator
dstrain115
commented
Apr 8, 2025
- Noticed it while using the example code.
- Noticed it while using the example code.
pavoljuhas
approved these changes
Apr 8, 2025
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.
Please also patch here -
diff --git a/docs/build/classical_control.ipynb b/docs/build/classical_control.ipynb
index 0cfc9143..8bb7c549 100644
--- a/docs/build/classical_control.ipynb
+++ b/docs/build/classical_control.ipynb
@@ -202,3 +202,3 @@
"The `cirq.KeyedCondition` class limited in that it evaluate a simple function `is the value != 0?`. When doing multi-qubit measurement we often need to do more complex function like applying a bitmask before comparison. The class [cirq.BitMaskKeyCondition](https://github.com/quantumlib/Cirq/blob/ebef9bff978f28b032f54eb5f0a2e1cb9ec6464c/cirq-core/cirq/value/condition.py#L140) provides this functionality allowing us to do:\n",
- "- `BitMaskKeycondition('a')` $\\rightarrow a \\neq 0$\n",
+ "- `BitMaskKeyCondition('a')` $\\rightarrow a \\neq 0$\n",
"- `BitMaskKeyCondition('a', bitmask=13)` $\\rightarrow (a \\& 13) \\neq 0$\n",
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #7251 +/- ##
==========================================
- Coverage 98.64% 98.64% -0.01%
==========================================
Files 1106 1106
Lines 95990 95990
==========================================
- Hits 94692 94690 -2
- Misses 1298 1300 +2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.