Skip to content

Commit

Permalink
Remove seed and lower tolerance on elementwise convergence
Browse files Browse the repository at this point in the history
  • Loading branch information
lkdvos committed May 15, 2024
1 parent 47f3e8d commit 1202071
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions test/ctmrg/gaugefix.jl
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ end

@testset "Trivial symmetry ($T) - ($unitcell)" for (T, unitcell) in
Iterators.product(scalartypes, unitcells)
Random.seed!(1234567)
physical_space = ComplexSpace(2)
peps_space = ComplexSpace(2)
ctm_space = ComplexSpace(χ)
Expand All @@ -37,12 +36,11 @@ end
ctm = leading_boundary(psi, alg, ctm)
ctm2, = ctmrg_iter(psi, ctm, alg_fixed)
ctm_fixed = gauge_fix(ctm, ctm2)
@test PEPSKit.check_elementwise_convergence(ctm, ctm_fixed)
@test PEPSKit.check_elementwise_convergence(ctm, ctm_fixed; atol=1e-4)
end

@testset "Z2 symmetry ($T) - ($unitcell)" for (T, unitcell) in
Iterators.product(scalartypes, unitcells)
Random.seed!(1234567)
physical_space = Z2Space(0 => 1, 1 => 1)
peps_space = Z2Space(0 => 1, 1 => 1)
ctm_space = Z2Space(0 => χ ÷ 2, 1 => χ ÷ 2)
Expand All @@ -60,5 +58,5 @@ end
ctm = leading_boundary(psi, alg, ctm)
ctm2, = ctmrg_iter(psi, ctm, alg_fixed)
ctm_fixed = gauge_fix(ctm, ctm2)
@test PEPSKit.check_elementwise_convergence(ctm, ctm_fixed)
@test PEPSKit.check_elementwise_convergence(ctm, ctm_fixed; atol=1e-4)
end

0 comments on commit 1202071

Please sign in to comment.