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

Support Sampler in Grover #8647

Merged
merged 67 commits into from
Sep 22, 2022
Merged

Support Sampler in Grover #8647

merged 67 commits into from
Sep 22, 2022

Conversation

a-matsuo
Copy link
Contributor

Summary

Grover can now use Sampler to calculate the results.

Details and comments

close #8488

@qiskit-bot qiskit-bot added the Community PR PRs from contributors that are not 'members' of the Qiskit repo label Aug 31, 2022
@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:

@coveralls
Copy link

coveralls commented Aug 31, 2022

Pull Request Test Coverage Report for Build 3109198847

  • 36 of 55 (65.45%) changed or added relevant lines in 2 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.01%) to 84.383%

Changes Missing Coverage Covered Lines Changed/Added Lines %
qiskit/algorithms/amplitude_amplifiers/grover.py 34 53 64.15%
Totals Coverage Status
Change from base Build 3108478373: -0.01%
Covered Lines: 59292
Relevant Lines: 70265

💛 - Coveralls

@t-imamichi t-imamichi removed the Community PR PRs from contributors that are not 'members' of the Qiskit repo label Aug 31, 2022
@woodsp-ibm woodsp-ibm added the mod: algorithms Related to the Algorithms module label Aug 31, 2022
@a-matsuo a-matsuo marked this pull request as ready for review September 1, 2022 02:00
@a-matsuo a-matsuo changed the title [WIP] Support Sampler in Grover Support Sampler in Grover Sep 1, 2022
@manoelmarques
Copy link
Member

@a-matsuo I went ahead and added the deprecation msgs. They are all PendingDeprecation.
You created a test tutorial: grover_test.ipynb under the Grover folder but those folders should not contain any Jupyter Notebook files right ?

@a-matsuo
Copy link
Contributor Author

I cleaned up my codes. Does this QFI satisfy the requirements of VarQTE #8746 ? If so the design is fixed and I can finalize this PR.

@woodsp-ibm
Copy link
Member

I cleaned up my codes. Does this QFI satisfy the requirements of VarQTE

Maybe you meant to add that comment to the QFI PR?

@woodsp-ibm woodsp-ibm closed this Sep 21, 2022
@woodsp-ibm woodsp-ibm reopened this Sep 21, 2022
@woodsp-ibm
Copy link
Member

(Accidentally clicked the wrong button - duh!)

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.

@a-matsuo Thanks. LGTM.

@mergify mergify bot merged commit b7d5f4a into Qiskit:main Sep 22, 2022
@a-matsuo a-matsuo deleted the grover-primitives branch November 17, 2022 05:55
ElePT pushed a commit to ElePT/qiskit that referenced this pull request Jun 27, 2023
* wip added sampler

* added sampler

* fix lint

* assert warns

* fix reno

* Add deprecation

* fix unit tests for pending deprecation

* remove unnecessary jupyter notebook

* add pend.deprecation test

* Update qiskit/algorithms/amplitude_amplifiers/grover.py

Co-authored-by: Julien Gacon <gaconju@gmail.com>

* added error handling

* fix

* use algorithm error

* fix lint

* fix

* Update qiskit/algorithms/amplitude_amplifiers/grover.py

Co-authored-by: Julien Gacon <gaconju@gmail.com>

* Update qiskit/algorithms/amplitude_amplifiers/grover.py

Co-authored-by: Julien Gacon <gaconju@gmail.com>

* filter warnings

* added unittests

* lint

* fix

* fix

* fix

* fix

* fix

* lint

* remove print

* update sampler's options

* changed the shots test to TODO

* lint

* added _prepare_grover in the unittest

* fix test

* changed the code-block in the release note

* Update releasenotes/notes/add-grover-primitives-10f81efdba93703d.yaml

* Update qiskit/algorithms/amplitude_amplifiers/grover.py

* Update qiskit/algorithms/amplitude_amplifiers/grover.py

* Apply suggestions from code review

* Apply suggestions from code review

* Apply suggestions from code review

Co-authored-by: Manoel Marques <manoel.marques@ibm.com>
Co-authored-by: Julien Gacon <gaconju@gmail.com>
Co-authored-by: Steve Wood <40241007+woodsp-ibm@users.noreply.github.com>
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
* wip added sampler

* added sampler

* fix lint

* assert warns

* fix reno

* Add deprecation

* fix unit tests for pending deprecation

* remove unnecessary jupyter notebook

* add pend.deprecation test

* Update qiskit/algorithms/amplitude_amplifiers/grover.py

Co-authored-by: Julien Gacon <gaconju@gmail.com>

* added error handling

* fix

* use algorithm error

* fix lint

* fix

* Update qiskit/algorithms/amplitude_amplifiers/grover.py

Co-authored-by: Julien Gacon <gaconju@gmail.com>

* Update qiskit/algorithms/amplitude_amplifiers/grover.py

Co-authored-by: Julien Gacon <gaconju@gmail.com>

* filter warnings

* added unittests

* lint

* fix

* fix

* fix

* fix

* fix

* lint

* remove print

* update sampler's options

* changed the shots test to TODO

* lint

* added _prepare_grover in the unittest

* fix test

* changed the code-block in the release note

* Update releasenotes/notes/add-grover-primitives-10f81efdba93703d.yaml

* Update qiskit/algorithms/amplitude_amplifiers/grover.py

* Update qiskit/algorithms/amplitude_amplifiers/grover.py

* Apply suggestions from code review

* Apply suggestions from code review

* Apply suggestions from code review

Co-authored-by: Manoel Marques <manoel.marques@ibm.com>
Co-authored-by: Julien Gacon <gaconju@gmail.com>
Co-authored-by: Steve Wood <40241007+woodsp-ibm@users.noreply.github.com>
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: API Change Include in the "Changed" section of the changelog Changelog: Deprecation Include in "Deprecated" section of changelog Changelog: New Feature Include in the "Added" section of the changelog mod: algorithms Related to the Algorithms module
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Rewrite Grover with primitives.
9 participants