Skip to content
This repository has been archived by the owner on Jul 7, 2024. It is now read-only.

Commit

Permalink
Fix default delete_lambda kwarg
Browse files Browse the repository at this point in the history
  • Loading branch information
jofrevalles committed Mar 25, 2024
1 parent e475877 commit 1cc57b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Ansatz/Chain.jl
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ end
Tenet.contract(tn::Chain, query::Symbol, args...; kwargs...) = contract!(copy(tn), Val(query), args...; kwargs...)
Tenet.contract!(tn::Chain, query::Symbol, args...; kwargs...) = contract!(tn, Val(query), args...; kwargs...)

function Tenet.contract!(tn::Chain, ::Val{:between}, site1::Site, site2::Site; direction::Symbol = :left, delete_Λ = false)
function Tenet.contract!(tn::Chain, ::Val{:between}, site1::Site, site2::Site; direction::Symbol = :left, delete_Λ = true)
Λᵢ = select(tn, :between, site1, site2)
Λᵢ === nothing && return tn

Expand Down

0 comments on commit 1cc57b5

Please sign in to comment.