qiskit.opflow.expectations.PauliExpectation.convert¶
- PauliExpectation.convert(operator)[fuente]¶
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.
- Parámetros
operator (OperatorBase) – The operator to convert.
- Devuelve
The converted operator.
- Tipo del valor devuelto