Skip to content

Commit 58f8264

Browse files
committed
more deprecations
1 parent 671e1a7 commit 58f8264

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/other.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)