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

Derive from BaseSamplerV1 rather than BaseSampler #2199

Merged
merged 2 commits into from
Aug 13, 2024

Conversation

garrison
Copy link
Member

@garrison garrison commented Aug 2, 2024

Summary

This change is in accordance with the following warning that is triggered by the Qiskit 1.2 rc:

qiskit_aer/primitives/sampler.py:69: DeprecationWarning: The class qiskit.primitives.base.base_sampler.BaseSampler is deprecated as of qiskit 1.2. It will be removed no earlier than 3 months after the release date. The BaseSampler class is a type alias for the BaseSamplerV1 interface that has been deprecated in favor of explicitly versioned interface classes. It is recommended to migrate all implementations to use BaseSamplerV2. However, for implementations incompatible with BaseSamplerV2, BaseSampler can be replaced with the explicitly versioned BaseSamplerV1 class.

Details and comments

This change is in accordance with the following warning
that is triggered by the Qiskit 1.2 rc:

> qiskit_aer/primitives/sampler.py:69: DeprecationWarning: The class ``qiskit.primitives.base.base_sampler.BaseSampler`` is deprecated as of qiskit 1.2. It will be removed no earlier than 3 months after the release date. The `BaseSampler` class is a type alias for the `BaseSamplerV1` interface that has been deprecated in favor of explicitly versioned interface classes. It is recommended to migrate all implementations to use `BaseSamplerV2`. However, for implementations incompatible with `BaseSamplerV2`, `BaseSampler` can be replaced with the explicitly versioned `BaseSamplerV1` class.
@doichanj
Copy link
Collaborator

doichanj commented Aug 6, 2024

I think we can also deprecate V1 based AerSampler and AerEstimator

@doichanj doichanj merged commit 2825e1f into Qiskit:main Aug 13, 2024
38 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants