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

Deprecate BasePrimitiveResult #11054

Merged
merged 1 commit into from
Jan 12, 2024

Conversation

chriseclectic
Copy link
Member

Summary

Deprecates the unnecessary base class BasePrimitiveResult so we can have a clean break in defining new ones in Qiskit 1.0. Also deprecates the common utility methods decompose, experiments, and num_experimetns this base class adds to SamplerResult and EstimatorResult.

Details and comments

@chriseclectic chriseclectic added the Changelog: Deprecation Include in "Deprecated" section of changelog label Oct 19, 2023
@chriseclectic chriseclectic requested review from ikkoham, t-imamichi and a team as code owners October 19, 2023 18:44
@qiskit-bot
Copy link
Collaborator

One or more of the the following people are requested to review this:

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

@woodsp-ibm woodsp-ibm added the mod: primitives Related to the Primitives module label Oct 19, 2023
t-imamichi
t-imamichi previously approved these changes Oct 23, 2023
Copy link
Member

@t-imamichi t-imamichi left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@jakelishman jakelishman left a comment

Choose a reason for hiding this comment

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

Also, given Ian's RFC, is it actually set in stone that these will be removed in the way they're being done here, or is there a chance that there will just be a completely disjoint versioned set of primitives APIs, in which case these needn't be so eagerly deprecated?

@chriseclectic
Copy link
Member Author

@t-imamichi Updated this PR if you could re-review

@coveralls
Copy link

Pull Request Test Coverage Report for Build 7465611903

Warning: This coverage report may be inaccurate.

We've detected an issue with your CI configuration that might affect the accuracy of this pull request's coverage report.
To ensure accuracy in future PRs, please see these guidelines.
A quick fix for this PR: rebase it; your next report should be accurate.

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.02%) to 87.544%

Totals Coverage Status
Change from base Build 7463210826: -0.02%
Covered Lines: 59459
Relevant Lines: 67919

💛 - Coveralls

Deprecates the unnecessary base class BasePrimitiveResult so we can have a clean break in defining new ones in Qiskit 1.0. Also deprecates the common utility methods `decompose`, `experiments`, and `num_experimetns` this base class adds to SamplerResult and EstimatorResult.

Add jakes suggestion
@chriseclectic chriseclectic changed the base branch from main to stable/0.46 January 10, 2024 15:22
@chriseclectic chriseclectic force-pushed the dep-base-primitive-result branch from 4bf64e6 to 847e00b Compare January 10, 2024 15:22
@chriseclectic chriseclectic added this to the 0.46.0 milestone Jan 10, 2024
Copy link
Member

@t-imamichi t-imamichi left a comment

Choose a reason for hiding this comment

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

LGTM

@ikkoham ikkoham added this pull request to the merge queue Jan 12, 2024
Merged via the queue into Qiskit:stable/0.46 with commit 2843bb5 Jan 12, 2024
11 checks passed
ikkoham pushed a commit to ikkoham/qiskit-terra that referenced this pull request Jan 17, 2024
Deprecates the unnecessary base class BasePrimitiveResult so we can have a clean break in defining new ones in Qiskit 1.0. Also deprecates the common utility methods `decompose`, `experiments`, and `num_experimetns` this base class adds to SamplerResult and EstimatorResult.

Add jakes suggestion
github-merge-queue bot pushed a commit that referenced this pull request Feb 1, 2024
* Deprecate BasePrimitiveResult (#11054)

Deprecates the unnecessary base class BasePrimitiveResult so we can have a clean break in defining new ones in Qiskit 1.0. Also deprecates the common utility methods `decompose`, `experiments`, and `num_experimetns` this base class adds to SamplerResult and EstimatorResult.

Add jakes suggestion

* Remove deprecated features in 0.46 in Primitives

* lint

* lint

---------

Co-authored-by: Christopher J. Wood <[email protected]>
Co-authored-by: Matthew Treinish <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Changelog: Deprecation Include in "Deprecated" section of changelog mod: primitives Related to the Primitives module
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants