def __init__(self): self.op=np.array([[0.5,0.],[0.,-0.5]]) for i in range(5): self.op=kron(self.op,identity(2)) self.mpo=op2mpo(self.op,2,6)
def tompo(self): self.mpo=op2mpo(self.mat)