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

Override classmethod supports_aux_operators in VQEProgram #223

Merged
merged 10 commits into from
Aug 16, 2021

Conversation

lasys
Copy link
Contributor

@lasys lasys commented Aug 4, 2021

Summary

Fix #222

Details and comments

@CLAassistant
Copy link

CLAassistant commented Aug 4, 2021

CLA assistant check
All committers have signed the CLA.

Copy link
Contributor

@Cryoris Cryoris left a comment

Choose a reason for hiding this comment

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

Thanks for the contribution! Could you add a short test that checks that a MinimumEigenOptimizer can be instantiated with both a VQEProgram and a QAOAProgram and add a bugfix release note?

@woodsp-ibm
Copy link
Member

Since VQEProgram in Qiskit Nature is the same as the one here, do you fancy making this fix there too once this one is done here?

@lasys
Copy link
Contributor Author

lasys commented Aug 6, 2021

Thanks for the contribution! Could you add a short test that checks that a MinimumEigenOptimizer can be instantiated with both a VQEProgram and a QAOAProgram and add a bugfix release note?

@Cryoris I added two tests and a release note. Let me know, if it's good or if i should change something.

Copy link
Contributor

@Cryoris Cryoris left a comment

Choose a reason for hiding this comment

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

Two small comments otherwise LGTM 👍🏻

test/algorithms/test_min_eigen_optimizer.py Outdated Show resolved Hide resolved
test/algorithms/test_min_eigen_optimizer.py Outdated Show resolved Hide resolved
@t-imamichi t-imamichi added the stable backport potential The bug might be minimal and/or import enough to be port to stable label Aug 11, 2021
@t-imamichi
Copy link
Collaborator

@lasys Thank you for your contribution. Could you check out CLA? #223 (comment)

Copy link
Contributor

@Cryoris Cryoris left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for the contribution and fix @lasys!

@manoelmarques manoelmarques merged commit 103db34 into qiskit-community:main Aug 16, 2021
mergify bot pushed a commit that referenced this pull request Aug 16, 2021
* override supports_aux_operators

* removed docstring

* added tests

* added tests

* add release note

* reordered imports + merged tests into one

* added method docstring

* fixed formatting

* Update test/algorithms/test_min_eigen_optimizer.py

Co-authored-by: Takashi Imamichi <[email protected]>

* Update test/algorithms/test_min_eigen_optimizer.py

Co-authored-by: Takashi Imamichi <[email protected]>

Co-authored-by: Takashi Imamichi <[email protected]>
(cherry picked from commit 103db34)
manoelmarques pushed a commit that referenced this pull request Aug 16, 2021
* override supports_aux_operators

* removed docstring

* added tests

* added tests

* add release note

* reordered imports + merged tests into one

* added method docstring

* fixed formatting

* Update test/algorithms/test_min_eigen_optimizer.py

Co-authored-by: Takashi Imamichi <[email protected]>

* Update test/algorithms/test_min_eigen_optimizer.py

Co-authored-by: Takashi Imamichi <[email protected]>

Co-authored-by: Takashi Imamichi <[email protected]>
(cherry picked from commit 103db34)

Co-authored-by: lasys <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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.

MinimumEigenOptimizer fails with QAOAProgram
6 participants