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

Commit

Permalink
Return only 1 index on select(:bond)
Browse files Browse the repository at this point in the history
  • Loading branch information
mofeing committed Mar 13, 2024
1 parent 8d32b02 commit 1778d8d
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 @@ -67,7 +67,7 @@ function Tenet.select(tn::Ansatz, ::Val{:bond}, site1::Site, site2::Site)
tensor2 = select(Quantum(tn), :tensor, site2)

isdisjoint(inds(tensor1), inds(tensor2)) && return nothing
return inds(tensor1) inds(tensor2)
return only(inds(tensor1) inds(tensor2))
end

struct MissingSchmidtCoefficientsException <: Base.Exception
Expand Down

0 comments on commit 1778d8d

Please sign in to comment.