46 Rem 24: Shor-Style Measurement as Gauging
This remark shows that the gauging measurement procedure recovers Shor-style logical measurement as a special case. Given a Pauli logical operator \(L\) with weight \(W = |\operatorname {supp}(L)|\), the Shor-style measurement uses an auxiliary GHZ state on \(W\) qubits, transversal CX gates, and \(X\) measurements on the auxiliary qubits. From the gauging viewpoint, one chooses a graph \(G\) with vertex set \(\operatorname {supp}(L) \cup \{ d_1, \ldots , d_W\} \) where: (1) \(W\) dummy vertices \(d_i\) (one per qubit in \(\operatorname {supp}(L)\)); (2) a connected subgraph on the dummy vertices; (3) each \(d_i\) connected by a single edge to the corresponding qubit \(i\). After measuring the edges of the dummy subgraph first (the ungauging step), the remaining state on dummy qubits is equivalent to a GHZ state entangled with \(\operatorname {supp}(L)\), recovering Shor-style measurement. The key advantage of the gauging viewpoint is that the dummy subgraph can be chosen freely (path graph, star graph, expander, etc.) to optimize for hardware constraints.
46.1 Shor-Style Graph Construction
The vertex type for the Shor-style gauging graph is \(\operatorname {Fin}(W) \oplus \operatorname {Fin}(W)\), representing support qubits and dummy qubits respectively. The total vertex count is \(2W\).
The adjacency relation for the Shor-style gauging graph. Two vertices \(p, q\) are adjacent if \(p \neq q\) and one of the following holds:
Pairing edge: there exists \(i \in \operatorname {Fin}(W)\) with \(p = \operatorname {inl}(i)\) and \(q = \operatorname {inr}(i)\) (or vice versa), connecting support qubit \(i\) to dummy vertex \(d_i\).
Dummy subgraph edge: there exist \(i, j \in \operatorname {Fin}(W)\) with \(p = \operatorname {inr}(i)\), \(q = \operatorname {inr}(j)\), and \(i \sim j\) in \(G_{\mathrm{dummy}}\).
If \(\operatorname {shorGraphAdj}(W, G_{\mathrm{dummy}}, p, q)\) holds, then \(\operatorname {shorGraphAdj}(W, G_{\mathrm{dummy}}, q, p)\) holds.
Assume \(p \neq q\) and the adjacency condition holds. Since \(p \neq q\) implies \(q \neq p\), it remains to check the disjunction. If the edge is a pairing edge \((\operatorname {inl}(i), \operatorname {inr}(i))\), then \((\operatorname {inr}(i), \operatorname {inl}(i))\) is also a pairing edge (by the second disjunct). If the edge is a reverse pairing edge \((\operatorname {inr}(i), \operatorname {inl}(i))\), then \((\operatorname {inl}(i), \operatorname {inr}(i))\) is a pairing edge. If the edge is a dummy subgraph edge with \(G_{\mathrm{dummy}}.\operatorname {Adj}(i, j)\), then by symmetry of \(G_{\mathrm{dummy}}\) we have \(G_{\mathrm{dummy}}.\operatorname {Adj}(j, i)\).
For any vertex \(p\), \(\neg \operatorname {shorGraphAdj}(W, G_{\mathrm{dummy}}, p, p)\).
Suppose \(\operatorname {shorGraphAdj}(W, G_{\mathrm{dummy}}, p, p)\) holds. By definition, the first condition requires \(p \neq p\), which is a contradiction.
The Shor-style gauging graph on \(2W\) vertices. It is a simple graph on \(\operatorname {ShorVertex}(W)\) whose adjacency is given by \(\operatorname {shorGraphAdj}\), with symmetry established by shorGraphAdj_symm and irreflexivity by shorGraphAdj_irrefl. Its edges consist of \(W\) pairing edges \(\{ (\operatorname {inl}(i), \operatorname {inr}(i))\} \) plus the dummy subgraph edges.
The Shor graph has \(2W\) vertices:
By the cardinality of a sum type, \(|\operatorname {Fin}(W) \oplus \operatorname {Fin}(W)| = |\operatorname {Fin}(W)| + |\operatorname {Fin}(W)| = W + W = 2W\).
For each \(i \in \operatorname {Fin}(W)\), \(\operatorname {inl}(i)\) and \(\operatorname {inr}(i)\) are adjacent in the Shor graph:
We have \(\operatorname {inl}(i) \neq \operatorname {inr}(i)\) (they are in different summands), and \(i\) witnesses the pairing edge condition \(p = \operatorname {inl}(i) \land q = \operatorname {inr}(i)\).
If \(i \sim j\) in \(G_{\mathrm{dummy}}\), then \(\operatorname {inr}(i) \sim \operatorname {inr}(j)\) in the Shor graph.
We must show \(\operatorname {inr}(i) \neq \operatorname {inr}(j)\) and the adjacency condition. For the first, if \(\operatorname {inr}(i) = \operatorname {inr}(j)\) then \(i = j\) by injectivity of \(\operatorname {inr}\), but \(G_{\mathrm{dummy}}\) is loopless so \(i \sim i\) is impossible. For the second, we produce witnesses \(i, j\) with \(G_{\mathrm{dummy}}.\operatorname {Adj}(i, j)\).
The graph homomorphism \(G_{\mathrm{dummy}} \to \operatorname {ShorGraph}(W, G_{\mathrm{dummy}})\) given by \(v \mapsto \operatorname {inr}(v)\), which maps edges of \(G_{\mathrm{dummy}}\) to dummy subgraph edges of the Shor graph.
If \(W {\gt} 0\) and \(G_{\mathrm{dummy}}\) is connected, then the Shor graph is connected.
Fix a base vertex \(\operatorname {inr}(0)\). It suffices to show that every vertex \(w\) is reachable from \(\operatorname {inr}(0)\).
Case \(w = \operatorname {inr}(j)\): Since \(G_{\mathrm{dummy}}\) is connected, vertex \(0\) is reachable from \(j\) in \(G_{\mathrm{dummy}}\). Applying the graph homomorphism \(\operatorname {shorDummyHom}\) (which maps via \(\operatorname {inr}\)), \(\operatorname {inr}(0)\) is reachable from \(\operatorname {inr}(j)\) in the Shor graph.
Case \(w = \operatorname {inl}(i)\): By the same argument, \(\operatorname {inr}(0)\) can reach \(\operatorname {inr}(i)\) in the Shor graph. The pairing edge gives \(\operatorname {inr}(i) \sim \operatorname {inl}(i)\), so \(\operatorname {inr}(0)\) can reach \(\operatorname {inl}(i)\) by transitivity.
The graph is nonempty since \(W {\gt} 0\) guarantees \(\operatorname {inr}(0)\) exists.
46.2 Extended Logical Operator
The logical operator \(L'\) on the Shor graph vertex set:
defined as the Pauli operator with \(\operatorname {xVec}(v) = 1\) for all \(v\) and \(\operatorname {zVec} = 0\). This is the extended logical from Rem 10 with \(V = D = \operatorname {Fin}(W)\).
The logical operator \(L'\) has no \(Z\)-support: \((L').\operatorname {zVec} = 0\).
This holds by definition, since \(\operatorname {zVec}\) is defined to be \(0\).
\(L' \cdot L' = \mathbf{1}\).
This follows from the fact that every Pauli operator is self-inverse: \(P \cdot P = \mathbf{1}\).
The weight of \(L'\) is \(2W\):
Since \(\operatorname {xVec}(v) = 1 \neq 0\) for all \(v\), every vertex is in the support of \(L'\). The support filter returns all of \(\operatorname {univ}\), so the weight equals \(|\operatorname {Fin}(W) \oplus \operatorname {Fin}(W)| = W + W = 2W\).
The support-restricted logical operator: \(L\) acts as \(X\) on all \(\operatorname {inl}\) qubits (support qubits) and as \(I\) on all \(\operatorname {inr}\) qubits (dummy qubits). Formally, \(\operatorname {xVec}(\operatorname {inl}(i)) = 1\), \(\operatorname {xVec}(\operatorname {inr}(i)) = 0\), and \(\operatorname {zVec} = 0\).
The dummy product \(\prod _{d \in D} X_d\) on dummy qubits only. Formally, \(\operatorname {xVec}(\operatorname {inl}(i)) = 0\), \(\operatorname {xVec}(\operatorname {inr}(i)) = 1\), and \(\operatorname {zVec} = 0\).
The full logical factorizes as \(L' = L \cdot \prod _d X_d\):
By extensionality, we check each component. For \(\operatorname {xVec}\): on \(\operatorname {inl}(i)\), \(1 = 1 + 0\); on \(\operatorname {inr}(i)\), \(1 = 0 + 1\). For \(\operatorname {zVec}\): on all vertices, \(0 = 0 + 0\). Each case follows by simplification of the multiplication definition.
\((L).\operatorname {zVec} = 0\).
This holds by definition.
\((\prod _d X_d).\operatorname {zVec} = 0\).
This holds by definition.
\(L \cdot \prod _d X_d = \prod _d X_d \cdot L\).
Both operators are pure \(X\)-type, so they commute by the commutativity of Pauli operator multiplication.
\(L \cdot L = \mathbf{1}\).
This follows from the general self-inverse property of Pauli operators.
\(\prod _d X_d \cdot \prod _d X_d = \mathbf{1}\).
This follows from the general self-inverse property of Pauli operators.
46.3 Measurement Sign with Dummies
If all dummy outcomes are \(0\) (i.e., all dummy qubits are in the \(+1\) eigenstate of \(X\)), then the measurement sign over the full vertex set equals the sum over support outcomes only:
Decompose the sum over the sum type: \(\sum _{v} f(v) = \sum _{i} f(\operatorname {inl}(i)) + \sum _{j} f(\operatorname {inr}(j))\). Since each dummy outcome \(\varepsilon _{\operatorname {inr}(j)} = 0\) by hypothesis, the second sum vanishes, leaving only \(\sum _i \varepsilon _{\operatorname {inl}(i)}\).
46.4 Gauging Structure on the Shor Graph
For every vertex \(v\) of the Shor graph, the Gauss’s law operator \(A_v\) is pure \(X\)-type:
By extensionality and simplification of the \(\operatorname {gaussLawOp}\) definition, every component of the \(\operatorname {zVec}\) is \(0\).
The product of all Gauss operators on the Shor graph equals the logical operator:
This is an instance of the general \(\operatorname {gaussLaw\_ product}\) applied to the Shor graph.
This follows directly by symmetry from \(\operatorname {gaussLaw\_ product}(\operatorname {ShorGraph}(W, G_{\mathrm{dummy}}))\).
46.5 Circuit Correspondence
The entangling circuit transforms \(A_v\) to \(X_v\) on the Shor graph: for each vertex \(v\),
This is a direct application of the general \(\operatorname {entanglingCircuit\_ transforms\_ gaussLaw}\) theorem to the Shor graph.
The inverse direction: the CX circuit transforms \(X_v\) back to \(A_v\).
This is a direct application of \(\operatorname {entanglingCircuit\_ transforms\_ pauliX\_ to\_ gaussLaw}\) to the Shor graph.
Applying the entangling circuit twice gives the identity: for any Pauli operator \(P\) on the extended qubit type,
This is a direct application of \(\operatorname {entanglingCircuitAction\_ involutive}\) to the Shor graph.
The circuit preserves Pauli commutation: \([P, Q] = 0\) if and only if \([\operatorname {entanglingCircuitAction}(P), \operatorname {entanglingCircuitAction}(Q)] = 0\).
This is the symmetric form of \(\operatorname {entanglingCircuit\_ preserves\_ commutation}\) applied to the Shor graph.
46.6 Edge Structure
No two support qubits are adjacent in the Shor graph: for all \(i, j \in \operatorname {Fin}(W)\),
Suppose \(\operatorname {inl}(i) \sim \operatorname {inl}(j)\). Decomposing the adjacency disjunction: a pairing edge would require \(\operatorname {inl}(j) = \operatorname {inr}(k)\), which contradicts the type; a reverse pairing edge requires \(\operatorname {inl}(i) = \operatorname {inr}(k)\), another contradiction; a dummy subgraph edge requires \(\operatorname {inl}(i) = \operatorname {inr}(a)\), again a contradiction. All cases are impossible.
\(\operatorname {inl}(i) \sim \operatorname {inr}(j)\) in the Shor graph if and only if \(i = j\).
(\(\Rightarrow \)) If \(\operatorname {inl}(i) \sim \operatorname {inr}(j)\), then among the three disjuncts, only the pairing edge case is consistent with the types: there exists \(k\) with \(\operatorname {inl}(i) = \operatorname {inl}(k)\) and \(\operatorname {inr}(j) = \operatorname {inr}(k)\), giving \(i = k = j\).
(\(\Leftarrow \)) If \(i = j\), substitute and apply \(\operatorname {shor\_ pairing\_ edge}\).
\(\operatorname {inr}(i) \sim \operatorname {inr}(j)\) in the Shor graph if and only if \(i \sim j\) in \(G_{\mathrm{dummy}}\).
(\(\Rightarrow \)) If \(\operatorname {inr}(i) \sim \operatorname {inr}(j)\), then among the disjuncts, only the dummy subgraph case is type-consistent: there exist \(a, b\) with \(\operatorname {inr}(i) = \operatorname {inr}(a)\), \(\operatorname {inr}(j) = \operatorname {inr}(b)\), and \(G_{\mathrm{dummy}}.\operatorname {Adj}(a, b)\). By injectivity, \(i = a\) and \(j = b\), so \(G_{\mathrm{dummy}}.\operatorname {Adj}(i, j)\).
(\(\Leftarrow \)) Apply \(\operatorname {shor\_ dummy\_ edge}\).
The neighbor set of \(\operatorname {inl}(i)\) in the Shor graph is exactly \(\{ \operatorname {inr}(i)\} \).
By extensionality, a vertex \(q\) is in the neighbor set if and only if \(q = \operatorname {inr}(i)\). For \(q = \operatorname {inl}(j)\), adjacency is impossible by the no-support-support-edges theorem. For \(q = \operatorname {inr}(j)\), adjacency holds if and only if \(i = j\) by the support-dummy characterization, so \(q = \operatorname {inr}(i)\).
Each support vertex has degree exactly \(1\):
By the neighbor set characterization, the neighbor set is \(\{ \operatorname {inr}(i)\} \), which has cardinality \(1\).
The neighbor set of \(\operatorname {inr}(i)\) in the Shor graph is
By extensionality. For a vertex \(q\): if \(q = \operatorname {inl}(j)\), then \(\operatorname {inr}(i) \sim \operatorname {inl}(j)\) iff \(j = i\) (by symmetry and the support-dummy characterization), corresponding to membership in \(\{ \operatorname {inl}(i)\} \). If \(q = \operatorname {inr}(j)\), then \(\operatorname {inr}(i) \sim \operatorname {inr}(j)\) iff \(G_{\mathrm{dummy}}.\operatorname {Adj}(i, j)\) (by the dummy-dummy characterization), corresponding to \(j \in N_{G_{\mathrm{dummy}}}(i)\). The disjointness of the two parts follows because \(\operatorname {inl}(i) \neq \operatorname {inr}(j)\) for all \(j\).
Every edge of the Shor graph is either a pairing edge or a dummy subgraph edge: if \(p \sim q\), then either there exists \(i\) with \((p, q)\) or \((q, p) = (\operatorname {inl}(i), \operatorname {inr}(i))\), or there exist \(i, j\) with \(p = \operatorname {inr}(i)\), \(q = \operatorname {inr}(j)\), and \(G_{\mathrm{dummy}}.\operatorname {Adj}(i, j)\).
This follows directly by case analysis on the adjacency disjunction from the definition of \(\operatorname {shorGraphAdj}\).
46.7 Structural Correspondence
All Gauss operators on the Shor graph mutually commute:
This is a direct application of \(\operatorname {gaussLaw\_ commute}\) to the Shor graph.
Each Gauss operator on the Shor graph satisfies \(A_v \cdot A_v = \mathbf{1}\).
This follows from the general self-inverse property of Pauli operators.
The product of all Gauss operators equals the logical operator:
This is the fundamental equivalence that makes the gauging procedure work.
This is a direct application of \(\operatorname {gaussLaw\_ product}\) to the Shor graph.
Assuming \(W {\gt} 0\) and \(G_{\mathrm{dummy}}\) is connected, the Shor-style gauging graph satisfies all of the following simultaneously:
The Shor graph is connected.
\(|\operatorname {ShorVertex}(W)| = 2W\).
All Gauss operators mutually commute.
Each Gauss operator is self-inverse.
The product of all Gauss operators equals the logical \(L'\).
Each support vertex has degree exactly \(1\).
This is a conjunction of previously proved results: connectivity from \(\operatorname {shorGraph\_ connected}\), vertex count from \(\operatorname {shorGraph\_ card}\), commutation from \(\operatorname {shor\_ gauss\_ operators\_ commute}\), self-inverseness from \(\operatorname {shor\_ gauss\_ self\_ inverse}\), the product formula from \(\operatorname {shor\_ product\_ measurement}\), and degree from \(\operatorname {shor\_ support\_ degree\_ eq\_ one}\).
46.8 Degree Analysis
The degree of dummy vertex \(d_i\) in the Shor graph is \(1 + \deg _{G_{\mathrm{dummy}}}(i)\):
By the neighbor set characterization, the neighbor set of \(\operatorname {inr}(i)\) is \(\{ \operatorname {inl}(i)\} \cup \operatorname {inr}(N_{G_{\mathrm{dummy}}}(i))\). These two sets are disjoint (different summands), so the cardinality is \(1 + |N_{G_{\mathrm{dummy}}}(i)| = 1 + \deg _{G_{\mathrm{dummy}}}(i)\).
The sum of degrees of all support vertices is \(W\):
Since each support vertex has degree \(1\), the sum is \(\sum _{i} 1 = W\).
The sum of degrees of all dummy vertices is \(W + \sum _i \deg _{G_{\mathrm{dummy}}}(i)\):
Substituting \(\deg (\operatorname {inr}(i)) = 1 + \deg _{G_{\mathrm{dummy}}}(i)\) and distributing the sum: \(\sum _i (1 + \deg _{G_{\mathrm{dummy}}}(i)) = \sum _i 1 + \sum _i \deg _{G_{\mathrm{dummy}}}(i) = W + \sum _i \deg _{G_{\mathrm{dummy}}}(i)\).
The total degree sum of the Shor graph equals twice its edge count:
This is the handshaking lemma applied to the Shor graph.
The total degree sum decomposes into support and dummy contributions:
This follows from the decomposition of sums over a sum type: \(\sum _{v \in A \oplus B} f(v) = \sum _{a \in A} f(\operatorname {inl}(a)) + \sum _{b \in B} f(\operatorname {inr}(b))\).
If \(G_{\mathrm{dummy}}\) is connected on \(W\) vertices, then it has at least \(W - 1\) edges:
This is the standard graph-theoretic fact that a connected graph on \(n\) vertices has at least \(n-1\) edges.
46.9 Optimization Flexibility
If every dummy vertex has \(\deg _{G_{\mathrm{dummy}}}(i) \le d\), then every dummy vertex has \(\deg _{\operatorname {ShorGraph}}(\operatorname {inr}(i)) \le d + 1\).
By the dummy degree formula, \(\deg (\operatorname {inr}(i)) = 1 + \deg _{G_{\mathrm{dummy}}}(i) \le 1 + d = d + 1\).
If every dummy vertex has \(\deg _{G_{\mathrm{dummy}}}(i) \le d\), then every vertex \(v\) of the Shor graph has \(\deg (v) \le d + 1\).
We consider two cases. If \(v = \operatorname {inl}(i)\), then \(\deg (v) = 1 \le d + 1\) (since \(d \ge 0\)). If \(v = \operatorname {inr}(i)\), the bound follows from \(\operatorname {shor\_ dummy\_ degree\_ bound}\).
The Shor graph edge count satisfies the handshaking identity:
Rewriting: \(2|E| = \sum _v \deg (v)\) by the handshaking lemma. Then decompose the sum as \(\sum _{\operatorname {inl}} + \sum _{\operatorname {inr}} = W + (W + \sum _i \deg _{G_{\mathrm{dummy}}}(i))\) using the previously established support and dummy degree sums.
The handshaking lemma applied to the dummy subgraph:
This is the standard handshaking lemma for \(G_{\mathrm{dummy}}\).