Correct minor typo in BitMaskKeyCondition#7251
Merged
pavoljuhas merged 4 commits intoquantumlib:mainfrom Apr 9, 2025
Merged
Conversation
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
Collaborator
pavoljuhas
left a comment
There was a problem hiding this comment.
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:
|
This was referenced May 30, 2025
BichengYing
pushed a commit
to BichengYing/Cirq
that referenced
this pull request
Jun 20, 2025
* Correct minor typo in BitMaskKeyCondition - Noticed it while using the example code. * Fix the same typo in a notebook * Typo - transfomer -> transformer --------- Co-authored-by: Michael Hucka <mhucka@caltech.edu> Co-authored-by: Pavol Juhas <juhas@google.com>
This was referenced Aug 5, 2025
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
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.