From 364c9b1d2d68e043d86569f2cda5df0968583cf9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jofre=20Vall=C3=A8s?= Date: Tue, 19 Mar 2024 12:45:23 +0100 Subject: [PATCH] Lower the atol pinv threshold --- src/Ansatz/Chain.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Ansatz/Chain.jl b/src/Ansatz/Chain.jl index eab4d42..bc76850 100644 --- a/src/Ansatz/Chain.jl +++ b/src/Ansatz/Chain.jl @@ -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