Skip to content

Commit

Permalink
Remove more return type parametrizations.
Browse files Browse the repository at this point in the history
  • Loading branch information
b-kloss committed Feb 2, 2024
1 parent 572932a commit e43b016
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/treetensornetworks/projttns/abstractprojttn.jl
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,7 @@ end

projected_operator_tensors(P::AbstractProjTTN) = error("Not implemented.")

#contract(P::AbstractProjTTN, v::ITensor)::ITensor = foldl(*,projected_operator_tensors(P);init=v)
function contract(P::AbstractProjTTN, v::ITensor)::ITensor
function contract(P::AbstractProjTTN, v::ITensor)
itensor_map = projected_operator_tensors(P)
for t in itensor_map
v *= t
Expand Down

0 comments on commit e43b016

Please sign in to comment.