MerLean-example

21 Rem 12: Worst-Case Graph Construction

We outline a construction that produces a graph \(G\) with qubit overhead \(O(W \log ^2 W)\) satisfying all desiderata from Remark 11, for a logical operator \(L\) of weight \(W\).

Let \(L\) denote the support of \(L\) (so \(|L| = W\)), and let \(V = L\) be the vertex set.

Step 1: \(Z\)-type support matching. For each check \(s_j\) with \(S_Z(s_j) \cap L \neq \emptyset \), the intersection has even cardinality (since \(s_j\) commutes with \(L = \prod _v X_v\)). Pick a perfect matching and add edges, achieving Desideratum 1 with \(D = 1\).

Step 2: Achieve expansion. Add edges until \(h(G) \geq 1\) (Cheeger constant), satisfying Desideratum 2. The resulting graph \(G_0\) is constant-degree.

Step 3: Cycle sparsification. Apply Definition 6 to \(G_0\) with \(R = O(\log ^2 W)\) layers (Lemma 2). All generating cycles have weight \(\leq 4\), satisfying Desideratum 3.

Result:

  • Total qubits: \(O(W) \cdot O(\log ^2 W) = O(W \log ^2 W)\).

  • All checks have bounded weight.

  • Distance is preserved: \(d^* \geq d\).

Theorem 474 Symplectic Inner Product with \(\prod X\)

Let \(V\) be a finite type and let \(P\) be a Pauli operator on \(V\). Then

\[ \langle P, \operatorname {prodX}(V) \rangle _{\mathrm{symp}} \; =\; \sum _{v \in V} P.\operatorname {zVec}(v). \]
Proof

Expanding the definition of the symplectic inner product and \(\operatorname {prodX}\), the \(X\)-vector of \(\operatorname {prodX}(\operatorname {univ})\) is the all-ones function and the \(Z\)-vector is identically zero. Thus the sum reduces to \(\sum _v P.\operatorname {zVec}(v) \cdot 1 + P.\operatorname {xVec}(v) \cdot 0 = \sum _v P.\operatorname {zVec}(v)\). By simplification and functional extensionality (using commutativity of the ring), the two sides are equal.

Theorem 475 Commutation with \(\prod X \Leftrightarrow \) CommutesWithLogical

Let \(P\) be a Pauli operator on a finite type \(V\). Then

\[ \operatorname {PauliCommute}(P, \operatorname {prodX}(V)) \; \Longleftrightarrow \; \operatorname {CommutesWithLogical}(P). \]
Proof

Unfolding the definitions of \(\operatorname {PauliCommute}\) and \(\operatorname {CommutesWithLogical}\), we rewrite using the identity \(\langle P, \operatorname {prodX}(V) \rangle _{\mathrm{symp}} = \sum _v P.\operatorname {zVec}(v)\) (from the previous theorem), and then use the equality \(\sum _v P.\operatorname {zVec}(v) = \sum _v \operatorname {zSupportOnVertices}(P)(v)\) to conclude.

Theorem 476 Commuting Check Has Even \(Z\)-Support

Let \(P\) be a Pauli operator on a finite type \(V\). If \(\operatorname {PauliCommute}(P, \operatorname {prodX}(V))\), then

\[ \bigl|\{ v \in V \mid P.\operatorname {zVec}(v) \neq 0\} \bigr| \text{ is even.} \]
Proof

Rewriting the hypothesis using the equivalence \(\operatorname {PauliCommute}(P, \operatorname {prodX}(V)) \Leftrightarrow \operatorname {CommutesWithLogical}(P)\), the result follows from the implication \(\operatorname {CommutesWithLogical}(P) \Rightarrow \text{Even}(|\{ v : P.\operatorname {zVec}(v) \neq 0\} |)\).

Theorem 477 Even \(Z\)-Support Cardinality Modulo 2

Let \(P\) be a Pauli operator on a finite type \(V\). If \(\operatorname {PauliCommute}(P, \operatorname {prodX}(V))\), then

