-
Notifications
You must be signed in to change notification settings - Fork 42
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
Add LightningQubit2
class
#607
Conversation
Hello. You may have forgotten to update the changelog!
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #607 +/- ##
==========================================
+ Coverage 98.44% 98.71% +0.26%
==========================================
Files 172 173 +1
Lines 24883 24466 -417
==========================================
- Hits 24497 24152 -345
+ Misses 386 314 -72 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One last round of comments, but I'm ready to approve.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is massive :) Happy to approve the PR at this point. Thanks for all the hard work @mudit2812 and @albi3ro .
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work here! Thank you @mudit2812, @albi3ro and @vincentmr for the awesome work!
Please don't forget the changelog!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work! 🥳
Co-authored-by: Ali Asadi <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🪂
Context:
PennyLane has added a new device interface that will potentially allow for adjoint differentiation to be enabled with lightning by default.
This PR adds the Python API for such a change.
Description of the Change:
This PR adds a
LightningQubit2
class.It relies on three methods,
simulate
,jacobian
andsimulate_and_jacobian
Right now, the device restricts itself to analytic simulations.
Benefits:
Users can get the most performant choices automatically, without having to manually request adjoint differentiation.
The internal simulation details are also fully abstracted away from the required device interface, allowing for change and optimizations as the technical details require.
Possible Drawbacks:
This will be a major breaking change to the interface, and users may be relying on the specific names of methods.
Shortcut Stories:
[sc-56080]