From 41eea550516c15ddc75fbf1c3d42c0a78ae04d29 Mon Sep 17 00:00:00 2001 From: lkdvos Date: Tue, 3 Oct 2023 18:59:46 +0200 Subject: [PATCH] VUMPS summary logging --- src/algorithms/groundstate/vumps.jl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/algorithms/groundstate/vumps.jl b/src/algorithms/groundstate/vumps.jl index 84606259..fb8ad58d 100644 --- a/src/algorithms/groundstate/vumps.jl +++ b/src/algorithms/groundstate/vumps.jl @@ -29,8 +29,8 @@ end " function find_groundstate(Ψ::InfiniteMPS, H, alg::VUMPS, envs=environments(Ψ, H)) + t₀ = Base.time_ns() ε::Float64 = 1 + alg.tol_galerkin - temp_ACs = similar.(Ψ.AC) for iter in 1:(alg.maxiter) @@ -66,7 +66,9 @@ function find_groundstate(Ψ::InfiniteMPS, H, alg::VUMPS, envs=environments(Ψ, iter == alg.maxiter && @warn "VUMPS maximum iterations" iter ε λ = sum(expectation_value(Ψ, H, envs)) Δt end - + + @info "VUMPS summary:" ε λ = sum(expectation_value(Ψ, H, envs)) Δt = + ((Base.time_ns() - t₀) / 1.0e9) return Ψ, envs, ε end