qiskit.opflow.expectations.MatrixExpectation.convert¶
- MatrixExpectation.convert(operator)[Quellcode]¶
Accept an Operator and return a new Operator with the Pauli measurements replaced by Matrix based measurements.
- Parameter
operator (OperatorBase) – The operator to convert.
- Rückgabe
The converted operator.
- Rückgabetyp