@@ -89,8 +89,8 @@ module TestMultifusion
8989 v2 = variance (ψ2, H)
9090 E2 = expectation_value (ψ2, H, envs2)
9191
92- @test δ ≈ 0 atol= 1e -3
93- @test δ2 ≈ 0 atol= 1e -3
92+ @test δ ≈ 0 atol = 1.0e -3
93+ @test δ2 ≈ 0 atol = 1.0e -3
9494 @test v < v₀ && v2 < v₀
9595
9696 @test isapprox (E, E2; atol = 1.0e-6 )
@@ -99,10 +99,10 @@ module TestMultifusion
9999 @test isapprox (E, first (ED); atol = 1.0e-6 )
100100
101101 @test_throws ArgumentError (" one of Type IsingBimodule doesn't exist" ) excitations (H, QuasiparticleAnsatz (), ψ)
102- excE, qp = excitations (H, QuasiparticleAnsatz (), ψ2; sector= C1, num= 1 ) # testing sector kwarg
103- @test 0 < variance (qp[1 ], H) < 1e -8
102+ excE, qp = excitations (H, QuasiparticleAnsatz (), ψ2; sector = C1, num = 1 ) # testing sector kwarg
103+ @test 0 < variance (qp[1 ], H) < 1.0e -8
104104
105- excE_DM, qp_DM = excitations (H, FiniteExcited (;gsalg= DMRG2 (; trscheme= truncbelow (1e -6 ))), ψ2;num= 1 )
105+ excE_DM, qp_DM = excitations (H, FiniteExcited (; gsalg = DMRG2 (; trscheme = truncbelow (1.0e -6 ))), ψ2; num = 1 )
106106 @test isapprox (first (excE_DM), first (excE) + E2; atol = 1.0e-6 )
107107 end
108108
@@ -114,26 +114,26 @@ module TestMultifusion
114114 init = InfiniteMPS ([PD, PD], [V, V])
115115 v₀ = variance (init, H)
116116 tol = 1.0e-10
117- ψ, envs, δ = find_groundstate (init, H, IDMRG (;tol= tol,maxiter= 400 ))
117+ ψ, envs, δ = find_groundstate (init, H, IDMRG (; tol = tol, maxiter = 400 ))
118118 E = expectation_value (ψ, H, envs)
119119 v = variance (ψ, H)
120120
121- ψ2, envs2, δ2 = find_groundstate (init, H, IDMRG2 (; tol= tol, trscheme = truncbelow (1.0e-6 ), maxiter= 400 ))
121+ ψ2, envs2, δ2 = find_groundstate (init, H, IDMRG2 (; tol = tol, trscheme = truncbelow (1.0e-6 ), maxiter = 400 ))
122122 E2 = expectation_value (ψ2, H, envs2)
123123 v2 = variance (ψ2, H)
124124
125- ψ3, envs3, δ3 = find_groundstate (init, H, VUMPS (;tol= tol, maxiter= 400 ))
125+ ψ3, envs3, δ3 = find_groundstate (init, H, VUMPS (; tol = tol, maxiter = 400 ))
126126 E3 = expectation_value (ψ3, H, envs3)
127127 v3 = variance (ψ3, H)
128128
129129 @test isapprox (E, E2; atol = 1.0e-6 )
130130 @test isapprox (E, E3; atol = 1.0e-6 )
131131 for delta in [δ, δ2, δ3]
132- @test delta ≈ 0 atol= 1e -3
132+ @test delta ≈ 0 atol = 1.0e -3
133133 end
134134 for var in [v, v2, v3]
135135 @test var < v₀
136- @test var < 1e -8
136+ @test var < 1.0e -8
137137 end
138138
139139 @test_throws ArgumentError (" sectors of $V are non-diagonal" ) transfer_spectrum (ψ)
@@ -146,31 +146,31 @@ module TestMultifusion
146146 @test_throws ArgumentError (" one of Type IsingBimodule doesn't exist" ) excitations (H, QuasiparticleAnsatz (), momentum, ψ)
147147 excC1, qpC1 = excitations (H, QuasiparticleAnsatz (), momentum, ψ3; sector = C1)
148148 @test isapprox (first (excC1), abs (2 * (g - 1 )); atol = 1.0e-6 ) # charged excitation lower in energy
149- @test variance (qpC1[1 ], H) < 1e -8
149+ @test variance (qpC1[1 ], H) < 1.0e -8
150150
151151 # diagonal test (M = D): injective GS in symmetric phase
152152 Hdual = TFIM_multifusion (; g = 1 / g, L = Inf , twosite = true )
153153 Vdiag = Vect[I](D0 => 24 , D1 => 24 )
154154 initdiag = InfiniteMPS ([PD, PD], [Vdiag, Vdiag])
155- gsdiag, envsdiag = find_groundstate (initdiag, Hdual, VUMPS (;tol= tol, maxiter= 400 ))
155+ gsdiag, envsdiag = find_groundstate (initdiag, Hdual, VUMPS (; tol = tol, maxiter = 400 ))
156156 Ediag = expectation_value (gsdiag, Hdual, envsdiag)
157157
158158 excD1, qpD1 = excitations (Hdual, QuasiparticleAnsatz (), momentum, gsdiag; sector = D1)
159159 @test isapprox (first (excD1), abs (2 * (1 / g - 1 )); atol = 1.0e-6 ) # charged excitation lower in energy
160- @test variance (qpD1[1 ], Hdual) < 1e -8
160+ @test variance (qpD1[1 ], Hdual) < 1.0e -8
161161
162162 # comparison to Z2 Ising: injective in symmetric phase
163163 HZ2 = transverse_field_ising (Z2Irrep; g = 1 / g, L = Inf , twosite = true )
164164 VZ2 = Z2Space (0 => 24 , 1 => 24 )
165165 PZ2 = Z2Space (0 => 1 , 1 => 1 )
166166 initZ2 = InfiniteMPS ([PZ2, PZ2], [VZ2, VZ2])
167- gsZ2, envsZ2 = find_groundstate (initZ2, HZ2, VUMPS (;tol= tol, maxiter= 400 ))
167+ gsZ2, envsZ2 = find_groundstate (initZ2, HZ2, VUMPS (; tol = tol, maxiter = 400 ))
168168 EZ2 = expectation_value (gsZ2, HZ2, envsZ2)
169169 @test isapprox (EZ2, Ediag; atol = 1.0e-6 )
170170
171171 excZ2_1, qpZ2_1 = excitations (HZ2, QuasiparticleAnsatz (), momentum, gsZ2; sector = Z2Irrep (1 ))
172172 @test isapprox (first (excZ2_1), first (excD1); atol = 1.0e-6 )
173- @test variance (qpZ2_1[1 ], HZ2) < 1e -8
173+ @test variance (qpZ2_1[1 ], HZ2) < 1.0e -8
174174 end
175175
176176end # module TestMultifusion
0 commit comments