qiskit.opflow.expectations.PauliExpectation.convert¶
- PauliExpectation.convert(operator)[código fonte]¶
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.
- Retorno
The converted operator.
- Tipo de retorno