PennyLaneAI / pennylane

PennyLane is a cross-platform Python library for quantum computing, quantum machine learning, and quantum chemistry. Train a quantum computer the same way as a neural network.
https://pennylane.ai
Apache License 2.0
2.29k stars 590 forks source link

Fix `level=user` bug in `get_transform_program` #5854

Closed Shiro-Raven closed 3 months ago

Shiro-Raven commented 3 months ago

Context: When requesting level=user from get_transform_program with a final transform, only the expand function of that transform was included without the actual transform.

Description of the Change: The final transform is now added if it exists.

[sc-66171]

github-actions[bot] commented 3 months ago

Hello. You may have forgotten to update the changelog! Please edit doc/releases/changelog-dev.md with:

codecov[bot] commented 3 months ago

Codecov Report

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

Project coverage is 99.67%. Comparing base (1bf7682) to head (d46184b). Report is 247 commits behind head on master.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #5854 +/- ## ========================================== - Coverage 99.68% 99.67% -0.01% ========================================== Files 421 421 Lines 40437 40119 -318 ========================================== - Hits 40309 39989 -320 - Misses 128 130 +2 ```

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