AerPauliExpectation.convert¶
- AerPauliExpectation.convert(operator)[source]¶
Accept an Operator and return a new Operator with the Pauli measurements replaced by AerSnapshot-based expectation circuits.
- Parameters
operator (
OperatorBase
) – The operator to convert.- Return type
- Returns
The converted operator.