Skip to content

Commit

Permalink
Deleted some comments and unnecessary type restrictions.
Browse files Browse the repository at this point in the history
  • Loading branch information
b-kloss committed Feb 1, 2024
1 parent 788d788 commit 616ccae
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/treetensornetworks/projttns/abstractprojttn.jl
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ function contract(P::AbstractProjTTN, v::ITensor)::ITensor
return Hv
end

function contract(P::AbstractProjTTN)::ITensor
function contract(P::AbstractProjTTN)
return error("Not implemented")
end

Expand All @@ -109,7 +109,7 @@ function product(P::AbstractProjTTN, v::ITensor)::ITensor
return noprime(Pv)
end

function product(P::AbstractProjTTN)::ITensor
function product(P::AbstractProjTTN)
return error("Not implemented")
end

Expand Down
1 change: 0 additions & 1 deletion src/treetensornetworks/projttns/projttnsum.jl
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ terms(P::ProjTTNSum) = P.terms

copy(P::ProjTTNSum) = ProjTTNSum(copy.(terms(P)))

#ToDo: Should we get rid of this one as well?
ProjTTNSum(ttnos::Vector{<:TTN}) = ProjTTNSum([ProjTTN(M) for M in ttnos])

on_edge(P::ProjTTNSum) = on_edge(terms(P)[1])
Expand Down
2 changes: 1 addition & 1 deletion src/treetensornetworks/solvers/contract.jl
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ function contract(
init=random_ttn(
flatten_external_indsnetwork(first(tn1s), first(tn2s));
link_space=trivial_space(first(tn1s)),
), ##not generic yet
),
nsweeps=1,
nsites=2, # used to be default of call to default_sweep_regions
updater_kwargs=(;),
Expand Down

0 comments on commit 616ccae

Please sign in to comment.