MerLean-example

48 Rem 26: Cohen et al. Scheme Recovery

Definition 1421 Logical Support
#

Given a Pauli operator \(L\) on qubits \(Q\), the logical support is defined as the \(X\)-support of \(L\):

\[ \operatorname {logicalSupport}(L) := \operatorname {supp}_X(L). \]
Definition 1422 Z-Type Check

A check index \(i\) of a stabilizer code \(C\) is a \(Z\)-type check if the corresponding check operator has no \(X\)-support, i.e., the \(X\)-vector of \(C.\operatorname {check}(i)\) is zero.

Definition 1423 Relevant Z-Checks

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)\):

\[ E_L := \{ i \in C.I \mid \text{isZTypeCheck}(i) \; \wedge \; \operatorname {supp}_Z(C.\operatorname {check}(i)) \cap \operatorname {logicalSupport}(L) \neq \emptyset \} . \]
Definition 1424 Restricted Z-Check Incidence

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.

Definition 1425 Restricted Boundary Map

The restricted boundary map \(\partial : \mathbb {Z}_2^{E_L} \to \mathbb {Z}_2^{V_L}\) is the hypergraph boundary map for the restricted incidence relation.

Definition 1426 Restricted Coboundary Map

The restricted coboundary map \(\delta : \mathbb {Z}_2^{V_L} \to \mathbb {Z}_2^{E_L}\) is the hypergraph coboundary map (transpose of \(\partial \)) for the restricted incidence relation.

Definition 1427 X-Type Logical Operator

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).

Definition 1428 Irreducible X Logical Operator

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}\).

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:

\[ \bigl|\{ q \in Q \mid \operatorname {restrictedZCheckIncident}(C, L, q, j)\} \bigr| \text{ is even.} \]
Proof

Let \(h_{\mathrm{comm}} := h_{L,\mathrm{comm}}(i)\) be the commutation condition \(\langle L, C.\operatorname {check}(i) \rangle _{\mathrm{symp}} = 0\). Unfolding the definitions of \(\operatorname {PauliCommute}\) and \(\operatorname {symplecticInner}\), and using that \(L.\operatorname {zVec} = 0\) and \((C.\operatorname {check}(i)).\operatorname {xVec} = 0\) (since \(i\) is \(Z\)-type), the symplectic inner product simplifies to \(\sum _q L.\operatorname {xVec}(q) \cdot (C.\operatorname {check}(i)).\operatorname {zVec}(q) = 0\). We rewrite the cardinality condition using \(\operatorname {natCast\_ eq\_ zero\_ iff\_ even}\), express the cardinality as a sum of ones over the filter, and push the cast. We then show the sums agree by extensionality: for each \(q\), we case-split on whether \(L.\operatorname {xVec}(q) = 0\) and whether \((C.\operatorname {check}(i)).\operatorname {zVec}(q) = 0\). Over \(\mathbb {Z}_2\), each nonzero element equals \(1\), so both sides of the summand agree in all cases.

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:

\[ \operatorname {PauliCommute}(\operatorname {prodX}(S), C.\operatorname {check}(j)) \; \Leftrightarrow \; \bigl|\{ q \in S \mid (C.\operatorname {check}(j)).\operatorname {zVec}(q) \neq 0\} \bigr| \text{ is even.} \]
Proof

Unfolding \(\operatorname {PauliCommute}\) and \(\operatorname {symplecticInner}\), we apply the helper lemma that computes the symplectic inner product of \(\operatorname {prodX}(S)\) with a \(Z\)-type check as a filtered sum. The result then follows by rewriting the even-cardinality condition via \(\operatorname {natCast\_ eq\_ zero\_ iff\_ even}\), expressing the cardinality as a sum of ones over the filter, and pushing the cast. The two sides are definitionally equal.

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))\).

Proof

Let \(i\) be any check index. By the CSS property, check \(i\) is either pure \(X\)-type or pure \(Z\)-type. In the first case, \(\operatorname {prodX}(S)\) commutes with it by the pure-\(X\)/pure-\(X\) commutation lemma (since \(\operatorname {prodX}(S)\) has zero \(Z\)-vector). In the second case, the check is \(Z\)-type, and commutation follows from the even overlap hypothesis via \(\operatorname {prodX\_ commutes\_ zCheck\_ iff\_ even}\).

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\).

Proof

