Skip to content

Conversation

@comp-phys-marc
Copy link

@comp-phys-marc comp-phys-marc commented Feb 6, 2026

Context: We are trying to see if we can run certain circuits with capture, qjit and decomposition. At the moment, this is limited by an error arising from jax_primitives due to a workaround which has thus far been left in place in the bind function of PCPhase.

Description of the Change: We remove the workaround and match the signature of the PCPhase to what is expected in jax_primitives.

Benefits: We are closer to using PCPhase in circuits with capture, qjit and decomps.

Possible Drawbacks: Not sure yet how this change will propagate.

Related ShortCut Stories: [sc-101673] [sc-101776]

comp-phys-marc and others added 2 commits February 6, 2026 14:39
	- temporary workaround was causing errors in benchmarks
@comp-phys-marc comp-phys-marc marked this pull request as ready for review February 6, 2026 19:51
@comp-phys-marc comp-phys-marc changed the title Fix bug in PCPhase bind [WIP] Fix bug in PCPhase bind Feb 6, 2026
@PennyLaneAI PennyLaneAI deleted a comment from github-actions bot Feb 6, 2026
@codecov
Copy link

codecov bot commented Feb 6, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 96.75%. Comparing base (64b8d27) to head (d936cce).
⚠️ Report is 6 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2467      +/-   ##
==========================================
+ Coverage   96.74%   96.75%   +0.01%     
==========================================
  Files         156      156              
  Lines       16937    16990      +53     
  Branches     1648     1653       +5     
==========================================
+ Hits        16385    16438      +53     
- Misses        402      403       +1     
+ Partials      150      149       -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.

@comp-phys-marc comp-phys-marc changed the title [WIP] Fix bug in PCPhase bind Fix bug in PCPhase bind Feb 6, 2026
Copy link
Contributor

@JerryChen97 JerryChen97 left a comment

Choose a reason for hiding this comment

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

Might need sync the submodule so that we dont touch enzyme etc via this pr🤔

@JerryChen97 JerryChen97 self-requested a review February 9, 2026 15:44
Copy link
Contributor

@JerryChen97 JerryChen97 left a comment

Choose a reason for hiding this comment

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

Also mind add a minimal test somewhere? Not sure if this is easy to do; curious why Catalyst's tests never caught this obvious bug...

Co-authored-by: Yushao Chen (Jerry) <chenys13@outlook.com>
*wires,
angle,
dim,
*ctrl_wires,
Copy link
Member

Choose a reason for hiding this comment

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

Could you add tests in frontend/tests/pytest/from_plxpr?

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