@@ -32,27 +32,27 @@ module TestMiscellaneous
3232 fill (SU2Space (1 => 1 ), N),
3333 fill (SU2Space (1 // 2 => 2 , 3 // 2 => 1 ), N)
3434 )
35- alg = IDMRG2 (; verbosity = 0 , tol = 1.0e-5 , trscheme = truncdim (32 ))
35+ alg = IDMRG2 (; verbosity = 0 , tol = 1.0e-5 , trscheme = truncrank (32 ))
3636
3737 ψ, envs, δ = find_groundstate (ψ₀, H, alg) # used to error
3838 @test ψ isa InfiniteMPS
3939 end
4040
4141 @testset " NaN entanglement entropy" begin
4242 ψ = InfiniteMPS ([ℂ^ 2 ], [ℂ^ 5 ])
43- ψ = changebonds (ψ, RandExpand (; trscheme = truncdim (2 )))
43+ ψ = changebonds (ψ, RandExpand (; trscheme = truncrank (2 )))
4444 @test ! isnan (sum (entropy (ψ)))
4545 @test ! isnan (sum (entropy (ψ, 2 )))
4646 end
4747
4848 @testset " changebonds with unitcells" begin
4949 ψ = InfiniteMPS ([ℂ^ 2 , ℂ^ 2 , ℂ^ 2 ], [ℂ^ 2 , ℂ^ 3 , ℂ^ 4 ])
5050 H = repeat (transverse_field_ising (), 3 )
51- ψ1, envs = changebonds (ψ, H, OptimalExpand (; trscheme = truncdim (2 )))
51+ ψ1, envs = changebonds (ψ, H, OptimalExpand (; trscheme = truncrank (2 )))
5252 @test ψ1 isa InfiniteMPS
5353 @test norm (ψ1) ≈ 1
5454
55- ψ2 = changebonds (ψ, RandExpand (; trscheme = truncdim (2 )))
55+ ψ2 = changebonds (ψ, RandExpand (; trscheme = truncrank (2 )))
5656 @test ψ2 isa InfiniteMPS
5757 @test norm (ψ2) ≈ 1
5858 end
0 commit comments