Skip to content

Commit

Permalink
Change default kwargs in truncate
Browse files Browse the repository at this point in the history
  • Loading branch information
jofrevalles committed Nov 21, 2024
1 parent 2948ffd commit 3ffd4e0
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 @@ -328,7 +328,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=false, renormalize=renormalize)
function truncate!(::Canonical, tn::AbstractAnsatz, bond; threshold, maxdim, recanonize=true, renormalize=false)
truncate!(NonCanonical(), tn, bond; threshold, maxdim, compute_local_svd=false, renormalize=renormalize)

Check warning on line 332 in src/Ansatz.jl

View check run for this annotation

Codecov / codecov/patch

src/Ansatz.jl#L331-L332

Added lines #L331 - L332 were not covered by tests

recanonize && canonize!(tn)
Expand Down

0 comments on commit 3ffd4e0

Please sign in to comment.