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

Primitive V1 deprecation follow-up (backport #12824) #12835

Merged
merged 1 commit into from
Jul 29, 2024

Conversation

mergify[bot]
Copy link
Contributor

@mergify mergify bot commented Jul 29, 2024

Summary

This PR applies a series of fixes to the messaging introduced in #11490 to further clarify:

  • difference between V1 and V2
  • difference between abstract interface and implementation
  • migration path for deprecated classes

It supersedes #12818 after an offline discussion with @1ucian0.

Details and comments

I am open to suggestions, this is a bit of an intricate message to convey to users.


This is an automatic backport of pull request #12824 done by [Mergify](https://mergify.com).

* Apply tweaks to deprecation messages, docstrings and release notes.

* Fix missing backtick

* Apply suggestions from Luciano's code review

Co-authored-by: Luciano Bello <bel@zurich.ibm.com>

* Update qiskit/primitives/statevector_sampler.py

Co-authored-by: Luciano Bello <bel@zurich.ibm.com>

* Update qiskit/primitives/backend_sampler.py

Co-authored-by: Luciano Bello <bel@zurich.ibm.com>

* Update qiskit/primitives/primitive_job.py

Co-authored-by: Takashi Imamichi <31178928+t-imamichi@users.noreply.github.com>

* Update qiskit/primitives/base/base_estimator.py

Co-authored-by: Takashi Imamichi <31178928+t-imamichi@users.noreply.github.com>

---------

Co-authored-by: Luciano Bello <bel@zurich.ibm.com>
Co-authored-by: Takashi Imamichi <31178928+t-imamichi@users.noreply.github.com>
(cherry picked from commit b7d0a97)
@mergify mergify bot requested review from a team as code owners July 29, 2024 10:25
@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 following people are relevant to this code:

  • @Qiskit/terra-core
  • @ajavadia
  • @levbishop
  • @t-imamichi

@github-actions github-actions bot added Changelog: None Do not include in changelog mod: primitives Related to the Primitives module labels Jul 29, 2024
@github-actions github-actions bot added this to the 1.2.0 milestone Jul 29, 2024
@ElePT ElePT enabled auto-merge July 29, 2024 10:34
@coveralls
Copy link

Pull Request Test Coverage Report for Build 10142527079

Details

  • 21 of 21 (100.0%) changed or added relevant lines in 6 files are covered.
  • 35 unchanged lines in 4 files lost coverage.
  • Overall coverage decreased (-0.04%) to 89.919%

Files with Coverage Reduction New Missed Lines %
qiskit/primitives/base/base_estimator.py 1 94.59%
qiskit/primitives/base/base_sampler.py 1 96.97%
crates/qasm2/src/lex.rs 9 91.35%
crates/qasm2/src/parse.rs 24 96.23%
Totals Coverage Status
Change from base Build 10118826632: -0.04%
Covered Lines: 66151
Relevant Lines: 73567

💛 - Coveralls

@ElePT ElePT added this pull request to the merge queue Jul 29, 2024
Merged via the queue into stable/1.2 with commit 929f306 Jul 29, 2024
16 of 18 checks passed
@mergify mergify bot deleted the mergify/bp/stable/1.2/pr-12824 branch July 29, 2024 12:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Changelog: None Do not include in changelog mod: primitives Related to the Primitives module
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants