Skip to content

Commit 2502615

Browse files
committed
Update env init in finite-T SU tests
1 parent a767c94 commit 2502615

2 files changed

Lines changed: 6 additions & 8 deletions

File tree

test/timeevol/j1j2_finiteT.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ using PEPSKit
1010
bm = [-0.1235, -0.213]
1111

1212
function converge_env(state, χ::Int)
13-
trunc1 = truncrank(χ) & truncerror(; atol = 1.0e-12)
14-
env0 = CTMRGEnv(ones, Float64, state, Vect[SU2Irrep](0 => 1))
15-
env, = leading_boundary(env0, state; alg = :sequential, trunc = trunc1, tol = 1.0e-10)
13+
env0 = initialize_ctmrg_environment(state, ProductStateInitialization())
14+
trunc = truncrank(χ) & truncerror(; atol = 1.0e-12)
15+
env, = leading_boundary(env0, state; alg = :sequential, trunc, tol = 1.0e-10)
1616
return env
1717
end
1818

test/timeevol/tf_ising_finiteT.jl

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,9 @@ bm_β = [0.5632, 0.0]
1010
bm_2β = [0.5297, 0.8265]
1111

1212
function converge_env(state, χ::Int)
13-
trunc1 = truncrank(4) & truncerror(; atol = 1.0e-12)
14-
env0 = CTMRGEnv(rand, Float64, state, ℂ^2)
15-
env, = leading_boundary(env0, state; alg = :sequential, trunc = trunc1, tol = 1.0e-10)
16-
trunc2 = truncrank(χ) & truncerror(; atol = 1.0e-12)
17-
env, = leading_boundary(env, state; alg = :sequential, trunc = trunc2, tol = 1.0e-10)
13+
env0 = initialize_ctmrg_environment(state, ProductStateInitialization())
14+
trunc = truncrank(χ) & truncerror(; atol = 1.0e-12)
15+
env, = leading_boundary(env0, state; alg = :sequential, trunc, tol = 1.0e-10)
1816
return env
1917
end
2018

0 commit comments

Comments
 (0)