Skip to content

Commit

Permalink
Use ITensorNetworks.model(...) instead of model(...) in test.
Browse files Browse the repository at this point in the history
  • Loading branch information
b-kloss committed Jan 10, 2024
1 parent 6c3c0c9 commit 149372f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/test_opsum_to_ttn.jl
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ using Test
J1 = -1
J2 = 2
h = 0.5
H = ising(c; J1=J1, J2=J2, h=h)
H = ITensorNetworks.ising(c; J1=J1, J2=J2, h=h)
# add combination of longer range interactions
Hlr = copy(H)
Hlr += 5, "Z", (1, 2), "Z", (2, 2), "Z", (3, 2)
Expand Down Expand Up @@ -90,7 +90,7 @@ using Test
J1 = -1
J2 = 2
h = 0.5
H = heisenberg(c; J1=J1, J2=J2, h=h)
H = ITensorNetworks.heisenberg(c; J1=J1, J2=J2, h=h)
# add combination of longer range interactions
Hlr = copy(H)
Hlr += 5, "Z", (1, 2), "Z", (2, 2)#, "Z", (3,2)
Expand Down Expand Up @@ -151,7 +151,7 @@ using Test
J1 = -1
J2 = 2
h = 0.5
H = heisenberg(c; J1=J1, J2=J2, h=h)
H = ITensorNetworks.heisenberg(c; J1=J1, J2=J2, h=h)
#Hvac = heisenberg(is_missing_site; J1=J1, J2=J2, h=h)

# add combination of longer range interactions
Expand Down

0 comments on commit 149372f

Please sign in to comment.