Skip to content
This repository has been archived by the owner on Dec 7, 2021. It is now read-only.

Fix ADAM resuseability #1016

Merged
merged 3 commits into from
May 26, 2020
Merged

Conversation

Cryoris
Copy link
Contributor

@Cryoris Cryoris commented May 26, 2020

Summary

Fixes #1007 (lines 181 and 191) and updates the documentation and type hints of ADAM.

Details and comments

The number of iterations was set in the initializer only, so re-running the optimization kept increasing the number of iterations. Since there's a maximum number of iterations, ADAM stopped the optimization.

@Cryoris Cryoris requested a review from Zoufalc May 26, 2020 08:24
@woodsp-ibm woodsp-ibm added the Changelog: Bugfix Include in the Fixed section of the changelog label May 26, 2020
@manoelmarques manoelmarques merged commit 35e6381 into qiskit-community:master May 26, 2020
mtreinish pushed a commit to mtreinish/qiskit-core that referenced this pull request Nov 20, 2020
* reset step count in minimize and set params_new

* remove duplicate loc
manoelmarques pushed a commit to manoelmarques/qiskit-terra that referenced this pull request Dec 7, 2020
* reset step count in minimize and set params_new

* remove duplicate loc
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Changelog: Bugfix Include in the Fixed section of the changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Problem when using ADAM optimizer with QAOA
4 participants