AerPauliExpectation

class AerPauliExpectation[source]

An Expectation converter for using Aer’s operator snapshot to take expectations of quantum state circuits over Pauli observables.

Methods

AerPauliExpectation.compute_variance(exp_op)

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.