- Boxes
- definitions
- Ellipses
- theorems and lemmas
- Blue border
- the statement of this result is ready to be formalized; all prerequisites are done
- Orange border
- the statement of this result is not ready to be formalized; the blueprint needs more work
- Blue background
- the proof of this result is ready to be formalized; all prerequisites are done
- Green border
- the statement of this result is formalized
- Green background
- the proof of this result is formalized
- Dark green background
- the proof of this result and all its ancestors are formalized
- Dark green border
- this is in Mathlib
The X-type check indexed by \(\alpha \in M\) for polynomials \(A, B\). Its X-support on L qubits is the support of \(\operatorname {shift}_\alpha A\), and on R qubits is the support of \(\operatorname {shift}_\alpha B\):
The Z-type check indexed by \(\beta \in M\) for polynomials \(A, B\). Its Z-support on L qubits is the support of \(\operatorname {shift}_\beta B^T\), and on R qubits is the support of \(\operatorname {shift}_\beta A^T\):
A BB code forms a valid stabilizer code under the CSS condition \(AB^T = BA^T\). Given polynomials \(A, B\) in the group algebra satisfying the CSS condition, the stabilizer code has:
Qubit type: \(\operatorname {BBQubit}(\ell , m) = M \oplus M\),
Check index: \(\operatorname {BBCheckIndex}(\ell , m) = M \oplus M\),
Check map: \(\operatorname {bbCheck}(A, B)\),
Commutation: guaranteed by \(\operatorname {bbChecks\_ commute}\).
Convolution (polynomial multiplication) in \(\mathbb {F}_2[x,y]/(x^\ell - 1, y^m - 1)\). For polynomials \(p, q\):
where subtraction is taken in \(\mathbb {Z}_\ell \times \mathbb {Z}_m\). This corresponds to matrix multiplication of the associated circulant-like matrices.
The monomial group \(M = \mathbb {Z}_\ell \times \mathbb {Z}_m\) represents monomials \(x^a y^b\) with \(a \in \{ 0, \ldots , \ell -1\} \) and \(b \in \{ 0, \ldots , m-1\} \). We use the additive group structure of \(\mathbb {Z}_\ell \times \mathbb {Z}_m\) (addition corresponds to monomial multiplication).
The transpose operation on the group algebra: \(A^T(x,y) = A(x^{-1}, y^{-1})\). Since \(x^{-1} = x^{\ell -1}\) and \(y^{-1} = y^{m-1}\) in the quotient ring, this maps the coefficient of \(x^a y^b\) to \(x^{-a} y^{-b}\). Formally, \(\operatorname {bbTranspose}(p)(\alpha ) = p(-\alpha )\).
The X-type Pauli operator \(X(p, q)\) on a BB code. It acts with \(X\) on L qubit \(\gamma \) iff \(p(\gamma ) = 1\), and on R qubit \(\delta \) iff \(q(\delta ) = 1\). This is a pure X-type operator (\(z\)-vector \(= 0\)). Formally: \(\operatorname {xVec} = \operatorname {Sum.elim}(p, q)\) and \(\operatorname {zVec} = 0\).
The Z-type Pauli operator \(Z(p, q)\) on a BB code. It acts with \(Z\) on L qubit \(\gamma \) iff \(p(\gamma ) = 1\), and on R qubit \(\delta \) iff \(q(\delta ) = 1\). This is a pure Z-type operator (\(x\)-vector \(= 0\)). Formally: \(\operatorname {xVec} = 0\) and \(\operatorname {zVec} = \operatorname {Sum.elim}(p, q)\).
The Cheeger constant \(h(G)\) of a finite simple graph \(G\) is defined as
Given a qubit space \(W\), a control qubit \(c \in W\), a target qubit \(t \in W\) with \(c \neq t\), and a Pauli operator \(P \in \operatorname {PauliOp}(W)\), the CX conjugation \(\mathrm{CX}_{c \to t}(P)\) is the Pauli operator defined by:
Given a graph \(G\) on vertices \(V\) and a Pauli operator \(P \in \operatorname {PauliOp}(\operatorname {ExtQubit}(G))\), the entangling circuit action is the Pauli operator defined by:
where \([\! [v \in e]\! ]\) denotes the indicator for vertex \(v\) being an endpoint of edge \(e\), and \(\operatorname {inc}(v)\) is the set of edges incident to \(v\).
The cycle rank property for a graph \(G = (V, E)\) with a cycle collection \(C\) is the assertion that
This holds when \(C\) is a complete cycle basis for a connected graph \(G\), and is equivalent to the statement that the cycle rank (first Betti number) satisfies \(|C| = |E| - |V| + 1\).
An \(X\)-type logical operator \(L\) is irreducible if it cannot be written as a product \(L = P \cdot R\) of two pure \(X\)-type centralizer elements where both \(P\) and \(R\) have weight strictly less than \(\operatorname {wt}(L)\) and neither is the identity. Formally, \(L\) is an \(X\)-type logical and for all pure-\(X\) centralizer elements \(P, R\) with \(P \cdot R = L\), we have \(\operatorname {wt}(P) \ge \operatorname {wt}(L)\) or \(\operatorname {wt}(R) \ge \operatorname {wt}(L)\) or \(P = \mathbf{1}\) or \(R = \mathbf{1}\).
A Pauli operator \(L\) is an \(X\)-type logical operator for a stabilizer code \(C\) if \(L\) is pure \(X\)-type (i.e., \(L.\operatorname {zVec} = 0\)) and \(L\) is a logical operator of \(C\) (in the centralizer, not a stabilizer, and not the identity).
The joint incidence relation combines two individual incidence relations with bridge edges. Given two systems \((Q_1, E_1, \operatorname {incident}_1)\) and \((Q_2, E_2, \operatorname {incident}_2)\) with bridge edges \(B\) connecting specified pairs, the joint incidence on vertices \(Q_1 \oplus Q_2\) and edges \(E_1 \oplus E_2 \oplus B\) is:
\((\operatorname {inl}(q_1), \operatorname {inl}(e_1))\): \(\operatorname {incident}_1(q_1, e_1)\),
\((\operatorname {inr}(q_2), \operatorname {inr}(\operatorname {inl}(e_2)))\): \(\operatorname {incident}_2(q_2, e_2)\),
\((\operatorname {inl}(q_1), \operatorname {inr}(\operatorname {inr}(b)))\): \(q_1 = \operatorname {bridgeQ1}(b)\),
\((\operatorname {inr}(q_2), \operatorname {inr}(\operatorname {inr}(b)))\): \(q_2 = \operatorname {bridgeQ2}(b)\),
otherwise: \(\bot \).
The layered incidence relation for the Cohen et al. construction with \(d\) layers. The vertex set is \(Q \times \operatorname {Fin}(d)\) and edges are either inter-layer or intra-layer. A vertex \((q, \ell )\) is incident to:
An inter-layer edge \((q', k)\): if \(q = q'\) and \(\ell \in \{ k, k+1\} \) (path graph connection between consecutive layers).
An intra-layer edge \((i, \ell ')\): if \(\ell = \ell '\) and \(q\) is incident to check \(i\) in the restricted hypergraph.
Given a function \(g : V_L \to \mathbb {Z}_2\), the lift \(\operatorname {liftVL}(g) : Q \to \mathbb {Z}_2\) extends \(g\) by zero outside \(V_L\):
The relevant \(Z\)-checks of a stabilizer code \(C\) with respect to a logical operator \(L\) are the \(Z\)-type check indices \(i\) whose \(Z\)-support has nonempty intersection with \(\operatorname {logicalSupport}(L)\):
The restricted incidence relation for the hypergraph on \(\operatorname {logicalSupport}(L)\): a qubit \(q\) is incident to check index \(i\) if and only if \(q \in \operatorname {logicalSupport}(L)\), the \(Z\)-vector of \(C.\operatorname {check}(i)\) is nonzero at \(q\), and \(i\) is a \(Z\)-type check.
The edge cycle degree in layer \(i\) counts how many original cycles assigned to layer \(i\) contain a given edge \(e\):
This is the per-layer edge participation count; the purpose of distributing cycles across layers is to make this quantitysmall.
An inter-layer edge between sparsified vertices \(p\) and \(q\) is defined by
i.e., they represent the same original vertex in consecutive layers.
An intra-layer edge between sparsified vertices \(p\) and \(q\) is defined by
i.e., \(p\) and \(q\) are in the same layer and the corresponding original vertices are adjacent in \(G\). The original graph edges are replicated in every layer.
A triangulation edge between sparsified vertices \(p\) and \(q\) exists when there is a cycle \(c\) such that:
The cycle \(c\) is assigned to a non-original layer: \(\operatorname {cycleAssignment}(c) \neq \operatorname {originalLayer}\).
Both \(p\) and \(q\) are in the layer assigned to \(c\): \(p_2 = q_2 = \operatorname {cycleAssignment}(c)\).
The pair \((p_1, q_1)\) or \((q_1, p_1)\) is a zigzag diagonal of \(c\)’s vertex list.
The per-layer cycle-degree bound states that for every edge \(e\) and every layer \(i\), the number of cycles assigned to layer \(i\) containing edge \(e\) is at most \(\mathit{bound}\):
The minimum number of layers \(R_G^c\) for cycle-sparsification with per-layer cycle-degree bound \(\mathit{bound}\) is the smallest \(R\) such that there exists a cycle assignment \(f : C \to \operatorname {Fin}(R+1)\) achieving \(\operatorname {LayerCycleDegreeBound}(\mathit{cycles}, f, \mathit{bound})\). Formally, it is defined using \(\operatorname {Nat.find}\) applied to the existence hypothesis.
The complete data for a cycle-sparsified graph construction is a structure consisting of:
\(\operatorname {numLayers} : \mathbb {N}\) — the number of additional layers \(R\).
\(\operatorname {cycleAssignment} : C \to \operatorname {Fin}(R+1)\) — assigns each cycle to a layer.
\(\operatorname {cycleVerts} : C \to \operatorname {List}(V)\) — the vertex list of each cycle.
\(\operatorname {cycleBound} : \mathbb {N}\) — the per-layer cycle-degree bound.
\(\operatorname {bound\_ holds}\) — proof that \(\operatorname {LayerCycleDegreeBound}(\mathit{cycles}, \operatorname {cycleAssignment}, \operatorname {cycleBound})\) holds.
The adjacency relation of the sparsified graph combines all three edge types:
The cycle-sparsified graph \(\overline{\overline{G}}\) is defined as a \(\operatorname {SimpleGraph}\) on \(\operatorname {SparsifiedVertex}(V, R)\) with adjacency given by \(\operatorname {sparsifiedAdj}\), symmetry given by \(\operatorname {sparsifiedAdj\_ symm}\), and the loopless property given by \(\operatorname {sparsifiedAdj\_ irrefl}\).
Given a list of cycle vertices \([v_1, v_2, \ldots , v_m]\), the zigzag diagonals are the cellulation diagonal pairs produced by the zigzag pattern:
For \(m {\lt} 4\), no diagonals are needed (the polygon is a triangle or simpler). For \(m = 4\) (square), one diagonal \((v_1, v_3)\). For \(m = 5\) (pentagon), two diagonals: \((v_1, v_4)\) and \((v_4, v_2)\).
Formally, if \(|\mathit{vs}| \ge 4\), define \(\mathit{arr}(i) = \mathit{vs}[i]\) and return \(\operatorname {zigzagGo}(\mathit{arr}, 0, |\mathit{vs}|-1, \ldots , \operatorname {true}, |\mathit{vs}|)\); otherwise return the empty list.
The auxiliary recursive function \(\operatorname {zigzagGo}\) takes a vertex array \(\mathit{vs} : \operatorname {Fin}(n) \to V\), left and right indices, a Boolean alternation flag \(\mathit{fromLeft}\), and a fuel parameter. It produces zigzag diagonal pairs by alternating between:
If \(\mathit{fromLeft}\) is true: emit \((\mathit{vs}[\mathit{left}],\; \mathit{vs}[\mathit{right}-1])\) and recurse with \(\mathit{right}' = \mathit{right} - 1\) and flag false.
If \(\mathit{fromLeft}\) is false: emit \((\mathit{vs}[\mathit{right}],\; \mathit{vs}[\mathit{left}+1])\) and recurse with \(\mathit{left}' = \mathit{left} + 1\) and flag true.
The recursion terminates when \(\mathit{right} \le \mathit{left} + 1\) or fuel is exhausted.
The full set of checks for the deformed code is the function
defined by:
The check index type for the deformed code is the inductive type \(\operatorname {CheckIndex}(V, C, J)\) with three constructors:
\(\operatorname {gaussLaw}(v)\) for \(v \in V\), indexing the Gauss’s law checks,
\(\operatorname {flux}(p)\) for \(p \in C\), indexing the flux checks,
\(\operatorname {deformed}(j)\) for \(j \in J\), indexing the deformed original checks.
This type is equivalent to the sum type \(V \oplus C \oplus J\).
Given a graph \(G = (V, E)\), an original check \(s \in \mathcal{P}_V\) (a Pauli operator on \(V\)), and an edge-path \(\gamma : E(G) \to \mathbb {Z}_2\) satisfying the boundary condition, the deformed check is the deformed operator extension of \(s\) by \(\gamma \):
The generating checks for the deformed code on the extended qubit system \(V \oplus E(G)\) is the main definition from Definition 4 of the paper. It is the function
defined as \(\operatorname {allChecks}(G, \mathrm{cycles}, \mathrm{checks}, \mathrm{data})\), mapping:
The deformed original checks \(\tilde{s}_j\) for each \(j \in J\) are defined using the edge-paths from the deformed code data:
where \(\gamma _j\) is the edge-path provided by the deformed code data.
When all original checks \(s_j\) have no \(Z\)-support on \(V\), the deformed code data can be constructed by setting all edge-paths to zero: \(\gamma _j = 0\) for all \(j \in J\). The boundary condition is satisfied because the zero edge-path has zero boundary, which equals the (empty) \(Z\)-support restriction when there is no \(Z\)-support.
The deformed code forms a valid stabilizer code on the extended qubit system \(V \oplus E(G)\). The check index type is \(\operatorname {CheckIndex}(V, C, J) = V \oplus C \oplus J\), and the check function is \(\operatorname {deformedCodeChecks}\). The pairwise commutation of all checks is established by allChecks_commute.
Formally, given a graph \(G\), cycles, original checks, deformed code data \(\mathrm{data}\), the cycle evenness hypothesis, and the hypothesis that original checks pairwise commute, we define:
with index type \(I = \operatorname {CheckIndex}(V, C, J)\) and check map \(\operatorname {deformedCodeChecks}(G, \mathrm{cycles}, \mathrm{checks}, \mathrm{data})\).
A Phase 2 measurement label for vertex set \(V\), cycle set \(C\), check set \(J\), and code distance \(d\) is one of:
\(\mathtt{gaussLaw}(v, r)\): Gauss’s law measurement at vertex \(v \in V\) in round \(r \in \operatorname {Fin}(d)\).
\(\mathtt{flux}(p, r)\): Flux measurement for cycle \(p \in C\) in round \(r \in \operatorname {Fin}(d)\).
\(\mathtt{deformed}(j, r)\): Deformed original check \(j \in J\) in round \(r \in \operatorname {Fin}(d)\).
The boundary condition for a Pauli operator \(P\) on \(V\) and an edge-path \(\gamma \in (\mathbb {Z}/2\mathbb {Z})^{E}\) asserts that
where \(\partial \) denotes the boundary map of the graph \(G\).
A Pauli operator \(P\) on \(V\) commutes with the logical operator \(L = \prod _{v \in V} X_v\) if the sum of its Z-support on vertices vanishes in \(\mathbb {Z}/2\mathbb {Z}\):
Equivalently, \(P\) has an even number of vertices with \(Z\)-action.
The deformed operator \(\widetilde{P} = P \cdot \prod _{e \in \gamma } Z_e\) on the extended qubit system \(V \oplus E\) is the main construction from Definition 3. Given a Pauli operator \(P\) on \(V\) and an edge-path \(\gamma \) satisfying the boundary condition \(\partial \gamma = S_Z(P)|_V\), the deformed operator is defined as
On vertex qubits it acts as \(P\), and on edge qubits it acts as \(Z_e\) if \(\gamma (e) = 1\) and as the identity otherwise. It commutes with all Gauss’s law operators \(A_v\).
The deformed operator \(\widetilde{P}\) on the extended qubit system \(V \oplus E\) is defined as follows. Given a Pauli operator \(P\) on \(V\) and an edge-path \(\gamma \in (\mathbb {Z}/2\mathbb {Z})^E\):
On vertex qubits (\(v \in V\)): \(\widetilde{P}.\operatorname {xVec}(v) = P.\operatorname {xVec}(v)\) and \(\widetilde{P}.\operatorname {zVec}(v) = P.\operatorname {zVec}(v)\).
On edge qubits (\(e \in E\)): \(\widetilde{P}.\operatorname {xVec}(e) = 0\) and \(\widetilde{P}.\operatorname {zVec}(e) = \gamma (e)\).
That is, \(\widetilde{P}\) acts as \(P\) on vertex qubits and as \(Z_e\) (if \(\gamma (e)=1\)) or identity (if \(\gamma (e)=0\)) on edge qubits.
The Z-support on vertices of a Pauli operator \(P\) on \(V\) is the binary vector \(\operatorname {zSupportOnVertices}(P) \in (\mathbb {Z}/2\mathbb {Z})^V\) defined by
This is the characteristic function of \(S_Z(P) \cap V\).
A structure bundling all three desiderata for graph \(G\) with parameters \(D\) and \(W\):
short_paths: \(G\) satisfies short paths for deformation with parameter \(D\).
expansion: \(G\) has sufficient expansion (\(h(G) \geq 1\)).
low_weight_cycles: The cycle basis of \(G\) has low weight with parameter \(W\).
Let \(G\) be a simple graph, let \(\{ \text{cycle}_c\} _{c \in C}\) be a family of subsets of edges, and let \(W \in \mathbb {N}\). The cycle basis is low-weight with parameter \(W\) if for every \(c \in C\), the number of edges in \(\text{cycle}_c\) is at most \(W\).
Let \(G\) be a simple graph on vertices \(V\), let \(\{ s_j\} _{j \in J}\) be a family of Pauli operators, and let \(D \in \mathbb {N}\). We say \(G\) satisfies short paths for deformation with parameter \(D\) if for every check \(s_j\) and every pair of vertices \(u, v\) in the \(Z\)-support of \(s_j\), the graph distance satisfies \(\operatorname {dist}_G(u,v) \leq D\).
A detector is a structure \((D, f, c)\) where:
\(D \subseteq M\) is a finite set of measurement labels (a \(\operatorname {Finset} M\)),
\(f : M \to \mathbb {Z}/2\mathbb {Z}\) assigns to each measurement its ideal outcome (\(0 \leftrightarrow +1\), \(1 \leftrightarrow -1\)),
\(c\) is a proof of the detector constraint: \(\sum _{m \in D} f(m) = 0\) in \(\mathbb {Z}/2\mathbb {Z}\).
In the \(\{ +1, -1\} \) encoding, the constraint states that the product of ideal outcomes over the detector’s measurements equals \(+1\).
Given two detectors \(D_1, D_2\) with disjoint measurement sets and identical ideal outcomes, their disjoint union is the detector with:
measurements \(= D_1.\mathrm{measurements} \cup D_2.\mathrm{measurements}\),
ideal outcome \(= D_1.\mathrm{idealOutcome}\).
The detector constraint holds because the sum over the union splits into \(\sum _{D_1} + \sum _{D_2}\), both of which are \(0\).
The flip parity of a detector \(D\) with respect to faults \(F\) is the sum in \(\mathbb {Z}/2\mathbb {Z}\) of the indicator of faulted measurements in \(D\):
Given a detector \(D\) and a set of time-faults \(F\), the observed parity is defined as
In \(\{ +1,-1\} \) encoding, \(0\) means the product of observed outcomes is \(+1\), and \(1\) means it is \(-1\).
The syndrome of a set of time-faults \(F\) with respect to a family of detectors \((D_i)_{i \in I}\) is the set of detector indices whose detectors are violated:
The 6 distinct expansion edges (as ordered pairs in \(\mathbb {Z}_{12} \times \mathbb {Z}_{12}\)):
The edge \((x^2, x^6 y^3)\) has multiplicity 2 in the paper’s construction (yielding 7 expansion edges counting multiplicity).
The gauging graph \(G\) for measuring \(\bar{X}_\alpha \) in the Double Gross code is the simple graph on \(\mathbb {Z}_{12} \times \mathbb {Z}_{12}\) with adjacency \(\operatorname {dblGaugingAdj}\). Its symmetry is verified by native_decide, and irreflexivity follows from the \(\gamma \neq \delta \) condition.
A monomial difference \(d \in \mathbb {Z}_{12} \times \mathbb {Z}_{12}\) satisfies the matching condition if \(d = -B_i + B_j\) for some distinct terms \(B_i, B_j\) of \(B\), where the terms of \(B = y^3 + x^2 + x\) are \((0,3)\), \((2,0)\), and \((1,0)\).
The logical operator polynomial \(f \in \mathbb {F}_2[x,y]/(x^{12} - 1, y^{12} - 1)\) is defined as:
Given a Pauli operator \(P\) on extended qubits, a time \(t\), and a qubit \(q \in \operatorname {support}(P)\), we define the space fault
Given a Pauli operator \(P\) and a time \(t\), the finset of space-faults corresponding to \(P\) at time \(t\) is
Given a logical operator \(P\) of the deformed code, placing it as a collection of space-faults at time \(t_i\) (the start of Phase 2) produces a spacetime fault:
This has no time-faults (pure-space).
The fault-tolerant gauging measurement procedure for measuring a logical operator \(L\) in an \([\! [n,k,d]\! ]\) stabilizer code using a connected graph \(G = (V, E)\) with cycle set \(C\) and check set \(J\) is a structure consisting of:
\(d : \mathbb {N}\), the code distance (number of rounds per phase), with \(d \ge 1\).
A proof that the original stabilizer code checks pairwise commute: for all \(i, j \in J\), \(\operatorname {PauliCommute}(\mathit{checks}(i), \mathit{checks}(j))\).
A gauging input specifying the base vertex and connectivity data.
Deformed code data: edge-paths satisfying boundary conditions.
A cycle parity condition: for each cycle \(c \in C\) and vertex \(v \in V\), the number of edges in the cycle incident to \(v\) is even.
Given a fault-tolerant gauging procedure, a check index \(j \in J\), the last Phase 1 round \(r_{\text{last}}\) with \(r_{\text{last}} + 1 = d\), the first Phase 2 round \(r_{\text{first}} = 0\), and an outcome \(\sigma \in \mathbb {Z}/2\mathbb {Z}\), the deformed initialization detector \(\tilde{s}_j^{t_i}\) is the detector with:
Measurements: \(\{ \texttt{phase1}(j, r_{\text{last}}),\; \texttt{phase2}(\texttt{deformed}(j, r_{\text{first}}))\} \cup \{ \texttt{edgeInit}(e) \mid e \in \gamma _j\} \).
Ideal outcome: \(\sigma \) for the Phase 1 and Phase 2 deformed measurements, \(0\) for edge initializations.
Constraint: \(\sigma + \sigma + \sum 0 = 0\) in \(\mathbb {Z}/2\mathbb {Z}\).
Since \(\tilde{s}_j = s_j \cdot \prod _{e \in \gamma _j} Z_e\) and edge qubits are initialized in \(|0\rangle \) (so \(Z_e \to +1\)), the outcomes of \(s_j\) and \(\tilde{s}_j\) agree. The parameter \(\sigma \) encodes this unknown shared eigenvalue.
Given a fault-tolerant gauging procedure, a check index \(j \in J\), the last Phase 2 round \(r_{\text{last}}\) with \(r_{\text{last}} + 1 = d\), and the first Phase 3 round \(r_{\text{first}} = 0\), the deformed ungauging detector \(\tilde{s}_j^{t_o}\) is the detector with:
Measurements: \(\{ \texttt{phase2}(\texttt{deformed}(j, r_{\text{last}})),\; \texttt{phase3}(\texttt{originalCheck}(j, r_{\text{first}}))\} \cup \{ \texttt{phase3}(\texttt{edgeZ}(e)) \mid e \in \gamma _j\} \).
Ideal outcome: \(0\) for all measurements.
Constraint: \(\tilde{\sigma }_j + \sum z_e + \sigma _j = 0\) in \(\mathbb {Z}/2\mathbb {Z}\), since \(\tilde{s}_j = s_j \cdot \prod _{e \in \gamma _j} Z_e\) implies \(\tilde{\sigma }_j = \sigma _j + \sum z_e\).
The detector index type enumerates all detector generators in the spacetime code. Its constructors are:
\(\texttt{phase1Repeated}(j, r, r', h_r)\): repeated measurement of original check \(s_j\) in Phase 1, at consecutive rounds \(r, r'\) with \(r + 1 = r'\).
\(\texttt{phase2GaussRepeated}(v, r, r', h_r)\): repeated measurement of Gauss check \(A_v\) in Phase 2.
\(\texttt{phase2FluxRepeated}(p, r, r', h_r)\): repeated measurement of flux check \(B_p\) in Phase 2.
\(\texttt{phase2DeformedRepeated}(j, r, r', h_r)\): repeated measurement of deformed check \(\tilde{s}_j\) in Phase 2.
\(\texttt{phase3Repeated}(j, r, r', h_r)\): repeated measurement of original check \(s_j\) in Phase 3.
\(\texttt{fluxInit}(p)\): boundary detector \(B_p^{t_i}\) at gauging step.
\(\texttt{deformedInit}(j)\): boundary detector \(\tilde{s}_j^{t_i}\) at gauging step.
\(\texttt{fluxUngauge}(p)\): boundary detector \(B_p^{t_o}\) at ungauging step.
\(\texttt{deformedUngauge}(j)\): boundary detector \(\tilde{s}_j^{t_o}\) at ungauging step.
No standalone edge-initialization detectors are needed: edge initialization and readout events are covered by the composite boundary detectors.
Given a fault-tolerant gauging procedure, a cycle \(p \in C\), and the first round \(r_{\text{first}}\) with \(r_{\text{first}} = 0\), the flux initialization detector \(B_p^{t_i}\) is the detector with:
Measurements: \(\{ \texttt{edgeInit}(e) \mid e \in \text{cycles}(p)\} \cup \{ \texttt{phase2}(\texttt{flux}(p, r_{\text{first}}))\} \).
Ideal outcome: \(0\) for all measurements.
Constraint: \(\sum 0 = 0\).
Edge qubits initialized in \(|0\rangle \) are \(Z\)-eigenstates with eigenvalue \(+1\) (i.e., \(0\) in \(\mathbb {Z}/2\mathbb {Z}\)). Since \(B_p = \prod _{e \in p} Z_e\) is pure \(Z\)-type, \(B_p\) on these \(|0\rangle \) states gives outcome \(\sum 0 = 0\).
Given a fault-tolerant gauging procedure, a cycle \(p \in C\), and the last round \(r_{\text{last}}\) with \(r_{\text{last}} + 1 = d\), the flux ungauging detector \(B_p^{t_o}\) is the detector with:
Measurements: \(\{ \texttt{phase2}(\texttt{flux}(p, r_{\text{last}}))\} \cup \{ \texttt{phase3}(\texttt{edgeZ}(e)) \mid e \in \text{cycles}(p)\} \).
Ideal outcome: \(0\) for all measurements.
Constraint: \(\beta _p + \sum z_e = 0\) in \(\mathbb {Z}/2\mathbb {Z}\), since \(B_p = \prod _{e \in p} Z_e\) means \(\beta _p = \sum z_e\).
The function \(\mathtt{measurementPhase}\) assigns a phase to each measurement label:
\(\mathtt{phase1}(\_ ) \mapsto \text{preDeformation}\),
\(\mathtt{edgeInit}(\_ ) \mapsto \text{deformedCode}\),
\(\mathtt{phase2}(\_ ) \mapsto \text{deformedCode}\),
\(\mathtt{phase3}(\_ ) \mapsto \text{postDeformation}\).
The function \(\mathtt{measurementTime}\) assigns an integer time step to each measurement label:
\(\mathtt{phase1}(\langle j, r \rangle ) \mapsto r\),
\(\mathtt{edgeInit}(\_ ) \mapsto d\),
\(\mathtt{phase2}(\mathtt{gaussLaw}\; v\; r) \mapsto d + r\); similarly for flux and deformed measurements,
\(\mathtt{phase3}(\mathtt{edgeZ}\; e) \mapsto 2d\); \(\mathtt{phase3}(\mathtt{originalCheck}\; j\; r) \mapsto 2d + r\).
The boundary detector from Phase 1 to Phase 2 for check \(j\) compares the last Phase 1 round measurement \(\mathtt{phase1}(\langle j, r_{\text{last}} \rangle )\) with the first Phase 2 deformed check measurement \(\mathtt{phase2}(\mathtt{deformed}(j, r_{\text{first}}))\), where \(r_{\text{last}} + 1 = d\) and \(r_{\text{first}} = 0\), with ideal outcome \(0\).
For consecutive Phase 1 rounds \(r\) and \(r'\) (with \(r + 1 = r'\)), the repeated measurement detector for check \(j\) compares the outcomes of measuring check \(j\) in rounds \(r\) and \(r'\). It consists of the measurement set \(\{ \mathtt{phase1}(\langle j, r \rangle ), \mathtt{phase1}(\langle j, r' \rangle )\} \) with ideal outcome \(0\) for all measurements.
Given a fault-tolerant gauging procedure, a check index \(j \in J\), consecutive rounds \(r, r' \in \operatorname {Fin}(d)\) with \(r + 1 = r'\), and an outcome \(\sigma \in \mathbb {Z}/2\mathbb {Z}\), the Phase 1 repeated detector is the detector with:
Measurements: \(\{ \texttt{phase1}(j, r),\; \texttt{phase1}(j, r')\} \).
Ideal outcome: \(\sigma \) on both measurements, \(0\) otherwise.
Constraint: \(\sigma + \sigma = 0\) in \(\mathbb {Z}/2\mathbb {Z}\) (by characteristic 2).
The outcome \(\sigma \) represents the unknown but equal eigenvalue of both measurements of the self-inverse check \(s_j\).
The boundary detector from Phase 2 to Phase 3 for check \(j\) compares the last Phase 2 deformed check measurement \(\mathtt{phase2}(\mathtt{deformed}(j, r_{\text{last}}))\) with the first Phase 3 original check measurement \(\mathtt{phase3}(\mathtt{originalCheck}(j, r_{\text{first}}))\), where \(r_{\text{last}} + 1 = d\) and \(r_{\text{first}} = 0\), with ideal outcome \(0\).
The Pauli operator measured for a Phase 2 measurement \(\mathit{dm}\) is:
\(\mathtt{gaussLaw}(v, r) \mapsto \text{gaussLawChecks}(G, v)\),
\(\mathtt{flux}(p, r) \mapsto \text{fluxChecks}(G, \mathit{cycles}, p)\),
\(\mathtt{deformed}(j, r) \mapsto \text{deformedOriginalChecks}(G, \mathit{checks}, \mathit{deformedData}, j)\).
Given a fault-tolerant gauging procedure, a check index \(j \in J\), consecutive rounds \(r, r' \in \operatorname {Fin}(d)\) with \(r + 1 = r'\), and an outcome \(\sigma \in \mathbb {Z}/2\mathbb {Z}\), the Phase 3 repeated detector is the detector with:
Measurements: \(\{ \texttt{phase3}(\texttt{originalCheck}(j, r)),\; \texttt{phase3}(\texttt{originalCheck}(j, r'))\} \).
Ideal outcome: \(\sigma \) on both measurements, \(0\) otherwise.
Constraint: \(\sigma + \sigma = 0\) in \(\mathbb {Z}/2\mathbb {Z}\).
The lifted logical operator \(L_{\mathrm{lift}}\) on \(V \oplus D\) acts as \(X\) on all \(V\)-qubits and as the identity on \(D\)-qubits:
Given an edge vector \(\delta : E(G) \to \mathbb {Z}/2\mathbb {Z}\), the pure-Z edge operator is defined as
i.e., the deformed operator extension of the identity operator \(\mathbf{1}\) with edge-path \(\delta \). This operator acts as the identity on all vertex qubits and applies \(Z_e\) on edge qubit \(e\) whenever \(\delta (e) = 1\).
The type of all measurement labels across the entire fault-tolerant gauging procedure is the inductive type with four constructors:
\(\mathtt{phase1}(m)\): A Phase 1 measurement \(m\).
\(\mathtt{edgeInit}(\mathit{init})\): An edge initialization event.
\(\mathtt{phase2}(m)\): A Phase 2 measurement \(m\).
\(\mathtt{phase3}(m)\): A Phase 3 measurement \(m\).
The byproduct correction at vertex \(v\), given a specific walk \(\gamma \) from \(v_0\) to \(v\), is defined as the walk parity:
Here \(c(v) = 1\) means “apply \(X_v\)” (corresponding to \(\prod _{e \in \gamma } \omega _e = -1\) in \(\pm 1\) notation).
The gauging measurement algorithm: given input data, measurement outcomes, and a choice of walks from \(v_0\) to each vertex, computes the classical output:
\(\operatorname {sign} = \sum _{v \in V} \varepsilon _v\) (the sum of all Gauss outcomes in \(\mathbb {Z}/2\mathbb {Z}\)).
\(\operatorname {correction}(v) = \operatorname {walkParity}(\gamma _v, \omega )\) (the parity of edge outcomes along the walk from \(v_0\) to \(v\)).
The input data for the gauging measurement procedure consists of:
A connected graph \(G = (V, E)\) with \(V\) the support of the logical operator \(L = \prod _{v \in V} X_v\).
A distinguished base vertex \(v_0 \in V\) for byproduct correction.
A proof that \(G\) is connected.
The measurement outcomes from the gauging procedure. We use \(\mathbb {Z}/2\mathbb {Z}\) to represent \(\pm 1\) outcomes (\(0 \leftrightarrow +1\), \(1 \leftrightarrow -1\)):
\(\varepsilon _v \in \mathbb {Z}/2\mathbb {Z}\): the outcome of measuring Gauss’s law operator \(A_v\) for each \(v \in V\).
\(\omega _e \in \mathbb {Z}/2\mathbb {Z}\): the outcome of measuring \(Z_e\) for each \(e \in E\).
The classical output of the gauging measurement algorithm, consisting of:
The measurement sign \(\sigma \in \mathbb {Z}/2\mathbb {Z}\): \(0 \leftrightarrow +1\) eigenvalue of \(L\), \(1 \leftrightarrow -1\) eigenvalue.
The byproduct correction vector \(c : V \to \mathbb {Z}/2\mathbb {Z}\), where \(c(v) = 1\) means apply \(X_v\).
The measurement sign \(\sigma = \sum _{v \in V} \varepsilon _v \in \mathbb {Z}/2\mathbb {Z}\), encoding the product of all Gauss’s law outcomes. This is the measurement result of the logical operator \(L = \prod _{v \in V} X_v\): \(\sigma = 0\) means the \(+1\) eigenvalue, \(\sigma = 1\) means \(-1\).
Given edge measurement outcomes \(\omega \) and a walk \(w\) in \(G\) from \(u\) to \(v\), the walk parity is the \(\mathbb {Z}/2\mathbb {Z}\)-sum of \(\omega (e)\) over all edges \(e\) traversed by the walk:
The \(\sigma \)-dependent projector pair on vertex qubits, representing the Pauli decomposition of \(\mathbf{1} + \sigma L\):
where the first component is the identity operator and the second has \(X\)-vector \(v \mapsto \sigma \) and \(Z\)-vector \(0\). When \(\sigma = 0\), both components are the identity; when \(\sigma = 1\), the second component is \(L|_V\).
Let \(G\) be a simple graph on vertex set \(V\) with edge set \(E(G)\). Given a binary vector \(c : V \to \mathbb {Z}/2\mathbb {Z}\), define the Pauli operator \(\operatorname {gaussSubsetProduct}(c)\) on the extended qubit system \(V \oplus E(G)\) by:
where \(\delta \) denotes the coboundary map. This represents the product \(\prod _{v \in \operatorname {supp}(c)} A_v\) of Gauss’s law operators, yielding \(X_V(c) \cdot X_E(\delta c)\) on the extended system.
A gauging procedure implements a projective measurement of \(L\) if the following conditions hold:
Sign determination: The measurement sign \(\sigma \) equals \(\sum _{v \in V} \varepsilon _v\), the sum of all Gauss outcomes.
Gauss product: \(\prod _{v \in V} A_v = L\).
Preimage structure: For any \(c'\) with \(\delta c' = \omega \), every \(c\) with \(\delta c = \omega \) satisfies \(c = c'\) or \(c = c' + \mathbf{1}\).
Two terms: \(\operatorname {gaussSubsetProduct}(c' + \mathbf{1}) = \operatorname {gaussSubsetProduct}(c') \cdot L\).
Signed outcome additivity: \(\varepsilon (c' + \mathbf{1}) = \varepsilon (c') + \sigma \).
Walk parity preimage: Under the closed-walk-zero-parity condition, \(\delta (\operatorname {walkParityVector}(\gamma , \omega )) = \omega \).
Correction pure \(X\): The byproduct correction operator has \(Z\)-vector \(0\).
Correction commutes with \(L|_V\): The correction is a pure \(X\)-type operator, hence commutes with \(L|_V\).
Correction self-inverse: Applying the correction twice gives the identity.
Walk independence: Under the closed-walk-zero-parity condition, the walk parity vector is independent of the choice of walks.
The signed outcome function \(\varepsilon (c)\) for a binary outcome vector \(\varepsilon : V \to \mathbb {Z}/2\mathbb {Z}\) and subset vector \(c : V \to \mathbb {Z}/2\mathbb {Z}\) is:
This encodes the product \(\prod _{v \in \operatorname {supp}(c)} \varepsilon _v\) of \(\pm 1\) outcomes as an additive quantity in \(\mathbb {Z}/2\mathbb {Z}\).
Given a base vertex \(v_0 \in V\), a family of walks \(\gamma _v : v_0 \leadsto v\) for each \(v \in V\), and an edge outcome vector \(\omega : E(G) \to \mathbb {Z}/2\mathbb {Z}\), the walk parity vector is:
This gives the byproduct correction vector from walk parities.
The three phases of the fault-tolerant gauging procedure form an inductive type with three constructors:
preDeformation: Phase 1, in which the original stabilizer checks are measured.
deformedCode: Phase 2, in which the deformed code checks (Gauss’s law, flux, and deformed original checks) are measured.
postDeformation: Phase 3, in which the edge qubits are ungauged and the original checks are resumed.
The type has decidable equality and is a finite type with exactly three elements.
The cycle incident count of a vertex \(v\) and a cycle \(p\) is the number of edges in \(p\) that are incident to \(v\):
For a valid cycle, this is always even (either \(0\) or \(2\)).
The extended qubit type for a graph \(G = (V,E)\) is the sum type
where \(\operatorname {Sum.inl}(v)\) represents a vertex qubit and \(\operatorname {Sum.inr}(e)\) represents an edge qubit.
The flux operator \(B_p\) on the extended system \(V \oplus E\) is the Pauli operator defined by:
That is, \(B_p = \prod _{e \in p} Z_e\): it acts with \(Z\) on all edge qubits in cycle \(p\).
The Gauss’s law operator \(A_v\) on the extended system \(V \oplus E\) is the Pauli operator defined by:
That is, \(A_v = X_v \prod _{e \ni v} X_e\): it acts with \(X\) on vertex qubit \(v\) and all incident edge qubits.
The logical operator \(L = \prod _{v \in V} X_v\) on the extended system is the Pauli operator defined by:
That is, \(L\) acts with \(X\) on all vertex qubits and with the identity on all edge qubits.
The qudit boundary map \(\partial : \mathbb {Z}_p^E \to \mathbb {Z}_p^V\) generalizes the boundary map from \(\mathbb {Z}_2\) to \(\mathbb {Z}_p\). For \(\gamma \in \mathbb {Z}_p^E\), the value at vertex \(v\) is
This is a \(\mathbb {Z}_p\)-linear map, with linearity verified by distributing sums and scalar multiplication over the conditional summation.
The qudit coboundary map \(\delta : \mathbb {Z}_p^V \to \mathbb {Z}_p^E\) generalizes the coboundary map from \(\mathbb {Z}_2\) to \(\mathbb {Z}_p\). For \(f \in \mathbb {Z}_p^V\) and edge \(e = \{ a,b\} \), the value is
This is a \(\mathbb {Z}_p\)-linear map.
The qudit hypergraph boundary map \(\partial : \mathbb {Z}_p^E \to \mathbb {Z}_p^V\) generalizes both the graph case and the hypergraph case from \(\mathbb {Z}_2\) to \(\mathbb {Z}_p\). For \(\gamma \in \mathbb {Z}_p^E\),
where \(v \sim e\) means \(v\) is incident to hyperedge \(e\).
The qudit hypergraph coboundary map \(\delta : \mathbb {Z}_p^V \to \mathbb {Z}_p^E\) generalizes the hypergraph coboundary from \(\mathbb {Z}_2\) to \(\mathbb {Z}_p\). For \(f \in \mathbb {Z}_p^V\),
The qudit second boundary map \(\partial _2 : \mathbb {Z}_p^C \to \mathbb {Z}_p^E\) generalizes the second boundary map from \(\mathbb {Z}_2\) to \(\mathbb {Z}_p\). For \(\sigma \in \mathbb {Z}_p^C\), the value at edge \(e\) is
The qudit second coboundary map \(\delta _2 : \mathbb {Z}_p^E \to \mathbb {Z}_p^C\) generalizes the second coboundary map from \(\mathbb {Z}_2\) to \(\mathbb {Z}_p\). For \(\gamma \in \mathbb {Z}_p^E\), the value at cycle \(c\) is
The boundary map \(\partial : \mathbb {Z}_2^E \to \mathbb {Z}_2^V\) is the \(\mathbb {Z}_2\)-linear map defined as follows. For \(\gamma \in \mathbb {Z}_2^E\) and a vertex \(v \in V\),
Let \(C\) be a finite type of “cycles” (or plaquettes), and let each \(c \in C\) be associated with a set of edges \(\operatorname {cycles}(c) \subseteq E\). The second boundary map \(\partial _2 : \mathbb {Z}_2^C \to \mathbb {Z}_2^E\) is the \(\mathbb {Z}_2\)-linear map defined by: for \(\sigma \in \mathbb {Z}_2^C\) and an edge \(e \in E\),
The second coboundary map \(\delta _2 : \mathbb {Z}_2^E \to \mathbb {Z}_2^C\) is the \(\mathbb {Z}_2\)-linear map defined by: for \(\gamma \in \mathbb {Z}_2^E\) and a cycle \(c \in C\),
The 7 independent cycles for the flux checks, given as lists of vertices. Each list \([v_1, v_2, \ldots , v_k]\) represents the cycle \(v_1 \to v_2 \to \cdots \to v_k \to v_1\):
\([(9,0),\, (7,3),\, (8,0)]\)
\([(9,0),\, (11,3),\, (7,3)]\)
\([(6,0),\, (7,0),\, (5,3)]\)
\([(6,0),\, (2,0),\, (5,3)]\)
\([(3,0),\, (2,0),\, (5,3)]\)
\([(6,0),\, (7,0),\, (8,0),\, (7,3)]\)
\([(1,0),\, (2,0),\, (5,3),\, (11,3)]\)
The gauging graph \(G\) for measuring \(\bar{X}_\alpha \) in the Gross code is the simple graph on \(\operatorname {GrossMonomial} = \mathbb {Z}_{12} \times \mathbb {Z}_6\) with adjacency given by \(\operatorname {gaugingAdj}\). The “active” vertices are \(\operatorname {supp}(f)\).
A monomial difference \(d\) is a matching difference if \(d = -B_i + B_j\) for some distinct terms \(B_i, B_j\) of \(B = y^3 + x^2 + x\), where the terms of \(B\) are \((0,3)\), \((2,0)\), and \((1,0)\) in \(\mathbb {Z}_{12} \times \mathbb {Z}_6\), and \(d \neq 0\).
Two monomials \(\gamma \) and \(\delta \) form a matching edge if both are in \(\operatorname {supp}(f)\) (i.e., \(f(\gamma ) \neq 0\) and \(f(\delta ) \neq 0\)) and their difference \(\gamma - \delta \) is a matching difference. This corresponds to \(\gamma \) and \(\delta \) sharing a \(Z\) check.
The hypergraph boundary map \(\partial : \mathbb {Z}_2^E \to \mathbb {Z}_2^V\) is the \(\mathbb {Z}_2\)-linear map defined by
for \(\gamma \in \mathbb {Z}_2^E\) and \(v \in V\). This generalizes the graph boundary map: for graphs, each edge is incident to exactly two vertices; for hypergraphs, a hyperedge can be incident to any nonempty set of vertices.
The hypergraph coboundary map \(\delta : \mathbb {Z}_2^V \to \mathbb {Z}_2^E\) is the transpose of \(\partial \). For \(f \in \mathbb {Z}_2^V\),
The hypergraph Gauss’s law operator \(A_v\) on the extended system \(V \oplus E\) is defined as the Pauli operator with
i.e., its \(X\)-vector is \((\operatorname {xVec})_q = \begin{cases} 1 & \text{if } q = \operatorname {inl}(v), \\ 1 & \text{if } q = \operatorname {inr}(e) \text{ and } \operatorname {incident}(v,e), \\ 0 & \text{otherwise,} \end{cases}\) and its \(Z\)-vector is identically zero.
The Gauss subset product for a vector \(c \in \mathbb {Z}_2^V\) is the product \(\prod _{v : c_v = 1} A_v\), defined as the Pauli operator on \(V \oplus E\) with
and \(\operatorname {zVec} = 0\). On vertex qubits the \(X\)-vector is \(c\); on edge qubits it equals the coboundary \(\delta c\).
Given a hypergraph incidence relation \(\operatorname {incident} : V \to E \to \operatorname {Prop}\) and a vertex \(v \in V\), the set of hyperedges incident to \(v\) is
Given an edge vector \(\gamma \in \mathbb {Z}_2^E\), the pure-\(Z\) hyperedge operator on \(V \oplus E\) acts as \(Z\) on hyperedge qubit \(e\) if and only if \(\gamma _e = 1\). Formally, \(\operatorname {xVec} = 0\) and
Given an edge vector \(\gamma \in \mathbb {Z}_2^E\), the corresponding \(X\)-type operator on vertex qubits \(V\) is
defined as the Pauli operator with \(\operatorname {xVec} = \partial \gamma \) and \(\operatorname {zVec} = 0\).
An initialization-measurement detector is formed from an initialization event \(m_{\mathrm{init}}\) and a later measurement \(m_{\mathrm{meas}}\) with \(m_{\mathrm{init}} \neq m_{\mathrm{meas}}\), both having the same ideal outcome \(o\). Per Definition 7, initializations are treated as measurements, so this forms a valid detector with measurements \(\{ m_{\mathrm{init}}, m_{\mathrm{meas}}\} \) and ideal outcome \(o\) on both, satisfying the constraint \(o + o = 0\) in \(\mathbb {Z}/2\mathbb {Z}\).
Let \(\alpha \) be a type with decidable equality and let \(\{ \text{generators}_i\} _{i \in \iota }\) be a family of finsets over \(\alpha \). A finset \(S\) is \(\mathbb {Z}_2\)-generated by the generators if \(S\) can be obtained from \(\emptyset \) by iterated symmetric differences with generators. Formally, this is defined inductively:
\(\emptyset \) is generated.
If \(S\) is generated, then \(S \mathbin {\triangle } \text{generators}_i\) is generated for any \(i \in \iota \).
A stabilizer code \(C\) is a quantum low-density parity-check (qLDPC) code with parameters \((w, c)\) if:
Each check has weight bounded by \(w\): \(\forall \, i \in I,\; \operatorname {checkWeight}(C, i) \leq w\),
Each qubit participates in at most \(c\) checks: \(\forall \, v \in V,\; \operatorname {qubitDegree}(C, v) \leq c\).
For a Pauli operator \(P\) on the extended qubit system \(V \oplus E\), the Z-support restricted to vertices is defined as
This captures the Z-support on the vertex qubits only.
Given an ideal measurement outcome function \(\operatorname {ideal} : M \to \mathbb {Z}/2\mathbb {Z}\) and a set of time-faults, the observed outcome for measurement \(m\) is:
A time-fault on measurement \(m\) flips the observed outcome.
Given a Pauli operator \(P\) on \(V\), define its lift to the extended qubit space \(V \oplus E(G)\) by
i.e., \(P\) acts on vertex qubits as before and acts as the identity on all edge qubits.
A family of Pauli operators \((P_i)_{i \in \operatorname {Fin}(m)}\) satisfies the parallel LDPC bound with constant \(c\) if every qubit participates in at most \(c\) of the operators’ supports:
For a family of Pauli operators \((P_i)_{i \in \operatorname {Fin}(m)}\) and a qubit \(v \in V\), the qubit participation count is the number of operators whose support contains \(v\):
Two Pauli operators \(P, Q\) have same-type overlap if on every shared support qubit \(v \in \operatorname {supp}(P) \cap \operatorname {supp}(Q)\), either both have vanishing \(Z\)-component (\(P.\mathrm{zVec}(v) = 0 \land Q.\mathrm{zVec}(v) = 0\)) or both have vanishing \(X\)-component (\(P.\mathrm{xVec}(v) = 0 \land Q.\mathrm{xVec}(v) = 0\)).
A Pauli operator on qubits labeled by a type \(V\) is represented as a pair of binary vectors \((\mathtt{xVec}, \mathtt{zVec}) \in (\mathbb {Z}/2\mathbb {Z})^V \times (\mathbb {Z}/2\mathbb {Z})^V\). The pair \((x, z)\) represents the Pauli operator \(\bigotimes _v X_v^{x_v} Z_v^{z_v}\). At each site \(v\):
\((0, 0)\) means the identity \(I\),
\((1, 0)\) means \(X\),
\((0, 1)\) means \(Z\),
\((1, 1)\) means \(Y\) (up to phase).
Let \(V\) be a finite type. The symplectic inner product of two Pauli operators \(P, Q : \operatorname {PauliOp}(V)\) is defined as
This determines commutation in the full Pauli group: \(P\) and \(Q\) commute if and only if \(\langle P,Q\rangle _{\mathrm{symp}} = 0\).
Given code distance \(d\) and a time step \(t \in \mathbb {N}\), the function \(\operatorname {phaseOf}(d, t)\) determines which phase \(t\) belongs to:
A Phase 3 measurement label for check set \(J\), edge set \(E\), and code distance \(d\) is one of:
\(\mathtt{edgeZ}(e)\): The \(Z_e\) measurement on edge qubit \(e \in E\) to ungauge.
\(\mathtt{originalCheck}(j, r)\): Original check \(j \in J\) measured in round \(r \in \operatorname {Fin}(d)\).
A Phase 1 measurement label for a code with check index set \(J\) and code distance \(d\) is a pair
recording which original stabilizer check \(j \in J\) is measured in which round \(r \in \{ 0, \ldots , d-1\} \).
The adjacency relation for the bridge graph on \(V \oplus V\). Two vertices \(p, q \in V \oplus V\) are adjacent if:
Both in copy 1 (\(\operatorname {inl}(v)\), \(\operatorname {inl}(w)\)): \(G.\operatorname {Adj}(v, w)\),
Both in copy 2 (\(\operatorname {inr}(v)\), \(\operatorname {inr}(w)\)): \(G.\operatorname {Adj}(v, w)\),
Across copies (\(\operatorname {inl}(v)\), \(\operatorname {inr}(w)\) or vice versa): \(v = w\) and \(v \in \operatorname {bridges}\).
The grid graph connecting two boundary edges with \(D\) columns of dummy ancillas. Column \(0\) is boundary \(1\), column \(D+1\) is boundary \(2\), and columns \(1, \ldots , D\) are dummy ancillas. This is a simple graph on \(\mathrm{Fin}\, n \times \mathrm{Fin}\, (D+2)\).
The adjacency relation for the grid graph on \(n \times (D+2)\) vertices. Vertices are \(\mathrm{Fin}\, n \times \mathrm{Fin}\, (D+2)\). Two vertices \(p = (r_1, c_1)\) and \(q = (r_2, c_2)\) are adjacent if \(p \neq q\) and either:
Horizontal: \(r_1 = r_2\) and \(|c_1 - c_2| = 1\) (same row, adjacent columns), or
Vertical: \(c_1 = c_2\) and \(|r_1 - r_2| = 1\) (same column, adjacent rows).
The adjacency relation for the ladder graph on \(2n\) vertices. The vertex set is \(\mathrm{Bool} \times \mathrm{Fin}\, n\). Two vertices \(p = (b_1, i)\) and \(q = (b_2, j)\) are adjacent if \(p \neq q\) and either:
Rung: \(b_1 \neq b_2\) and \(i = j\) (same position, different boundary), or
Rail: \(b_1 = b_2\) and \(|i - j| = 1\) (same boundary, consecutive positions).
The ladder graph connecting two boundary qubit sets of size \(n\). It is a simple graph on the vertex set \(\mathrm{Bool} \times \mathrm{Fin}\, n\) (\(2n\) vertices total), with adjacency given by \(\operatorname {ladderAdj}\): edges consist of rungs (across boundaries) and rails (within each boundary).
A repeated measurement detector is formed from two consecutive measurements \(m_1 \neq m_2\) of the same stabilizer check with common ideal outcome \(o \in \mathbb {Z}/2\mathbb {Z}\). The detector has:
measurements \(= \{ m_1, m_2\} \),
ideal outcome \(f(m) = o\) if \(m = m_1\) or \(m = m_2\), and \(0\) otherwise.
The detector constraint holds because \(o + o = 0\) in \(\mathbb {Z}/2\mathbb {Z}\).
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 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}}\).
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 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 edge boundary of a vertex subset \(S\) in a simple graph \(G = (V, E)\) is the set of edges with exactly one endpoint in \(S\). Formally,
where \(e_{\mathrm{set}}\) denotes the underlying two-element set of the edge \(e\).
Given a Pauli operator \(P\) on the extended qubit space \(V \oplus E\), the restriction to vertex qubits \(\operatorname {restrictToV}(P)\) is the Pauli operator on \(V\) defined by
A space-fault (or space error) on a qubit set \(Q\) at times \(T\) is a structure consisting of:
a qubit \(q \in Q\) where the error occurs,
a time \(t \in T\) at which the error occurs,
an \(X\)-component \(x \in \mathbb {Z}/2\mathbb {Z}\) (equal to \(1\) if the error has an \(X\) or \(Y\) component, \(0\) otherwise),
a \(Z\)-component \(z \in \mathbb {Z}/2\mathbb {Z}\) (equal to \(1\) if the error has a \(Z\) or \(Y\) component, \(0\) otherwise),
a nontriviality condition: \(x \neq 0\) or \(z \neq 0\).
This encodes a single-qubit Pauli error (\(X\), \(Y\), or \(Z\)) at a specific qubit and time.
The full outcome-preserving predicate for the fault-tolerant gauging procedure. A spacetime fault \(F\) preserves the outcome if both:
The gauging sign \(\sigma \) is preserved (no time-logical effect), i.e., \(\operatorname {PreservesGaugingSign}(\mathrm{proc}, F)\), AND
The net Pauli error at \(t_i\) is in the deformed stabilizer group (no space-logical effect), i.e., \(F.\operatorname {pauliErrorAt}(\mathrm{proc}.\mathrm{phase2Start}) \in \mathcal{S}(\text{deformedCode})\).
This captures the paper’s Def 11: a spacetime stabilizer leaves both the classical measurement record and the quantum code state unchanged.
A spacetime logical fault under the full outcome predicate: the fault is syndrome-free and changes the outcome (either flips the gauging sign or applies a nontrivial logical operator to the code state). Formally, \(\operatorname {IsFullGaugingLogicalFault}(\mathrm{proc}, F) := \operatorname {IsGaugingLogicalFault}(\mathrm{proc}, \mathrm{proc}.\mathrm{detectorOfIndex}, \operatorname {FullOutcomePreserving}(\mathrm{proc}), F)\).
A spacetime stabilizer under the full outcome predicate: the fault is syndrome-free and preserves both the gauging sign and the code state. Formally, \(\operatorname {IsFullGaugingStabilizer}(\mathrm{proc}, F) := \operatorname {IsGaugingStabilizer}(\mathrm{proc}, \mathrm{proc}.\mathrm{detectorOfIndex}, \operatorname {FullOutcomePreserving}(\mathrm{proc}), F)\).
A space-only logical fault: a spacetime fault \(F\) such that
\(F\) is pure-space (no time-faults),
all space-faults are concentrated at time \(t_i\): for all \(t \neq \mathrm{proc}.\mathrm{phase2Start}\), \(F.\operatorname {spaceFaultsAt}(t) = \emptyset \),
the composite Pauli error at \(t_i\) is a nontrivial logical of the deformed code: \(\operatorname {isLogicalOp}(\text{deformedCode}, F.\operatorname {pauliErrorAt}(t_i))\).
The deformed stabilizer code at the gauging time \(t_i\), constructed from the fault-tolerant gauging procedure’s data. Given a procedure \(\mathrm{proc}\), the deformed code is defined as the deformed stabilizer code built from the procedure’s deformed data and cycle parity, using the commutativity of the original checks.
A spacetime fault on qubit set \(Q\), time set \(T\), and measurement set \(M\) is a structure consisting of:
a finite set \(\texttt{spaceFaults} \subseteq \operatorname {Finset}(\operatorname {SpaceFault}(Q, T))\) of space-faults,
a finite set \(\texttt{timeFaults} \subseteq \operatorname {Finset}(\operatorname {TimeFault}(M))\) of time-faults.
This represents a collection of Pauli errors on qubits at specific times together with measurement errors.
The composition of two spacetime faults \(F_1\) and \(F_2\) is defined via the symmetric difference:
This captures the fact that applying the same error twice cancels it, and flipping an outcome twice restores it.
The equivalent space-fault view of an initialization error on qubit \(q\) at time \(t\): this is \(\operatorname {ofSpaceFault}(\langle q, t, 1, 0, \cdot \rangle )\), representing a perfect initialization followed by a Pauli \(X\) error (since \(x\)-component is \(1\) and \(z\)-component is \(0\)).
The composite Pauli error at time \(t\) of a spacetime fault \(F\) on the qubit system \(Q\) is the Pauli operator \(P \in \operatorname {PauliOp}(Q)\) defined by:
The sums are taken in \(\mathbb {Z}/2\mathbb {Z}\).
Given a fault-tolerant gauging procedure \(\mathrm{proc}\), a collection of detectors indexed by \(\operatorname {DetectorIndex}\), and an outcome-preserving predicate, the set of gauging logical fault weights is
The sign flip indicator for the fault-tolerant gauging procedure is defined as the parity of time-faults that affect Gauss’s law measurements:
computed in \(\mathbb {Z}/2\mathbb {Z}\). The gauging sign \(\sigma = \sum _v \varepsilon _v\), and a time-fault on a Gauss measurement flips one \(\varepsilon _v\).
A gauging logical fault is a spacetime fault in the gauging procedure that is syndrome-free AND changes the outcome:
A gauging stabilizer is a spacetime fault in the gauging procedure that is syndrome-free AND preserves the outcome:
A spacetime fault \(F\) is outcome-preserving with respect to a predicate \(\operatorname {outcomePreserving}\) if \(\operatorname {outcomePreserving}(F)\) holds. This means the net effect of \(F\) on the procedure is trivial: it preserves both the measurement sign and the logical information in the post-measurement state.
A spacetime logical fault is a spacetime fault \(F\) satisfying:
\(\operatorname {IsSyndromeFree}(\delta , F)\): No detector is violated (syndrome is empty).
\(\operatorname {IsOutcomeChanging}(F)\): The fault changes the measurement result or applies a non-trivial logical operator to the post-measurement state.
A spacetime stabilizer is a spacetime fault \(F\) satisfying:
\(\operatorname {IsSyndromeFree}(\delta , F)\): No detector is violated (syndrome is empty).
\(\operatorname {IsOutcomePreserving}(F)\): The fault preserves both the measurement result and the logical information in the post-measurement state.
A spacetime fault \(F\) is syndrome-free with respect to a collection of detectors \((\delta _i)_{i \in I}\) if the syndrome is empty, i.e.,
Equivalently, no detector is violated by the time-faults of \(F\).
A spacetime fault \(F\) is syndrome-free in the gauging procedure if no detector from the spacetime code is violated:
Here the detector index type is the specialized \(\operatorname {DetectorIndex}\; V\; C\; J\; G.\! \operatorname {edgeSet}\; d\) from the fault-tolerant gauging procedure.
An initialization fault \(+ X_e\) generator is a structure \((\mathsf{IsInitXeGen}\ \mathrm{proc}\ e\ F)\) for an edge \(e\) and spacetime fault \(F\), consisting of a \(|0\rangle _e\) initialization fault at time \(t_i - \tfrac {1}{2}\) paired with an \(X_e\) Pauli fault at the gauging start time \(t_i\). Formally:
\(F.\mathrm{timeFaults} = \{ \langle \mathrm{edgeInit}\ e \rangle \} \),
\(F.\mathrm{pauliErrorAt}(\mathrm{phase2Start}) = X_e\),
For all \(t' \neq \mathrm{phase2Start}\), \(F.\mathrm{spaceFaultsAt}(t') = \emptyset \).
Together, the initialization fault and \(X_e\) cancel in every detector involving edge \(e\).
A spacetime fault \(F\) is a listed generator \((\mathsf{IsListedGenerator}\ \mathrm{proc}\ F)\) if it falls into one of the following categories, organized by time phase:
Phase 1 & 3 – Original check: \(F\) is a space stabilizer generator for an original check \(\tilde{s}_j\) at time \(t\) with \(t {\lt} t_i\) or \(t \geq t_o\).
Phase 1 & 3 – Time-propagating: \(F\) is a time-propagating generator with Pauli \(P\) at time \(t\) with \(t {\lt} t_i\) or \(t \geq t_o\).
Phase 2 – Deformed check: \(F\) is a space stabilizer generator for a deformed check \(\mathrm{allChecks}(\mathrm{ci})\) at time \(t\) with \(t_i {\lt} t {\lt} t_o\).
Phase 2 – Time-propagating \(X_v\): at time \(t\) with \(t_i \leq t {\lt} t_o\).
Phase 2 – Time-propagating \(Z_v\): at time \(t\) with \(t_i \leq t {\lt} t_o\).
Phase 2 – Time-propagating \(X_e\): at time \(t\) with \(t_i \leq t {\lt} t_o\).
Phase 2 – Time-propagating \(Z_e\): at time \(t\) with \(t_i \leq t {\lt} t_o\).
Gauging (\(t = t_i\)) – Original check \(s_j\): space stabilizer at \(t_i\).
Gauging (\(t = t_i\)) – \(Z_e\): space stabilizer at \(t_i\).
Gauging (\(t = t_i\)) – Init \(+ X_e\): initialization fault paired with \(X_e\).
Gauging (\(t = t_i\)) – \(Z_e + A_v\): \(Z_e\) at \(t_i + 1\) with \(A_v\) measurement faults.
Ungauging (\(t = t_o\)) – Deformed check: space stabilizer at \(t_o\).
Ungauging (\(t = t_o\)) – Readout \(X_e\): \(X_e\) paired with \(Z_e\) readout fault.
Ungauging (\(t = t_o\)) – Bare \(Z_e\): space stabilizer at \(t_o\).
Ungauging (\(t = t_o\)) – \(Z_e + A_v\): \(Z_e\) at \(t_o - 1\) with \(A_v\) measurement faults.
Ungauging (\(t = t_o\)) – Time-propagating: at the \(t_o\) boundary.
A readout \(X_e\) generator is a structure \((\mathsf{IsReadoutXeGen}\ \mathrm{proc}\ e\ F)\) for an edge \(e\) and spacetime fault \(F\), consisting of Pauli \(X_e\) at ungauging time \(t_o\) paired with a \(Z_e\) readout measurement fault at \(t_o + \tfrac {1}{2}\). Formally:
\(F.\mathrm{timeFaults} = \{ \langle \mathrm{phase3}\ (\mathrm{edgeZ}\ e) \rangle \} \),
\(F.\mathrm{pauliErrorAt}(\mathrm{phase3Start}) = X_e\),
For all \(t' \neq \mathrm{phase3Start}\), \(F.\mathrm{spaceFaultsAt}(t') = \emptyset \).
The \(X_e\) flips the \(Z_e\) eigenvalue, and the \(Z_e\) readout measurement fault compensates, so the correct \(Z_e\) value is effectively recorded.
A space-only stabilizer generator is a structure \((\mathsf{IsSpaceStabilizerGen}\ \mathrm{proc}\ P\ t\ F)\) asserting that a spacetime fault \(F\) consists of a single check operator \(P\) applied as an error at time \(t\), with no measurement faults. Formally:
\(F.\mathrm{timeFaults} = \emptyset \),
\(F.\mathrm{pauliErrorAt}(t) = P\),
For all \(t' \neq t\), \(F.\mathrm{spaceFaultsAt}(t') = \emptyset \).
This is used for: original checks \(s_j\), deformed checks \(\tilde{s}_j / A_v / B_p\), and \(Z_e\) at initialization or readout times.
A time-propagating generator is a structure \((\mathsf{IsTimePropagatingGen}\ \mathrm{proc}\ P\ t\ F)\) asserting that \(F\) has Pauli error \(P\) at times \(t\) and \(t+1\), together with measurement faults on all checks that anticommute with \(P\) at time \(t + \tfrac {1}{2}\). Formally:
\(F.\mathrm{pauliErrorAt}(t) = P\),
\(F.\mathrm{pauliErrorAt}(t+1) = P\),
For all \(t' \neq t\) and \(t' \neq t+1\), \(F.\mathrm{spaceFaultsAt}(t') = \emptyset \),
\(F\) is syndrome-free for the gauging procedure.
The measurement faults ensure syndrome-freeness: each detector spanning time \(t + \tfrac {1}{2}\) has two violations (one from the Pauli error, one from the measurement fault) that cancel via \((-1) \times (-1) = +1\). The net Pauli effect is \(P \cdot P = I\), so the logical outcome is preserved.
A \(Z_e + A_v\) measurement fault generator is a structure \((\mathsf{IsZeAvMeasGen}\ \mathrm{proc}\ e\ t\ r\ F)\) for an edge \(e\), time \(t\), and round \(r\). It consists of Pauli \(Z_e\) at time \(t\) together with \(A_v\) measurement faults for both endpoints \(v \in e\) at measurement round \(r\). Formally:
\(F.\mathrm{pauliErrorAt}(t) = Z_e\),
For all \(t' \neq t\), \(F.\mathrm{spaceFaultsAt}(t') = \emptyset \),
\(F.\mathrm{timeFaults}\) equals the image of the set of vertices \(v \in e\) under the map \(v \mapsto \langle \mathrm{phase2}\ (\mathrm{gaussLaw}\ v\ r) \rangle \).
Since \(Z_e\) anticommutes with \(A_v\) for exactly the two endpoints \(v \in e\), the measurement faults cancel the two detector violations.
A stabilizer code on qubits labeled by a finite type \(V\) consists of:
A finite index type \(I\) for stabilizer checks,
A map \(\operatorname {check} : I \to \operatorname {PauliOp}(V)\) assigning a Pauli operator to each check index,
A commutativity condition: for all \(i, j \in I\), \(\operatorname {PauliCommute}(\operatorname {check}(i), \operatorname {check}(j))\).
The code distance of a stabilizer code \(C\) is the minimum weight of a non-trivial logical operator:
If no logical operators exist, this returns \(0\).
A Pauli operator \(P\) is in the centralizer of a stabilizer code \(C\) if it commutes (in the full Pauli group) with every stabilizer check:
The stabilizer group \(S\) of a stabilizer code \(C\) is the subgroup of \(\operatorname {PauliOp}(V)\) generated by the set of checks \(\{ \operatorname {check}(i) \mid i \in I\} \):
The adjacency relation for the perfect matching graph on vertex set \(\operatorname {Fin}(n) \oplus \operatorname {Fin}(n)\): data qubit \(\operatorname {inl}(i)\) is adjacent to ancilla qubit \(\operatorname {inr}(i)\) (and vice versa), with no other edges. Formally, \(p \sim q\) iff there exists \(i : \operatorname {Fin}(n)\) such that \((p = \operatorname {inl}(i) \land q = \operatorname {inr}(i))\) or \((p = \operatorname {inr}(i) \land q = \operatorname {inl}(i))\).
Let \(I\) be a finite type indexing a collection of detectors \(\{ D_i\} _{i \in I}\), and let \(F\) be a spacetime fault. The syndrome fault set of \(F\) with respect to the detectors is the finset of detector indices that are violated by \(F\):
Since detectors depend only on measurement outcomes and only time-faults flip outcomes, the syndrome is determined by the time-fault component of \(F\).
The syndrome vector of a spacetime fault \(F\) with respect to detectors \(\{ D_i\} _{i \in I}\) is the binary vector \(s \colon I \to \mathbb {Z}_2\) defined by
This is the \(\mathbb {Z}_2^m\) representation of the syndrome.
A time-fault (or measurement error) on a measurement set \(M\) is a structure consisting of a single field:
a measurement \(m \in M\) whose outcome is reported incorrectly (i.e., \(+1\) is reported as \(-1\) or vice versa).
By convention, state mis-initialization faults are also modeled as time-faults: initializing \(|0\rangle \) but obtaining \(|1\rangle \) is equivalent to a perfect initialization followed by a Pauli \(X\) error.
The Gauss fault count for vertex \(v\) in a spacetime fault \(F\) is the number of rounds \(r \in \operatorname {Fin}(d)\) at which the \(A_v\) measurement at round \(r\) is a time-fault:
For a vertex \(v \in V\), the Gauss measurement faults \(\operatorname {gaussMeasFaults}(v)\) is the set of time-faults corresponding to the \(A_v\) measurement at all \(d\) rounds of Phase 2:
A spacetime fault \(F\) is a pure-time gauging logical fault if it is both a pure-time fault and a gauging logical fault:
Phase 1 measurements are covered by repeated or boundary detectors:
If \(r + 1 {\lt} d\), then \(\texttt{phase1}(j, r)\) is in the Phase 1 repeated detector for \((j, r, r+1)\).
If \(r + 1 = d\), then \(\texttt{phase1}(j, r)\) is in the deformed initialization detector for \(j\).
Phase 2 deformed measurements are covered by init, ungauge, or repeated detectors:
If \(r = 0\), the measurement is in the deformed init detector.
If \(r + 1 = d\), the measurement is in the deformed ungauge detector.
If \(r + 1 {\lt} d\), the measurement is in a deformed repeated detector.
For any check \(j \in J\), round \(r\), and edge \(e \in E(G)\), the Phase 2 deformed check operator has zero \(X\)-component on edge qubit \(e\):
Phase 2 flux measurements are covered by init, ungauge, or repeated detectors:
If \(r = 0\), the measurement is in the flux init detector.
If \(r + 1 = d\), the measurement is in the flux ungauge detector.
If \(r + 1 {\lt} d\), the measurement is in a flux repeated detector.
Phase 2 Gauss measurements are covered by Gauss repeated detectors (assuming \(d \geq 2\)):
If \(r + 1 {\lt} d\), then \(\texttt{phase2}(\texttt{gaussLaw}(v, r))\) is in the forward repeated detector.
If \(0 {\lt} r\), then it is in the backward repeated detector pairing round \(r-1\) with \(r\).
For an adjacency \(h : G.\mathrm{Adj}(u, v)\) and a walk \(p\) from \(v\) to \(w\), the walk parity of the extended walk \(\operatorname {cons}(h, p)\) satisfies:
The existence of a boundary condition for \(P\) is equivalent to the Z-support on vertices being in the image of the boundary map:
If measurement \(m\) is affected by a time-fault (i.e., \(\langle m \rangle \in \texttt{faults}\)), then the observed outcome differs from the ideal outcome:
If measurement \(m\) is not affected by any time-fault (i.e., \(\langle m \rangle \notin \texttt{faults}\)), then the observed outcome equals the ideal outcome:
If measurement \(m\) is affected by a time-fault (i.e., \(\langle m \rangle \in \texttt{faults}\)), thenthe observed outcome is the ideal outcome plus \(1\):
Let \(P\) be a Pauli operator on \(V\) and \(j\) a check index such that \(P\) commutes with the original check \(\operatorname {checks}(j)\). Then \(\operatorname {liftToExtended}(P)\) commutes with the deformed original check \(\operatorname {deformedOriginalChecks}(j)\).
For any Pauli operator \(L'\) on \(V \oplus E\), function \(c : V \to \mathbb {Z}/2\mathbb {Z}\), and edge \(e \in E(G)\):
where \(\delta \) denotes the coboundary map.
Let \(\bar{L}\) be a Pauli operator on \(V \oplus E\) with \(\bar{L}.\mathbf{x}(\operatorname {inr}(e)) = 0\) for all edges \(e\). Then for any original check index \(j\):
where \(\tilde{s}_j\) denotes the deformed original check and \(s_j\) the original check.
For a Pauli operator \(P\) on \(V \oplus E\):
For a Pauli operator \(P\) on \(V \oplus E\):
Under the CSS condition \(AB^T = BA^T\), for all \(\alpha , \beta \in M\), the X check at \(\alpha \) commutes with the Z check at \(\beta \). In fact, for BB codes over abelian groups the commutation is automatic: each sum equals the convolution evaluated at \(\beta - \alpha \), and by commutativity of convolution their sum vanishes in characteristic \(2\).
The X check at \(\alpha \) commutes with the Z check at \(\beta \) if and only if
This is the condition \(H_X \cdot H_Z^T = 0\), equivalently \(AB^T = BA^T\).
The CSS condition \(AB^T = BA^T\) is equivalent to: for every \(\gamma \in M\),
This ensures the parity check matrices \(H_X\) and \(H_Z\) satisfy \(H_X \cdot H_Z^T = 0\).
The symplectic inner product of \(X(p_1, q_1)\) and \(Z(p_2, q_2)\) equals
which is \(\langle p_1, p_2 \rangle + \langle q_1, q_2 \rangle \) where \(\langle \cdot , \cdot \rangle \) is the standard inner product in \(\mathbb {Z}/2\mathbb {Z}\).
The all-or-none property (each vertex has \(0\) or \(d\) Gauss faults) is enforced by Phase 2 repeated Gauss detectors. Given any syndrome-free fault \(F\), the Gauss fault count for each vertex \(v\) satisfies
This uses only Phase 2’s repeated Gauss detectors, not Phases 1 or 3.
The boundary detector at \(t_i\) connects the last Phase 1 round to the first Phase 2 round for deformed checks. It includes exactly one measurement from Phase 1 (the last round \(r = d-1\)) and one from Phase 2 (the first round \(r = 0\)), plus edge initialization events. Specifically, for \(d \geq 2\) and any check index \(j\), the Phase 1 measurement at round \(r_{\mathrm{last}} = d-1\) belongs to the measurements of the deformed initialization detector.
The boundary detector at \(t_o\) connects the last Phase 2 round to the first Phase 3 round for deformed checks. It includes exactly one measurement from Phase 2 (the last round \(r = d-1\)) and one from Phase 3 (the first round \(r = 0\)), plus edge \(Z\) readout events. Specifically, for \(d \geq 2\) and any check index \(j\), the Phase 3 measurement at round \(r_{\mathrm{first}} = 0\) belongs to the measurements of the deformed ungauge detector.
The key fault-distance mechanisms and their phase dependence are summarized as follows. For any vertex \(v\), check index \(j\), and syndrome-free fault \(F\):
All-or-none is Phase 2 only: \(\operatorname {gaussFaultCount}(v, F) = 0 \; \lor \; \operatorname {gaussFaultCount}(v, F) = d\).
Boundary detector uses 1 Phase 1 measurement: The Phase 1 measurement at round \(r = d-1\) belongs to the deformed initialization detector’s measurements.
Boundary detector uses 1 Phase 3 measurement: The Phase 3 measurement at round \(r = 0\) belongs to the deformed ungauge detector’s measurements.
The \(d\) boundary rounds are conservative: a constant number of boundary rounds would preserve the essential detector coverage structure.
The full measurement coverage theorem requires \(d \geq 2\). With \(d = 1\), there are no repeated detectors within Phase 1 or Phase 3 (since there is only one round each), but the boundary detectors still cover the single boundary measurement. The condition \(d \geq 2\) comes from needing at least 2 rounds for the repeated Gauss detectors in Phase 2. Formally, for \(d \geq 2\) and assuming every edge is covered by some cycle, every measurement label \(m\) belongs to some detector:
Theorem 2 uses the full \(d\)-round structure to establish \(d_{\mathrm{spacetime}} = d\). Under the hypotheses that the original code has distance \(d\), the graph \(G\) is connected with \(|V| \geq 2\), the cycle/boundary exactness conditions hold, the graph has sufficient expansion, the deformed code has logical operators, and a minimum-weight pure-\(X\) logical operator exists that does not become a deformed stabilizer, the gauging spacetime fault distance equals \(d\):
The \(d\) rounds in Phases 1 and 3 are conservative but yield a clean proof.
Within Phase 1, the repeated detectors pair consecutive rounds of the same check. These are independent of the Phase \(1 \leftrightarrow 2\) boundary detector and provide only standard error correction. For any check index \(j\) and consecutive rounds \(r, r'\) with \(r + 1 = r'\), both Phase 1 measurements at rounds \(r\) and \(r'\) belong to the parametric repeated detector’s measurement set.
A pure-space fault with no time-faults is syndrome-free: space-faults do not flip measurement outcomes, so no detector is violated. Detection of space-faults relies on their Pauli-group effect on the code state, not on measurement faults. This is purely Phase 2 structure (deformed code checks at \(t_i\)). Formally, if \(F\) is a pure-space fault (i.e., \(F.\mathit{timeFaults} = \emptyset \)), then \(F\) is syndrome-free with respect to all gauging detectors.
Pure-space faults preserve the gauging sign \(\sigma \): the sign is determined entirely by time-faults (measurement errors on Gauss’s law checks), so space-faults at \(t_i\) have no effect on \(\sigma \). Formally, if \(F\) is a pure-space fault, then \(F\) preserves the gauging sign.
The time-fault distance lower bound (pure-time logical faults have weight \(\geq d\)) follows from the all-or-none property and sign-flip analysis, both of which are Phase 2 phenomena. Specifically, if \(F\) is a pure-time fault that is syndrome-free and flips the gauging sign, and \(d\) is odd, then
This does not depend on the number of Phase 1 or Phase 3 rounds.
For an edge \(e \in E(G)\), the entangling circuit transforms \(Z_e\) into the operator with \(\mathrm{xVec} = 0\) and
That is, \(\mathrm{EC}(Z_e)\) acts as \(Z\) on the edge \(e\) and on both its endpoint vertices.
Let the original code act on \(n\) qubits with \(|J|\) checks, so that \(k = n - |J|\) is the nominal number of logical qubits with \(k \geq 1\). Suppose the gauging graph \(G = (V, E)\) with cycle collection \(C\) satisfies the cycle rank property \(|C| + |V| = |E| + 1\). Then the deformed stabilizer code satisfies
That is, gauging consumes exactly one logical qubit.
Let the original code have \(n\) qubits with \(|J|\) checks and \(k = n - |J| \geq 1\) logical qubits. Under the cycle rank property, the deformed code \(\mathrm{DC}\) satisfies
If the original code has \(k = 0\) logical qubits (i.e., \(|V| = |J|\)) and the cycle rank property holds, then the deformed code satisfies
That is, the natural number subtraction underflows to \(0\).
Let \(G = (V, E)\) be a simple graph, let \(C\) be a collection of cycles satisfying the even-incidence condition, let \(J\) be a set of pairwise-commuting Pauli checks, and let data be the deformed code data. Then the number of physical qubits in the deformed stabilizer code is
Let \(L\) be an irreducible \(X\) logical operator. If \(\gamma \in \ker (\partial )\) with \(\gamma \neq 0\) and \(\gamma \) not equal to the all-ones vector on \(E_L\), and \(|E_L| \le |V_L|\), then there exists \(f : Q \to \mathbb {Z}_2\) with:
\(f \in \ker (\delta )\) (the restricted coboundary kernel),
\(f\) is supported on \(V_L\),
\(f \neq 0\),
there exists \(q \in V_L\) with \(f(q) = 0\).
Let \(C\) be a CSS stabilizer code and \(L\) a Pauli operator. If \(f : Q \to \mathbb {Z}_2\) lies in the kernel of the restricted coboundary map and is supported on \(\operatorname {logicalSupport}(L)\) (i.e., \(f(q) = 0\) for \(q \notin V_L\)), then \(\operatorname {prodX}(\{ q \mid f(q) \neq 0\} )\) is in the centralizer of \(C\).
The all-ones Gauss subset product of the layered incidence with \(d\) copies satisfies: for every vertex \(v\) of the Cohen construction,
and the operator is pure \(X\)-type:
For the Cross et al. scheme with \(R\) layers, for any valid subset \(S \subseteq \operatorname {Fin}(R)\) with \(S \neq \emptyset \) and \(2|S| \le R\), and any constant \(c \le h(P_R)\) where \(h(P_R)\) is the Cheeger constant of the path graph:
where \(\partial S\) is the edge boundary of \(S\) in the path graph.
The Cross et al. scheme with \(R\) layers: for any coefficient function \(c : Q \times \operatorname {Fin}(R) \to \mathbb {Z}_2\), the Gauss subset product is pure \(X\)-type and restricts to \(c(v)\) on each vertex \(v\):
and
Adding bridge edges enables joint measurement: the joint Gauss subset product for coefficient \(c = (c_1, c_2)\) on \(Q_1 \oplus Q_2\) gives a pure \(X\)-type operator that restricts to \(c_1\) on \(Q_1\) vertices and \(c_2\) on \(Q_2\) vertices. Formally, if \(c = \operatorname {Sum.elim}(c_1, c_2)\), then:
For all \(q_1 \in Q_1\): \((\operatorname {hyperGaussSubsetProduct}(\operatorname {jointIncident}, c)).\operatorname {xVec}(\operatorname {inl}(\operatorname {inl}(q_1))) = c_1(q_1)\).
For all \(q_2 \in Q_2\): \((\operatorname {hyperGaussSubsetProduct}(\operatorname {jointIncident}, c)).\operatorname {xVec}(\operatorname {inl}(\operatorname {inr}(q_2))) = c_2(q_2)\).
\((\operatorname {hyperGaussSubsetProduct}(\operatorname {jointIncident}, c)).\operatorname {zVec} = 0\).
For an irreducible \(X\) logical operator \(L\) of a CSS stabilizer code \(C\), with \(|E_L| \le |V_L|\), the kernel of the restricted boundary map \(\partial : \mathbb {Z}_2^{E_L} \to \mathbb {Z}_2^{V_L}\) is trivial: for any \(\gamma \in \ker (\partial )\) supported on \(E_L\), either \(\gamma = 0\) or \(\gamma \) is the all-ones vector on \(E_L\) (i.e., \(\gamma (i) = 1\) for all \(i \in E_L\)).
For a CSS code \(C\), \(\operatorname {prodX}(S)\) is in the centralizer of \(C\) if and only if \(S\) has even overlap with every \(Z\)-type check’s \(Z\)-support. That is, if for all \(Z\)-type checks \(j\), \(|\{ q \in S \mid (C.\operatorname {check}(j)).\operatorname {zVec}(q) \neq 0\} |\) is even, then \(C.\operatorname {inCentralizer}(\operatorname {prodX}(S))\).
For a CSS code, \(\operatorname {prodX}(S)\) commutes with a \(Z\)-type check \(s_j\) if and only if \(|S \cap \operatorname {supp}_Z(s_j)|\) is even:
For an incidence relation between finite types \(V_0\) and \(E_0\) over \(\mathbb {Z}_2\), the boundary map \(\partial = M \cdot \) and coboundary map \(\delta = M^T \cdot \) satisfy:
If \(L\) is a pure \(X\)-type operator (\(L.\operatorname {zVec} = 0\)) that commutes with all checks of a stabilizer code \(C\) (i.e., \(L \in \operatorname {Centralizer}(C)\)), then for each \(Z\)-type check \(s_j\), the set of qubits \(q\) satisfying the restricted incidence relation with \(j\) has even cardinality. That is:
For a cycle \(c\) assigned to layer \(i {\gt} 0\), if \((a, b)\) is a zigzag diagonal of \(c\) and \(x\) is a common neighbor with \(G.\operatorname {Adj}(a, x)\) and \(G.\operatorname {Adj}(b, x)\), then the three vertices \((a, i)\), \((b, i)\), \((x, i)\) form a triangle in the sparsified graph:
This establishes the paper’s claim that cellulation decomposes cycles into triangles of weight \(3\).
Every edge in the sparsified graph is either an intra-layer edge, an inter-layer edge, or a triangulation edge:
If \(v\) and \(w\) are adjacent in the original graph \(G\), then their embeddings in layer \(0\) are adjacent in the sparsified graph:
Given an edge \((v, u) \in E(G)\) and a layer index \(i {\lt} R\), the four vertices \((v, i)\), \((v, i{+}1)\), \((u, i{+}1)\), \((u, i)\) form a 4-cycle in the sparsified graph:
For a \(\Delta \)-bounded graph \(G\) on \(|V| \ge 2\) vertices, with a cycle collection satisfying the cycle rank property \(|C| + |V| = |E| + 1\) and any positive per-layer bound \(b {\gt} 0\), there exist \(R\) and a layer assignment \(f : C \to \operatorname {Fin}(R+1)\) such that
For any \(\Delta {\gt} 0\) and \(c {\gt} 0\), there exists \(K {\gt} 0\) (depending only on \(\Delta \)) such that for any \(\Delta \)-bounded connected graph \(G\) on \(W \ge 2\) vertices with cycle rank property, there exist \(R\) and \(f\) with
In fact, \(K = \Delta \) suffices.
For a \(\Delta \)-bounded connected expander graph \(G\) on \(W \ge 2\) vertices with Cheeger constant \(h(G) {\gt} 0\), a cycle collection with cycle rank property, and a positive integer \(c {\gt} 0\): given an \(M\)-coloring \(f_0 : C \to \operatorname {Fin}(M+1)\) with per-layer bound \(1\) (from König’s theorem) where \(M \le K \cdot \log _2^2(W)\) (from the Freedman–Hastings analysis), there exist \(R\) and \(f\) with
For a \(\Delta \)-bounded connected expander graph \(G\) on \(W \ge 2\) vertices with Cheeger constant \(h(G) {\gt} 0\), a cycle collection satisfying the cycle rank property, and a positive per-layer bound \(b {\gt} 0\):
Coarse bound: There exist \(R\) and \(f\) with \(\operatorname {LayerCycleDegreeBound}(f, b)\) and \(R \le \Delta \cdot W / 2\).
Greedy packing: Given any \(M\)-coloring \(f_0\) with per-layer bound \(1\), there exist \(R\) and \(f\) with \(\operatorname {LayerCycleDegreeBound}(f, b)\) and \(R \le M / b\).
Cycle count bound: \(|C| \le \Delta \cdot W / 2\).
Diameter bound and Cheeger inequality: \(\operatorname {diam}(G) \le W - 1\), and for all \(v \in V\), \(r \in \mathbb {N}\), if \(2|B(v,r)| \le W\) then \(h(G) \cdot |B(v,r)| \le |\partial B(v,r)|\).
For a connected expander graph \(G\) with \(|V| {\gt} 0\) and Cheeger constant \(h(G) {\gt} 0\):
\(\operatorname {diam}(G) \le |V| - 1\), and
for all \(v \in V\) and \(r \in \mathbb {N}\), if \(2|B(v,r)| \le |V|\), then \(h(G) \cdot |B(v,r)| \le |\partial B(v,r)|\).
Given an initial assignment \(f_0 : C \to \operatorname {Fin}(M+1)\) with per-layer bound \(1\) (from König’s theorem on bipartite edge coloring) and a positive integer \(c {\gt} 0\), packing \(c\) consecutive layers gives
Assume that:
For every cycle \(c \in C\) and vertex \(v \in V\), the number of edges in the cycle incident to \(v\) is even.
The original checks pairwise commute: for all \(i, j \in J\), \([s_i, s_j] = 0\).
Then all checks in the deformed code pairwise commute: for all \(a, b \in \operatorname {CheckIndex}(V, C, J)\),
Assume that the original checks pairwise commute: for all \(i, j \in J\), \([s_i, s_j] = 0\). Then for any deformed code data and all \(i, j \in J\), the deformed original checks commute:
On edges both deformed checks are pure \(Z\)-type (\(Z\) commutes with \(Z\)); on vertices the commutation is inherited from the original checks.
For any deformed code data, for all \(j \in J\) and \(p \in C\), the deformed original checks commute with the flux checks:
This holds because flux operators are pure \(Z\)-type and deformed checks have no \(X\)-support on edges.
Let \(s\) be a Pauli operator on \(V\), \(\gamma : E(G) \to \mathbb {Z}_2\) an edge-path satisfying the boundary condition \(\partial \gamma = S_Z(s)|_V\), and \(v \in V\). Then the deformed check \(\tilde{s}\) commutes with the Gauss’s law operator \(A_v\):
If \(s\) has no \(Z\)-support on \(V\), then the deformed check with \(\gamma = 0\) satisfies
That is, when \(s\) has no \(Z\)-support, the zero edge-path suffices and the deformed check acts as \(s\) on vertex qubits and as the identity on edge qubits.
Let \(\mathrm{data}\) be a DeformedCodeData for \(G\) and checks, and suppose all original checks pairwise commute, i.e., \(\operatorname {PauliCommute}(\mathrm{checks}(i), \mathrm{checks}(j))\) for all \(i, j \in J\). Then for any \(i, j \in J\), the deformed checks commute:
i.e., \(\operatorname {PauliCommute}(\operatorname {deformedOriginalChecks}(G, \mathrm{checks}, \mathrm{data}, i),\; \operatorname {deformedOriginalChecks}(G, \mathrm{checks}, \mathrm{data}, j))\). On edge qubits both are pure \(Z\)-type; on vertex qubits commutation is inherited from the original checks.
For any check index \(j \in J\), the deformed check \(\tilde{s}_j\) lies in the centralizer of the deformed stabilizer code:
For any check index \(j \in J\), the deformed check \(\tilde{s}_j = \operatorname {deformedOriginalChecks}(G, \mathrm{checks}, \mathrm{data}, j)\) is a member of the stabilizer group of the deformed stabilizer code:
Let \(\mathrm{data}\) be a DeformedCodeData for \(G\) and checks. Suppose all cycles satisfy the evenness condition (for every \(c \in C\) and \(v \in V\), the number of edges in cycle \(c\) incident to \(v\) is even), and all original checks pairwise commute. Then for any two check indices \(a, b \in \operatorname {CheckIndex}(V, C, J)\):
Let \(\mathrm{data}\) be a DeformedCodeData for \(G\) and checks. For any check index \(a \in \operatorname {CheckIndex}(V, C, J)\):
For any check index \(j \in J\) and any edge \(e \in E(G)\), the deformed check in the deformed stabilizer code has no \(X\)-support on the edge qubit \(e\):
For any cycle index \(p \in C\), the flux check in the deformed stabilizer code is pure \(Z\)-type, i.e., its \(X\)-vector is zero:
The product of all Gauss’s law checks in the deformed stabilizer code equals the logical operator \(L = \prod _{v \in V} X_v\):
For any vertex \(v \in V\), the Gauss’s law check in the deformed stabilizer code is pure \(X\)-type, i.e., its \(Z\)-vector is zero:
Let \(\mathrm{data}\) be a DeformedCodeData for \(G\) and checks. For any cycle index \(p \in C\) and check index \(j \in J\), the flux operator and deformed check commute:
\(B_p\) is pure \(Z\)-type and acts only on edges; \(\tilde{s}_j\) has no \(X\)-support on edges. Since \(Z\) commutes with \(Z\) and \(B_p\) does not act on vertex qubits, they commute.
For any two cycle indices \(p, q \in C\), the flux operators commute:
i.e., \(\operatorname {PauliCommute}(\operatorname {fluxChecks}(G, \mathrm{cycles}, p),\; \operatorname {fluxChecks}(G, \mathrm{cycles}, q))\) holds. Both \(B_p\) and \(B_q\) are pure \(Z\)-type operators, so they commute.
For any cycle index \(p \in C\), the flux operator \(B_p\) lies in the centralizer of the deformed stabilizer code:
For any cycle index \(p \in C\), the flux operator \(B_p = \operatorname {fluxChecks}(G, \mathrm{cycles}, p)\) is a member of the stabilizer group of the deformed stabilizer code:
Let \(\mathrm{data}\) be a DeformedCodeData for \(G\) and checks. For any vertex \(v \in V\) and index \(j \in J\), the Gauss’s law operator and deformed check commute:
The boundary condition ensures the anticommutation signs cancel.
Assume for every cycle \(c \in C\) and every vertex \(v \in V\), the number of edges in the cycle \(c\) incident to \(v\) is even. Then for any \(v \in V\) and \(p \in C\), the Gauss’s law operator and flux operator commute:
The symplectic inner product counts the overlap of the \(X\)-support of \(A_v\) with the \(Z\)-support of \(B_p\), which is the number of edges in \(p\) incident to \(v\). For a valid cycle, this is always even (\(0\) or \(2\)).
For any two vertices \(v, w \in V\), the Gauss’s law operators commute:
i.e., \(\operatorname {PauliCommute}(\operatorname {gaussLawChecks}(G, v),\; \operatorname {gaussLawChecks}(G, w))\) holds. Both \(A_v\) and \(A_w\) are pure \(X\)-type operators, so they commute.
For any vertex \(v \in V\), the Gauss’s law operator \(A_v\) lies in the centralizer of the deformed stabilizer code:
For any vertex \(v \in V\), the Gauss’s law operator \(A_v = \operatorname {gaussLawChecks}(G, v)\) is a member of the stabilizer group of the deformed stabilizer code:
A Pauli operator \(P\) commutes with the logical operator if and only if \(|\{ v \in V \mid P.\operatorname {zVec}(v) \neq 0\} |\) is even:
Let \(P\) be a Pauli operator on \(V\), \(\gamma \) an edge-path, and suppose the boundary condition \(\partial \gamma = \operatorname {zSupportOnVertices}(P)\) holds. Then for every vertex \(v \in V\), the deformed operator \(\widetilde{P}\) commutes with the Gauss’s law operator \(A_v\):
Deforming the identity operator with edge-path \(\gamma \) gives a pure-\(Z\) edge operator:
Deforming \(P\) with the zero edge-path extends \(P\) trivially to the edge qubits:
When all three desiderata and constant degree \(\Delta \) are satisfied, the following hold simultaneously:
Flux checks bounded: for all plaquettes \(p\), \(\operatorname {weight}(B_p) \leq W\).
\(G\) is a \(1\)-expander.
Edge overhead is linear: \(2|E| \leq \Delta \cdot |V|\).
Gauss checks bounded: for all vertices \(v\), \(\operatorname {weight}(A_v) \leq 1 + \Delta \).
The violation of a detector depends only on which of the detector’s measurements appear in the fault set. If two fault sets \(F_1, F_2\) satisfy \(\langle m \rangle \in F_1 \iff \langle m \rangle \in F_2\) for all \(m \in D.\mathrm{measurements}\), then
The violation status of a detector under a spacetime fault \(F\) is determined by the time-fault component. Space-faults change the quantum state but the detector constraint is purely about measurement outcome flips:
The observed parity equals the flip parity:
That is, the observed parity reduces to counting (mod 2) how many of the detector’s measurements are faulted, because the ideal outcomes cancel by the detector constraint.
A repeated measurement detector on \(m_1, m_2\) with \(m_1 \neq m_2\) is violated by faults \(F\) if and only if exactly one of the two measurements is faulted:
The number of flux checks (13) is bounded by the cycle rank with multiplicity (17): \(13 \leq 17\). The paper shows that 13 of the 17 independent cycles suffice because 4 become redundant due to dependencies among Z checks restricted to \(\operatorname {supp}(f)\).
Summary of the gauging construction for \(\bar{X}_\alpha \) in the Double Gross code:
\(|\operatorname {dblGaugingVertices}| = 18\),
\(|\operatorname {edgeFinset}(G)| = 33\),
\(|\operatorname {edgeFinset}(G)| + 1 = 34\) (with multiplicity),
\((|\operatorname {edgeFinset}(G)| + 1) + 1 = |\operatorname {dblGaugingVertices}| + 17\) (cycle rank),
\(13 \leq 17\) (flux checks \(\leq \) cycle rank),
\(|\operatorname {dblGaugingVertices}| + 13 + (|\operatorname {edgeFinset}(G)| + 1) = 65\) (total overhead).
For all \(\alpha \): (1) \(\bar{X}_\alpha \) has weight 18, (2) \(\bar{X}_\alpha \) is pure X-type (\(\operatorname {zVec} = 0\)), (3) \(\bar{X}_\alpha \) acts only on L qubits (\(\operatorname {xVec}(\operatorname {inr}(\delta )) = 0\) for all \(\delta \)), and (4) each L qubit participates in at most \(|\operatorname {supp}(A)| = 3\) X-type checks. This shows that the Tanner graph expansion is insufficient: a weight-18 operator only triggers \(\leq 3 \times 18 = 54\) check violations, which may not suffice for robust error detection.
The restricted Z-check matrix (with rows indexed by \(\beta \in \mathbb {Z}_{12} \times \mathbb {Z}_{12}\) and columns indexed by \(\gamma \in \operatorname {supp}(f)\), with entry \(B(\beta - \gamma ) \neq 0\)) has rank 17. For a connected 18-vertex subgraph, the boundary map has rank \(|V| - 1 = 17\), which matches.
The Double Gross code encodes \(k = 12\) logical qubits. This is computed as \(k = 2 \times \operatorname {nullity}([A; B])\), where \([A; B]\) is the stacked convolution matrix of size \(288 \times 144\) over \(\mathbb {F}_2\). The rank of \([A; B]\) is 138, so the nullity is \(144 - 138 = 6\), giving \(k = 2 \times 6 = 12\). The factor of 2 comes from the CSS structure (6 X-type + 6 Z-type independent logical operators).
When \(d\) is even, no syndrome-free pure-time fault can flip the gauging sign \(\sigma \). This is because the all-or-none property forces each vertex’s \(A_v\) fault count to be \(0\) or \(d\). When \(d\) is even, the total \(\operatorname {gaussSignFlip} = \sum (0 \text{ or } d) = k \cdot d \equiv 0 \pmod{2}\) for all \(k\).
The support of \(\operatorname {pauliErrorAt}(F, t)\) is a subset of the qubit image of \(\operatorname {spaceFaultsAt}(F, t)\):
The space-fault witness is a full gauging logical fault: it is syndrome-free and not outcome-preserving. The sign is preserved (pure-space implies \(\operatorname {gaussSignFlip} = 0\)), but the Pauli error at \(t_i\) is \(P\), which is not in the stabilizer group (since \(P\) is a logical operator).
The spacetime fault-distance of the fault-tolerant gauging measurement procedure equals \(d\), the distance of the original code, when \(h(G) \geq 1\):
No parity assumption on \(d\) is needed: when \(d\) is even, the lower bound still holds because case (a) (time-logical) is vacuous, and case (b) (space-logical) provides \(|F| \geq d^* \geq d\).
Assuming \(d \geq 2\) and that every edge is in some cycle, the listed detectors form a complete generating set for the fault-tolerant gauging procedure. Specifically:
Validity: Every generator is a valid detector (not violated without faults).
Coverage: Every measurement participates in at least one generator.
\(\mathbb {Z}_2\) closure: The \(\mathbb {Z}_2\) span is closed under symmetric difference.
Generation: Every valid detector decomposes as a \(\mathbb {Z}_2\) combination of the generators.
For any check index \(j \in J\), round \(r \in \operatorname {Fin}(d)\), and edge \(e \in G.\text{edgeSet}\), the Phase 2 deformed operator \(\tilde{s}_j\) satisfies \(\text{xVec}(\tilde{s}_j)(\operatorname {inr}(e)) = 0\). This means \(\tilde{s}_j = s_j \cdot \prod _{e \in \gamma _j} Z_e\) has no \(X\)-support on edge qubits.
Assuming \(d \geq 2\) and that every edge qubit is in at least one cycle, every measurement in the procedure participates in at least one of the listed detector generators. Formally: for every measurement label \(m\), there exists a detector index \(\text{idx}\) such that \(m \in (\text{detectorOfIndex}(\text{idx})).\text{measurements}\).
red[UNPROVEN AXIOM]
For any fault-tolerant gauging procedure with \(d \geq 2\), any detector \(D\) satisfying \(\neg D.\text{isViolated}(\emptyset )\) has its measurement set \(\mathbb {Z}_2\)-generated by the generator measurement sets. That is, \(D.\text{measurements}\) can be expressed as a symmetric difference of generator measurement sets.
Note: This is stated as an axiom because the structural argument — that within each phase, the only sources of deterministic measurement constraints are repeated measurements of self-inverse stabilizers and boundary initialization/readout relations — relies on physical reasoning about eigenvalue outcomes that was not fully formalized.
The deformed code’s check count is \(|V| + |C| + |J|\): \(|V|\) Gauss law checks, \(|C|\) flux checks, and \(|J|\) deformed original checks. The overhead in checks beyond the original \(|J|\) is \(|V| + |C|\):
The deformed code’s qubit count is \(|V| + |E|\), so the edge qubit overhead (the additional qubits beyond the original \(|V|\)) is exactly \(|E(G)|\). Different graphs \(G\) give different overhead via their edge count:
The number of edge qubits where the deformed check acts non-trivially (via \(Z\)) equals the number of edges in \(\gamma \) with \(\gamma (e) \ne 0\):
This is the “edge contribution” to the deformed check weight.
The edge \(Z\)-support of a deformed check equals the support of the edge-path \(\gamma \). For any original check \(s\), edge-path \(\gamma : E(G) \to \mathbb {Z}/2\mathbb {Z}\), and edge \(e \in E(G)\):
More edges in \(\gamma \) means more \(Z\)-support on edge qubits, hence higher weight.
For an expander graph \(G\) with expansion constant \(c\), every nonempty subset \(S \subseteq V\) with \(2|S| \le |V|\) satisfies
where \(\partial S\) denotes the edge boundary. This is the mechanism by which expansion of \(G\) controls the distance of the deformed code: logical operators supported on small subsets necessarily have large edge boundary.
Let \(\sigma _V : V \to \mathbb {Z}/2\mathbb {Z}\) be the measurement outcomes on original vertices and \(\sigma _D : D \to \mathbb {Z}/2\mathbb {Z}\) the outcomes on dummy vertices. If all dummy vertices give \(+1\) outcomes (i.e., \(\sigma _D(d) = 0\) for all \(d \in D\)), then
That is, dummy vertices do not affect the logical measurement sign.
Large detector cells: the number of measurements in a boundary detector (\(|p| + 1\) for flux init) is strictly greater than a repeated detector (\(2\)), as soon as the cycle has at least \(2\) edges. Formally, if \(|\{ e \in G.\mathrm{edgeSet} \mid e \in \mathrm{cycles}(p)\} | \geq 2\), then
\(B_p\) measurement faults cannot flip the gauging sign \(\sigma \). The sign \(\sigma = \sum _v \varepsilon _v\) is defined as a sum over Gauss measurement outcomes only. A fault \(F\) whose time faults contain only flux measurements contributes \(0\) to this sum: no \(A_v\) measurement is faulted. Formally, if every time fault \(\mathrm{tf} \in F.\mathrm{timeFaults}\) is of the form \(\mathrm{phase2}(\mathrm{flux}\; p\; r)\) for some plaquette \(p\) and round \(r\), then \(F\) preserves the gauging sign.
The flux init detector (\(B_p^{t_i}\)) captures the relationship between edge initialization and the first flux measurement. For every edge \(e \in p\) belonging to the cycle of plaquette \(p\), the edge initialization event for \(e\) is contained in the measurements of the flux init detector. This means \(B_p = \prod _{e \in p} Z_e\) is encoded via \(|0\rangle \) initialization.
The flux ungauge detector (\(B_p^{t_o}\)) captures the relationship between the last flux measurement and individual \(Z_e\) readouts for \(e \in p\). For every edge \(e\) in the cycle of plaquette \(p\), the Phase 3 edge-\(Z\) readout measurement for \(e\) is contained in the measurements of the flux ungauge detector.
The gauging sign is determined entirely by \(A_v\) measurement faults. The gaussSignFlip for the Gauss string fault at vertex \(v\) equals
which sums indicators of \(A_v\) membership in time faults only, ignoring all non-Gauss faults.
Repeated flux detectors have weight \(2\) (two consecutive \(B_p\) measurements). Formally, for any plaquette \(p\) and consecutive rounds \(r, r'\) with \(r + 1 = r'\):
The space-distance bound \(d^* \geq d\) (Lemma 3) requires \(h(G) \geq 1\) and exactness. No measurement of flux checks \(B_p\) is needed — only their algebraic presence as stabilizers of the deformed code. Formally, for any plaquette \(p\):
Lemma 3’s distance bound requires only that \(B_p\) operators are elements of the deformed stabilizer group, which is an algebraic fact. No measurement of \(B_p\) is needed for \(d^* \geq d\). Formally, given a stabilizer code \(C\) with checks, a deformed code data, connectivity, the exactness conditions, and sufficient expansion \(h(G) \geq 1\), we have
The time-fault distance is determined by \(A_v\) measurement strings, not \(B_p\). The canonical minimum-weight pure-time logical fault is a single \(A_v\) string of weight \(d\). For any vertex \(v\) and odd \(d\):
Let \(s\) be a Pauli operator on \(V\), and let \(\gamma , \gamma '\) be edge-paths both satisfying the boundary condition for \(s\). Then
i.e., the two deformed checks commute.
Let \(\operatorname {data}\) and \(\operatorname {data}'\) be two instances of \(\operatorname {DeformedCodeData}\) (with potentially different edge-paths). For each check index \(j\), there exists a Pauli operator \(B\) on the extended system such that:
\(\tilde{s}_j(\gamma '_j) = \tilde{s}_j(\gamma _j) \cdot B\),
\(\operatorname {xVec}(B) = 0\) (i.e., \(B\) is pure Z-type),
\(\partial (\gamma _j + \gamma '_j) = 0\) (i.e., the path difference lies in the cycle space).
Let \(G\) be a simple graph on vertices \(V\), and let \(s\) be a Pauli operator on \(V\). If \(\gamma , \gamma ' : E(G) \to \mathbb {Z}/2\mathbb {Z}\) both satisfy the boundary condition \(\partial \gamma = S_Z(s)|_V\) and \(\partial \gamma ' = S_Z(s)|_V\), then
For any two instances \(\operatorname {data}\) and \(\operatorname {data}'\) of \(\operatorname {DeformedCodeData}\) and any check index \(j\):
For any two instances \(\operatorname {data}\) and \(\operatorname {data}'\) of \(\operatorname {DeformedCodeData}\) and any cycle index \(p\):
For any two instances \(\operatorname {data}\) and \(\operatorname {data}'\) of \(\operatorname {DeformedCodeData}\) and any vertex \(v \in V\):
Let \(\delta : E(G) \to \mathbb {Z}/2\mathbb {Z}\) satisfy \(\partial \delta = 0\), and let \(\operatorname {data}\) be any deformed code data. Assume that for every cycle \(c\) and vertex \(v\), the number of edges in \(c\) incident to \(v\) is even. Then for every check index \(a \in V \sqcup C \sqcup J\):
If \(\delta : E(G) \to \mathbb {Z}/2\mathbb {Z}\) satisfies \(\partial \delta = 0\), then for every vertex \(v \in V\),
i.e., the pure-Z edge operator commutes with the Gauss’s law operator at \(v\).
If all closed walks have zero parity, then the byproduct correction at vertex \(v\) is independent of the choice of walk from \(v_0\) to \(v\): for any two walks \(\gamma _1, \gamma _2 : v_0 \to v\),
If all closed walks have zero parity, then two different walk choices produce the same correction vector:
For two walks \(p, q : u \to v\), the sum of their parities equals the parity of the closed walk \(p \cdot q^{\mathrm{rev}}\):
If all closed walks have zero parity, i.e., \(\operatorname {walkParity}(\omega , c) = 0\) for every closed walk \(c : v \to v\), then for any two walks \(p, q : u \to v\),
The byproduct correction operator equals the pure-\(X\) Pauli operator with \(X\)-vector given by the walk parity vector:
The gauging algorithm is well-defined: the correction operator is independent of the choice of walks. For any two families of walks \(\gamma ^{(1)}, \gamma ^{(2)}\) from the base vertex, under the closed-walk-zero-parity condition:
The effective vertex operator after the gauging procedure equals the projector \(\mathbf{1} + \sigma L\). Specifically, for any binary vectors \(c'\) (the coboundary preimage) and \(\varepsilon \) (the Gauss outcomes), the following hold simultaneously:
\(\operatorname {gaussSubsetProduct}(c')\) restricted to vertex \(X\)-vectors equals \(c'\).
\(\operatorname {gaussSubsetProduct}(c' + \mathbf{1})\) restricted to vertex \(X\)-vectors equals \(c' + \mathbf{1}\).
After byproduct correction (adding \(c'\)), the identity term gives \(c'(v) + c'(v) = 0\) for all \(v\).
After byproduct correction, the \(L\) term gives \((c' + \mathbf{1})(v) + c'(v) = 1\) for all \(v\).
The signed outcomes satisfy \(\varepsilon (c' + \mathbf{1}) = \varepsilon (c') + \sigma \).
Both terms are pure \(X\)-type (have \(Z\)-vector \(0\)).
(Theorem 1: Gauging Measurement Correctness.) For a connected graph \(G\), the gauging measurement procedure implements a projective measurement of the logical operator \(L = \prod _{v \in V} X_v\).
Given an initial code state \(|\psi \rangle \), the procedure outputs \((\sigma , |\Psi \rangle )\) where:
\(\sigma = \sum _v \varepsilon _v \in \mathbb {Z}/2\mathbb {Z}\) encodes the measurement outcome (\(+1\) or \(-1\)),
The output state satisfies \(|\Psi \rangle \propto (\mathbf{1} + \sigma L)|\psi \rangle \), the projection onto the \(\sigma \)-eigenspace of \(L\).
The Gauss subset product is a group homomorphism: for binary vectors \(c_1, c_2 : V \to \mathbb {Z}/2\mathbb {Z}\),
On vertex qubits, the Pauli operator for subset \(c' + \mathbf{1}\) is the product of the operator for \(c'\) and the logical operator \(L\):
For any finset \(S \subseteq V\), the product of Gauss’s law operators over \(S\) equals the Gauss subset product of the indicator:
The projector \((\mathbf{1} + \sigma L)/2\) is idempotent. At the level of Pauli algebra components:
Hence \((\mathbf{1} + \sigma L) \cdot (\mathbf{1} + \sigma L) = 2(\mathbf{1} + \sigma L)\) since \(\sigma ^2 = 1\) in \(\mathbb {Z}/2\mathbb {Z}\).
If all closed walks have zero parity (i.e., \(\operatorname {walkParity}(\omega , c) = 0\) for every closed walk \(c\) at every vertex \(v\)), then for each edge \(e = \{ a, b\} \in E(G)\):
where \(c'\) is the walk parity vector.
If all closed walks have zero parity, then the walk parity vector is independent of the choice of walks: for any two families of walks \(\gamma ^{(1)}_v, \gamma ^{(2)}_v\) from \(v_0\) to \(v\),
The flux operator \(B_p\) has \(Z\)-support on edges related to the second boundary map: for each edge \(e\),
where \(\partial _2\) is the second boundary map and \(\mathbf{1}_p\) is the indicator of cycle \(p\).
The Gauss’s law operator \(A_v\) has \(X\)-support on edges related to the coboundary map: for each edge \(e\),
where \(\delta \) is the coboundary map and \(\mathbf{1}_v\) is the indicator of vertex \(v\).
For an abelian (additive commutative) monoid, the sum of local charges is independent of the ordering. For any charges \((q_1, \ldots , q_n)\) and any permutation \(\pi \) of \(\{ 1, \ldots , n\} \),
This is the core mathematical fact that makes abelian gauging work: measuring individual \(A_v\) operators in any order gives the same total charge.
The three generalizations beyond Pauli operators on qubits are:
Qudit: Boundary/coboundary maps generalize from \(\mathbb {Z}_2\) to \(\mathbb {Z}_p\), preserving linearity and the transpose property \(\langle \delta f, \gamma \rangle _E = \langle f, \partial \gamma \rangle _V\). The chain complex property \(\partial \circ \partial _2 = 0\) still holds.
Abelian: For abelian groups, the sum/product of local charges is order-independent, so measuring local charges determines the global charge: \(\sum _i q_{\pi (i)} = \sum _i q_i\).
Nonabelian: For nonabelian groups, the product of local charges depends on the order, so local measurements do not determine a definite global charge: \(g_1 g_2 \neq g_2 g_1 \implies \prod [g_1, g_2] \neq \prod [g_2, g_1]\).
In a nonabelian group, knowing the individual elements \(g_v\) does not determine their product uniquely, because the product depends on the order of multiplication. Formally, if \(g_1 \cdot g_2 \neq g_2 \cdot g_1\), then it is not the case that for all lists \(l_1, l_2\) with \(l_1\) a permutation of \(l_2\), \(\prod l_1 = \prod l_2\):
For nonabelian groups, the product of elements depends on the order of multiplication. If \(g_1 \cdot g_2 \neq g_2 \cdot g_1\), then the two orderings \([g_1, g_2]\) and \([g_2, g_1]\) give different products:
This is the fundamental obstruction to measuring nonabelian charges locally.
The chain complex property \(\partial \circ \partial _2 = 0\) holds over \(\mathbb {Z}_p\), provided each cycle \(c\) satisfies the condition that for every vertex \(v\), \(p\) divides the number of edges in \(c\) incident to \(v\). Over \(\mathbb {Z}_2\), this is the standard cycle condition (even incidence). Over \(\mathbb {Z}_p\) for odd \(p\), this requires \(p \mid (\text{incidence count})\).
The coboundary map \(\delta \) is the transpose of the boundary map \(\partial \) over \(\mathbb {Z}_p\): for all \(f \in \mathbb {Z}_p^V\) and \(\gamma \in \mathbb {Z}_p^E\),
The second coboundary map \(\delta _2\) is the transpose of the second boundary map \(\partial _2\) over \(\mathbb {Z}_p\): for all \(\gamma \in \mathbb {Z}_p^E\) and \(\sigma \in \mathbb {Z}_p^C\),
Let \(G = (V, E)\) be a graph and let \(C\) be a collection of cycles specified by their edge sets. Suppose that for every cycle \(c \in C\) and every vertex \(v \in V\), the number of edges of \(c\) incident to \(v\) is even. Then for any cycle \(c \in C\) and any vertex \(v \in V\),
where \(\mathbf{1}_c\) is the indicator function of the edges of \(c\).
Under the same cycle evenness hypothesis, for any cycle \(c \in C\) and vertex \(v \in V\),
where \(\mathbf{e}_c = \pi _c(1)\) is the standard basis vector corresponding to \(c\).
The coboundary map \(\delta \) is the transpose of the boundary map \(\partial \) with respect to the standard \(\mathbb {Z}_2\) inner product. That is, for all \(f \in \mathbb {Z}_2^V\) and \(\gamma \in \mathbb {Z}_2^E\),
For a vertex \(v \in V\) and an edge \(e = \{ a, b\} \in E\), the coboundary of the indicator function \(\mathbf{1}_v\) satisfies
For a connected graph \(G\), a function \(f : V \to \mathbb {Z}/2\mathbb {Z}\) lies in \(\ker (\delta )\) if and only if \(f = 0\) or \(f = \mathbf{1}\):
For a cycle \(c \in C\) and an edge \(e \in E\), the second boundary map applied to the indicator \(\mathbf{1}_c\) satisfies
The second coboundary map \(\delta _2\) is the transpose of the second boundary map \(\partial _2\). That is, for all \(\gamma \in \mathbb {Z}_2^E\) and \(\sigma \in \mathbb {Z}_2^C\),
For an edge \(e \in E\) and a cycle \(c \in C\), the second coboundary map applied to the indicator \(\mathbf{1}_e\) satisfies
For all \(\alpha \) and all \(\delta \in \mathbb {Z}_{12} \times \mathbb {Z}_6\), the X-support of \(\bar{X}_\alpha \) on the right (\(R\)) qubit indexed by \(\delta \) is zero:
For all \(\alpha \in \mathbb {Z}_{12} \times \mathbb {Z}_6\), the following four properties hold simultaneously:
\(\operatorname {weight}(\bar{X}_\alpha ) = 12\),
\((\bar{X}_\alpha ).\operatorname {zVec} = 0\) (pure X-type),
\(\forall \delta ,\; (\bar{X}_\alpha ).\operatorname {xVec}(\operatorname {inr}~ \delta ) = 0\) (acts only on \(L\) qubits),
\(|\operatorname {supp}(A)| = 3\).
Since \(\bar{X}_\alpha \) acts only on \(L\) qubits and each \(L\) qubit participates in at most \(|\operatorname {supp}(A)| = 3\) X-type checks, the Tanner subgraph on the support of \(\bar{X}_\alpha \) has limited expansion.
For all \(\alpha \) and all \(\gamma \in \mathbb {Z}_{12} \times \mathbb {Z}_6\), the Z-support of \(\bar{Z}'_\alpha \) on the left (\(L\)) qubit indexed by \(\gamma \) is zero:
If \(P\) is a Pauli operator on \(V \oplus E\) with \(\operatorname {xVec}(P) = 0\), \(\operatorname {zVec}(P)_{\operatorname {inl}(v)} = 0\) for all \(v \in V\), and \([P, A_v] = 0\) for all \(v \in V\), then the edge \(Z\)-vector \(\gamma _e := \operatorname {zVec}(P)_{\operatorname {inr}(e)}\) lies in \(\ker (\partial )\).
For CSS code initialization with physical qubits \(Q\), \(X\)-type check index set \(I\), and check supports \(\operatorname {xCheckSupport} : I \to \operatorname {Finset}(Q)\), the hypergraph boundary map with incidence \(\operatorname {incident}(q, i) \Leftrightarrow q \in \operatorname {xCheckSupport}(i)\) satisfies
for all \(\gamma \in \mathbb {Z}_2^I\) and \(q \in Q\).
For a graph-like hypergraph, the boundary of a single edge indicator sums to zero over all vertices: for any \(e_0 \in E\),
This holds because each edge has exactly \(2\) endpoints and \(2 \equiv 0 \pmod{2}\).
On edge qubits, the sum of \(X\)-vectors of all Gauss operators gives the cardinality of the hyperedge modulo 2: for each hyperedge \(e\),
The hypergraph generalization of the gauging framework satisfies the following four properties simultaneously:
All Gauss operators mutually commute: \(\forall \, v, w \in V\), \([A_v, A_w] = 0\).
Pure-\(Z\) edge operators commute with all \(A_v\) iff \(\gamma \in \ker (\partial )\): \(\forall \, \gamma \in \mathbb {Z}_2^E\), \(\gamma \in \ker (\partial ) \Leftrightarrow \forall \, v \in V,\; [Z(\gamma ), A_v] = 0\).
The coboundary \(\delta \) is the transpose of \(\partial \): \(\forall \, f \in \mathbb {Z}_2^V,\, \gamma \in \mathbb {Z}_2^E\), \(\sum _e (\delta f)_e \gamma _e = \sum _v f_v (\partial \gamma )_v\).
The Gauss subset product for the zero vector gives the identity: \(\operatorname {hyperGaussSubsetProduct}(0) = \mathbf{1}\).
For all \(\gamma \in \mathbb {Z}_2^E\) and \(v \in V\),
where \(Z(\gamma )\) denotes the pure-\(Z\) hyperedge operator and \(\langle \cdot , \cdot \rangle \) is the symplectic inner product.
If \(\neg \operatorname {CommutesWithLogical}(P)\) and \(\operatorname {CommutesWithLogical}(Q)\), then no boundary condition holds for \(P \cdot Q\) either: for every \(\gamma \), \(\neg \operatorname {BoundaryCondition}(G, P \cdot Q, \gamma )\).
If \(\neg \operatorname {CommutesWithLogical}(P)\), then there is no edge-path \(\gamma \colon E \to \mathbb {Z}/2\mathbb {Z}\) satisfying the boundary condition \(\operatorname {BoundaryCondition}(G, P, \gamma )\). This is the contrapositive of the theorem that the boundary condition implies commutation.
Multiplying a Pauli operator \(P\) on the extended system \(V \oplus E\) by \(\operatorname {pauliZ}(\operatorname {inr}(e))\) for an edge qubit \(e\) does not change the \(\operatorname {CommutesWithLogical’}\) condition:
This is because \(\operatorname {pauliZ}\) on an edge qubit \(\operatorname {inr}(e)\) has zero Z-support on vertex qubits \(\operatorname {inl}(v)\).
The sum of \(\operatorname {zSupportOnVertices}\) is additive under Pauli multiplication:
A detector not containing any faulted measurement is not violated. If for every measurement \(m\) in \(D.\mathrm{measurements}\), the time-fault \(\langle m \rangle \) is not in the fault set, then \(D\) is not violated:
Under the hypotheses of both Point 1 and Point 2 (sufficient expansion \(h(G) \geq 1\), existence of a pure-\(X\) minimum-weight logical whose lift is not a deformed stabilizer), the deformed code distance equals the original code distance:
Let \(C\) be a stabilizer code with checks \(\{ \operatorname {checks}(j)\} _{j \in J}\), and let \(G\) be a connected graph on \(V\) with \(|V| \geq 2\) satisfying the sufficient expansion condition \(h(G) \geq 1\). Assume the exactness conditions on the chain complex and that the original code has a logical operator. Then the deformed code distance satisfies \(d^* \geq d\).
If \(G\) has the short paths property with bound \(D\) (i.e., for each check \(s_j\), any two vertices \(u, v\) in the \(Z\)-support of \(s_j\) satisfy \(\operatorname {dist}_G(u, v) \leq D\)), and \(G\) is connected, then for any bridge set, vertices in the same copy of the bridge graph also have short paths:
If \(G\) satisfies short paths with bound \(D\) and low-weight cycles with bound \(W\), and \(G\) is connected with a nonempty bridge set, then the bridge graph provides a valid gauging setup regardless of its Cheeger constant:
\(\operatorname {BridgeGraph}(G, \operatorname {bridges})\) is connected,
Short paths within each copy: \(\operatorname {dist}_{\operatorname {BridgeGraph}}(\operatorname {inl}(u), \operatorname {inl}(v)) \leq D\) for \(u, v\) in the \(Z\)-support of any check,
Low-weight cycles: each cycle in the basis has weight \(\leq W\).
The gauging measurement procedure generalizes lattice surgery in three settings:
Standard lattice surgery (ladder graph): For all \(n \geq 1\), the ladder graph is connected, has \(2n\) vertices, degree \(\leq 3\), and at most \(3n\) edges.
Long-range lattice surgery (grid graph): For all \(n \geq 1\) and \(D \geq 0\), the grid graph is connected and \(n(D+2) = 2n + nD\).
LDPC generalization (bridge graph): For any connected graph \(G\) with nonempty bridge set, the bridge graph is connected with \(2|V|\) vertices.
For any vertex \(v \in V\), the Gauss law operator \(A_v = \operatorname {gaussLawOp}(G, v)\) is pure \(X\)-type:
On the ladder graph, \(A_v\) corresponds to the surface code vertex stabilizer: a star of \(X\) operators centered at \(v\).
For a graph \(G\) with vertex set \(V\), cycle set \(C\), check operators \(\{ s_j\} _{j \in J}\), deformed code data, a cycle condition (each cycle has even incidence with every vertex), and pairwise commuting original checks, all checks of the deformed code pairwise commute:
For the ladder graph, this means the deformed code is a surface code on the union of the two patches: Gauss checks \(A_v\) become vertex stabilizers, flux checks \(B_p\) become face stabilizers, and deformed checks \(\tilde{s}_j\) become boundary stabilizers.
Phase 3 of the gauging procedure measures \(Z_e\) on each edge qubit \(e \in E(G)\). For each edge \(e\), the measured operator \(Z_e^{\mathrm{meas}}\) satisfies three properties:
\(Z_e^{\mathrm{meas}}.\mathrm{xVec} = 0\) (pure \(Z\)-type, does not disturb vertex qubits),
\(\forall \, e',\; \operatorname {PauliCommute}(Z_e^{\mathrm{meas}}, Z_{e'}^{\mathrm{meas}})\) (all mutually commute, can be measured simultaneously),
\(Z_e^{\mathrm{meas}} \cdot Z_e^{\mathrm{meas}} = 1\) (self-inverse, valid projective measurement).
After measuring all \(Z_e\), the edge qubits are projected onto \(Z\) eigenstates, disentangling them from the vertex qubits and recovering the two separate surface code patches.
For a ladder graph \(G\) connecting two boundary qubit sets of size \(n \geq 1\):
\(G\) is connected,
\(|\mathrm{Bool} \times \mathrm{Fin}\, n| = 2n\),
every vertex has degree \(\leq 3\) (constant overhead per qubit),
the edge count is at most \(3n\).
For two code blocks with weight-\(W\) logical \(X\) operators, given a connected graph \(G\) satisfying short paths (bound \(D\)) and low-weight cycle basis (bound \(W\)), with a nonempty bridge set:
\(\operatorname {BridgeGraph}(G, \operatorname {bridges})\) is connected,
\(|V \oplus V| = 2|V|\),
Short paths within each copy are preserved (bound \(D\)),
Low-weight cycles within each copy are preserved (bound \(W\)).
This generalizes lattice surgery to arbitrary LDPC codes.
The logical operator equals the product of all Gauss operators:
On the ladder graph where \(V = \operatorname {supp}(\bar{X}_1) \cup \operatorname {supp}(\bar{X}_2)\), this gives \(L = \bar{X}_1 \otimes \bar{X}_2\).
For boundary qubit sets of size \(n \geq 1\) separated by distance \(D\):
The grid graph \(\operatorname {DummyGridGraph}(n, D)\) is connected,
\(|\mathrm{Fin}\, n \times \mathrm{Fin}\, (D+2)| = n(D+2)\),
\(n(D+2) = 2n + nD\) (the total decomposes into \(2n\) boundary qubits and \(nD\) ancillas).
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)\).
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:
For each \(i \in \operatorname {Fin}(W)\), \(\operatorname {inl}(i)\) and \(\operatorname {inr}(i)\) are adjacent in 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\).
Given boundary exactness (\(\ker (\partial ) \subseteq \operatorname {im}(\partial _2)\)) and a logical \(L'\) of the deformed code, for any \(c\) with \(\delta (c) = \operatorname {edgeXSupport}(L')\), the restriction \(\operatorname {restrictToV}(\operatorname {cleanedOp}(L', c))\) is a logical of the original code.
If \(L'\) is a logical of the deformed code, \(\delta (c) = \operatorname {edgeXSupport}(L')\), and \(\operatorname {restrictToV}(\operatorname {cleanedOp}(L', c)) = 1\), then assuming boundary exactness (\(\ker (\partial ) \subseteq \operatorname {im}(\partial _2)\)), we reach a contradiction.
If \(L'\) is a logical of the deformed code, \(\delta (c) = \operatorname {edgeXSupport}(L')\), and \(\operatorname {restrictToV}(\operatorname {cleanedOp}(L', c)) \in \mathcal{S}\) (the original stabilizer group), then assuming boundary exactness, we reach a contradiction.
Let \(L'\) be a logical operator of the deformed code and \(c\) a cleaning vector with \(\delta (c) = \operatorname {edgeXSupport}(L')\). Suppose \(\operatorname {logicalOpV}\) is a logical of the original code. Then at least one of the following holds:
\(\operatorname {restrictToV}(\operatorname {cleanedOp}(L', c))\) is a logical of the original code, or
\(\operatorname {restrictToV}(\operatorname {cleanedOp}(L', c + \mathbf{1}))\) is a logical of the original code.
If \(L'\) is a logical operator of the deformed code, then for any cleaning vector \(c\), the cleaned operator \(\operatorname {cleanedOp}(L', c) \notin \mathcal{S}^*\), where \(\mathcal{S}^*\) is the stabilizer group of the deformed code.
For any \(c : V \to \mathbb {Z}/2\mathbb {Z}\):
where \(\operatorname {supp}(c) = \{ v \in V \mid c(v) \neq 0\} \) and \(\partial _E\) denotes the edge boundary.
Given exactness of both chain sequences and a logical \(L'\) of the deformed code, there exists a cleaning vector \(c : V \to \mathbb {Z}/2\mathbb {Z}\) such that:
\(\delta (c) = \operatorname {edgeXSupport}(L')\),
\(\operatorname {restrictToV}(\operatorname {cleanedOp}(L', c))\) is a logical of the original code, and
\(2 \cdot |\operatorname {supp}(c)| \leq |V|\).
Let \(G\) be the graph used in gauging, \(L'\) a logical operator of the deformed code, and \(d\) the distance of the original code. Assuming connectivity, \(|V| \geq 2\), exactness of both chain sequences, and that \(\operatorname {logicalOpV}\) is a logical of the original code:
If a syndrome-free fault \(F'\) already has its space-faults concentrated at time \(t_i\) (i.e., \(F'.\operatorname {spaceFaultsAt}(t) = \emptyset \) for all \(t \neq t_i\)), then there exists a full gauging stabilizer \(S_2\) such that \((F' \cdot S_2).\operatorname {spaceFaultsAt}(t) = \emptyset \) for all \(t \neq t_i\). In fact, the empty fault serves as such a stabilizer.
A syndrome-free pure-space fault concentrated at \(t_i\) has its Pauli error in the centralizer of the deformed code. Formally, if \(F\) is syndrome-free, \(F.\operatorname {spaceFaultsAt}(t) = \emptyset \) for all \(t \neq t_i\), and \(F\) is pure-space, then \(\operatorname {inCentralizer}(\text{deformedCode}, F.\operatorname {pauliErrorAt}(t_i))\).
When \(F_S\) is pure-space and \(F_T\) is pure-time, their composition has weight equal to the sum of their weights: \(\operatorname {weight}(F_S \cdot F_T) = \operatorname {weight}(F_S) + \operatorname {weight}(F_T)\). This holds because their fault sets are disjoint.
The \(\operatorname {gaussSignFlip}\) is \(\mathbb {Z}_2\)-additive under composition:
in \(\mathbb {Z}/2\mathbb {Z}\). This follows from the fact that the time-faults of the composition are the symmetric difference, and the indicator function is additive over \(\mathbb {Z}_2\).
The gauging sign depends only on time-faults (measurement errors on Gauss checks). If two spacetime faults \(F_1\) and \(F_2\) have equal time-faults (\(F_1.\mathrm{timeFaults} = F_2.\mathrm{timeFaults}\)), then \(\operatorname {gaussSignFlip}(\mathrm{proc}, F_1) = \operatorname {gaussSignFlip}(\mathrm{proc}, F_2)\).
The \(A_v\) string is the canonical time-only logical fault. For any vertex \(v\) and odd \(d\), \(\operatorname {gaussStringFault}(\mathrm{proc}, v)\) satisfies \(\operatorname {IsTimeLogicalFault}(\mathrm{proc}, \cdot )\): it is pure-time, syndrome-free, and flips the gauging sign.
A logical fault changes the outcome: \(\neg (\text{sign preserved} \land \text{Pauli} \in \mathcal{S})\). Equivalently: either the sign is flipped, or the Pauli error is a nontrivial logical. Formally, if \(F\) is a full gauging logical fault, then
The net Pauli error at time \(t\) is multiplicative under composition:
This follows because the space-faults of the composition are the symmetric difference, the filter distributes over symmetric difference, and \(\mathbb {Z}_2\) sums are additive (corresponding to the Pauli product).
The Pauli error at any time \(t\) depends only on space-faults. If two spacetime faults \(F_1\) and \(F_2\) have equal space-faults (\(F_1.\mathrm{spaceFaults} = F_2.\mathrm{spaceFaults}\)), then \(F_1.\operatorname {pauliErrorAt}(t) = F_2.\operatorname {pauliErrorAt}(t)\) for all \(t\).
If \(F\) is a syndrome-free fault that flips the gauging sign and \(d\) is odd, then there exists a vertex \(v \in V\) such that for all rounds \(r \in \operatorname {Fin}(d)\), the time-fault corresponding to the Gauss law measurement of \(v\) at round \(r\) belongs to \(F.\mathrm{timeFaults}\). That is, \(F\) contains at least one full \(A_v\) measurement string.
Any syndrome-free spacetime fault \(F\) can be composed with a full gauging stabilizer \(S_1\) to concentrate all space-faults at \(t_i\). That is, there exists \(S_1\) with \(\operatorname {IsFullGaugingStabilizer}(\mathrm{proc}, S_1)\) such that for all \(t \neq \mathrm{proc}.\mathrm{phase2Start}\), \((F \cdot S_1).\operatorname {spaceFaultsAt}(t) = \emptyset \). This uses the time-propagating and boundary generators from Lem 5.
The space and time components of a fault affect different aspects of the procedure outcome independently:
The gauging sign \(\sigma \) depends only on time-faults: \(\operatorname {gaussSignFlip}(\mathrm{proc}, F) = \operatorname {gaussSignFlip}(\mathrm{proc}, F.\mathrm{timeComponent})\).
The Pauli error on the code state depends only on space-faults: for all \(t\), \(F.\operatorname {pauliErrorAt}(t) = F.\mathrm{spaceComponent}.\operatorname {pauliErrorAt}(t)\).
Any spacetime logical fault \(F\) in the fault-tolerant gauging measurement procedure is equivalent, up to multiplication by spacetime stabilizers, to the product of a space-only fault \(F_S\) and a time-only fault \(F_T\).
Specifically: there exist \(F_S\), \(F_T\), and \(S\) such that:
\(F = (F_S \cdot F_T) \cdot S\) (composition via symmetric difference),
\(F_S\) is pure-space (no time-faults) and concentrated at time \(t_i\),
\(F_T\) is pure-time (no space-faults) and syndrome-free,
\(S\) is a full gauging stabilizer (syndrome-free, outcome-preserving),
At least one of \(F_S\), \(F_T\) is nontrivial: either \(\operatorname {FlipsGaugingSign}(\mathrm{proc}, F_T)\) or \(\operatorname {isLogicalOp}(\text{deformedCode}, F_S.\operatorname {pauliErrorAt}(t_i))\).
For any spacetime logical fault \(F\) of the fault-tolerant gauging measurement procedure:
\(F\) decomposes as \(F = (F_S \cdot F_T) \cdot S\) where \(F_S\) is pure-space and concentrated at \(t_i\), \(F_T\) is pure-time and syndrome-free, and \(S\) is a full gauging stabilizer.
The gauging sign \(\sigma \) is determined entirely by \(F_T\): \(\operatorname {gaussSignFlip}(F) = \operatorname {gaussSignFlip}(F.\mathrm{timeComponent})\).
The Pauli error on the code state is determined entirely by \(F_S\): \(\operatorname {pauliErrorAt}(F, t) = \operatorname {pauliErrorAt}(F.\mathrm{spaceComponent}, t)\) for all \(t\).
The cleaned time-faults of a syndrome-free pure-time fault \(F_T\) either flip the gauging sign (i.e., \(F_T\) is a time-only logical fault corresponding to an \(A_v\) measurement string) or decompose into stabilizer generators (i.e., \(F_T\) is a gauging stabilizer).
A fault \(F\) is syndrome-free if and only if for every detector index \(i \in I\), the detector \(\delta _i\) is not violated by \(F\)’s time-faults:
Every syndrome-free fault is either a spacetime logical fault or a spacetime stabilizer: if \(\operatorname {IsSyndromeFree}(\delta , F)\) holds, then
The set of all syndrome-free faults partitions into logical faults and stabilizers:
A syndrome-free fault is a logical fault if and only if it is not a stabilizer:
A syndrome-free fault is a stabilizer if and only if it is not a logical fault:
red[UNPROVEN AXIOM]
If \(F\) is an initialization \(X_e\) generator \((\mathsf{IsInitXeGen}\ \mathrm{proc}\ e\ F)\), then \(F\) is a gauging stabilizer. The \(|0\rangle _e\) initialization fault flips the init detector for edge \(e\); the \(X_e\) Pauli at \(t_i\) flips the same detector via the check measurement. These cancel: \((-1) \times (-1) = +1\).
Note: This is stated as an axiom because the full proof was not completed in the formalization.
red[UNPROVEN AXIOM]
If \(F\) is a readout \(X_e\) generator \((\mathsf{IsReadoutXeGen}\ \mathrm{proc}\ e\ F)\), then \(F\) is a gauging stabilizer. \(X_e\) flips the \(Z_e\) eigenvalue; the \(Z_e\) readout fault compensates.
Note: This is stated as an axiom because the full proof was not completed in the formalization.
red[UNPROVEN AXIOM]
For any syndrome-free spacetime fault \(F\), there exists a stabilizer \(S_1\) such that:
\(S_1\) is syndrome-free for the gauging procedure,
\(S_1\) preserves the gauging sign,
\(S_1.\mathrm{pauliErrorAt}(t_i)\) is in the stabilizer group of the deformed code, and
For all \(t \neq t_i\), \((F \circ S_1).\mathrm{spaceFaultsAt}(t) = \emptyset \).
The construction uses time-propagating generators to move all space-faults to the gauging time \(t_i\). Boundary initialization/readout faults are absorbed using init-\(X_e\) and readout-\(X_e\) generators. The composed generators cancel intermediate Paulis (\(P \cdot P = 1\)), leaving only the net effect at \(t_i\), which is a product of check operators and hence in the stabilizer group.
Note: This is stated as an axiom because the full proof was not completed in the formalization.
The algebraic structure underlying the spacetime stabilizer classification consists of the following eleven properties:
Original checks are self-inverse: \(\forall j,\; \mathrm{checks}(j) \cdot \mathrm{checks}(j) = 1\).
Original checks pairwise commute: \(\forall i,j,\; \mathrm{PauliCommute}(\mathrm{checks}(i), \mathrm{checks}(j))\).
Deformed checks are self-inverse: \(\forall \mathrm{ci},\; \mathrm{allChecks}(\mathrm{ci})^2 = 1\).
Deformed checks pairwise commute: \(\forall \mathrm{ci}, \mathrm{cj},\; \mathrm{PauliCommute}(\mathrm{allChecks}(\mathrm{ci}), \mathrm{allChecks}(\mathrm{cj}))\).
\(Z_e\)–\(A_v\) commutation characterization: \(\mathrm{PauliCommute}(Z_e, A_v) \iff v \notin e\).
\(Z_e\) anticommutes with exactly \(2\) Gauss law checks: \(|\{ v \mid v \in e\} | = 2\).
\(Z_e\) commutes with all non-Gauss deformed checks.
\(X_e\) anticommutes with \(Z_e\) (init/readout generator structure).
\(X_e\) commutes with all Gauss law checks.
Any Pauli is self-inverse: \(P \cdot P = 1\).
Composition uses symmetric difference on time-faults (\(\mathbb {Z}_2\) group closure).
red[UNPROVEN AXIOM]
Every gauging stabilizer decomposes as a \(\mathbb {Z}_2\) composition (symmetric difference) of the listed generators. Formally, if \(F\) is a gauging stabilizer, then there exists a list \(\mathrm{gens}\) of spacetime faults such that:
Every \(g \in \mathrm{gens}\) satisfies \(\mathsf{IsListedGenerator}(\mathrm{proc}, g)\), and
\(F = \mathrm{gens.foldl}(\mathsf{compose},\; \mathsf{empty})\).
The proof uses time-ordered decomposition: peel off generators at the earliest active time, proceed inductively, until only measurement faults remain, which must decompose into detector measurement sets.
Note: This is stated as an axiom because the full proof was not completed in the formalization.
red[UNPROVEN AXIOM]
A pure-space fault \(F\) concentrated at the gauging time \(t_i\) (i.e., \(F.\mathrm{spaceFaultsAt}(t) = \emptyset \) for all \(t \neq t_i\) and \(F.\mathrm{isPureSpace}\)), if syndrome-free for the gauging procedure, has its Pauli error \(F.\mathrm{pauliErrorAt}(t_i)\) in the centralizer of the deformed code.
This encodes the fact that during Phase 2, the active checks are the deformed code checks \((A_v, B_p, \tilde{s}_j)\), and the time-propagating generators commute with all active checks away from their support. The cleaning process preserves the commutation structure, so the concentrated Pauli at \(t_i\) commutes with every deformed code check.
Note: This is stated as an axiom because the full proof was not completed in the formalization.
red[UNPROVEN AXIOM]
If \(F\) is a time-propagating generator \((\mathsf{IsTimePropagatingGen}\ \mathrm{proc}\ P\ t\ F)\), then \(F\) is a gauging stabilizer. The proof requires showing that the measurement faults on anticommuting checks cancel all detector violations via the \((-1) \times (-1) = +1\) argument, and that the net Pauli effect \(P \cdot P = I\) preserves the logical outcome.
Note: This is stated as an axiom because the full proof was not completed in the formalization.
red[UNPROVEN AXIOM]
If \(F\) is a \(Z_e + A_v\) measurement fault generator \((\mathsf{IsZeAvMeasGen}\ \mathrm{proc}\ e\ t\ r\ F)\), then \(F\) is a gauging stabilizer. \(Z_e\) anticommutes with \(A_v\) for both endpoints \(v \in e\); each \(A_v\) measurement fault cancels the corresponding detector violation: \((-1) \times (-1) = +1\) for each endpoint.
Note: This is stated as an axiom because the full proof was not completed in the formalization.
The matching graph consists of \(n\) connected components: if \(p\) and \(q\) are reachable, then there exists \(i : \operatorname {Fin}(n)\) such that \(p \in \{ \operatorname {inl}(i), \operatorname {inr}(i)\} \) and \(q \in \{ \operatorname {inl}(i), \operatorname {inr}(i)\} \).
\(p \sim q\) in the matching graph if and only if there exists \(i : \operatorname {Fin}(n)\) such that \((p = \operatorname {inl}(i) \land q = \operatorname {inr}(i))\) or \((p = \operatorname {inr}(i) \land q = \operatorname {inl}(i))\).
The full Steane-style measurement decomposes into three gauging operations:
Step 1 (State preparation): The hypergraph Gauss operators for Z-check incidence mutually commute and are all pure X-type.
Step 2 (Entangling): The Gauss operators for the matching graph mutually commute, are pure X-type, and the CX circuit transforms \(A_v \mapsto X_{\operatorname {inl}(v)}\).
Step 3 (Readout): The edge \(Z\) operators mutually commute and are self-inverse.
The complete Steane-style measurement decomposition satisfies:
Step 1: All hypergraph Gauss operators commute.
Step 2: All matching graph Gauss operators commute, and the CX circuit maps \(A_v \mapsto X_{\operatorname {inl}(v)}\).
Step 3: All edge \(Z\) operators commute.
Degree bound: Every vertex has degree 1.
Edge count: \(2|E| = 2n\).
The hypergraph whose hyperedges correspond to the Z-type checks of the ancilla CSS code defines a valid hypergraph gauging. Specifically:
The Gauss operators \(A_v\) are all pure X-type: \((\operatorname {hyperGaussLawOp}(v)).\mathtt{zVec} = 0\) for all \(v\).
The Gauss operators mutually commute: \(\operatorname {PauliCommute}(A_v, A_w)\) for all \(v, w\).
The hypergraph boundary map for Z-check incidence computes the Z-parity at each qubit from a vector of check activations:
Space-faults do not affect the syndrome: two spacetime faults with the same time-fault component produce the same syndrome. If \(F_1.\mathrm{timeFaults} = F_2.\mathrm{timeFaults}\), then
The syndrome captures the error information revealed by detectors: two faults produce the same syndrome if and only if they violate the same detectors:
The spacetime syndrome equals the Def 8 syndrome applied to the time-fault component. This captures the key fact that detectors depend only on measurement outcomes, so only time-faults affect the syndrome:
The syndrome vector is the same for faults with identical time-fault components. If \(F_1.\mathrm{timeFaults} = F_2.\mathrm{timeFaults}\), then
Two faults have the same syndrome vector if and only if they have the same syndrome finset:
Every syndrome-free pure-time fault that preserves the Gauss sign decomposes into the listed spacetime stabilizer generators from Lemma 5. That is, there exists a list of generators \(\mathit{gens}\) such that every \(g \in \mathit{gens}\) satisfies \(\operatorname {IsListedGenerator}(g)\) and \(F = \operatorname {foldl}(\operatorname {compose}, \operatorname {empty}, \mathit{gens})\).
For a syndrome-free pure-time fault \(F\), exactly one of the following holds:
\(F\) flips the gauging sign (i.e., is a logical fault), or
\(F\) preserves the gauging sign and decomposes into the listed stabilizer generators (i.e., is a trivial fault).
Let \(G\) be a simple graph on \(V\) with \(\operatorname {ConstantDegree}(G, \Delta )\), \(\operatorname {LowWeightCycleBasis}(G, \operatorname {cycles}, 4)\), and \(\operatorname {SufficientExpansion}(G)\). Then:
For all \(v \in V\): \(\operatorname {weight}(\operatorname {gaussLawChecks}(G, v)) \leq 1 + \Delta \).
For all \(p \in C\): \(\operatorname {weight}(\operatorname {fluxChecks}(G, \operatorname {cycles}, p)) \leq 4\).
\(G\) is a \(1\)-expander: \(\operatorname {IsExpander}(G, 1)\).
Let \(G\) be a simple graph on \(V\) with checks \(\{ \operatorname {checks}(j)\} _{j \in J}\) and cycles \(\{ \operatorname {cycles}(c)\} _{c \in C}\). Suppose:
Every pair of distinct vertices in the \(Z\)-support of each check are adjacent in \(G\).
\(\operatorname {SufficientExpansion}(G)\) holds.
\(\operatorname {LowWeightCycleBasis}(G, \operatorname {cycles}, 4)\) holds.
\(\operatorname {ConstantDegree}(G, \Delta )\) holds.
Then \(\operatorname {AllDesiderataSatisfied}(G, \operatorname {cycles}, \operatorname {checks}, 1, 4)\).
Let \(G\) be a simple graph on \(V\) with checks \(\{ \operatorname {checks}(j)\} _{j \in J}\). Given a check index \(j\), an edge path \(\gamma : G.\operatorname {edgeSet} \to \mathbb {Z}/2\mathbb {Z}\), and a bound \(B\) such that \(|\{ e : \gamma (e) \neq 0\} | \leq B\), then
Let \(G\) be a simple graph on \(V\) with checks \(\{ \operatorname {checks}(j)\} _{j \in J}\), cycles \(\{ \operatorname {cycles}(c)\} _{c \in C}\), and deformed code data. Suppose: the cycles satisfy the even incidence property at every vertex, the checks pairwise commute, the original stabilizer code has parameters \([\! [n, k, d]\! ]\) with \(n = |V|\), \(n - |J| = k\), \(k \geq 1\), and the cycle rank property holds. Then the deformed stabilizer code satisfies
where \(n'\) and \(m'\) are the number of qubits and checks of the deformed code, respectively.
Let \(G\) be a simple graph on \(V\) with \(\operatorname {SufficientExpansion}(G)\). For every nonempty subset \(S \subseteq V\) with \(2|S| \leq |V|\):
where \(\partial _G S\) is the edge boundary of \(S\) in \(G\).
Let \(G\) be a simple graph with cycles \(\{ \operatorname {cycles}(c)\} _{c \in C}\) satisfying \(\operatorname {LowWeightCycleBasis}(G, \operatorname {cycles}, W)\). For every plaquette \(p \in C\):
Let \(G\) be a simple graph on a finite type \(V\), and let \(\{ \operatorname {checks}(j)\} _{j \in J}\) be a family of Pauli operators. Suppose that for every check \(j\) and every pair of distinct vertices \(u, v\) in \(\operatorname {supportZ}(\operatorname {checks}(j))\), \(u\) and \(v\) are adjacent in \(G\). Then \(\operatorname {ShortPathsForDeformation}(G, \operatorname {checks}, 1)\) holds.
Let \(G\) be a simple graph with a finite edge set, and let \(\{ \operatorname {cycles}(c)\} _{c \in C}\) be a collection of subsets of \(G.\operatorname {edgeSet}\). If every cycle \(c\) satisfies \(|\{ e \in G.\operatorname {edgeSet} \mid e \in \operatorname {cycles}(c)\} | \leq 4\), then \(\operatorname {LowWeightCycleBasis}(G, \operatorname {cycles}, 4)\) holds.
Let \(G\) be a simple graph on \(V\) with checks \(\{ \operatorname {checks}(j)\} _{j \in J}\). If every pair of distinct vertices in the \(Z\)-support of each check are adjacent in \(G\), and \(G\) has sufficient expansion, then both \(\operatorname {ShortPathsForDeformation}(G, \operatorname {checks}, 1)\) and \(\operatorname {SufficientExpansion}(G)\) hold.
Let \(G\) be a connected simple graph on \(V\) with \(\operatorname {ConstantDegree}(G, \Delta )\), \(|V| \geq 2\), \(\operatorname {SufficientExpansion}(G)\), clique adjacency on each check’s \(Z\)-support, \(\operatorname {LowWeightCycleBasis}(G, \operatorname {cycles}, 4)\), the cycle rank property, and a König layer assignment \(f_0 : C \to \operatorname {Fin}(M+1)\) with \(\operatorname {LayerCycleDegreeBound}(\operatorname {cycles}, f_0, 1)\) and \(M \leq K \cdot (\log _2 |V|)^2\). Then for any positive \(c\):
\(\operatorname {AllDesiderataSatisfied}(G, \operatorname {cycles}, \operatorname {checks}, 1, 4)\).
There exist \(R\) and \(f : C \to \operatorname {Fin}(R+1)\) with \(\operatorname {LayerCycleDegreeBound}(\operatorname {cycles}, f, c)\) and \(R \leq K \cdot (\log _2 |V|)^2 / c\).
Distance preserved: for all nonempty \(S \subseteq V\) with \(2|S| \leq |V|\), \(|S| \leq |\partial _G S|\).
Vertex count bound: for all \(R \leq K \cdot (\log _2 |V|)^2 / c\), \((R+1) \cdot |V| \leq (K \cdot (\log _2 |V|)^2 / c + 1) \cdot |V|\).
Let \(G\) be a connected simple graph on \(V\) with \(\operatorname {ConstantDegree}(G, \Delta )\), \(|V| \geq 2\), \(\operatorname {SufficientExpansion}(G)\), clique adjacency on each check’s \(Z\)-support, \(\operatorname {LowWeightCycleBasis}(G, \operatorname {cycles}, 4)\), and the cycle rank property \(|C| + |V| = |E(G)| + 1\). Given a positive bound parameter, the following all hold simultaneously:
\(\operatorname {AllDesiderataSatisfied}(G, \operatorname {cycles}, \operatorname {checks}, 1, 4)\).
Edge overhead is linear: \(2|E(G)| \leq \Delta \cdot |V|\).
Gauss checks bounded: \(\forall v,\; \operatorname {weight}(\operatorname {gaussLawChecks}(G, v)) \leq 1 + \Delta \).
Flux checks bounded: \(\forall p,\; \operatorname {weight}(\operatorname {fluxChecks}(G, \operatorname {cycles}, p)) \leq 4\).
Distance preserved: for all nonempty \(S \subseteq V\) with \(2|S| \leq |V|\), \(|S| \leq |\partial _G S|\).
Decongestion: there exist \(R\) and a layer assignment \(f : C \to \operatorname {Fin}(R+1)\) with \(\operatorname {LayerCycleDegreeBound}(\operatorname {cycles}, f, \operatorname {bound})\) and \(R \leq \Delta \cdot |V| / 2\).
Let \(G\) be a constant-degree \(\Delta \) connected graph on \(V\) with \(|V| \geq 2\), sufficient expansion \(h(G) \geq 1\), \(Z\)-support matching edges, and a low-weight cycle basis with cycles of weight \(\leq 4\). Given the cycle rank property \(|C| + |V| = |E| + 1\), a layer cycle degree bound with \(M\) layers satisfying \(M \leq K \cdot (\log _2 |V|)^2\), and a per-layer parameter \(c {\gt} 0\), the following all hold:
All desiderata are satisfied: \(\operatorname {AllDesiderataSatisfied}(G, \text{cycles}, \text{checks}, 1, 4)\).
There exist \(R\) layers and a coloring \(f\) with \(\operatorname {LayerCycleDegreeBound}(\text{cycles}, f, c)\) and \(R \leq K \cdot (\log _2 |V|)^2 / c\).
The edge overhead is linear: \(2|E| \leq \Delta \cdot |V|\).
The expansion gives a boundary bound: for all nonempty \(S \subseteq V\) with \(2|S| \leq |V|\), we have \(|S| \leq |\partial S|\).
Let \(G\) be a constant-degree \(\Delta \) graph with a low-weight cycle basis of weight \(\leq 4\). Then:
For every vertex \(v \in V\), the Gauss law check \(A_v\) has weight at most \(1 + \Delta \).
For every cycle \(p \in C\), the flux check \(B_p\) has weight at most \(4\).
Let \(G\) be a constant-degree \(\Delta \) graph with cycle rank property, and let the original code have parameters \([\! [n,k,d]\! ]\) with \(k \geq 1\). Given \(R \leq K \cdot (\log _2 n)^2\) layers, the deformed code satisfies:
The number of encoded qubits decreases by one: \(n' - m' = k - 1\), where \(n'\) is the number of qubits and \(m'\) is the number of checks of the deformed code.
The edge overhead is bounded: \(2|E| \leq \Delta \cdot |V|\).
Let \(W, \Delta , K, c {\gt} 0\) be natural numbers and \(R \leq K \cdot (\log _2 W)^2/c\). Then the multiplier satisfies
The constant \(\Delta \cdot (K/c + 1)\) depends on the code parameters \(\Delta \) (maximum degree of \(G\), a function of check weight \(w\) and qubit degree), \(K\) (the Freedman–Hastings constant), and \(c\) (per-layer cycle-degree bound), but is independent of \(W\) and \(n\).
Let \(G\) be a constant-degree \(\Delta \) graph on \(V\) with cycles and checks, and let the deformed stabilizer code be constructed from this data. Then the number of qubits of the deformed code satisfies
Let \(G\) be a connected constant-degree \(\Delta \) graph on \(V\) with \(|V| \geq 2\) and sufficient expansion, equipped with a cycle basis satisfying the exactness conditions. Let \(\mathcal{C}\) be the original stabilizer code with logical operator \(L\) and let the deformed code have at least one logical operator. Given \(R \leq K \cdot (\log _2 |V|)^2\) layers, we have:
The distance is preserved: \(d \leq d^*\), where \(d\) is the distance of the original code and \(d^*\) is the distance of the deformed code.
The edge overhead is bounded: \(2|E| \leq \Delta \cdot |V|\).
Let \(W, \Delta , K, c {\gt} 0\) be natural numbers and \(R \leq K \cdot (\log _2 W)^2/c\). Then the overhead bound
depends on \(W\), \(\Delta \), \(K\), \(c\) but not on the code size \(n\).
For a qLDPC stabilizer code with a Pauli logical operator \(L\) of weight \(W\), let \(G\) be a constant-degree \(\Delta \) connected graph on \(V\) with \(|V| = W\) (support of \(L\)), sufficient expansion \(h(G) \geq 1\), \(Z\)-support matching edges, a low-weight cycle basis with cycles of weight \(\leq 4\), and the cycle rank property \(|C| + |V| = |E| + 1\). Given a König coloring with \(M\) layers and the Freedman–Hastings bound \(M \leq K \cdot (\log _2 W)^2\), and a per-layer parameter \(c {\gt} 0\), the following all hold:
All desiderata are satisfied: \(\operatorname {AllDesiderataSatisfied}(G, \text{cycles}, \text{checks}, 1, 4)\).
There exist \(R\) layers and a coloring \(f\) with layer cycle degree bound \(c\) and \(R \leq K \cdot (\log _2 W)^2 / c\).
The edge overhead is \(O(W)\): \(2|E| \leq \Delta \cdot W\).
The distance is preserved: \(d \leq d^*\).
Gauss law check weights are bounded: \(\operatorname {wt}(A_v) \leq 1 + \Delta \) for all \(v\).
Flux check weights are bounded: \(\operatorname {wt}(B_p) \leq 4\) for all \(p\).
The vertex overhead is bounded: for all \(R \leq K \cdot (\log _2 W)^2/c\), we have \((R+1) \cdot W \leq (K \cdot (\log _2 W)^2/c + 1) \cdot W\).