-
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
Add Migration Guide for qiskit.algorithms
#9557
Conversation
Thank you for opening a new pull request. Before your PR can be merged it will first need to pass continuous integration tests and be reviewed. Sometimes the review process can be slow, so please be patient. While you're waiting, please feel free to review other open PRs. While only a subset of people are authorized to approve pull requests for merging, everyone is encouraged to review open pull requests. Doing reviews helps reduce the burden on the core team and helps make the project's code better for everyone. One or more of the the following people are requested to review this:
|
Pull Request Test Coverage Report for Build 4616092703
💛 - Coveralls |
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.
I got up to Eigensolvers - will start there next time,
the new Sampler-based :class:`qiskit.algorithms.minimum_eigensolvers.SamplingVQE` algorithm. This could formerly | ||
be realized using the legacy :class:`~qiskit.algorithms.minimum_eigen_solvers.VQE` with | ||
:class:`~qiskit.opflow.expectations.CVaRExpectation`. | ||
|
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.
Should we also note the other parameters that have changed. E.g expectation (and include_custom) is gone since its part of Estimator now, gradient is there but its now primitive gradients. max_evals_grouped is gone but can be set directly on an optimizer
Co-authored-by: Steve Wood <40241007+woodsp-ibm@users.noreply.github.com>
…it-terra into algos-migration-guide
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! Just a couple of tiny change suggestions.
Co-authored-by: Declan Millar <declan.millar@ibm.com>
|
||
[ 0.01765114+0.0e+00j -0.58507654+0.0e+00j -0.15003642-2.8e-17j] | ||
|
||
For complete code examples, see the following updated tutorials: |
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.
Minor comment: the output formatting seems to to keep have text closer to the drop down example than the bullet list. Maybe it is what it is. I will note there is only one tutorial in this case - plural is used throughout this even in the case where there is one.
Also its a complete code example only for the new way. There are some tutorials in older versions of the docs out there showing the old way but maybe we are only interested in a fuller example of the new way.
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.
Yes, I manually added a line break when this happens, I am not sure if it is the best way to handle these kind of formatting issues.
Co-authored-by: Steve Wood <40241007+woodsp-ibm@users.noreply.github.com>
…it-terra into algos-migration-guide
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 all the work, this looks great 💯
* Add draft * Remove qiskit * Apply review * Add algos guide * Add skeleton * Add content * Fix sampling VQE example * Apply suggestions from Steve's code review Co-authored-by: Steve Wood <40241007+woodsp-ibm@users.noreply.github.com> * Apply review, update code examples up to Eigensolvers * Add doctest to sphinx config * Add tests up to eigensolvers * Review code examples from Eigensolvers * Update heading style * Apply suggestions from Declan's code review Co-authored-by: Declan Millar <declan.millar@ibm.com> * Apply suggestions from Steve's code review Co-authored-by: Steve Wood <40241007+woodsp-ibm@users.noreply.github.com> * Apply review * Final changes, fix docs * Apply Julien's comments --------- Co-authored-by: Steve Wood <40241007+woodsp-ibm@users.noreply.github.com> Co-authored-by: Declan Millar <declan.millar@ibm.com>
* Add draft * Remove qiskit * Apply review * Add algos guide * Add skeleton * Add content * Fix sampling VQE example * Apply suggestions from Steve's code review Co-authored-by: Steve Wood <40241007+woodsp-ibm@users.noreply.github.com> * Apply review, update code examples up to Eigensolvers * Add doctest to sphinx config * Add tests up to eigensolvers * Review code examples from Eigensolvers * Update heading style * Apply suggestions from Declan's code review Co-authored-by: Declan Millar <declan.millar@ibm.com> * Apply suggestions from Steve's code review Co-authored-by: Steve Wood <40241007+woodsp-ibm@users.noreply.github.com> * Apply review * Final changes, fix docs * Apply Julien's comments --------- Co-authored-by: Steve Wood <40241007+woodsp-ibm@users.noreply.github.com> Co-authored-by: Declan Millar <declan.millar@ibm.com>
* Add draft * Remove qiskit * Apply review * Add algos guide * Add skeleton * Add content * Fix sampling VQE example * Apply suggestions from Steve's code review Co-authored-by: Steve Wood <40241007+woodsp-ibm@users.noreply.github.com> * Apply review, update code examples up to Eigensolvers * Add doctest to sphinx config * Add tests up to eigensolvers * Review code examples from Eigensolvers * Update heading style * Apply suggestions from Declan's code review Co-authored-by: Declan Millar <declan.millar@ibm.com> * Apply suggestions from Steve's code review Co-authored-by: Steve Wood <40241007+woodsp-ibm@users.noreply.github.com> * Apply review * Final changes, fix docs * Apply Julien's comments --------- Co-authored-by: Steve Wood <40241007+woodsp-ibm@users.noreply.github.com> Co-authored-by: Declan Millar <declan.millar@ibm.com>
* Add draft * Remove qiskit * Apply review * Add algos guide * Add skeleton * Add content * Fix sampling VQE example * Apply suggestions from Steve's code review Co-authored-by: Steve Wood <40241007+woodsp-ibm@users.noreply.github.com> * Apply review, update code examples up to Eigensolvers * Add doctest to sphinx config * Add tests up to eigensolvers * Review code examples from Eigensolvers * Update heading style * Apply suggestions from Declan's code review Co-authored-by: Declan Millar <declan.millar@ibm.com> * Apply suggestions from Steve's code review Co-authored-by: Steve Wood <40241007+woodsp-ibm@users.noreply.github.com> * Apply review * Final changes, fix docs * Apply Julien's comments --------- Co-authored-by: Steve Wood <40241007+woodsp-ibm@users.noreply.github.com> Co-authored-by: Declan Millar <declan.millar@ibm.com>
Summary
Part of algorithms deprecation plan.
Details and comments
Blocked by #9549