Skip to content

Commit

Permalink
Access position in copy via accessor function.
Browse files Browse the repository at this point in the history
  • Loading branch information
b-kloss committed Feb 2, 2024
1 parent 7acb0d0 commit a90bb03
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/treetensornetworks/projttns/projouterprodttn.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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

0 comments on commit a90bb03

Please sign in to comment.