Skip to content

Commit

Permalink
Remove unnecessary threshold and maxdim isnothing check
Browse files Browse the repository at this point in the history
  • Loading branch information
jofrevalles committed Dec 4, 2024
1 parent f2763bf commit c638e47
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Ansatz.jl
Original file line number Diff line number Diff line change
Expand Up @@ -477,9 +477,7 @@ function simple_update_2site!(::NonCanonical, ψ::AbstractAnsatz, gate; kwargs..
svd!(ψ; left_inds=linds, right_inds=rinds, virtualind=vind)

# truncate virtual index
if any(!isnothing, get.(Ref(kwargs), [:threshold, :maxdim], nothing))
truncate!(ψ, collect(bond); kwargs...)
end
truncate!(ψ, collect(bond); kwargs...)

return ψ
end
Expand Down

0 comments on commit c638e47

Please sign in to comment.