MatrixExpectation.convert¶
- MatrixExpectation.convert(operator)[source]¶
Accept an Operator and return a new Operator with the Pauli measurements replaced by Matrix based measurements.
- Parameters
operator (
OperatorBase
) – The operator to convert.- Return type
- Returns
The converted operator.