diff --git a/src/algorithms/ctmrg/ctmrg.jl b/src/algorithms/ctmrg/ctmrg.jl index bba37f25..ee1c5262 100644 --- a/src/algorithms/ctmrg/ctmrg.jl +++ b/src/algorithms/ctmrg/ctmrg.jl @@ -91,6 +91,9 @@ ctmrgscheme(::CTMRG{S}) where {S} = S const SequentialCTMRG = CTMRG{:sequential} const SimultaneousCTMRG = CTMRG{:simultaneous} +# supply correct constructor for Accessors.@set +Accessors.constructorof(::Type{CTMRG{S}}) where {S} = CTMRG{S} + """ MPSKit.leading_boundary([envinit], state, alg::CTMRG) @@ -118,7 +121,7 @@ function MPSKit.leading_boundary(envinit, state, alg::CTMRG) N = norm(state, env) ctmrg_logiter!(log, iter, η, N) - if η ≤ alg.tol + if η ≤ alg.tol && iter ≥ alg.miniter ctmrg_logfinish!(log, iter, η, N) break end