qiskit.opflow.expectations.ExpectationBase.convert¶
- abstract ExpectationBase.convert(operator)[Quellcode]¶
Accept an Operator and return a new Operator with the measurements replaced by alternate methods to compute the expectation value.
- Parameter
operator (OperatorBase) – The operator to convert.
- Rückgabe
The converted operator.
- Rückgabetyp