-
Notifications
You must be signed in to change notification settings - Fork 615
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 TrotterProduct
template
#4661
Conversation
TrotterProduct
templateTrotterProduct
template
Hello. You may have forgotten to update the changelog!
|
Codecov ReportAll modified lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #4661 +/- ##
=======================================
Coverage 99.64% 99.64%
=======================================
Files 376 377 +1
Lines 33788 33846 +58
=======================================
+ Hits 33667 33725 +58
Misses 121 121
☔ View full report in Codecov by Sentry. |
[sc-44302] |
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.
Awesome job here! 😊
I've left out some silly questions but it's been a long time since I've done a code review and I want to understand some of the decisions. On the other hand, is there still a way to include the differentiability part? I have not been able to obtain the gradient with respect to time
TrotterProduct
templateTrotterProduct
template
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.
Note that @isaacdevlugt has already added a changelog entry here, so no need to worry too much on that point.
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.
Thanks @Jaybsoni, looks good. Will approve when the minor comments and questions are addressed.
**Context:** This PR adds additional tests to the `TrotterProduct` class to ensure it integrates well with all interfaces and is fully differentiable. **Description of the Change:** - Add tests for interface execution - Add tests for interface gradient computation --------- Co-authored-by: soranjh <[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.
Thanks @Jaybsoni! Please check the code example in usage details.
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.
Thanks @Jaybsoni!
Co-authored-by: Tom Bromley <[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.
🚀🚀🚀 Awesome
**Context:** First of 3 PRs adding the new TrotterProduct template to allow for advanced Trotter methods in Pennylane **Description of the Change:** - Implement the template - Add basic tests --------- Co-authored-by: Tom Bromley <[email protected]> Co-authored-by: soranjh <[email protected]> Co-authored-by: soranjh <[email protected]>
Context:
First of 3 PRs adding the new TrotterProduct template to allow for advanced Trotter methods in Pennylane
Description of the Change: