-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Fix lack of alternative for Optimizer
in AQC
#11099
Conversation
One or more of the the following people are requested to review this:
|
Optimizer
in AQC
Optimizer
in AQC
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.
Overall LGTM, just some minor comments 🙂
Co-authored-by: Julien Gacon <gaconju@gmail.com>
…into aqc-depr-fix
Optimizer
in AQC
Optimizer
in AQC
Optimizer
in AQC
Optimizer
in AQC
@@ -0,0 +1,21 @@ | |||
--- | |||
fixes: |
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.
Given that the introduction of the alternative should have happened before, I am considering this a "bugfix", and showing the corresponding release note, but it is a bit of a tricky PR because I could also see it as being a new feature.
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!
* Add alternative and deprecation warning * Add deprecation test * Apply Julien's suggestion Co-authored-by: Julien Gacon <gaconju@gmail.com> * Apply suggestions from Julien's code review * Move optimizer setting to init * Fix ddt import * Fix lint * Add reno --------- Co-authored-by: Julien Gacon <gaconju@gmail.com> (cherry picked from commit f0d3937)
* Add alternative and deprecation warning * Add deprecation test * Apply Julien's suggestion Co-authored-by: Julien Gacon <gaconju@gmail.com> * Apply suggestions from Julien's code review * Move optimizer setting to init * Fix ddt import * Fix lint * Add reno --------- Co-authored-by: Julien Gacon <gaconju@gmail.com> (cherry picked from commit f0d3937) Co-authored-by: Elena Peña Tapia <57907331+ElePT@users.noreply.github.com>
Summary
While working on the removal of
qiskit.algorithms
I noticed that the use of theOptimizer
class inAQC
did not have a proper alternative path, nor did it raise a deprecation warning. This got overlooked during the deprecation process last release, and is necessary to be able to remove the use of algorithms for 1.0. This fix introduces an alternative on0.45.0
to lay the ground for the future removal.Details and comments
This is PR # 1 of the "Opflow & Algorithms deprecation series", it blocks #11086.