From 772f1d2514a999c2cc786ac36b2e6ca33f83a655 Mon Sep 17 00:00:00 2001 From: lkdvos Date: Thu, 27 Jul 2023 21:05:21 +0200 Subject: [PATCH] Reduce weight test --- test/algorithms.jl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/algorithms.jl b/test/algorithms.jl index b5c6b404..bd9cd33e 100644 --- a/test/algorithms.jl +++ b/test/algorithms.jl @@ -259,15 +259,15 @@ end for λ in [1.05, 2.0, 4.0] H = hamiltonian(λ) - ψ = InfiniteMPS([ℂ^2], [ℂ^20]) - ψ, envs, = find_groundstate(ψ, H, VUMPS(; maxiter=1000, verbose=false)) + ψ = InfiniteMPS([ℂ^2], [ℂ^16]) + ψ, envs, = find_groundstate(ψ, H, VUMPS(; maxiter=100, verbose=false)) numerical_scusceptibility = fidelity_susceptibility(ψ, H, [H_X], envs; maxiter=10) @test numerical_scusceptibility[1, 1] ≈ analytical_susceptibility(λ) atol = 1e-2 - #test if the finite fid sus approximates the analytical one with increasing system size + # test if the finite fid sus approximates the analytical one with increasing system size fin_en = map([20, 15, 10]) do L - ψ = FiniteMPS(rand, ComplexF64, L, ℂ^2, ℂ^20) + ψ = FiniteMPS(rand, ComplexF64, L, ℂ^2, ℂ^16) ψ, envs, = find_groundstate(ψ, H, DMRG(; verbose=false)) numerical_scusceptibility = fidelity_susceptibility(ψ, H, [H_X], envs; maxiter=10)