A tensor network is binary when every shared index connects exactly two tensors, so the entire network can be contracted by a sequence of pairwise operations. Indices that appear in three or more tensors are called hyperedges and require spider (delta) tensors to be replaced by pairwise contractions before standard path-finders can run.
▪
The check is
AllTrue[Counts[Catenate@tn["Hyperedges"]],#≤2&]
: tally the occurrences of every index across all hyperedge lists and confirm none exceeds two.
▪
The MPS, TT, MPO, PEPS, TTN, and MERA topologies generated by