from sympy import * # to use √(-1) as I #better way for more sympy operations first part is n = 2, m = 2, then list matrix H = sp.Matrix(2, 2, [ 2 , 3 - I,