-
Notifications
You must be signed in to change notification settings - Fork 602
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Pass keyword arguments of
MomentumQNGOptimizer
to base class; Fix `…
…QNGOptimizer` update with singular metric tensor (#6471) **Context:** The newly added `MomentumQNGOptimizer` in #6240 does not use the keyword arguments `approx` and `lam`. **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. --------- Co-authored-by: dwierichs <[email protected]> Co-authored-by: JerryChen97 <[email protected]>
- Loading branch information
1 parent
41a3b8a
commit 76ca29e
Showing
6 changed files
with
141 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters