-
Notifications
You must be signed in to change notification settings - Fork 617
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
dequeue ops in Hamiltonian.__matmul__
#5455
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #5455 +/- ##
==========================================
- Coverage 99.68% 99.67% -0.01%
==========================================
Files 402 402
Lines 37534 37253 -281
==========================================
- Hits 37414 37132 -282
- Misses 120 121 +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.
Looks good 🎸
@@ -291,6 +291,9 @@ | |||
|
|||
<h3>Bug fixes 🐛</h3> | |||
|
|||
* Using `@` with legacy Hamiltonian instances now properly de-queues the previously existing operations. |
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.
What happens in the new-op-arithmetic setting?
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.
Things are properly de-queued.
Context:
A user was encountering issues where operations were remaining in the circuit after being used to construct a hamiltonian.
Description of the Change:
De-queue the arguments to
Hamiltonian.__matmul__
Benefits:
No more things in the circuit that shouldn't be in the circuit.
Possible Drawbacks:
Related GitHub Issues:
Fixes #5454 [sc-60158]