-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Stateless VQE
#6418
Merged
Merged
Stateless VQE
#6418
Conversation
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
TODO deprecation
Cryoris
requested review from
manoelmarques,
woodsp-ibm and
a team
as code owners
June 1, 2021 08:38
it doesn't really matter, having it None was more a safeguard, but adaptVQE breaks if this is None and not 0
woodsp-ibm
reviewed
Jun 9, 2021
woodsp-ibm
reviewed
Jun 9, 2021
woodsp-ibm
reviewed
Jun 9, 2021
woodsp-ibm
reviewed
Jun 9, 2021
woodsp-ibm
reviewed
Jun 9, 2021
woodsp-ibm
reviewed
Jun 9, 2021
* deprecate sort_parameters_by_name * check ansatz has 0 params in setter * rename varform -> ansatz
meaning that if a user didn't set it, we re-construct the expectation for each new run of VQE
woodsp-ibm
reviewed
Jun 14, 2021
woodsp-ibm
reviewed
Jun 15, 2021
woodsp-ibm
approved these changes
Jun 16, 2021
ElePT
pushed a commit
to ElePT/qiskit
that referenced
this pull request
Jun 27, 2023
* make VQE stateless TODO deprecation * fix get initial point from ansatz * try fixing use of deprecate_function * fix tests & black * deprecate varalgo methods * sort params per circuit default * clarify deprecation message in varalgo.initialpoint * initialize eval_count with 0 instead of None it doesn't really matter, having it None was more a safeguard, but adaptVQE breaks if this is None and not 0 * simplify get_eigenstate * fix lint * remote note on parameter order * review suggestions * deprecate sort_parameters_by_name * check ansatz has 0 params in setter * rename varform -> ansatz * fix tests * lint * keep previous behaviour of expectation meaning that if a user didn't set it, we re-construct the expectation for each new run of VQE * move expectation factory to right place * address Qiskit#5746 * fix typehint in expectation (add Optional) * fix expectation setter Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
ElePT
pushed a commit
to ElePT/qiskit-algorithms-test
that referenced
this pull request
Jul 17, 2023
* make VQE stateless TODO deprecation * fix get initial point from ansatz * try fixing use of deprecate_function * fix tests & black * deprecate varalgo methods * sort params per circuit default * clarify deprecation message in varalgo.initialpoint * initialize eval_count with 0 instead of None it doesn't really matter, having it None was more a safeguard, but adaptVQE breaks if this is None and not 0 * simplify get_eigenstate * fix lint * remote note on parameter order * review suggestions * deprecate sort_parameters_by_name * check ansatz has 0 params in setter * rename varform -> ansatz * fix tests * lint * keep previous behaviour of expectation meaning that if a user didn't set it, we re-construct the expectation for each new run of VQE * move expectation factory to right place * address Qiskit/qiskit#5746 * fix typehint in expectation (add Optional) * fix expectation setter Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Closes #6380.
Details and comments
Refactor the
VQE
to become stateless.get_optimal_point
)get_energy_evaluation
publicly availableTo do
initial_state
onVariationalAlgorithm