AerPauliExpectation¶
- class AerPauliExpectation[source]¶
An Expectation converter for using Aer’s operator snapshot to take expectations of quantum state circuits over Pauli observables.
Methods
Compute the variance of the expectation estimator.
AerPauliExpectation.convert
(operator)Accept an Operator and return a new Operator with the Pauli measurements replaced by AerSnapshot-based expectation circuits.