I am using a matrix:
D = np.matrix(\'-1j 0 0 0; 0 1j 0 0; 0 0 (1-1j)/np.sqrt(2) 0;0 0 0 (1+1j)/np.sqrt(2)\')
However, Python says that