From 2721de5c571e5748d8e76be25d7d4c716e693c20 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jofre=20Vall=C3=A8s?= Date: Mon, 17 Jun 2024 10:51:16 +0200 Subject: [PATCH] Fix arguments in inds call --- src/Ansatz/Chain.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Ansatz/Chain.jl b/src/Ansatz/Chain.jl index 5d513f9..f33e2ce 100644 --- a/src/Ansatz/Chain.jl +++ b/src/Ansatz/Chain.jl @@ -542,7 +542,7 @@ function evolve_2site!(qtn::Chain, gate::Dense; threshold, maxdim, iscanonical = left_inds::Vector{Symbol} = !isnothing(leftindex(qtn, sitel)) ? [leftindex(qtn, sitel)] : Symbol[] right_inds::Vector{Symbol} = !isnothing(rightindex(qtn, siter)) ? [rightindex(qtn, siter)] : Symbol[] - virtualind::Symbol = inds(qtn, :bond, bond...) + virtualind::Symbol = inds(qtn, bond = bond) iscanonical ? contract_2sitewf!(qtn, bond) : contract!(TensorNetwork(qtn), virtualind) @@ -610,7 +610,7 @@ function contract_2sitewf!(ψ::Chain, bond) !isnothing(Λᵢ₋₁) && contract!(ψ, :between, Site(id(sitel) - 1), sitel; direction = :right, delete_Λ = false) !isnothing(Λᵢ₊₁) && contract!(ψ, :between, siter, Site(id(siter) + 1); direction = :left, delete_Λ = false) - contract!(TensorNetwork(ψ), inds(ψ, :bond, bond...)) + contract!(TensorNetwork(ψ), inds(ψ, bond = bond)) return ψ end