qiskit.opflow.expectations.AerPauliExpectation.convert¶
- AerPauliExpectation.convert(operator)[Quellcode]¶
Accept an Operator and return a new Operator with the Pauli measurements replaced by AerSnapshot-based expectation circuits.
- Parameter
operator (OperatorBase) – The operator to convert. If it contains non-hermitian terms, the operator is decomposed into hermitian and anti-hermitian parts.
- Rückgabe
The converted operator.
- Rückgabetyp