Skip to content

Commit de2b021

Browse files
committed
small tests alterations
1 parent f4de736 commit de2b021

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/algorithms.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -479,15 +479,15 @@ module TestAlgorithms
479479
g = 4
480480
H = repeat(transverse_field_ising(Z2Irrep; g = g, L = Inf), 2)
481481
V = Z2Space(0 => 24, 1 => 24)
482-
P = Z2Space(0 => 1, 1 => 1)
483-
ψ = InfiniteMPS([P, P], [V, V])
482+
ψ = InfiniteMPS(physicalspace(H), [V, V])
484483
ψ, envs = find_groundstate(ψ, H, VUMPS(; tol = 1.0e-10, maxiter = 400))
485484

486485
# testing istrivial and istopological
487486
momentum = 0
488487
exc0, qp0 = excitations(H, QuasiparticleAnsatz(), momentum, ψ; sector = Z2Irrep(0))
489488
exc1, qp1 = excitations(H, QuasiparticleAnsatz(), momentum, ψ; sector = Z2Irrep(1))
490489
@test isapprox(first(exc1), abs(2 * (g - 1)); atol = 1.0e-6) # charged excitation lower in energy
490+
@test first(exc0) > 2 * first(exc1)
491491
@test variance(qp1[1], H) < 1.0e-8
492492
end
493493
@testset "infinite (mpo)" begin

0 commit comments

Comments
 (0)