Skip to content

Conversation

@astralcai
Copy link
Contributor

@astralcai astralcai commented Nov 11, 2025

Context:

Description of the Change:

Benefits:
Now we can have

import pennylane as qml

def circuit():
    qml.PauliRot(0.5, "XY", wires=[1, 0])
>>> print(qml.draw(circuit)())
0: ─╭RY(0.50)─┤  
1: ─╰RX(0.50)─┤  

Possible Drawbacks:

Related GitHub Issues:
[sc-103689]

@github-actions
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.

@codecov
Copy link

codecov bot commented Nov 11, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.43%. Comparing base (afd7ea0) to head (fc2486e).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #8624      +/-   ##
==========================================
- Coverage   99.43%   99.43%   -0.01%     
==========================================
  Files         587      587              
  Lines       61885    61895      +10     
==========================================
+ Hits        61536    61545       +9     
- Misses        349      350       +1     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@astralcai astralcai added the do not merge ⚠️ Do not merge the pull request until this label is removed label Nov 11, 2025
@astralcai
Copy link
Contributor Author

Let's hold off on merging this for now because the new drawing could potentially be misleading. Essentially we want to draw it in a way that both makes it clear which Pauli symbol is on which wire, and is non-misleading.

@astralcai astralcai requested a review from Qottmann November 11, 2025 17:10
@astralcai astralcai changed the title PauliRot in draw has different labels for each wire [WIP] PauliRot in draw has different labels for each wire Nov 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

do not merge ⚠️ Do not merge the pull request until this label is removed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants