About cookies on this site Our websites require some cookies to function properly (required). In addition, other cookies may be used with your consent to analyze site usage, improve the user experience and for advertising. For more information, please review your options. By visiting our website, you agree to our processing of information as described in IBM’sprivacy statement. To provide a smooth navigation, your cookie preferences will be shared across the IBM web domains listed here.
BaseEstimatorV2
class qiskit.primitives.BaseEstimatorV2
Bases: ABC
Estimator V2 base class.
An estimator estimates expectation values for provided quantum circuit and observable combinations.
An Estimator implementation must treat the run()
method precision=None
kwarg as using a default precision
value. The default value and methods to set it can be determined by the Estimator implementor.
Methods
run
abstract run(pubs, *, precision=None)
Estimate expectation values for each provided pub (Primitive Unified Bloc).
Parameters
- pubs (Iterable[EstimatorPubLike]) – An iterable of pub-like objects, such as tuples
(circuit, observables)
or(circuit, observables, parameter_values)
. - precision (float | None) – The target precision for expectation value estimates of each run Estimator Pub that does not specify its own precision. If None the estimator’s default precision value will be used.
Returns
A job object that contains results.
Return type
Was this page helpful?
Report a bug or request content on GitHub.