Skip to content

Commit 1356ee2

Browse files
committed
Merge remote-tracking branch 'upstream/master' into monitor-obs
2 parents c219c58 + 23f92f0 commit 1356ee2

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

test/ctmrg/suweight.jl

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ using Test
22
using Random
33
using TensorKit
44
using PEPSKit
5-
using PEPSKit: str, twistdual, _prev, _next
5+
using PEPSKit: str, twistdual, _prev, _next, unitcell
66

77
Vps = Dict(
88
Z2Irrep => Vect[Z2Irrep](0 => 1, 1 => 2),
@@ -43,12 +43,13 @@ end
4343
normalize!.(wts.data, Inf)
4444
end
4545
env = CTMRGEnv(wts)
46-
for (r, c) in Tuple.(CartesianIndices(peps.A))
46+
for idx in CartesianIndices(unitcell(peps))
47+
r, c = Tuple(idx)
4748
ρ1 = su_rdm_1x1(r, c, peps, wts)
4849
if init == :trivial
4950
@test ρ1 su_rdm_1x1(r, c, peps, nothing)
5051
end
51-
ρ2 = reduced_densitymatrix(((r, c),), peps, env)
52+
ρ2 = reduced_densitymatrix([idx], peps, env)
5253
@test ρ1 ρ2
5354
end
5455
end

0 commit comments

Comments
 (0)