From 616ccaeea85d0980361a9c9aad601199175c19d4 Mon Sep 17 00:00:00 2001 From: Benedikt Kloss Date: Thu, 1 Feb 2024 11:42:19 -0500 Subject: [PATCH] Deleted some comments and unnecessary type restrictions. --- src/treetensornetworks/projttns/abstractprojttn.jl | 4 ++-- src/treetensornetworks/projttns/projttnsum.jl | 1 - src/treetensornetworks/solvers/contract.jl | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/treetensornetworks/projttns/abstractprojttn.jl b/src/treetensornetworks/projttns/abstractprojttn.jl index 7978d180..45808685 100644 --- a/src/treetensornetworks/projttns/abstractprojttn.jl +++ b/src/treetensornetworks/projttns/abstractprojttn.jl @@ -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 @@ -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 diff --git a/src/treetensornetworks/projttns/projttnsum.jl b/src/treetensornetworks/projttns/projttnsum.jl index 6cda6244..4906e34a 100644 --- a/src/treetensornetworks/projttns/projttnsum.jl +++ b/src/treetensornetworks/projttns/projttnsum.jl @@ -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]) diff --git a/src/treetensornetworks/solvers/contract.jl b/src/treetensornetworks/solvers/contract.jl index a4f10b04..1a0c184a 100644 --- a/src/treetensornetworks/solvers/contract.jl +++ b/src/treetensornetworks/solvers/contract.jl @@ -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=(;),