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
[unitaryhack] Add SPSA optimization #2661
[unitaryhack] Add SPSA optimization #2661
Conversation
I think I finished everything, but I am not sure about the cases of hybrid classical-quantum workflows. as I commented in #2451 |
Codecov Report
@@ Coverage Diff @@
## master #2661 +/- ##
=======================================
Coverage 99.61% 99.61%
=======================================
Files 251 252 +1
Lines 20662 20726 +64
=======================================
+ Hits 20582 20646 +64
Misses 80 80
Continue to review full report at Codecov.
|
I yield similar results for a couple of different functions. I think you're good to go 😆 |
Co-authored-by: antalszava <antalszava@gmail.com>
…ane into add_SPSA_optimization_ixime merge
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.
Hi @ixime and @MoritzWillmann! This is looking amazing overall. 👏 🎆
The suggestions I have this time are smaller. Once they are addressed, I'll make another pass, but the overall addition here is very near approval.
Note: some conflicts will have to be resolved when merging master
in.
Co-authored-by: antalszava <antalszava@gmail.com>
Co-authored-by: antalszava <antalszava@gmail.com>
Co-authored-by: antalszava <antalszava@gmail.com>
Co-authored-by: antalszava <antalszava@gmail.com>
Co-authored-by: antalszava <antalszava@gmail.com>
Co-authored-by: antalszava <antalszava@gmail.com>
Co-authored-by: antalszava <antalszava@gmail.com>
Co-authored-by: antalszava <antalszava@gmail.com>
I tried to solve the conflicts, but I don't have write access to solve them. My fork master is up to date and apparently I merged successfully my local branch with my up to date local master 🤷♀️ I am little lost here.. did I miss some step? |
@ixime It should be fixed now :) |
Hi @antalszava why some times the codecov report is fine and the next check is all wrong without changing a bit on the code, just the docstring? |
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 @ixime, @MoritzWillmann! 🎉 🎆 This is an amazing and high-quality addition, congrats 🙂 👏
Adding the Unitary HACK accepted label too.
Hi @antalszava why some times the codecov report is fine and the next check is all wrong without changing a bit on the code, just the docstring?
I think the issue came from a previous state where one test was failing and it didn't report to Codecov correctly. Now it should be okay 👍
Context:
Adding a feature as part of unitaryhack related to issue #2451
Description of the Change:
The qml.SPSAOptimizer was added with its corresponding tests based on:
J. Spall, "An Overview of the Simultaneous Perturbation Method for Efficient Optimization." Johns Hopkins api technical digest, 19(4), 482-492, 1998
Benefits:
Possible Drawbacks:
Related GitHub Issues:
Closes #2451