diff --git a/src/Ansatz/Chain.jl b/src/Ansatz/Chain.jl index 1a48e36..eab4d42 100644 --- a/src/Ansatz/Chain.jl +++ b/src/Ansatz/Chain.jl @@ -319,7 +319,7 @@ function truncate!(qtn::Chain, bond; threshold::Union{Nothing,Real} = nothing, m spectrum = parent(tensor) extent = if !isnothing(maxdim) - 1:maxdim + 1:min(size(TensorNetwork(qtn), vind), maxdim) elseif !isnothing(threshold) findall(>(threshold) ∘ abs, spectrum) else