-
Notifications
You must be signed in to change notification settings - Fork 616
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
Pass keyword arguments of MomentumQNGOptimizer
to base class; Fix QNGOptimizer
update with singular metric tensor
#6471
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 @@
## v0.39.0-rc0 #6471 +/- ##
==============================================
Coverage ? 99.38%
==============================================
Files ? 452
Lines ? 42797
Branches ? 0
==============================================
Hits ? 42535
Misses ? 262
Partials ? 0 ☔ 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.
Thanks for the catch!
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.
By now most of the changes were made by me, which makes the review a bit pointless. Maybe we can request one more review if desired.
MomentumQNGOptimizer
to base class; Fix QNGOptimizer
update with singular metric tensor
Thank you so much! @dwierichs |
I can take a look if it's more like a linalg related issue |
In qml.optimize.qnspsa there's a similar usage of |
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.
LGTM! I already committed the same correction in momentum_qng
which is the only thing I saw that needs to add
Context:
The newly added
MomentumQNGOptimizer
in #6240 does not use the keyword argumentsapprox
andlam
.Description of the Change:
Pass the unused arguments to
super().__init__
Possible Drawbacks:
No tests are added for this, but these two parameters are inherited from the base class, and they are never tested in the existing test module for the base class to begin with.