Skip to content

Conversation

@KetpuntoG
Copy link
Contributor

@KetpuntoG KetpuntoG commented Jul 22, 2025

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:

@github-actions
Copy link
Contributor

Hello. You may have forgotten to update the changelog!
Please edit doc/releases/changelog-dev.md with:

  • A one-to-two sentence description of the change. You may include a small working example for new features.
  • A link back to this PR.
  • Your name (or GitHub username) in the contributors section.

@codecov
Copy link

codecov bot commented Jul 22, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.68%. Comparing base (291fc32) to head (5d39364).
⚠️ Report is 421 commits behind head on master.

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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@KetpuntoG KetpuntoG requested a review from Jaybsoni July 23, 2025 09:12
Copy link
Contributor

@Jaybsoni Jaybsoni left a 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 👍🏼

Copy link
Contributor

@JerryChen97 JerryChen97 left a 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 🤡

@JerryChen97
Copy link
Contributor

Also do we have a story for this PR?

Co-authored-by: Yushao Chen (Jerry) <[email protected]>
Copy link
Contributor

@JerryChen97 JerryChen97 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for fixing!

@KetpuntoG
Copy link
Contributor Author

[sc-96288]

@KetpuntoG KetpuntoG enabled auto-merge July 25, 2025 09:58
@KetpuntoG KetpuntoG added this pull request to the merge queue Jul 25, 2025
Merged via the queue into master with commit bd07c01 Jul 25, 2025
54 checks passed
@KetpuntoG KetpuntoG deleted the fixing-semiadder branch July 25, 2025 10:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants