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

Commit

Permalink
Lower the atol pinv threshold
Browse files Browse the repository at this point in the history
  • Loading branch information
jofrevalles committed Mar 19, 2024
1 parent 00d18cd commit 364c9b1
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 @@ -398,7 +398,7 @@ function canonize!(::Open, tn::Chain)
for i in 2:nsites(tn) # tensors at i in "A" form, need to contract (Λᵢ)⁻¹ with A to get Γᵢ
Λᵢ = Λ[i-1] # singular values start between site 1 and 2
A = select(tn, :tensor, Site(i))
Γᵢ = contract(A, Tensor(diag(pinv(Diagonal(parent(Λᵢ)), atol = 1e-9)), inds(Λᵢ)), dims = ())
Γᵢ = contract(A, Tensor(diag(pinv(Diagonal(parent(Λᵢ)), atol = 1e-64)), inds(Λᵢ)), dims = ())
replace!(TensorNetwork(tn), A => Γᵢ)
push!(TensorNetwork(tn), Λᵢ)
end
Expand Down

0 comments on commit 364c9b1

Please sign in to comment.