Skip to content

Commit

Permalink
More syntax updates
Browse files Browse the repository at this point in the history
  • Loading branch information
mtfishman committed May 16, 2024
1 parent 235974c commit 3858b64
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/src/examples/DMRG.md
Original file line number Diff line number Diff line change
Expand Up @@ -228,9 +228,9 @@ let
# Define the Heisenberg spin Hamiltonian on this lattice
os = OpSum()
for b in lattice
os .+= 0.5, "S+", b.s1, "S-", b.s2
os .+= 0.5, "S-", b.s1, "S+", b.s2
os .+= "Sz", b.s1, "Sz", b.s2
os += 0.5, "S+", b.s1, "S-", b.s2
os += 0.5, "S-", b.s1, "S+", b.s2
os += "Sz", b.s1, "Sz", b.s2
end
H = MPO(os,sites)

Expand Down

0 comments on commit 3858b64

Please sign in to comment.