qiskit/releasenotes/notes/0.22/ae-algorithms-primitives-49...

20 lines
938 B
YAML

---
features:
- |
The amplitude estimation algorithm classes:
* :class:`~qiskit.algorithms.AmplitudeEstimation`,
* :class:`~qiskit.algorithms.FasterAmplitudeEstimation`,
* :class:`~qiskit.algorithms.IterativeAmplitudeEstimation`,
* :class:`~qiskit.algorithms.MaximumLikelihoodAmplitudeEstimation`
Now have a new keyword argument, ``sampler`` on their constructor that
takes an instance of an object that implements the :class:`~.BaseSampler`
interface including :class:`~.BackendSampler`, :class:`Sampler`, or any
provider implementations such as those as those present in
qiskit-ibm-runtime and qiskit-aer. This provides an alternative to using
the ``quantum_instance`` argument to set the target :class:`~.Backend`
or :class:`~.QuantumInstance` to run the algorithm on.
Using a :class:`~.QuantumInstance` is pending deprecation and will
be deprecated in a future release.