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

Commit

Permalink
Fix format
Browse files Browse the repository at this point in the history
  • Loading branch information
jofrevalles committed Mar 25, 2024
1 parent a8b74cb commit 2819826
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Ansatz/Chain.jl
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,8 @@ function evolve_2site!(qtn::Chain, gate::Dense; threshold, maxdim, iscanonical =

# contract with the inverse of Λᵢ and Λᵢ₊₂
Γᵢ₋₁ =

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

View check run for this annotation

Codecov / codecov/patch

src/Ansatz/Chain.jl#L558

Added line #L558 was not covered by tests
isnothing(Λᵢ₋₁) ? U : contract(U, Tensor(diag(pinv(Diagonal(parent(Λᵢ₋₁)), atol = 1e-32)), inds(Λᵢ₋₁)), dims = ())
isnothing(Λᵢ₋₁) ? U :
contract(U, Tensor(diag(pinv(Diagonal(parent(Λᵢ₋₁)), atol = 1e-32)), inds(Λᵢ₋₁)), dims = ())
Γᵢ =

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

View check run for this annotation

Codecov / codecov/patch

src/Ansatz/Chain.jl#L561

Added line #L561 was not covered by tests
isnothing(Λᵢ₊₁) ? Vt :
contract(Tensor(diag(pinv(Diagonal(parent(Λᵢ₊₁)), atol = 1e-32)), inds(Λᵢ₊₁)), Vt, dims = ())
Expand Down

0 comments on commit 2819826

Please sign in to comment.