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

Fix parameter order in VQE, if the ansatz is resized (backport #7479) #7526

Merged
merged 1 commit into from
Jan 13, 2022

Conversation

mergify[bot]
Copy link
Contributor

@mergify mergify bot commented Jan 13, 2022

This is an automatic backport of pull request #7479 done by Mergify.


Mergify commands and options

More conditions and actions can be found in the documentation.

You can also trigger Mergify actions by commenting on this pull request:

  • @Mergifyio refresh will re-evaluate the rules
  • @Mergifyio rebase will rebase this PR on its base branch
  • @Mergifyio update will merge the base branch into this PR
  • @Mergifyio backport <destination> will backport this PR on <destination> branch

Additionally, on Mergify dashboard you can:

  • look at your merge queues
  • generate the Mergify configuration with the config editor.

Finally, you can contact us on https://mergify.com

* fix VQE param order if ansatz is resized

* add test, rm trailing comment

* fix construct circuit for params != circuit params

* fix test_max_evals_grouped

In this test, the ansatz was resized and thus the parameters ASCII-sorted. Now they are sorted by vector, which leads to a slightly different optimization (since the params are in a different order).

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
(cherry picked from commit d0b26c2)
@mergify mergify bot requested review from manoelmarques, woodsp-ibm and a team as code owners January 13, 2022 12:24
@jakelishman jakelishman added automerge Changelog: Bugfix Include in the "Fixed" section of the changelog labels Jan 13, 2022
@jakelishman jakelishman added this to the 0.19.2 milestone Jan 13, 2022
@mergify mergify bot merged commit e755ad0 into stable/0.19 Jan 13, 2022
@mergify mergify bot deleted the mergify/bp/stable/0.19/pr-7479 branch January 13, 2022 13:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Changelog: Bugfix Include in the "Fixed" section of the changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants