Closed b-kloss closed 3 months ago
Attention: Patch coverage is 33.33333%
with 4 lines
in your changes are missing coverage. Please review.
Project coverage is 73.55%. Comparing base (
3eb5362
) to head (576bed3
).
Files | Patch % | Lines |
---|---|---|
src/abstractitensornetwork.jl | 33.33% | 4 Missing :warning: |
:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
@b-kloss another approach here would be to just remove hascommoninds(::typeof(siteinds), A::AbstractITensorNetwork, B::AbstractITensorNetwork)
and check_hascommoninds(::typeof(siteinds), A::AbstractITensorNetwork, B::AbstractITensorNetwork)
, I think basically they were copied over to this package from the MPS code in ITensors.jl where we were being more strict about inputs of certain functions but they may be more trouble than they are worth, and inherently may restrict the tensor network structure of certain functions more than we want in general.
This was addressed in #148.
This PR addresses some issues related to using Tensor Networks where the
vertex_data
at some vertices is empty, e.g.Index[]
. In particular the behaviour ofcheck_hascommoninds
which is for example called when computing an inner product between two tensor networks is now comparing emptyvertex_data
as equal. A test has been added that verifies that an inner product can be taken.ToDo:
TTN(s,"Up")
is currently not functional ifs
is anIndsNetwork
where at least one vertex has emptyvertex_data
.