qiskit-community / qiskit-algorithms

A library of quantum algorithms for Qiskit.
https://qiskit-community.github.io/qiskit-algorithms/
Apache License 2.0
89 stars 43 forks source link

Gradients and Fidelities V2 versions #137

Open woodsp-ibm opened 5 months ago

woodsp-ibm commented 5 months ago

Qiskit is adding V2 versions of the primitives with 1.0.0 where its expected V1 versions will be later deprecated and removed. When Gradients and Fidelities were done the followed the V1 primitive style. While these algorithms are somewhat independent having updated versions that look/act more like the V2 primitives maybe more consistent for users.

This is somewhat related to #136 in that these algorithms should support the V2 primitives of course - but this is saying one step further and look/behave, follow similar coding to the V2 primitives. Having things more closely track may mitigate issues coming up like this #129 where the base classes and framework on which things are built, they is also used by these algorithms here, gets changed/updated going forwards.