Skip to content

Commit

Permalink
Format code
Browse files Browse the repository at this point in the history
  • Loading branch information
jofrevalles committed Nov 29, 2024
1 parent 98018c3 commit f1d7fd8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/Ansatz.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/MPS.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
Expand Down

0 comments on commit f1d7fd8

Please sign in to comment.