Skip to content

Commit

Permalink
Change default recanonize kwarg to false in truncate! function
Browse files Browse the repository at this point in the history
  • Loading branch information
jofrevalles committed Nov 20, 2024
1 parent 7612188 commit 967d711
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Ansatz.jl
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ end
Truncate the dimension of the virtual `bond` of a [`Canonical`](@ref) Tensor Network by keeping the `maxdim` largest
**Schmidt coefficients** or those larger than `threshold`, and then recanonizes the Tensor Network if `recanonize` is `true`.
"""
function truncate!(::Canonical, tn::AbstractAnsatz, bond; threshold, maxdim, recanonize=true)
function truncate!(::Canonical, tn::AbstractAnsatz, bond; threshold, maxdim, recanonize=false)
truncate!(NonCanonical(), tn, bond; threshold, maxdim, compute_local_svd=false)

recanonize && canonize!(tn; normalize=true)
Expand Down

0 comments on commit 967d711

Please sign in to comment.