From f1d7fd866613dec30479615a89d9b1860ef6d7d9 Mon Sep 17 00:00:00 2001 From: jofrevalles Date: Fri, 29 Nov 2024 13:22:50 +0100 Subject: [PATCH] Format code --- src/Ansatz.jl | 3 ++- src/MPS.jl | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Ansatz.jl b/src/Ansatz.jl index d35b968f..e4a9cf43 100644 --- a/src/Ansatz.jl +++ b/src/Ansatz.jl @@ -326,7 +326,8 @@ function truncate!(::NonCanonical, tn::AbstractAnsatz, bond; threshold, maxdim, end function truncate!(::MixedCanonical, tn::AbstractAnsatz, bond; kwargs...) - mixed_canonize!(tn, bond) # move orthogonality center to bond + # move orthogonality center to bond + mixed_canonize!(tn, bond) return truncate!(NonCanonical(), tn, bond; compute_local_svd=true, kwargs...) end diff --git a/src/MPS.jl b/src/MPS.jl index 6afd6ed9..127d40f3 100644 --- a/src/MPS.jl +++ b/src/MPS.jl @@ -621,7 +621,7 @@ function evolve!(::Canonical, ψ::AbstractAnsatz, mpo::AbstractMPO; threshold, m end """ - truncate_sweep! + truncate_sweep! Do a right-to-left QR sweep on the [`AbstractMPO`](@ref) `ψ` and then left-to-right SVD sweep and truncate the tensors according to the `threshold` or `maxdim` values. The bond is normalized if `normalize=true`.