Skip to content

Commit

Permalink
commit
Browse files Browse the repository at this point in the history
  • Loading branch information
alessandro-santini committed Jun 4, 2022
1 parent e9bb028 commit 37441a6
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 2 deletions.
Binary file modified spin_systems/__pycache__/iHamiltonians.cpython-38.pyc
Binary file not shown.
2 changes: 1 addition & 1 deletion spin_systems/iHamiltonians.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ def IsingChainWithAncilla(J=1., h_z=0.25, h_x=0.):
sx_anc = np.kron(Id2,sx)

H = -J*(np.kron(sx_sys,sx_sys))-h_z*(np.kron(sz_sys,Id4)+np.kron(Id4,sz_sys))-h_x*(np.kron(sx_sys,Id4)+np.kron(Id4,sx_sys))
H -= -J*(np.kron(sx_anc,sx_anc))-h_z*(np.kron(sz_anc,Id4)+np.kron(Id4,sz_anc))-h_x*(np.kron(sx_anc,Id4)+np.kron(Id4,sx_anc))
H += -J*(np.kron(sx_anc,sx_anc))-h_z*(np.kron(sz_anc,Id4)+np.kron(Id4,sz_anc))-h_x*(np.kron(sx_anc,Id4)+np.kron(Id4,sx_anc))

return H
Binary file modified tensors/__pycache__/iMatrixProductState.cpython-38.pyc
Binary file not shown.
2 changes: 1 addition & 1 deletion tensors/iMatrixProductState.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def compute_corr_length(self):
self.compute_transfer_matrix()
eig =np.sort( np.abs(eigs(self.T, k=6, ncv=300, which='LM',return_eigenvectors=False)) )[::-1]
self.Teig = eig
return -2./np.log(eig[1])
return (-2./np.log(eig[1]),-2./np.log(eig[2]))

def compute_long_distance_observable_degenerate(self,op):
self.compute_transfer_matrix()
Expand Down

0 comments on commit 37441a6

Please sign in to comment.