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 8db348e commit bccf668
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Ansatz/Chain.jl
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,7 @@ function evolve_2site!(qtn::Chain, gate::Dense; threshold, maxdim, iscanonical =
push!(right_inds, select(qtn, :index, siter))

if iscanonical
unpack_2sitewf!(qtn, bond)
unpack_2sitewf!(qtn, bond, left_inds, right_inds, virtualind)

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

View check run for this annotation

Codecov / codecov/patch

src/Ansatz/Chain.jl#L556-L557

Added lines #L556 - L557 were not covered by tests
else
svd!(TensorNetwork(qtn); left_inds, right_inds, virtualind)

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

View check run for this annotation

Codecov / codecov/patch

src/Ansatz/Chain.jl#L559

Added line #L559 was not covered by tests
end
Expand Down Expand Up @@ -596,7 +596,7 @@ end
For a given [`Chain`](@ref) that contains a two-site wave function θ in a bond, it decomposes θ into the canonical
form: Γᵢ₋₁ΛᵢΓᵢ, where i is the `bond`.
"""
function unpack_2sitewf!::Chain, bond)
function unpack_2sitewf!::Chain, bond, left_inds, right_inds, virtualind)

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

View check run for this annotation

Codecov / codecov/patch

src/Ansatz/Chain.jl#L599

Added line #L599 was not covered by tests
# TODO Check if ψ is in canonical form

sitel, siter = bond # TODO Check if bond is valid
Expand Down

0 comments on commit bccf668

Please sign in to comment.