qiskit.opflow.expectations.PauliExpectation.convert¶
- PauliExpectation.convert(operator)[소스]¶
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.
- 매개변수
operator (OperatorBase) – The operator to convert.
- 반환
The converted operator.
- 반환 형식