M = {{1,2*I}, {-2*I,4}} O = Matrix.ToOperator(M) print(O)