Skip to content

Fix unit test of GroverOptimizer#96

Merged
manoelmarques merged 7 commits intoqiskit-community:mainfrom
a-matsuo:fix_grover_opt_test
Apr 23, 2021
Merged

Fix unit test of GroverOptimizer#96
manoelmarques merged 7 commits intoqiskit-community:mainfrom
a-matsuo:fix_grover_opt_test

Conversation

@a-matsuo
Copy link
Copy Markdown
Contributor

Summary

Fixes #88

Details and comments

As mentioned in #88, somehow, we get the different results even with the same seed. This issue didn't occur before.
I used a different example for the unit test and I get the same result in that case.

@t-imamichi t-imamichi added the on hold Can not fix yet label Apr 22, 2021
@t-imamichi
Copy link
Copy Markdown
Collaborator

I don't think it's a good idea to change the unit test to pass. We need to fix the algorithm.

@a-matsuo
Copy link
Copy Markdown
Contributor Author

Sure. I fixed the algorithm and also fixed the unit test setting (Actually, the former setting was inappropriate).

@t-imamichi t-imamichi removed the on hold Can not fix yet label Apr 23, 2021
a-matsuo added a commit to a-matsuo/qiskit-optimization that referenced this pull request Apr 23, 2021
a-matsuo added a commit to a-matsuo/qiskit-optimization that referenced this pull request Apr 23, 2021
@woodsp-ibm woodsp-ibm added the stable backport potential The bug might be minimal and/or import enough to be port to stable label Apr 23, 2021
@manoelmarques manoelmarques merged commit 7a7784f into qiskit-community:main Apr 23, 2021
mergify Bot pushed a commit that referenced this pull request Apr 23, 2021
* fix unittest of grover optimizer

* fix

* fix lint

* fix unittest and timing of updating samples

* clean up

* fix lint

Co-authored-by: Takashi Imamichi <31178928+t-imamichi@users.noreply.github.com>
(cherry picked from commit 7a7784f)
manoelmarques pushed a commit that referenced this pull request Apr 23, 2021
* fix unittest of grover optimizer

* fix

* fix lint

* fix unittest and timing of updating samples

* clean up

* fix lint

Co-authored-by: Takashi Imamichi <31178928+t-imamichi@users.noreply.github.com>
(cherry picked from commit 7a7784f)

Co-authored-by: a-matsuo <47442626+a-matsuo@users.noreply.github.com>
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.

Failure on test.algorithms.test_grover_optimizer.TestGroverOptimizer.test_samples_and_raw_samples

4 participants