\[ \bigl|\{ v \in V \mid P.\operatorname {zVec}(v) \neq 0\} \bigr| \bmod 2 = 0. \]
Proof

This follows directly from the previous theorem: since the cardinality is even, it is congruent to \(0\) modulo \(2\).

Theorem 478 Step 1 Achieves Desideratum 1

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.

Proof

Let \(j\), \(u\), \(v\) be given with \(u \in \operatorname {supportZ}(\operatorname {checks}(j))\) and \(v \in \operatorname {supportZ}(\operatorname {checks}(j))\). We consider two cases. If \(u = v\), then \(\operatorname {dist}(u, v) = 0 \leq 1\) by reflexivity of the distance. If \(u \neq v\), then by hypothesis \(G.\operatorname {Adj}(u, v)\), so \(\operatorname {dist}(u, v) = 1 \leq 1\) by the characterization of graph distance equal to one.

Theorem 479 Step 1 Edge-Path Bound

Under the same hypotheses as the previous theorem (every check’s \(Z\)-support forms a clique in \(G\)), for any check \(j\) and any \(u, v \in \operatorname {supportZ}(\operatorname {checks}(j))\):

\[ \operatorname {dist}_G(u, v) \leq 1. \]
Proof

This follows directly from applying the theorem \(\operatorname {step1\_ achieves\_ desideratum1}\).

Theorem 480 Steps 1 and 2 Satisfy Desiderata 1 and 2

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.

Proof

The pair is constructed from \(\operatorname {step1\_ achieves\_ desideratum1}\) (giving Desideratum 1) and the hypothesis \(\operatorname {hexp}\) (giving Desideratum 2).

Theorem 481 Sparsified Vertex Count

For natural numbers \(R\) and \(W\), the sparsified graph’s vertex count satisfies

\[ (R+1) \cdot W = |\operatorname {SparsifiedVertex}(\operatorname {Fin}(W), R)|. \]
Proof

Rewriting using the identity \(|\operatorname {SparsifiedVertex}(\operatorname {Fin}(W), R)| = (R+1) \cdot |\operatorname {Fin}(W)|\) and the fact that \(|\operatorname {Fin}(W)| = W\), the equality holds.

Theorem 482 Sparsified Vertex Bound

For natural numbers \(R\), \(K\), \(W\) with \(R \leq K \cdot (\log _2 W)^2\):

\[ (R+1) \cdot W \leq (K \cdot (\log _2 W)^2 + 1) \cdot W. \]
Proof

This follows directly from the sparsified vertex count bound established in Lemma 2.

Theorem 483 Step 3 Satisfies Desideratum 3

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.

Proof

By definition, \(\operatorname {LowWeightCycleBasis}(G, \operatorname {cycles}, 4)\) requires exactly that every cycle has at most \(4\) edges, which is the hypothesis.

Theorem 484 Total Qubit Bound Arithmetic

For natural numbers \(W\), \(R\), \(\Delta \), \(K\) with \(R \leq K \cdot (\log _2 W)^2\):

\[ (R+1) \cdot W \leq (K \cdot (\log _2 W)^2 + 1) \cdot W. \]
Proof

By monotonicity of multiplication on the right, it suffices to show \((R+1) \leq K \cdot (\log _2 W)^2 + 1\), which follows from \(R \leq K \cdot (\log _2 W)^2\) by integer arithmetic.

Theorem 485 Total Qubit Overhead from Degree

Let \(G\) be a simple graph on \(V\) with \(\operatorname {ConstantDegree}(G, \Delta )\). Then

\[ 2 \cdot (|V| + |E(G)|) \leq (2 + \Delta ) \cdot |V|. \]
Proof

This follows directly from the total qubits bounded theorem.

Theorem 486 Total Overhead is \(O(W \log ^2 W)\)

For natural numbers \(W\), \(R\), \(K\) with \(R \leq K \cdot (\log _2 W)^2\), \(K {\gt} 0\), and \(W \geq 2\):

