Skip to content

Commit

Permalink
VUMPS summary logging
Browse files Browse the repository at this point in the history
  • Loading branch information
lkdvos committed Oct 3, 2023
1 parent 71aab88 commit 41eea55
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/algorithms/groundstate/vumps.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 41eea55

Please sign in to comment.