We apply \(\operatorname {prodX\_ centralizer\_ of\_ even\_ overlap}\), using the CSS hypothesis. For each \(Z\)-type check \(j\), the kernel condition \(f \in \ker (\delta )\) gives \(\delta (f)(j) = 0\), which by definition means \(\sum _q [\text{incident}(q,j)] \cdot f(q) = 0\). We rewrite the even-cardinality goal using \(\operatorname {natCast\_ eq\_ zero\_ iff\_ even}\) and express the cardinality as a sum. The two sums are then shown to agree by a summand-by-summand case analysis: for each \(q\), we consider whether \(f(q) = 0\), whether the restricted incidence holds, and whether \(q \in V_L\). Over \(\mathbb {Z}_2\), nonzero values equal \(1\), so the terms match in all cases. If \(q \notin V_L\), the support hypothesis forces \(f(q) = 0\).

Theorem 1433 \(\mathbb {Z}_2\) Rank-Nullity for Incidence Matrices

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:

\[ \dim (\ker (\delta )) + |E_0| = \dim (\ker (\partial )) + |V_0|. \]
Proof

We rewrite both maps as matrix multiplication linear maps: \(\partial = M \cdot \) and \(\delta = M^T \cdot \), where \(M\) is the \(\mathbb {Z}_2\) incidence matrix. Applying the rank-nullity theorem \(\operatorname {finrank}(\operatorname {range}(A)) + \operatorname {finrank}(\ker (A)) = \operatorname {finrank}(\text{domain})\) to both \(M\) and \(M^T\), and using \(\operatorname {rank}(M) = \operatorname {rank}(M^T)\) (by \(\operatorname {Matrix.rank\_ transpose}\)), the result follows by linear arithmetic (omega).

Theorem 1434 Coboundary Third Element

Given \(\dim (\ker (\partial )) \ge 2\) and \(|E_0| \le |V_0|\), and any \(w \in \ker (\delta )\), there exists \(g \in \ker (\delta )\) with \(g \neq 0\) and \(g \neq w\).

Proof

From the \(\mathbb {Z}_2\) rank-nullity formula and the hypothesis \(|E_0| \le |V_0|\), we obtain \(\dim (\ker (\delta )) \ge 2\). We then apply the submodule existence lemma: in a \(\mathbb {Z}_2\)-submodule of \(\operatorname {finrank} \ge 2\), given any element \(w\), there exists \(v \neq 0\) with \(v \neq w\).

Definition 1435 Core Incidence on Subtypes

The core incidence on subtypes: a vertex \(q \in V_L\) is incident to a check \(i \in E_L\) if and only if \((C.\operatorname {check}(i)).\operatorname {zVec}(q) \neq 0\).

Definition 1436 Lift from \(V_L\) to \(Q\)
#

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\):

\[ \operatorname {liftVL}(g)(q) = \begin{cases} g(q) & \text{if } q \in V_L, \\ 0 & \text{otherwise.} \end{cases} \]
Lemma 1437 Lift is Injective

The lift map \(\operatorname {liftVL}\) is injective.

Proof

Let \(g_1, g_2\) be functions on \(V_L\) with \(\operatorname {liftVL}(g_1) = \operatorname {liftVL}(g_2)\). By extensionality, for any \(\langle q, h_q \rangle \in V_L\), evaluating the equality at \(q\) and using the definition of \(\operatorname {liftVL}\) (which applies \(g\) at \(q\) when \(q \in V_L\)) gives \(g_1(\langle q, h_q \rangle ) = g_2(\langle q, h_q \rangle )\).

If \(g \in \ker (\operatorname {hyperCoboundaryMap}(\operatorname {coreIncident}))\), then \(\operatorname {liftVL}(g) \in \ker (\operatorname {restrictedCoboundaryMap})\).

Proof

We show the coboundary applied to \(\operatorname {liftVL}(g)\) is zero componentwise. For each check index \(j\), we consider two cases. If \(j \in E_L\) (the relevant \(Z\)-checks), we convert between the sum over all qubits \(Q\) (with restricted incidence) and the sum over the subtype \(V_L\) (with core incidence). The key step normalizes the subtype summand, converts the subtype sum to a finset sum via \(\operatorname {sum\_ coe\_ sort}\), then to a full type sum via \(\operatorname {sum\_ ite\_ mem}\), and finally shows summand-by-summand agreement with the restricted incidence formulation. For each qubit \(q\), we case-split on membership in \(V_L\) and on whether the \(Z\)-vector is nonzero, showing agreement in all cases. If \(j \notin E_L\), no vertex is incident to \(j\) (by the definition of relevant checks), so every summand is zero.

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:

  1. \(f \in \ker (\delta )\) (the restricted coboundary kernel),

  2. \(f\) is supported on \(V_L\),

  3. \(f \neq 0\),

  4. there exists \(q \in V_L\) with \(f(q) = 0\).

