Skip to content

Conversation

rniczh
Copy link
Contributor

@rniczh rniczh commented Aug 13, 2025

Context:

For saving IR, apply-transform-sequence pass is counted as a single pass instead of potentially many passes

@qjit(keep_intermediate='pass', verbose=True)
@apply_pass("merge-rotations")
@apply_pass("remove-chained-self-inverse")
@qml.qnode(qml.device("lightning.qubit", wires=2))
def test_chained_apply_passes_workflow(x: float):
    qml.Hadamard(wires=[1])
    qml.RX(x, wires=[0])
    qml.RX(-x, wires=[0])
    qml.Hadamard(wires=[1])
    return qml.expval(qml.PauliY(wires=0))

test_chained_apply_passes_workflow(0.1)

Description of the Change:

Benefits:

Possible Drawbacks:

Related GitHub Issues:

#1909

@dime10 dime10 requested a review from a team August 13, 2025 14:31
Copy link
Contributor

Hello. You may have forgotten to update the changelog!
Please edit doc/releases/changelog-dev.md on your branch 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 Aug 14, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.30%. Comparing base (63aca2f) to head (a6f5aa5).
⚠️ Report is 7 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1978   +/-   ##
=======================================
  Coverage   97.29%   97.30%           
=======================================
  Files          88       88           
  Lines        9740     9756   +16     
  Branches      916      922    +6     
=======================================
+ Hits         9477     9493   +16     
- Misses        208      209    +1     
+ Partials       55       54    -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.

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.

2 participants