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

Remove deprecated paul_mult and pauli_mult_with_phase #5324

Merged
merged 10 commits into from
Mar 11, 2024
Merged

Conversation

astralcai
Copy link
Contributor

@astralcai astralcai commented Mar 6, 2024

Context:
Complete the deprecation cycle for qml.pauli.pauli_mult and qml.pauli.pauli_mult_with_phase

Description of the Change:
qml.pauli.pauli_mult and qml.pauli.pauli_mult_with_phase are now removed. Instead, you should use qml.simplify(qml.prod(pauli_1, pauli_2)) to get the reduced operator.

>>> op = qml.simplify(qml.prod(qml.PauliX(0), qml.PauliZ(0)))
>>> op
-1j*(PauliY(wires=[0]))
>>> [phase], [base] = op.terms()
>>> phase, base
(-1j, PauliY(wires=[0]))

Related Shortcut Issues:
[sc-58145]

@astralcai astralcai requested a review from a team March 6, 2024 18:46
@astralcai astralcai marked this pull request as ready for review March 6, 2024 18:46
Copy link

codecov bot commented Mar 6, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.63%. Comparing base (e475db3) to head (c0c20e5).
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5324      +/-   ##
==========================================
- Coverage   99.64%   99.63%   -0.01%     
==========================================
  Files         401      401              
  Lines       37294    36976     -318     
==========================================
- Hits        37160    36841     -319     
- Misses        134      135       +1     

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

Copy link
Contributor

@lillian542 lillian542 left a comment

Choose a reason for hiding this comment

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

🚀

@astralcai astralcai enabled auto-merge (squash) March 11, 2024 14:10
@astralcai astralcai merged commit 0b3ac70 into master Mar 11, 2024
40 checks passed
@astralcai astralcai deleted the dep-pauli branch March 11, 2024 14:34
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.

3 participants