OperatorStateFn.to_matrix_op

OperatorStateFn.to_matrix_op(massive=False)[source]

Return a MatrixOp for this operator.

Return type

OperatorBase