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

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
jofrevalles committed Mar 25, 2024
1 parent e4cebc8 commit 8db348e
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 @@ -600,7 +600,7 @@ function unpack_2sitewf!(ψ::Chain, bond)
# TODO Check if ψ is in canonical form

sitel, siter = bond # TODO Check if bond is valid
(0 < id(site_l) < nsites(ψ) || 0 < id(site_r) < nsites(ψ)) ||
(0 < id(sitel) < nsites(ψ) || 0 < id(site_r) < nsites(ψ)) ||

Check warning on line 603 in src/Ansatz/Chain.jl

View check run for this annotation

Codecov / codecov/patch

src/Ansatz/Chain.jl#L602-L603

Added lines #L602 - L603 were not covered by tests
throw(ArgumentError("The sites in the bond must be between 1 and $(nsites(ψ))"))

Λᵢ₋₁ = id(sitel) == 1 ? nothing : select(ψ, :between, Site(id(sitel) - 1), sitel)
Expand Down

0 comments on commit 8db348e

Please sign in to comment.