Skip to content
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

Refactor the Optimizer interface #6382

Closed
Cryoris opened this issue May 10, 2021 · 0 comments · Fixed by #6866
Closed

Refactor the Optimizer interface #6382

Cryoris opened this issue May 10, 2021 · 0 comments · Fixed by #6866
Assignees
Labels
mod: algorithms Related to the Algorithms module
Milestone

Comments

@Cryoris
Copy link
Contributor

Cryoris commented May 10, 2021

What is the expected enhancement?

Mimic the common structure of minimization routines (like SciPy or scikit-quant) and change the "main" method of Optimizer.optimize to

minimize(f, x0=None, jac=None, hess=None, callback=None)

This also makes clear that our optimizers minimize something instead of just saying they optimize.

Since we don't use the same function name as before we can gracefully deprecate the old "main" method.

@Cryoris Cryoris added type: enhancement It's working, but needs polishing mod: algorithms Related to the Algorithms module and removed type: enhancement It's working, but needs polishing labels May 10, 2021
@Cryoris Cryoris self-assigned this May 10, 2021
@Cryoris Cryoris added this to the 0.19 milestone Aug 3, 2021
@kdk kdk closed this as completed in #6866 Sep 8, 2021
adekusar-drl added a commit to qiskit-community/qiskit-machine-learning that referenced this issue Sep 13, 2021
This is a follow up PR to make use of the changes introduced in Qiskit/qiskit#6382.
The Optimizer.optimize() method is deprecated in favor of Optimizer.minimize() and this is fixed in this PR.
gentinettagian pushed a commit to gentinettagian/qiskit-machine-learning that referenced this issue Dec 14, 2021
This is a follow up PR to make use of the changes introduced in Qiskit/qiskit#6382.
The Optimizer.optimize() method is deprecated in favor of Optimizer.minimize() and this is fixed in this PR.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
mod: algorithms Related to the Algorithms module
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant