Skip to content
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

Merged
merged 6 commits into from
Jun 10, 2024

Conversation

astralcai
Copy link
Contributor

Context:
The new unified split_non_commuting uses qwc 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]

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.

Copy link

codecov bot commented Jun 10, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.66%. Comparing base (bec5bb0) to head (9c4a705).
Report is 252 commits behind head on master.

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

Copy link
Contributor

@albi3ro albi3ro left a 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.

Copy link
Contributor

@albi3ro albi3ro left a 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>
@astralcai
Copy link
Contributor Author

Changelog ?

Oooops

Copy link
Contributor

@PietropaoloFrisoni PietropaoloFrisoni 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!

@astralcai astralcai enabled auto-merge (squash) June 10, 2024 18:41
@astralcai astralcai merged commit 8a51dda into master Jun 10, 2024
39 checks passed
@astralcai astralcai deleted the split-non-com-non-pauli branch June 10, 2024 19:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants