Skip to content

Conversation

@paul0403
Copy link
Member

Context:
When a user places a PPR op in an adjoint qfunc (see #2145 ), the --adjoint-lowering pass will not correctly distribute the adjoint into the region onto PPRs, because the pass does not recognize PPRs.

Description of the Change:
Add pattern for PPR ops in adjoint lowering pass.

Benefits:
Correct behavior

Possible Drawbacks:
None

@codecov
Copy link

codecov bot commented Nov 21, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.49%. Comparing base (abd1a4e) to head (66bbc28).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2227   +/-   ##
=======================================
  Coverage   97.49%   97.49%           
=======================================
  Files          93       93           
  Lines       10890    10890           
  Branches     1038     1038           
=======================================
  Hits        10617    10617           
  Misses        211      211           
  Partials       62       62           

☔ 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.

Copy link
Member

@lazypanda10117 lazypanda10117 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 to me :) Thanks!

Copy link
Contributor

@sengthai sengthai left a comment

Choose a reason for hiding this comment

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

Thanks @paul0403 for the PR! 🛠️

@paul0403 paul0403 merged commit eb732f0 into main Nov 24, 2025
44 checks passed
@paul0403 paul0403 deleted the paul0403/adjoint_lowering_pass_ppr branch November 24, 2025 18:13
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.

4 participants