-
Notifications
You must be signed in to change notification settings - Fork 603
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
fix undo_swaps
and split_non_commuting
#5081
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #5081 +/- ##
==========================================
- Coverage 99.68% 99.68% -0.01%
==========================================
Files 394 394
Lines 35733 35452 -281
==========================================
- Hits 35622 35340 -282
- Misses 111 112 +1 ☔ View full report in Codecov by Sentry. |
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.
🎉
Co-authored-by: Thomas R. Bromley <49409390+trbromley@users.noreply.github.com>
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, thanks!
When exploring in PR #5058, I found bugs in `undo_swaps` and `split_non_commuting`. [sc-54373] [sc-54374] Undo swaps had a fragile way of mapping wires, as it was created before we had `Operator.map_wires`. Now it works with more general operations. `split_non_commuting` was not passing the shots along. This was a silent issue on the old device interface, but would be causing problems if it was ever used with the new device interface. --------- Co-authored-by: Thomas R. Bromley <49409390+trbromley@users.noreply.github.com>
When exploring in PR #5058, I found bugs in
undo_swaps
andsplit_non_commuting
.[sc-54373]
[sc-54374]
Undo swaps had a fragile way of mapping wires, as it was created before we had
Operator.map_wires
. Now it works with more general operations.split_non_commuting
was not passing the shots along. This was a silent issue on the old device interface, but would be causing problems if it was ever used with the new device interface.