Skip to content

Conversation

mtreinish
Copy link
Member

Right now there are tests that rely on the BackendSampler, Sampler, Estimator and BackendEstimator classes. These tests are testing the full path execution workflow with primitives for qiskit-algorithms and application modules with v1 implementations as input to these modules. However, these v1 primitive implementations are deprecated and will be removed in qiskit 2.0. This makes these test infeasible moving forward because qiskit-algorithms only supports the primitives v1 interface, so while there is a v2 interface available for the backend primitives in qiskit these can't be used with algorithms anymore. So this commit deletes the tests in questions to unblock the qiskit removal PR.

Right now there are tests that rely on the `BackendSampler`, `Sampler`,
`Estimator` and `BackendEstimator` classes. These tests are testing the
full path execution workflow with primitives for qiskit-algorithms and
application modules with v1 implementations as input to these modules.
However, these v1 primitive implementations are deprecated and will be
removed in qiskit 2.0. This makes these test infeasible moving forward
because qiskit-algorithms only supports the primitives v1 interface, so
while there is a v2 interface available for the backend primitives in
qiskit these can't be used with algorithms anymore. So this commit
deletes the tests in questions to unblock the qiskit removal PR.
@mtreinish mtreinish requested a review from ElePT February 26, 2025 15:23
@CLAassistant
Copy link

CLAassistant commented Feb 26, 2025

CLA assistant check
All committers have signed the CLA.

@mtreinish mtreinish requested a review from ElePT March 5, 2025 13:01
@mtreinish
Copy link
Member Author

This should be working now, I've got the ml tests running with the v2 statevector primitives instead of the v1 "reference" primitives, and removed the other instances of v1 usage.

Copy link
Collaborator

@ElePT ElePT left a comment

Choose a reason for hiding this comment

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

LGTM! The option setting for the V2 primitives is a bit finicky, so thanks for taking the time to fix it.

@ElePT ElePT merged commit de00923 into main Mar 5, 2025
10 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.

3 participants