\[ (R+1) \cdot W \leq (K \cdot (\log _2 W)^2 + 1) \cdot W. \]
Proof

By monotonicity of multiplication on the right, it suffices to show \((R+1) \leq K \cdot (\log _2 W)^2 + 1\), which follows from the hypothesis \(R \leq K \cdot (\log _2 W)^2\) by integer arithmetic.

Theorem 487 Gauss Check Weight from Degree

Let \(G\) be a simple graph on \(V\) with \(\operatorname {ConstantDegree}(G, \Delta )\). For every vertex \(v \in V\):

\[ \operatorname {weight}(\operatorname {gaussLawChecks}(G, v)) \leq 1 + \Delta . \]
Proof

This follows directly from the Gauss law checks weight bound.

Theorem 488 Flux Check Weight from Cycles

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

\[ \operatorname {weight}(\operatorname {fluxChecks}(G, \operatorname {cycles}, p)) \leq W. \]
Proof

This follows directly from the flux checks weight bound.

Theorem 489 Deformed Check Weight Bounded by Path

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

\[ \bigl|\{ e \in G.\operatorname {edgeSet} \mid \operatorname {deformedCheck}(G, \operatorname {checks}(j), \gamma ).\operatorname {zVec}(\operatorname {inr}(e)) \neq 0\} \bigr| \leq B. \]
Proof

This follows directly from the deformed check edge bound.

Theorem 490 Distance Preserved by Expansion

Let \(G\) be a simple graph on \(V\) with \(\operatorname {SufficientExpansion}(G)\). For every nonempty subset \(S \subseteq V\) with \(2|S| \leq |V|\):

\[ |S| \leq |\partial _G S|, \]

where \(\partial _G S\) is the edge boundary of \(S\) in \(G\).

Proof

This follows directly from the expansion gives boundary bound theorem.

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:

  1. Every pair of distinct vertices in the \(Z\)-support of each check are adjacent in \(G\).

  2. \(\operatorname {SufficientExpansion}(G)\) holds.

  3. \(\operatorname {LowWeightCycleBasis}(G, \operatorname {cycles}, 4)\) holds.

  4. \(\operatorname {ConstantDegree}(G, \Delta )\) holds.

Then \(\operatorname {AllDesiderataSatisfied}(G, \operatorname {cycles}, \operatorname {checks}, 1, 4)\).

Proof

The three components of \(\operatorname {AllDesiderataSatisfied}\) are constructed as a triple: \(\operatorname {step1\_ achieves\_ desideratum1}\) gives \(\operatorname {ShortPathsForDeformation}(G, \operatorname {checks}, 1)\), the hypothesis gives \(\operatorname {SufficientExpansion}(G)\), and the low-weight cycle basis hypothesis gives \(\operatorname {LowWeightCycleBasis}(G, \operatorname {cycles}, 4)\).

Let \(G\) be a simple graph on \(V\) with \(\operatorname {ConstantDegree}(G, \Delta )\), \(\operatorname {LowWeightCycleBasis}(G, \operatorname {cycles}, 4)\), and \(\operatorname {SufficientExpansion}(G)\). Then:

  1. For all \(v \in V\): \(\operatorname {weight}(\operatorname {gaussLawChecks}(G, v)) \leq 1 + \Delta \).

  2. For all \(p \in C\): \(\operatorname {weight}(\operatorname {fluxChecks}(G, \operatorname {cycles}, p)) \leq 4\).

  3. \(G\) is a \(1\)-expander: \(\operatorname {IsExpander}(G, 1)\).

Proof