Proof

We restrict \(\gamma \) and the all-ones vector to the core (subtype) boundary map. Letting \(\gamma _{\mathrm{core}}(i) = \gamma (i_1)\) for \(i \in E_L\) and \(\mathbf{1}_{\mathrm{core}}(i) = 1\), we verify both lie in \(\ker (\operatorname {hyperBoundaryMap}(\operatorname {coreIncident}))\) by converting between the full \(C.I\) sums and subtype sums, matching summands by case analysis on membership and incidence. Since \(\gamma _{\mathrm{core}} \neq 0\) (from \(\gamma \neq 0\) and the support condition) and \(\gamma _{\mathrm{core}} \neq \mathbf{1}_{\mathrm{core}}\) (from \(\gamma \) not being all-ones), over \(\mathbb {Z}_2\) these two nonzero distinct kernel elements force \(\dim (\ker (\partial _{\mathrm{core}})) \ge 2\): if \(\dim \le 1\), by \(\operatorname {finrank\_ le\_ one}\) every element is a scalar multiple of a generator, but over \(\mathbb {Z}_2\) the only nonzero scalar is \(1\), forcing \(\gamma _{\mathrm{core}} = \mathbf{1}_{\mathrm{core}}\), a contradiction. The all-ones function on \(V_L\) lies in \(\ker (\delta _{\mathrm{core}})\) by row evenness. With \(|E_L| \le |V_L|\) and \(\dim (\ker (\partial _{\mathrm{core}})) \ge 2\), \(\operatorname {coboundary\_ third\_ element}\) yields \(g \in \ker (\delta _{\mathrm{core}})\) with \(g \neq 0\) and \(g \neq \mathbf{1}\). We lift \(g\) to \(Q\) via \(\operatorname {liftVL}\): the lift is in \(\ker (\delta )\) by \(\operatorname {liftVL\_ ker\_ coboundary}\), is supported on \(V_L\), is nonzero by injectivity of the lift, and since \(g \neq \mathbf{1}\), there exists \(q \in V_L\) with \(g(q) \neq 1\), hence \(g(q) = 0\) over \(\mathbb {Z}_2\).

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\)).

Proof

Assume \(\gamma \neq 0\). We show \(\gamma \) is all-ones on \(E_L\). Suppose for contradiction that there exists \(i_0 \in E_L\) with \(\gamma (i_0) \neq 1\), so \(\gamma \) is neither zero nor all-ones.

By \(\operatorname {coboundary\_ from\_ boundary\_ step}\), there exists \(f \in \ker (\delta )\) supported on \(V_L\) with \(f \neq 0\) and some \(q \in V_L\) with \(f(q) = 0\). Let \(S = \{ q \mid f(q) \neq 0\} \) and \(T = \{ q \in V_L \mid f(q) = 0\} \).

Since \(f \in \ker (\delta )\), \(\operatorname {coboundary\_ ker\_ gives\_ centralizer\_ pair}\) gives \(\operatorname {prodX}(S) \in \operatorname {Centralizer}(C)\). The complement function \(g(q) = 1 + f(q)\) on \(V_L\) (extended by zero) also lies in \(\ker (\delta )\): its coboundary equals the sum of the all-ones coboundary (zero by row evenness) and \(f\)’s coboundary (zero by hypothesis). Applying \(\operatorname {coboundary\_ ker\_ gives\_ centralizer\_ pair}\) to \(g\) gives \(\operatorname {prodX}(T) \in \operatorname {Centralizer}(C)\).

Since \(S\) and \(T\) are disjoint with \(S \cup T = V_L = \operatorname {logicalSupport}(L)\), we have \(\operatorname {prodX}(S) \cdot \operatorname {prodX}(T) = \operatorname {prodX}(V_L) = L\) (as \(L\) is pure \(X\)-type). Both \(S\) and \(T\) are nonempty (\(S\) because \(f \neq 0\); \(T\) because some \(q \in V_L\) has \(f(q) = 0\)), so both factors have weight strictly less than \(\operatorname {wt}(L)\) and are not the identity. This contradicts the irreducibility of \(L\).

