Skip to content

Commit

Permalink
commit
Browse files Browse the repository at this point in the history
  • Loading branch information
alessandro-santini committed Sep 21, 2022
1 parent ef07e4f commit d5dc6ee
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
*.build_distribution
.gitignore
Binary file modified TenNet/__pycache__/__init__.cpython-38.pyc
Binary file not shown.
4 changes: 2 additions & 2 deletions TenNet/spin_systems/Hamiltonians.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ def IsingChainWithAncilla(L, J=1., h_z=1., h_x=0.):
Wbulk[0,0,:,:] = np.eye(4)
Wbulk[1,0,:,:] = Xsys
Wbulk[2,0,:,:] = Xanc
Wbulk[3,0,:,:] = -h_x*(Xsys+Xanc)-h_z*(Zsys+Zanc)
Wbulk[3,0,:,:] = -h_x*(Xsys-Xanc)-h_z*(Zsys-Zanc)
Wbulk[3,1,:,:] = -J*Xsys
Wbulk[3,2,:,:] = -J*Xanc
Wbulk[3,2,:,:] = J*Xanc
Wbulk[3,3,:,:] = np.eye(4)

tensors[0] = (Wbulk[-1,:,:,:].copy()).reshape(1,4,4,4)
Expand Down

0 comments on commit d5dc6ee

Please sign in to comment.