The three components are constructed as a triple:

  1. For each vertex \(v\), the Gauss law check weight bound gives \(\operatorname {weight}(\operatorname {gaussLawChecks}(G, v)) \leq 1 + \Delta \).

  2. For each plaquette \(p\), the flux check weight bound gives \(\operatorname {weight}(\operatorname {fluxChecks}(G, \operatorname {cycles}, p)) \leq 4\).

  3. The sufficient expansion implies expander theorem gives \(\operatorname {IsExpander}(G, 1)\).

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:

  1. \(\operatorname {AllDesiderataSatisfied}(G, \operatorname {cycles}, \operatorname {checks}, 1, 4)\).

  2. Edge overhead is linear: \(2|E(G)| \leq \Delta \cdot |V|\).

  3. Gauss checks bounded: \(\forall v,\; \operatorname {weight}(\operatorname {gaussLawChecks}(G, v)) \leq 1 + \Delta \).

  4. Flux checks bounded: \(\forall p,\; \operatorname {weight}(\operatorname {fluxChecks}(G, \operatorname {cycles}, p)) \leq 4\).

  5. Distance preserved: for all nonempty \(S \subseteq V\) with \(2|S| \leq |V|\), \(|S| \leq |\partial _G S|\).

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

Proof

The six-tuple is constructed from:

  1. The construction satisfies all desiderata theorem gives the first component.

  2. The constant degree bounds edges theorem gives \(2|E(G)| \leq \Delta \cdot |V|\).

  3. For each vertex \(v\), the Gauss law checks weight bound applies.

  4. For each plaquette \(p\), the flux checks weight bound applies.

  5. For each valid subset \(S\), the expansion gives boundary bound applies.

  6. The decongestion lemma bound provides the layer assignment with the required properties.

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

  1. \(\operatorname {AllDesiderataSatisfied}(G, \operatorname {cycles}, \operatorname {checks}, 1, 4)\).

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

  3. Distance preserved: for all nonempty \(S \subseteq V\) with \(2|S| \leq |V|\), \(|S| \leq |\partial _G S|\).

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

Proof

We construct the four-tuple using a refinement:

  1. The construction satisfies all desiderata theorem gives the first component.

  2. The decongestion log-squared theorem, applied with \(\Delta \), the constant degree hypothesis, connectivity, \(|V| \geq 2\), the positivity of expansion (from \(\operatorname {sufficient\_ expansion\_ pos}\)), the cycles, \(c {\gt} 0\), the cycle rank property, and the König layer bound, provides \(R\) and \(f\) with the required properties.

  3. For each valid subset \(S\), the expansion gives boundary bound applies.

  4. For the vertex count bound, by monotonicity of multiplication on the right, it suffices to show \(R + 1 \leq K \cdot (\log _2 |V|)^2 / c + 1\), which follows from \(R \leq K \cdot (\log _2 |V|)^2 / c\) by integer arithmetic.

Theorem 495 Qubit Overhead Bound

For natural numbers \(W\), \(R\), \(\Delta _{\mathrm{sp}}\) with \(R \leq (\log _2 W)^2\) and \(W {\gt} 0\):

\[ 2 \cdot (R+1) \cdot W \leq 2 \cdot ((\log _2 W)^2 + 1) \cdot W. \]
Proof

By monotonicity of multiplication on the left (factor \(2\)) and on the right (factor \(W\)), it suffices to show \(R + 1 \leq (\log _2 W)^2 + 1\), which follows from \(R \leq (\log _2 W)^2\) by integer arithmetic.

Theorem 496 Overhead Ratio

For natural numbers \(W\), \(R\), \(K\) with \(R \leq K \cdot (\log _2 W)^2\) and \(W {\gt} 0\):

\[ R + 1 \leq K \cdot (\log _2 W)^2 + 1. \]
Proof

This follows immediately from the hypothesis \(R \leq K \cdot (\log _2 W)^2\) by integer arithmetic.

Theorem 497 Deformed Code Loses One Logical Qubit

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

\[ n' - m' = k - 1, \]

where \(n'\) and \(m'\) are the number of qubits and checks of the deformed code, respectively.

Proof

This follows directly from the codespace dimension change after gauging theorem.

I’ll start by reading the Lean file to understand its contents.Now I have the complete file. Let me produce the LaTeX translation.