Skip to content

Commit

Permalink
Negative sign fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanlevy committed Oct 14, 2024
1 parent 1a08e32 commit bbb6106
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions examples/vumps/vumps_2d_heisenberg.jl
Original file line number Diff line number Diff line change
Expand Up @@ -35,17 +35,17 @@ function ITensorInfiniteMPS.unit_cell_terms(::Model"heisenberg2D"; width, yperio
opsum = OpSum()
for i in 1:width
# Vertical
opsum += -0.5, "S+", i, "S-", i + 1
opsum += -0.5, "S-", i, "S+", i + 1
opsum -= 0.5, "S+", i, "S-", i + 1
opsum -= 0.5, "S-", i, "S+", i + 1
opsum += "Sz", i, "Sz", i + 1
# Horizontal
opsum += -0.5, "S+", i, "S-", i + width
opsum += -0.5, "S-", i, "S+", i + width
opsum -= 0.5, "S+", i, "S-", i + width
opsum -= 0.5, "S-", i, "S+", i + width
opsum += "Sz", i, "Sz", i + width
end
if yperiodic
opsum += -0.5, "S+", 1, "S-", width
opsum += -0.5, "S-", 1, "S+", width
opsum -= 0.5, "S+", 1, "S-", width
opsum -= 0.5, "S-", 1, "S+", width
opsum += "Sz", 1, "Sz", width
end
return opsum
Expand Down

0 comments on commit bbb6106

Please sign in to comment.