-
Notifications
You must be signed in to change notification settings - Fork 643
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
angle solver qsp/qsvt #6483
angle solver qsp/qsvt #6483
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 #6483 +/- ##
=======================================
Coverage 99.65% 99.65%
=======================================
Files 456 456
Lines 42993 43060 +67
=======================================
+ Hits 42844 42911 +67
Misses 149 149 ☔ View full report in Codecov by Sentry. |
…nylane into angle_solver_qsp
Co-authored-by: Yushao Chen (Jerry) <chenys13@outlook.com>
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 @KetpuntoG, left my first round of comments.
[skip ci] Co-authored-by: soranjh <40344468+soranjh@users.noreply.github.com>
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.
Looks good from my side! just a few small suggestions
Co-authored-by: Jay Soni <jbsoni@uwaterloo.ca>
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 @KetpuntoG, left a final set of comments.
[skip ci] Co-authored-by: soranjh <40344468+soranjh@users.noreply.github.com>
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.
Last few minor comments.
Co-authored-by: soranjh <40344468+soranjh@users.noreply.github.com>
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.
Please address the final points.
Co-authored-by: soranjh <40344468+soranjh@users.noreply.github.com>
Co-authored-by: Yushao Chen (Jerry) <chenys13@outlook.com>
Context:
This PR appears in the context of the QSVT project, specifically focusing on the implementation of the angle solver, functionality to calculate the angles needed to apply a polynomial transformation.
Description of the Change:
Added
qml.poly_to_angles
, the main functionality of the PR that takes as input a polynomial and returns the angles.Also included is the function
qml.transform_angles
, which transforms the angle format between qsp and qsvt.Both these functions and other auxiliary functions have been added in
qsvt.py
.Benefits:
Calculating angles is not a simple task and existing libraries have some limitations. With this new functionality we will facilitate the use of routines such as qsp and qsvt.
Possible Drawbacks:
Currently only one solver has been introduced. In the future it is expected to add more that will work for more extreme cases: larger polynomials (degree > 1000) or degenerate polynomials
[sc-72631]