qiskit.opflow.expectations.PauliExpectation.convert¶
- PauliExpectation.convert(operator)[Quellcode]¶
Accepts an Operator and returns a new Operator with the Pauli measurements replaced by diagonal Pauli post-rotation based measurements so they can be evaluated by sampling and averaging.
- Parameter
operator (OperatorBase) – The operator to convert.
- Rückgabe
The converted operator.
- Rückgabetyp