Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix state prep operation decomposition with LightningQubit #661

Merged
merged 10 commits into from
Mar 25, 2024

Conversation

mudit2812
Copy link
Contributor

Context:
Bunch of test failures in CI are related to lightning.qubit not working with adjoint diff whenever there are state prep operations present, even then they're not supposed to be trainable.

Description of the Change:
Update the adjoint diff validation for lightning.qubit to decompose state prep operations.

Benefits:
Better support for adjoint with lightning.qubit.

Possible Drawbacks:

Related GitHub Issues:

Copy link
Member

@maliasadi maliasadi left a comment

Choose a reason for hiding this comment

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

🙌

.github/CHANGELOG.md Outdated Show resolved Hide resolved
@maliasadi
Copy link
Member

This is related to PR PennyLaneAI/pennylane#5434.

@vincentmr vincentmr added the ci:build_wheels Activate wheel building. label Mar 22, 2024
Copy link

codecov bot commented Mar 22, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.69%. Comparing base (5f95a2f) to head (c83caef).

Additional details and impacted files
@@             Coverage Diff             @@
##           master     #661       +/-   ##
===========================================
+ Coverage   53.58%   98.69%   +45.10%     
===========================================
  Files          13      172      +159     
  Lines        1950    24345    +22395     
===========================================
+ Hits         1045    24027    +22982     
+ Misses        905      318      -587     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@vincentmr vincentmr left a comment

Choose a reason for hiding this comment

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

LGTM, feel free to merge when the CI is green.

Copy link
Contributor

@AmintorDusko AmintorDusko left a comment

Choose a reason for hiding this comment

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

Nice work! Thank you @mudit2812!

@mudit2812 mudit2812 merged commit 7e77c5d into master Mar 25, 2024
85 checks passed
@mudit2812 mudit2812 deleted the adj-decompose branch March 25, 2024 13:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci:build_wheels Activate wheel building.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants