From cb4ccc19401fa17bbb9020e4333a48b6af3ac810 Mon Sep 17 00:00:00 2001 From: Joey Date: Wed, 27 Mar 2024 14:14:19 -0400 Subject: [PATCH] Formatting --- src/abstractitensornetwork.jl | 28 ---------------------------- 1 file changed, 28 deletions(-) diff --git a/src/abstractitensornetwork.jl b/src/abstractitensornetwork.jl index cf86c020..834a7e40 100644 --- a/src/abstractitensornetwork.jl +++ b/src/abstractitensornetwork.jl @@ -780,34 +780,6 @@ end # Common index checking # -function hascommoninds( - ::typeof(siteinds), A::AbstractITensorNetwork{V}, B::AbstractITensorNetwork{V} -) where {V} - for v in vertices(A) - !hascommoninds(siteinds(A, v), siteinds(B, v)) && return false - end - return true -end - -function check_hascommoninds( - ::typeof(siteinds), A::AbstractITensorNetwork{V}, B::AbstractITensorNetwork{V} -) where {V} - N = nv(A) - if nv(B) ≠ N - throw( - DimensionMismatch( - "$(typeof(A)) and $(typeof(B)) have mismatched number of vertices $N and $(nv(B))." - ), - ) - end - for v in vertices(A) - !hascommoninds(siteinds(A, v), siteinds(B, v)) && error( - "$(typeof(A)) A and $(typeof(B)) B must share site indices. On vertex $v, A has site indices $(siteinds(A, v)) while B has site indices $(siteinds(B, v)).", - ) - end - return nothing -end - function hassameinds( ::typeof(siteinds), A::AbstractITensorNetwork{V}, B::AbstractITensorNetwork{V} ) where {V}