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 VQD for k>2 #8989

Merged
merged 3 commits into from
Oct 27, 2022
Merged

Fix VQD for k>2 #8989

merged 3 commits into from
Oct 27, 2022

Conversation

Cryoris
Copy link
Contributor

@Cryoris Cryoris commented Oct 25, 2022

Summary

Fixes #8982 by fixing a bug where the optimal parameters were passed as dictionary instead of list, as expected by the estimator.

Details and comments

Also ensure the optimal circuits from previous iterations are only constructed once and recognizable by the primitive caches.
(Also fix documentation-OCD by uppercasing every letter in the beginning of a sentence.)

Also ensure the optimal circuits from previous iterations are only constructed once and recognizable by the primitive caches.
@qiskit-bot
Copy link
Collaborator

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:

@Cryoris Cryoris added the mod: algorithms Related to the Algorithms module label Oct 25, 2022
@Cryoris Cryoris added this to the 0.22.1 milestone Oct 25, 2022
@coveralls
Copy link

coveralls commented Oct 25, 2022

Pull Request Test Coverage Report for Build 3335346877

  • 3 of 3 (100.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.008%) to 84.412%

Totals Coverage Status
Change from base Build 3333125469: 0.008%
Covered Lines: 61740
Relevant Lines: 73141

💛 - Coveralls

@mtreinish mtreinish added stable backport potential The bug might be minimal and/or import enough to be port to stable Changelog: Bugfix Include in the "Fixed" section of the changelog labels Oct 25, 2022
Copy link
Member

@woodsp-ibm woodsp-ibm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM thx!

@mergify mergify bot merged commit aab18fc into Qiskit:main Oct 27, 2022
mergify bot pushed a commit that referenced this pull request Oct 27, 2022
* Fix vqd for k>2

Also ensure the optimal circuits from previous iterations are only constructed once and recognizable by the primitive caches.

* Remove empty parameter list

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
(cherry picked from commit aab18fc)
mergify bot added a commit that referenced this pull request Oct 27, 2022
* Fix vqd for k>2

Also ensure the optimal circuits from previous iterations are only constructed once and recognizable by the primitive caches.

* Remove empty parameter list

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
(cherry picked from commit aab18fc)

Co-authored-by: Julien Gacon <gaconju@gmail.com>
ElePT pushed a commit to ElePT/qiskit that referenced this pull request Jun 27, 2023
* Fix vqd for k>2

Also ensure the optimal circuits from previous iterations are only constructed once and recognizable by the primitive caches.

* Remove empty parameter list

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
* Fix vqd for k>2

Also ensure the optimal circuits from previous iterations are only constructed once and recognizable by the primitive caches.

* Remove empty parameter list

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
Labels
Changelog: Bugfix Include in the "Fixed" section of the changelog mod: algorithms Related to the Algorithms module stable backport potential The bug might be minimal and/or import enough to be port to stable
Projects
None yet
Development

Successfully merging this pull request may close these issues.

VQD with primitives for k > 2 fails to validate parameter values
5 participants