Skip to content

Commit

Permalink
Incorporate test from MPSKit
Browse files Browse the repository at this point in the history
  • Loading branch information
lkdvos committed Nov 29, 2023
1 parent f85a6e0 commit f9c7108
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions test/planar.jl
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,23 @@ end
conj(x′[1 3; -1])
@test force_planar(ρ2) ρ2′
@test ρ2 ρ3

# Periodic boundary conditions
# ----------------------------
f1 = isomorphism(storagetype(O), fuse(Vmpo^3), Vmpo Vmpo' Vmpo)
f2 = isomorphism(storagetype(O), fuse(Vmpo^3), Vmpo Vmpo' Vmpo)
f1′ = force_planar(f1)
f2′ = force_planar(f2)
@tensor O_periodic1[-1 -2; -3 -4] := O[1 -2; -3 2] * f1[-1; 1 3 4] *
conj(f2[-4; 2 3 4])
@plansor O_periodic2[-1 -2; -3 -4] := O[1 2; -3 6] * f1[-1; 1 3 5] *
conj(f2[-4; 6 7 8]) * τ[2 3; 7 4] *
τ[4 5; 8 -2]
@planar O_periodic′[-1 -2; -3 -4] := O′[1 2; -3 6] * f1′[-1; 1 3 5] *
conj(f2′[-4; 6 7 8]) * τ[2 3; 7 4] *
τ[4 5; 8 -2]
@test O_periodic1 O_periodic2
@test force_planar(O_periodic1) O_periodic′
end

@testset "MERA networks" begin
Expand Down

0 comments on commit f9c7108

Please sign in to comment.