Definition 1441 Layered Incidence

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.

The all-ones Gauss subset product of the layered incidence with \(d\) copies satisfies: for every vertex \(v\) of the Cohen construction,

\[ \bigl(\operatorname {hyperGaussSubsetProduct}(\operatorname {layeredIncident}, \mathbf{1})\bigr).\operatorname {xVec}(\operatorname {inl}(v)) = 1, \]

and the operator is pure \(X\)-type:

\[ \bigl(\operatorname {hyperGaussSubsetProduct}(\operatorname {layeredIncident}, \mathbf{1})\bigr).\operatorname {zVec} = 0. \]
Proof

The first component follows by simplification using \(\operatorname {hyperGaussSubsetProduct\_ xVec\_ vertex}\). The second component is \(\operatorname {hyperGaussSubsetProduct\_ zVec}\) applied to the layered incidence.

Definition 1443 Path Graph Adjacency
#

The path graph adjacency on \(R\) vertices: \(a\) and \(b\) in \(\operatorname {Fin}(R)\) are adjacent if \(a + 1 = b\) or \(b + 1 = a\).

Theorem 1444 Path Graph Adjacency is Symmetric

The path graph adjacency relation is symmetric.

Proof

Unfolding the definition, \(\operatorname {pathGraphAdj}(a, b)\) gives \(a + 1 = b \lor b + 1 = a\). Symmetry follows by swapping the disjuncts, which is verified by integer arithmetic (omega).

Theorem 1445 Path Graph Adjacency is Irreflexive

The path graph adjacency relation is irreflexive: \(\neg \operatorname {pathGraphAdj}(a, a)\) for all \(a\).

Proof

By simplification of the path graph adjacency definition, \(a + 1 = a\) is impossible.

Definition 1446 Path Graph
#

The path graph on \(R\) vertices is the simple graph on \(\operatorname {Fin}(R)\) with adjacency given by \(\operatorname {pathGraphAdj}\), using the symmetry and irreflexivity proved above.

Theorem 1447 Cross et al. Gauss Product is Pure \(X\) with Vertex Values

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\):

\[ \bigl(\operatorname {hyperGaussSubsetProduct}(\operatorname {layeredIncident}, c)\bigr).\operatorname {zVec} = 0 \]

and

\[ \bigl(\operatorname {hyperGaussSubsetProduct}(\operatorname {layeredIncident}, c)\bigr).\operatorname {xVec}(\operatorname {inl}(v)) = c(v). \]
Proof

The \(Z\)-vector vanishes by \(\operatorname {hyperGaussSubsetProduct\_ zVec}\). The \(X\)-vector restriction follows by simplification using \(\operatorname {hyperGaussSubsetProduct\_ xVec\_ vertex}\).

Theorem 1448 Cross et al. Expansion Bound

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:

\[ c \cdot |S| \le |\partial S|, \]

where \(\partial S\) is the edge boundary of \(S\) in the path graph.

Proof

This follows directly from \(\operatorname {edgeBoundary\_ card\_ ge\_ of\_ cheeger}\) applied to the path graph.

Definition 1449 Joint Incidence
#

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 \).

Theorem 1450 Joint Gauss Product Measures Product

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:

  1. For all \(q_1 \in Q_1\): \((\operatorname {hyperGaussSubsetProduct}(\operatorname {jointIncident}, c)).\operatorname {xVec}(\operatorname {inl}(\operatorname {inl}(q_1))) = c_1(q_1)\).

  2. For all \(q_2 \in Q_2\): \((\operatorname {hyperGaussSubsetProduct}(\operatorname {jointIncident}, c)).\operatorname {xVec}(\operatorname {inl}(\operatorname {inr}(q_2))) = c_2(q_2)\).

  3. \((\operatorname {hyperGaussSubsetProduct}(\operatorname {jointIncident}, c)).\operatorname {zVec} = 0\).

Proof

After substituting \(c = \operatorname {Sum.elim}(c_1, c_2)\), the first two components follow by simplification using \(\operatorname {hyperGaussSubsetProduct\_ xVec\_ vertex}\), and the third is \(\operatorname {hyperGaussSubsetProduct\_ zVec}\) applied to the joint incidence.