-
Notifications
You must be signed in to change notification settings - Fork 603
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 spectrum function to Fourier module #1378
Conversation
@glassnotes this is still WIP, but maybe you want to check if the idea is sound? |
Codecov Report
@@ Coverage Diff @@
## master #1378 +/- ##
=======================================
Coverage 98.20% 98.20%
=======================================
Files 158 159 +1
Lines 11780 11832 +52
=======================================
+ Hits 11568 11620 +52
Misses 212 212
Continue to review full report at Codecov.
|
…into spectrum_function
Co-authored-by: Olivia Di Matteo <2068515+glassnotes@users.noreply.github.com>
Co-authored-by: Olivia Di Matteo <2068515+glassnotes@users.noreply.github.com>
Co-authored-by: Olivia Di Matteo <2068515+glassnotes@users.noreply.github.com>
Co-authored-by: Olivia Di Matteo <2068515+glassnotes@users.noreply.github.com>
Co-authored-by: Olivia Di Matteo <2068515+glassnotes@users.noreply.github.com>
…into spectrum_function
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.
Nice work!
Left a few suggestions and comments, all small, that I think would be good to consider before merging.
Co-authored-by: Nathan Killoran <co9olguy@users.noreply.github.com>
Co-authored-by: Nathan Killoran <co9olguy@users.noreply.github.com>
Co-authored-by: Nathan Killoran <co9olguy@users.noreply.github.com>
Co-authored-by: Nathan Killoran <co9olguy@users.noreply.github.com>
Co-authored-by: Nathan Killoran <co9olguy@users.noreply.github.com>
…into spectrum_function
Thanks @co9olguy, I hope I can convince you to not add too many more changes :) |
Context:
Recently, PL got a new Fourier module that can be used to investigate the Fourier representation of quantum circuits. Due to unforeseen difficulties we did not merge the function that would analytically derive the Fourier spectrum from a circuit. This is a new attempt with a much simplified scope.
Description of the Change:
Adds
spectrum
qnode transform.Benefits:
The new design lets users mark the gates that are considered as input-encoding gates via their
id
attribute. It will not try to track parameters, but simply see if the marked gates define generators, and thus support the assumptions of how to compute the Fourier spectrum directly.