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

Pauli sentence bug #5407

Merged
merged 6 commits into from
Mar 21, 2024
Merged

Conversation

Tarun-Kumar07
Copy link
Contributor

Context:
Earlier PauliSentence.to_mat(wire_order) failed with exception when it had only empty PauliWords.
This has been fixed under this PR.

Description of the Change:
Earlier when PauliWord didn't have wires the function _pw_wires defaulted to PauliSentence wires. Now rather than PauliSentence itself, it defaults to wire_order

Benefits:

Possible Drawbacks:

Related GitHub Issues:
Fixes #5354

@trbromley
Copy link
Contributor

Thanks @Tarun-Kumar07 for this! I've tagged some reviewers who will take a look soon.

@albi3ro
Copy link
Contributor

albi3ro commented Mar 19, 2024

Just for our internal tracking: [sc-58518]

Copy link

codecov bot commented Mar 20, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.65%. Comparing base (54d43b8) to head (2e88234).
Report is 3 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5407      +/-   ##
==========================================
+ Coverage   99.63%   99.65%   +0.01%     
==========================================
  Files         399      401       +2     
  Lines       37125    36950     -175     
==========================================
- Hits        36990    36821     -169     
+ Misses        135      129       -6     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@Qottmann Qottmann left a comment

Choose a reason for hiding this comment

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

This is great, thanks @Tarun-Kumar07

Nothing to complain, looks good right off the bat 👌

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.

Looks great to me. Thanks for this 🚀

@albi3ro albi3ro enabled auto-merge (squash) March 21, 2024 17:34
@albi3ro albi3ro merged commit 2faade8 into PennyLaneAI:master Mar 21, 2024
40 checks passed
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.

[Bug] PauliSentence.to_mat(wire_order) cannot handle Identities with wires
4 participants