From db36b5e9ba3d9019e0357700b3060e95cb2ed4bc Mon Sep 17 00:00:00 2001 From: lkdvos Date: Thu, 23 Nov 2023 12:52:02 +0100 Subject: [PATCH] Fix DMRG2 information printing --- src/algorithms/groundstate/dmrg.jl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/algorithms/groundstate/dmrg.jl b/src/algorithms/groundstate/dmrg.jl index 2a924a140..070091769 100644 --- a/src/algorithms/groundstate/dmrg.jl +++ b/src/algorithms/groundstate/dmrg.jl @@ -119,15 +119,15 @@ function find_groundstate!(Ψ::AbstractFiniteMPS, H, alg::DMRG2, envs=environmen Ψ, envs = alg.finalize(iter, Ψ, H, envs)::Tuple{typeof(Ψ),typeof(envs)} end - alg.verbose && @info "DMRG iteration:" iter ϵ λ = expectation_value(Ψ, H, envs) Δt + alg.verbose && @info "DMRG2 iteration:" iter ϵ λ = sum(expectation_value(Ψ, H, envs)) Δt ϵ <= alg.tol && break iter == alg.maxiter && - @warn "DMRG maximum iterations" iter ϵ λ = expectation_value(Ψ, H, envs) + @warn "DMRG2 maximum iterations" iter ϵ λ = sum(expectation_value(Ψ, H, envs)) end Δt = (Base.time_ns() - t₀) / 1.0e9 - alg.verbose && @info "DMRG summary:" ϵ λ = sum(expectation_value(Ψ, H, envs)) Δt + alg.verbose && @info "DMRG2 summary:" ϵ λ = sum(expectation_value(Ψ, H, envs)) Δt return Ψ, envs, ϵ end