PennyLaneAI / catalyst

A JIT compiler for hybrid quantum programs in PennyLane
https://docs.pennylane.ai/projects/catalyst
Apache License 2.0
101 stars 26 forks source link

Fix missing transfroms caused by Autograph #900

Open tzunghanjuang opened 3 days ago

tzunghanjuang commented 3 days ago

Context: This PR aims to fix missing transform issue when using autograph with custom transform or mcm_config flags. The main reason is that Autograph tries to create new qnode but forget to include extra args.

Description of the Change: Make sure TransformContainers and execute_kwargs (which contains mcm_config) are passed to new qnode in Autograph.transformer.

Possible Drawbacks:

Related GitHub Issues:

434

[sc-55080] [epic-65351]

codecov[bot] commented 3 days ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 97.97%. Comparing base (140cbd3) to head (965f980). Report is 3 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #900 +/- ## ======================================= Coverage 97.97% 97.97% ======================================= Files 71 71 Lines 10451 10455 +4 Branches 949 951 +2 ======================================= + Hits 10239 10243 +4 Misses 169 169 Partials 43 43 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

github-actions[bot] commented 3 days ago

Hello. You may have forgotten to update the changelog! Please edit doc/changelog.md on your branch with: