-
Notifications
You must be signed in to change notification settings - Fork 585
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
split-non-commuting
use wire grouping with non-pauli-word observable
#5827
Conversation
Hello. You may have forgotten to update the changelog!
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #5827 +/- ##
==========================================
- Coverage 99.66% 99.66% -0.01%
==========================================
Files 415 415
Lines 39802 39506 -296
==========================================
- Hits 39670 39373 -297
- Misses 132 133 +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.
Love how simple this fix is :)
Just a couple questions on testing. Since default.qubit itself can handle measuring projectors with no issue, we should probably also unit test the transform for qscript in, batch out.
Let's also add some tests with hadamards/ products of hadamards.
…o split-non-com-non-pauli
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.
Changelog ?
Co-authored-by: Christina Lee <christina@xanadu.ai>
Oooops |
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!
Context:
The new unified
split_non_commuting
usesqwc
grouping by default, but it is not supported for non-pauli-word observables.Description of the Change:
Use wire-based grouping if one of the observables is not a pauli word
Related GitHub Issues:
Fixes #4362
[sc-42003]