A quantum network shares entanglement among distant users by stitching short links together. Each link is an entangled pair of qubits between neighbouring nodes. Relay nodes, called repeaters, measure their local qubits to splice adjacent links into longer ones. Today's routing work treats this as a two-party problem: find a path, or several disjoint paths, between one source and one destination. It then summarizes link quality by a single number that multiplies along the path. Many uses, including conference key agreement, distributed sensing, and multi-party protocols, need one entangled state shared by $k$ users at once. The standard example is the Greenberger–Horne–Zeilinger (GHZ) state, an equal superposition of "all zeros" and "all ones". This note proposes to route such states with a graphical calculus, a way of computing with quantum operations by redrawing pictures of wires and nodes.
The key observation is that a GHZ-type measurement at a repeater is a "spider". A spider is the diagram for a Frobenius algebra: a node with any number of legs that copies classical basis values along all of them. Two spiders joined by a wire merge into one. This merging rule implies that any connected set of successful links containing the users can be collapsed into a single $k$-party GHZ state. The correction each user must apply can be read off by sliding error symbols through the diagram, and so can the exact end-to-end fidelity (how close the delivered state is to the ideal one) under Pauli noise, meaning random bit flips and phase flips. That fidelity expression decomposes over trees. A tree-search router can use it the way Dijkstra-style routers use multiplicative path metrics. We will build that router, prove its correctness rules diagrammatically, and test whether it beats bipartite routing and simulation-in-the-loop search on the topologies used in the entanglement-routing literature.
Core Claim
Coecke, Pavlovic and Vicary showed in A new description of orthogonal bases that an orthonormal basis is exactly a special commutative †-Frobenius monoid, an algebraic object with a copy map and a delete map. This paper supplies the method: its spiders are our repeater operations. Single-hop teleportation has been verified diagrammatically by "straightening a wire" (Notes on Bell states and quantum teleportation). That work stops at one hop and two parties, and never asks a routing question.
We claim the multi-hop, multi-party extension yields something operational rather than only a correctness proof. Model each link $e$ as a Bell pair carrying an independent phase flip with probability $z_e$ and a bit flip with probability $x_e$. Let every repeater on a fused tree $T$ perform a spider-type (GHZ-basis) fusion of its local qubits. Pushing errors through the spiders then gives two rules. All phase flips on edges of $T$ merge into a single phase flip on the GHZ state. A bit flip on edge $e$ copies through the spiders and flips every user on one side of the cut that $e$ makes. The delivered state is ideal exactly when the phase-flip count is even and the combined bit-flip pattern flips either no users or all users, because flipping all users leaves a GHZ state unchanged. Assuming ideal fusion measurements, this gives
$$F(T) \;=\; \frac{1 + \prod_{e \in T}(1 - 2z_e)}{2}\;\cdot\;\Pr\big[\,\textstyle\bigoplus_{e \in T,\ \text{flipped}} S_e \in \{\emptyset, U\}\,\big],$$
where $U$ is the user set, $S_e \subseteq U$ is the set of users on one side of edge $e$ in $T$, and $\bigoplus$ is symmetric difference. The first factor is the probability of even phase parity under independent flips. The second is a parity condition over tree cuts. Both factors can be computed by dynamic programming over subtrees.
Known measurement outcomes act like known errors. So the same rewrite tells each user which correction to apply, and that correction is a parity of outcomes aggregated along the tree. Correction messages can therefore be combined inside the network rather than all forwarded to every user.
Three concrete consequences follow. First, under ideal fusion, $k$-party success requires only that the users fall in one connected cluster of successful links, not that disjoint paths exist. Second, routing has a real trade-off that a scalar Werner-style metric cannot express. A Werner state is a pair whose only defect is uniform depolarizing noise. Adding redundant successful links raises success probability, but each added edge enlarges the error-carrying structure. Third, routing becomes a Steiner-tree search, a search for the cheapest tree connecting a given set of users, with a metric that decomposes over the tree.
Research Program
The theory part has three tasks. We will formalize repeater fusions, link noise, and measurement outcomes in the spider calculus. We will prove the error-propagation rules above and extend them to fused subgraphs with cycles. Cycles produce loops, and we must determine whether they can be removed or whether they cost fidelity. Finally, we will derive the in-network parity aggregation of corrections and bound its message count per hop.
Completeness is a known worry, since The ZX calculus is incomplete for quantum mechanics shows diagram rules alone can miss identities. The fragment we use is limited to spiders, Pauli errors, and GHZ-basis measurements, which are all stabilizer operations. We will cross-check every derived formula against brute-force density-matrix computation on small instances.
The algorithm part builds a router called Spider-Steiner. It works on the graph of successful links. It grows a tree that connects the users by dynamic programming on the two factors of $F(T)$, subject to a fidelity threshold. It also decides whether to keep or prune redundant edges.
We will also study a time-sharing variant for multiple simultaneous user groups. It mirrors the spatial-division-versus-time-sharing question raised in Routing entanglement in the quantum internet. That paper motivates this work: it showed that multi-path routing on 2D grids beats linear chains by an exponential factor, and that rates become nearly distance-independent above the bond-percolation threshold of $0.5$. Its routing, however, is bipartite, built on Bell-state measurements, and uses the simplest noise model.
Purification means consuming extra pairs to raise the fidelity of the remaining ones. Fidelity-Guaranteed Entanglement Routing in Quantum Networks integrates purification into routing through Q-PATH and the Dijkstra-like Q-LEAP. It constrains our design in two ways. It shows that a simple multiplicative metric is orders of magnitude faster than iterative optimal search, so our router must stay near that cost. It also defines the throughput, fidelity-compliance, and pair-consumption metrics we will report. The difference is that it routes pairs and summarizes each link by one scalar.
We will add per-link purification as an optional pre-step that reshapes $(z_e, x_e)$. The purpose is to test whether the routing advantage survives once purification is included.
Baselines
The naive reference point is a hub construction. We route $k-1$ bipartite pairs from a chosen hub user to the others with Q-LEAP, then build the GHZ state locally at the hub. This is what one gets by reusing bipartite routing unchanged. Beating it means higher $k$-party throughput at equal fidelity threshold and lower link-pair consumption.
The strongest existing method is Q-LEAP from Fidelity-Guaranteed Entanglement Routing in Quantum Networks, extended to $k$ users. Its extended-Dijkstra metric is used to build a Steiner tree, and fidelity is predicted by its multiplicative Werner-style model. It is the strongest competitor because it is the only fidelity-aware, fast, published router in our sources, and it differs from our proposal only in the metric and the fusion primitive. We found no reported numerical throughput or fidelity result on Lacuna for Q-LEAP on the US backbone or Waxman topologies. The file states only that Q-LEAP runs orders of magnitude faster than Q-PATH. We will therefore re-implement it and report its numbers ourselves.
We will also run the global link-state multi-path scheme of Routing entanglement in the quantum internet, applied pairwise to a hub, on the 2D grid where its behaviour is characterized. No numeric rate is reported in the file beyond the $0.5$ threshold.
Fairness rules apply to every method. All methods see the same link-success draws, the same per-link $(z_e, x_e)$, and the same memory cutoff. Each gets the same per-decision wall-clock budget, and each has its parameters (path-count caps, purification rounds) tuned on held-out topologies.
Two ablations isolate the key ingredients. The first keeps spider fusion but replaces $F(T)$ with a scalar Werner metric, which tests whether the structured metric matters. The second keeps $F(T)$ but always prunes to a minimal tree, which tests whether the keep-or-prune decision matters.
Why not just…?
Why not just use standard graph routing with a multiplicative metric, as Q-LEAP does? For bipartite routing under depolarizing noise this is exactly right, and our formula agrees: when $z_e$ and $x_e$ are tied together as in Werner states, the first factor reduces to a product along the tree. The structured metric can only matter under biased noise, where phase and bit flips differ, and for $k \ge 3$, where bit flips act through tree cuts. Our noise sweep runs from depolarizing to strongly phase-biased. If the scalar-metric ablation matches Spider-Steiner across that whole range, the claimed routing advantage is false and only the proofs remain.
Why not just run a stabilizer simulator inside a greedy tree search? This is the real threat. Every operation here is a stabilizer operation, so a stabilizer simulator — one that tracks a compact description of the state instead of the full state vector — can score any candidate tree exactly and efficiently. The diagram-derived metric's claimed edge is that it decomposes over subtrees. That allows dynamic programming rather than re-simulating each candidate. We will run this baseline with an equal time budget. If it reaches the same throughput and fidelity, we will report that the calculus contributes correctness proofs and the parity-aggregation scheme, not routing quality.
Why not just build GHZ states from bipartite pairs at a hub? This is the naive baseline. The expected weakness is consumption: $k-1$ end-to-end pairs each pay their own path's losses. A fused tree shares its edges, and its success depends only on connectivity. The pair-consumption and throughput comparisons on grids around the percolation threshold settle this directly.
Proposed Experiments
We will use three families of topology. The first is 2D square grids with link-success probability swept through $0.5$, following Routing entanglement in the quantum internet. The second and third are the US backbone and Waxman random graphs, following Fidelity-Guaranteed Entanglement Routing in Quantum Networks. Group sizes are $k \in \{2,3,5,8\}$, and Pauli noise ranges from depolarizing to strongly phase-biased. We report $k$-party throughput, fraction of requests meeting the fidelity threshold, link pairs consumed, routing runtime, and correction messages per hop.
We will run five decisive checks. First, $F(T)$ must match brute-force density-matrix fidelity on random small trees and cyclic subgraphs to numerical precision. Second, at $k=2$ under depolarizing noise, Spider-Steiner must coincide with Q-LEAP; this is a sanity check, not a win. Third, we predict that the structured metric beats the scalar-metric ablation by a margin that grows with $k$ and with noise bias. If the gap stays near zero across biased-noise settings, the central claim is refuted.
Fourth, on grids just above the $0.5$ threshold, cluster-based fusion should keep $k$-party throughput roughly independent of user separation, while the hub baseline should decay. Fifth, Spider-Steiner must match or beat the stabilizer-in-the-loop search at equal wall-clock budget. Failing this check would narrow the contribution to proofs and correction aggregation.