From a90bb0372ec74e65ec9c4783a8cb93cb73447940 Mon Sep 17 00:00:00 2001 From: Benedikt Kloss Date: Thu, 1 Feb 2024 20:29:04 -0500 Subject: [PATCH] Access position in copy via accessor function. --- src/treetensornetworks/projttns/projouterprodttn.jl | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/treetensornetworks/projttns/projouterprodttn.jl b/src/treetensornetworks/projttns/projouterprodttn.jl index 278a66cf..3052e0bd 100644 --- a/src/treetensornetworks/projttns/projouterprodttn.jl +++ b/src/treetensornetworks/projttns/projouterprodttn.jl @@ -22,7 +22,7 @@ end function copy(P::ProjOuterProdTTN) return ProjOuterProdTTN( - P.pos, copy(internal_state(P)), copy(operator(P)), copy(environments(P)) + pos(P), copy(internal_state(P)), copy(operator(P)), copy(environments(P)) ) end @@ -109,7 +109,3 @@ end function contract(P::ProjOuterProdTTN, x::ITensor) return conj(contract_ket(P, x)) * contract_ket(P, ITensor(true)) end - -function product(P::ProjOuterProdTTN, v::ITensor) - return noprime(contract(P, v)) -end