-
Couldn't load subscription status.
- Fork 706
fixing 1 qubit-size SemiAdder #7940
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
Conversation
|
Hello. You may have forgotten to update the changelog!
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #7940 +/- ##
==========================================
- Coverage 99.68% 99.68% -0.01%
==========================================
Files 542 542
Lines 55616 55622 +6
==========================================
+ Hits 55443 55448 +5
- Misses 173 174 +1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
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 👍🏼
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.
I'm cosplaying a compiler 🤡
|
Also do we have a story for this PR? |
Co-authored-by: Yushao Chen (Jerry) <[email protected]>
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 for fixing!
|
[sc-96288] |
Context:
the SemiAdder was not working in the edge case of x + y defined with a single qubit. This PR covers this situation
Description of the Change:
In this scenario, the semiAdder is a CNOT.
Note that in this case work_wires are not needed. So I had to change the logic that was assuming we always have work wires
Benefits:
Possible Drawbacks:
Related GitHub Issues: