Skip to main content

Appendix B: Master List of Definitions & Theorems - Chapter 10

This appendix serves as a centralized, rigorous catalog of the foundational mathematical postulates, definitions, axioms, lemmas, and theorems introduced in Chapter 10 of the Quantum Braid Dynamics (QBD) monograph.


10.1.1 Definition: Logical Basis​

Identification of Logical States through Writhe Asymmetry

The Logical Basis of the topological qubit, denoted BL={∣0L⟩,∣1L⟩}\mathcal{B}_L = \{|0_L\rangle, |1_L\rangle\}, is constituted by the exclusive mapping of binary computational states to the two distinct stable prime braid configurations of the electron topology within the tripartite causal graph. This mapping is defined by the following exhaustive structural specifications:

  1. Logical Zero (∣0L⟩|0_L\rangle): The ground state is identified strictly with the symmetric electron braid configuration βe\beta_e, characterized by the uniform writhe vector w=(−1,−1,−1)\boldsymbol{w} = (-1, -1, -1). This state transforms as the trivial singlet representation 1\mathbf{1} under the permutation group S3S_3 acting on the ribbons, rendering it topologically decoupled from the color gauge field.
  2. Logical One (∣1L⟩|1_L\rangle): The excited state is identified strictly with the asymmetric electron braid configuration βe∗\beta_{e*}, characterized by the redistributed writhe vector w=(−2,−1,0)\boldsymbol{w} = (-2, -1, 0). This state transforms as a non-trivial multiplet (triplet 3\mathbf{3} or octet 8\mathbf{8}) under the permutation group S3S_3, rendering it topologically coupled to the color gauge field.
  3. Invariant Constraint: Both states are subject to the global topological conservation law wtotal=∑i=13wi=−3w_{\text{total}} = \sum_{i=1}^3 w_i = -3, thereby ensuring that the electric charge observable Q=13wtotalQ = \frac{1}{3}w_{\text{total}} remains invariant at Q=−1Q=-1 across the entire logical subspace.

The fixed-label uniqueness result applies to the symmetric charge sector Fixed-Charge Uniqueness §7.3.7. The asymmetric logical excitation remains an allowed computational candidate at the same charge; its coherent control and transient color interpretation retain their stated physical assumptions.

In Plain English:
Section 10.1.1 formalizes the properties of the QBD definition regarding logical basis.


10.1.2 Theorem: Qubit Optimality​

Establishment of the Electron Braid as the Unique Minimal Qubit

Let the topological pair {∣βe⟩,∣βe∗⟩}\{|\beta_e\rangle, |\beta_{e*}\rangle\} be the unique minimal physical system satisfying the criteria for a fault-tolerant physical qubit. This system simultaneously satisfies topological stability, distinctness, controllability, and measurability.

In Plain English:
Section 10.1.2 formalizes the properties of the QBD theorem regarding qubit optimality.


10.1.3 Lemma: Topological Stability​

Logical stability via a stipulated gap and escape action

Let the selected same-writhe logical subspace be invariant for a finite-dimensional effective Hamiltonian with a positive spectral gap above it, and let any admitted escape obey a specified rate-action bound. Then the gap separates the logical energies from the selected leakage sector, and the specified escape rate is exponentially bounded by the supplied action.

In Plain English:
Section 10.1.3 formalizes the properties of the QBD lemma regarding topological stability.


10.1.3.1 Proof: Topological Stability​

Derivation of sector and lifetime bounds via the stated stability model

I. Fixed-writhe labels

For the two configurations of Logical Basis §10.1.1,

W(w0)=−1−1−1=−3,W(w1)=−2−1+0=−3,∑i∣w0,i∣=1+1+1=3,∑i∣w1,i∣=2+1+0=3.\begin{aligned} W(\boldsymbol w_0)&=-1-1-1=-3,& W(\boldsymbol w_1)&=-2-1+0=-3,\\ \sum_i |w_{0,i}|&=1+1+1=3,& \sum_i |w_{1,i}|&=2+1+0=3 . \end{aligned}

For every label with W=−3W=-3, ∑i∣wi∣≥∣∑iwi∣=3\sum_i|w_i|\ge|\sum_i w_i|=3. Thus both labels minimize that linear cost. Under permutation invariance wi=w∗w_i=w_*, so 3w∗=−33w_*=-3 selects the first label alone in the symmetric sector (Fixed-Charge Uniqueness §7.3.7).

II. Spectral separation

Write PP for the logical projector, and P⊥P_\perp for the projector onto the orthogonal complement within the W=−3W=-3 sector. In the Hamiltonian model of Topological Stability §10.1.3, use [H,P]=0[H,P]=0 and

PHP≤Emax⁡P,P⊥HP⊥≥(Emax⁡+ΔE)P⊥,ΔE>0.P H P\le E_{\max}P,\qquad P_\perp H P_\perp\ge(E_{\max}+\Delta E)P_\perp,\qquad \Delta E>0 .

For normalized ψ∈im⁡P\psi\in\operatorname{im}P and η∈im⁡P⊥\eta\in\operatorname{im}P_\perp,

⟨η∣H∣η⟩−⟨ψ∣H∣ψ⟩≥Emax⁡+ΔE−Emax⁡=ΔE.\langle\eta|H|\eta\rangle-\langle\psi|H|\psi\rangle \ge E_{\max}+\Delta E-E_{\max}=\Delta E .

Also [H,P]=0[H,P]=0 gives P⊥HkP=0P_\perp H^kP=0 for every k≥0k\ge0, so P⊥e−itHP=0P_\perp e^{-i t H}P=0 for this isolated evolution.

III. Escape under the specified rate model

If an admitted escape process has rate Γ≤Γ0e−Sinst\Gamma\le\Gamma_0e^{-S_{\mathrm{inst}}} with Sinst≥κCS_{\mathrm{inst}}\ge\kappa C and κ>0\kappa>0, then

Γ≤Γ0e−κC,τ=Γ−1≥Γ0−1eκC.\Gamma\le\Gamma_0e^{-\kappa C},\qquad \tau=\Gamma^{-1}\ge\Gamma_0^{-1}e^{\kappa C}.

For an effective thermal activation model the same calculation uses Sinst=ΔEbar/TvacS_{\mathrm{inst}}=\Delta E_{\mathrm{bar}}/T_{\mathrm{vac}}. For a constant escape rate, survival over one clock interval tLt_L is e−ΓtLe^{-\Gamma t_L} and the failure probability satisfies 1−e−ΓtL≤ΓtL1-e^{-\Gamma t_L}\le\Gamma t_L.

Q.E.D.

In Plain English:
Section 10.1.3.1 formalizes the properties of the QBD proof regarding topological stability.


10.1.4 Lemma: Topological Distinctness​

Verification of Orthogonality via Isotopy Classes

For any two logical states ∣0L⟩|0_L\rangle and ∣1L⟩|1_L\rangle, their configurations define strictly orthogonal subspaces within the configuration Hilbert space H\mathcal{H}. This orthogonality is mandated by the disjointness of their ambient isotopy classes.

In Plain English:
Section 10.1.4 formalizes the properties of the QBD lemma regarding topological distinctness.


10.1.4.1 Proof: Topological Distinctness​

Differentiation via Permutation Invariants

I. Configuration Basis and Writhe Labels

Let Ω\Omega index the orthonormal graph configuration basis, so

H=ℓ2(Ω),⟨G∣G′⟩=δG,G′\mathcal H=\ell^2(\Omega),\qquad \langle G|G'\rangle=\delta_{G,G'}

(Configuration Space Validity §3.5.3). For a graph configuration with three labeled ribbons, write its integer label as w(G)\boldsymbol w(G). The two selected logical configurations have labels

w0=(−1,−1,−1),w1=(−2,−1,0)\boldsymbol w_0=(-1,-1,-1),\qquad \boldsymbol w_1=(-2,-1,0)

(Logical Basis §10.1.1). Define

Ωj={G∈Ω:w(G)=wj},Hj=span⁡‾{∣G⟩:G∈Ωj}.\Omega_j=\{G\in\Omega:\boldsymbol w(G)=\boldsymbol w_j\},\qquad \mathcal H_j=\overline{\operatorname{span}}\{|G\rangle:G\in\Omega_j\}.

II. Disjoint Label Sets

If G∈Ω0∩Ω1G\in\Omega_0\cap\Omega_1, its first writhe coordinate would satisfy

w1(G)=−1andw1(G)=−2,w_1(G)=-1\quad\text{and}\quad w_1(G)=-2,

which is impossible. Hence Ω0∩Ω1=∅\Omega_0\cap\Omega_1=\varnothing. The conclusion also holds if labels are compared up to ribbon permutations: the multiset {−1,−1,−1}\{-1,-1,-1\} is distinct from {−2,−1,0}\{-2,-1,0\}.

For vectors of finite support,

∣ψ0⟩=∑G∈Ω0aG∣G⟩,∣ψ1⟩=∑G′∈Ω1bG′∣G′⟩,|\psi_0\rangle=\sum_{G\in\Omega_0}a_G|G\rangle,\qquad |\psi_1\rangle=\sum_{G'\in\Omega_1}b_{G'}|G'\rangle,

and therefore

⟨ψ0∣ψ1⟩=∑G∈Ω0∑G′∈Ω1aG‾bG′⟨G∣G′⟩=∑G∈Ω0∑G′∈Ω1aG‾bG′δG,G′=0.\begin{aligned} \langle\psi_0|\psi_1\rangle &=\sum_{G\in\Omega_0}\sum_{G'\in\Omega_1} \overline{a_G}b_{G'}\langle G|G'\rangle\\ &=\sum_{G\in\Omega_0}\sum_{G'\in\Omega_1} \overline{a_G}b_{G'}\delta_{G,G'}=0. \end{aligned}

Every delta is zero because the two indexing sets are disjoint.

III. Orthogonal Subspaces and Their Projectors

Let PjP_j be the diagonal projector defined on each graph ket by

Pj∣G⟩=1Ωj(G)∣G⟩.P_j|G\rangle=\mathbf1_{\Omega_j}(G)|G\rangle.

Then

Pj2∣G⟩=1Ωj(G)2∣G⟩=Pj∣G⟩,P0P1∣G⟩=1Ω0(G)1Ω1(G)∣G⟩=0,⟨G∣Pj∣G′⟩=1Ωj(G′)δG,G′=⟨G∣Pj†∣G′⟩.\begin{aligned} P_j^2|G\rangle&=\mathbf1_{\Omega_j}(G)^2|G\rangle=P_j|G\rangle,\\ P_0P_1|G\rangle &=\mathbf1_{\Omega_0}(G)\mathbf1_{\Omega_1}(G)|G\rangle=0,\\ \langle G|P_j|G'\rangle &=\mathbf1_{\Omega_j}(G')\delta_{G,G'} =\langle G|P_j^\dagger|G'\rangle. \end{aligned}

These bounded projectors extend to ℓ2(Ω)\ell^2(\Omega). For arbitrary vectors in their images,

⟨ψ0∣ψ1⟩=⟨ψ0∣P0†P1∣ψ1⟩=0.\langle\psi_0|\psi_1\rangle =\langle\psi_0|P_0^\dagger P_1|\psi_1\rangle=0.

Thus the stated distinct configuration sectors (Topological Distinctness §10.1.4) satisfy

H0⊥H1,⟨0L∣1L⟩=0.\boxed{\mathcal H_0\perp\mathcal H_1,\qquad \langle0_L|1_L\rangle=0.}

Q.E.D.

In Plain English:
Section 10.1.4.1 formalizes the properties of the QBD proof regarding topological distinctness.


10.1.5 Lemma: State Controllability​

Encoded rotations via admitted exchange and phase controls

Let the logical pair admit independent Hermitian exchange and phase controls whose restrictions are nonzero multiples of XLX_L and ZLZ_L and which preserve the code. Then the controls generate arbitrary logical SU(2)SU(2) rotations without leakage and preserve total writhe on the code.

In Plain English:
Section 10.1.5 formalizes the properties of the QBD lemma regarding state controllability.


10.1.5.1 Proof: State Controllability​

Derivation of coherent logical rotations via the restricted controls

I. Writhe transfer

On integer labels, define T^ij∣w⟩=∣w+ei−ej⟩\hat{T}_{ij}|\boldsymbol w\rangle=|\boldsymbol w+\boldsymbol e_i-\boldsymbol e_j\rangle. On the selected states of Logical Basis §10.1.1,

T^31∣−1,−1,−1⟩=∣−2,−1,0⟩=∣1L⟩,T^13∣−1,−1,−1⟩=∣0,−1,−2⟩,T^31∣−2,−1,0⟩=∣−3,−1,1⟩.\begin{aligned} \hat{T}_{31}|-1,-1,-1\rangle&=|-2,-1,0\rangle=|1_L\rangle,\\ \hat{T}_{13}|-1,-1,-1\rangle&=|0,-1,-2\rangle,\\ \hat{T}_{31}|-2,-1,0\rangle&=|-3,-1,1\rangle . \end{aligned}

Every shift preserves W=−3W=-3 and Q=−1Q=-1. For the logical projector PP, the projected forward term is PT^31P=∣1L⟩⟨0L∣P\hat{T}_{31}P=|1_L\rangle\langle0_L| and its adjoint is ∣0L⟩⟨1L∣|0_L\rangle\langle1_L|. The displayed unprojected terms outside the pair explain why the physical control in State Controllability §10.1.5 requires an admission condition.

II. Exchange pulse and leakage

Let H^X\hat{H}_X preserve the code and restrict to gXLgX_L with g>0g>0. For every kk, (I−P)H^XkP=0(I-P)\hat{H}_X^kP=0, so

(I−P)e−itH^XP=0,e−itH^X∣im⁡P=ILcos⁡(gt)−iXLsin⁡(gt).(I-P)e^{-i t\hat{H}_X}P=0,\qquad e^{-i t\hat{H}_X}|_{\operatorname{im}P} =I_L\cos(gt)-iX_L\sin(gt).

At t=π/(2g)t=\pi/(2g) this is −iXL-iX_L. The conserved charge acts as −IL-I_L and therefore commutes with every such logical pulse.

III. Arbitrary rotations

The independent phase pulse supplies Rz(α)=e−iαZL/2R_z(\alpha)=e^{-i\alpha Z_L/2}. Conjugating the exchange pulse uses Rz(π/2)XLRz(−π/2)=YLR_z(\pi/2)X_LR_z(-\pi/2)=Y_L, giving Ry(β)=e−iβYL/2R_y(\beta)=e^{-i\beta Y_L/2}. With c=cos⁡(β/2)c=\cos(\beta/2) and s=sin⁡(β/2)s=\sin(\beta/2), the right two factors multiply to

Ry(β)Rz(γ)=(c−ssc)(e−iγ/200eiγ/2)=(ce−iγ/2−seiγ/2se−iγ/2ceiγ/2).\begin{aligned} R_y(\beta)R_z(\gamma) &=\begin{pmatrix}c&-s\\s&c\end{pmatrix} \begin{pmatrix}e^{-i\gamma/2}&0\\0&e^{i\gamma/2}\end{pmatrix}\\ &=\begin{pmatrix} c e^{-i\gamma/2}&-s e^{i\gamma/2}\\ s e^{-i\gamma/2}&c e^{i\gamma/2} \end{pmatrix}. \end{aligned}

Left multiplication by Rz(α)R_z(\alpha) gives

Rz(α)Ry(β)Rz(γ)=(e−iα/200eiα/2)(ce−iγ/2−seiγ/2se−iγ/2ceiγ/2)=(ce−i(α+γ)/2−se−i(α−γ)/2sei(α−γ)/2cei(α+γ)/2).\begin{aligned} R_z(\alpha)R_y(\beta)R_z(\gamma) &=\begin{pmatrix}e^{-i\alpha/2}&0\\0&e^{i\alpha/2}\end{pmatrix} \begin{pmatrix}c e^{-i\gamma/2}&-s e^{i\gamma/2}\\ s e^{-i\gamma/2}&c e^{i\gamma/2}\end{pmatrix}\\ &=\begin{pmatrix} c e^{-i(\alpha+\gamma)/2}&-s e^{-i(\alpha-\gamma)/2}\\ s e^{i(\alpha-\gamma)/2}&c e^{i(\alpha+\gamma)/2} \end{pmatrix}. \end{aligned}

An arbitrary SU(2)SU(2) matrix has the form (ab−b‾a‾)\bigl(\begin{smallmatrix}a&b\\-\overline b&\overline a\end{smallmatrix}\bigr) with ∣a∣2+∣b∣2=1|a|^2+|b|^2=1. For β=2arccos⁡∣a∣∈[0,π]\beta=2\arccos|a|\in[0,\pi], one has

c=∣a∣,s=1−∣a∣2=∣b∣.c=|a|,\qquad s=\sqrt{1-|a|^2}=|b|.

Define φ=arg⁡a\varphi=\arg a when a≠0a\ne0 and φ=0\varphi=0 when a=0a=0. Define ψ=arg⁡(−b)\psi=\arg(-b) when b≠0b\ne0 and ψ=0\psi=0 when b=0b=0. Then a=∣a∣eiφa=|a|e^{i\varphi} and b=−∣b∣eiψb=-|b|e^{i\psi}, including the zero-entry cases. The phase equations and their solution are

α+γ=−2φ,α−γ=−2ψ,α=−φ−ψ,γ=−φ+ψ.\alpha+\gamma=-2\varphi,\qquad \alpha-\gamma=-2\psi,\qquad \alpha=-\varphi-\psi,\qquad \gamma=-\varphi+\psi.

Consequently,

Rz(α)Ry(β)Rz(γ)=(∣a∣eiφ−∣b∣eiψ∣b∣e−iψ∣a∣e−iφ)=(ab−b‾a‾).R_z(\alpha)R_y(\beta)R_z(\gamma) =\begin{pmatrix} |a|e^{i\varphi}&-|b|e^{i\psi}\\ |b|e^{-i\psi}&|a|e^{-i\varphi} \end{pmatrix} =\begin{pmatrix}a&b\\-\overline b&\overline a\end{pmatrix}.

Let U1,U2,U3U_1,U_2,U_3 denote the admitted physical pulses for Rz(α),Ry(β),Rz(γ)R_z(\alpha),R_y(\beta),R_z(\gamma), respectively. Code preservation gives UjP=PUjPU_jP=P U_jP for j=1,2,3j=1,2,3. Hence

U1U2U3P=U1U2PU3P=U1PU2PU3P=PU1PU2PU3P,(I−P)U1U2U3P=0.\begin{aligned} U_1 U_2 U_3 P &=U_1 U_2 P U_3 P =U_1 P U_2 P U_3 P\\ &=P U_1 P U_2 P U_3 P,\\ (I-P)U_1 U_2 U_3 P&=0 . \end{aligned}

Q.E.D.

In Plain English:
Section 10.1.5.1 formalizes the properties of the QBD proof regarding state controllability.


10.1.6 Lemma: Basis Measurability​

Basis discrimination via an encoded Casimir and calibrated pointer

Let a measured observable have the logical pair as eigenstates with distinct eigenvalues, realized by the Casimir values 00 and λc>0\lambda_c>0 in the stated color representation. Then its spectral projectors distinguish the pair exactly, and a calibrated coherent pointer coupling yields a projective readout preserving each basis eigenstate.

In Plain English:
Section 10.1.6 formalizes the properties of the QBD lemma regarding basis measurability.


10.1.6.1 Proof: Basis Measurability​

Derivation of the logical readout via spectral projection and a pointer pulse

I. Logical observable

For the color model of Basis Measurability §10.1.6, use the stipulated eigenvalues of C^SU(3)2\hat{C}^2_{SU(3)} on the orthogonal states of Topological Distinctness §10.1.4. With Pb=∣bL⟩⟨bL∣P_b=|b_L\rangle\langle b_L| and P=P0+P1P=P_0+P_1,

PC^SU(3)2P=λcP1,MZ=P−2λcPC^SU(3)2P=P0−P1.P\hat{C}^2_{SU(3)}P=\lambda_c P_1,\qquad M_Z=P-\frac{2}{\lambda_c}P\hat{C}^2_{SU(3)}P=P_0-P_1 .

For ψ=α∣0L⟩+β∣1L⟩\psi=\alpha|0_L\rangle+\beta|1_L\rangle, P0ψ=α∣0L⟩P_0\psi=\alpha|0_L\rangle and P1ψ=β∣1L⟩P_1\psi=\beta|1_L\rangle.

II. Conditional pointer evolution

Prepare an auxiliary pointer in ∣0⟩A|0\rangle_A and use the modeled Hamiltonian Hint=gλcP1⊗XAH_{\mathrm{int}}=g\lambda_c P_1\otimes X_A on the code, with g>0g>0 and ℏ=1\hbar=1. Orthogonality of the projectors gives

e−itHint=P0⊗IA+P1⊗e−igtλcXA.e^{-i t H_{\mathrm{int}}} =P_0\otimes I_A+P_1\otimes e^{-i g t\lambda_c X_A}.

At t∗=π/(2gλc)t_*=\pi/(2g\lambda_c) the pointer pulse maps

(α∣0L⟩+β∣1L⟩)∣0⟩A⟼α∣0L⟩∣0⟩A−iβ∣1L⟩∣1⟩A.(\alpha|0_L\rangle+\beta|1_L\rangle)|0\rangle_A \longmapsto\alpha|0_L\rangle|0\rangle_A-i\beta|1_L\rangle|1\rangle_A.

III. Outcome and repeatability

The two pointer outcomes have probabilities ∣α∣2|\alpha|^2 and ∣β∣2|\beta|^2. The conditioned system vectors are the corresponding basis eigenstates up to phase. For the second readout, PbPa=δabPaP_bP_a=\delta_{ab}P_a gives

Pr⁡(b∣a)=∥Pb∣aL⟩∥2=δab.\Pr(b\mid a)=\|P_b|a_L\rangle\|^2=\delta_{ab}.

Thus the specified pulse and pointer measurement distinguish the states in a single shot and preserve the observed basis eigenstate.

Q.E.D.

In Plain English:
Section 10.1.6.1 formalizes the properties of the QBD proof regarding basis measurability.


10.1.7 Proof: Qubit Optimality​

Logical Qubit Criteria via Fixed Writhe, Coherent Controls, and Pointer Readout

I. Fixed Charge and Orthogonality

The labels of Logical Basis §10.1.1 give

W(w0)=−1−1−1=−3,W(w1)=−2−1+0=−3,Q(w0)=Q(w1)=−1.W(\boldsymbol w_0)=-1-1-1=-3,\qquad W(\boldsymbol w_1)=-2-1+0=-3,\qquad Q(\boldsymbol w_0)=Q(\boldsymbol w_1)=-1.

In the orthonormal configuration basis of Topological Distinctness §10.1.4, write each logical state as a normalized sum over its label support Ωb\Omega_b. The first coordinate is −1-1 on Ω0\Omega_0 and −2-2 on Ω1\Omega_1, so

⟨0L∣1L⟩=∑G∈Ω0∑G′∈Ω1aG‾bG′δG,G′=0.\langle 0_L|1_L\rangle =\sum_{G\in\Omega_0}\sum_{G'\in\Omega_1} \overline{a_G}b_{G'}\delta_{G,G'}=0.

Thus P=∣0L⟩⟨0L∣+∣1L⟩⟨1L∣P=|0_L\rangle\langle0_L|+|1_L\rangle\langle1_L| is an orthogonal projector, and W^P=−3P\widehat W P=-3P.

II. Complexity and Spectral Separation

The fixed-charge linear cost satisfies

∑i∣wi∣≥∣∑iwi∣=3,∑i∣w0,i∣=1+1+1=3,∑i∣w1,i∣=2+1+0=3.\sum_i|w_i|\ge\left|\sum_iw_i\right|=3,\qquad \sum_i|w_{0,i}|=1+1+1=3,\qquad \sum_i|w_{1,i}|=2+1+0=3.

Both assigned labels attain this minimum. For the invariant finite sector of Topological Stability §10.1.3, let E∗E_* be the largest logical energy. If each leakage eigenvalue EjE_j satisfies Ej−E∗≥Δ>0E_j-E_*\ge\Delta>0, then for a normalized leakage vector ∑jcj∣Ej⟩\sum_j c_j|E_j\rangle,

∑j∣cj∣2(Ej−E∗)≥Δ∑j∣cj∣2=Δ.\sum_j |c_j|^2(E_j-E_*)\ge\Delta\sum_j|c_j|^2=\Delta.

This bound uses the supplied gap and does not identify the minimizing pair uniquely among candidate devices.

III. Coherent Control

On the invariant code, take the admitted exchange and phase directions XL,ZLX_L,Z_L of State Controllability §10.1.5. Write Rj(a)=e−iaσj/2R_j(a)=e^{-ia\sigma_j/2} with σx=XL\sigma_x=X_L and σz=ZL\sigma_z=Z_L. Since Rz(π/2)XLRz(−π/2)=YLR_z(\pi/2)X_LR_z(-\pi/2)=Y_L, their products include

Rz(a)Ry(b)Rz(c)=(e−i(a+c)/2cos⁡(b/2)−e−i(a−c)/2sin⁡(b/2)ei(a−c)/2sin⁡(b/2)ei(a+c)/2cos⁡(b/2)).R_z(a)R_y(b)R_z(c) = \begin{pmatrix} e^{-i(a+c)/2}\cos(b/2)&-e^{-i(a-c)/2}\sin(b/2)\\ e^{i(a-c)/2}\sin(b/2)&e^{i(a+c)/2}\cos(b/2) \end{pmatrix}.

For a target with first row (u,v)(u,v), take b=2arccos⁡∣u∣b=2\arccos|u|, a+c=−2arg⁡ua+c=-2\arg u and a−c=−2arg⁡(−v)a-c=-2\arg(-v). A phase with zero coefficient can be arbitrary. The displayed matrix then equals the target in SU(2)SU(2). Since both Hamiltonians preserve the code, each exponential and their product preserve it.

IV. Calibrated Nondemolition Readout

Use the admitted Casimir CC with logical eigenvalues 0,λc0,\lambda_c and λc>0\lambda_c>0 (Basis Measurability §10.1.6). On the code, P1=PCP/λcP_1=PCP/\lambda_c and P0=P−P1P_0=P-P_1. For the pointer in ∣0⟩A|0\rangle_A and the pulse Hint=gλcP1⊗XAH_{\mathrm{int}}=g\lambda_c P_1\otimes X_A with gtλc=π/2gt\lambda_c=\pi/2,

(α∣0L⟩+β∣1L⟩)∣0⟩A⟼α∣0L⟩∣0⟩A−iβ∣1L⟩∣1⟩A.(\alpha|0_L\rangle+\beta|1_L\rangle)|0\rangle_A \longmapsto \alpha|0_L\rangle|0\rangle_A-i\beta|1_L\rangle|1\rangle_A .

Measuring the pointer gives probabilities ∣α∣2|\alpha|^2 and ∣β∣2|\beta|^2. Since PbPa=δabPaP_bP_a=\delta_{ab}P_a, a second readout after outcome aa returns aa with probability one. The pulse preserves each basis eigenstate conditionally on the outcome. The gap, color representation, and admitted controls remain premises for these criteria.

Q.E.D.

In Plain English:
Section 10.1.7 formalizes the properties of the QBD proof regarding qubit optimality.


10.2.1 Definition: Stabilizer Group​

Construction of Commuting Operators via Error Detection

The Braid Code Stabilizer Group, denoted S\mathcal{S}, is defined as the abelian subgroup of the Pauli group acting on the graph edges, generated by three distinct classes of local topological check operators:

  1. Geometric Stabilizers: For every fundamental 3-cycle γ\gamma in the braid lattice, the operator Sgeom(γ)=∏e∈γZeS_{\text{geom}}^{(\gamma)} = \prod_{e \in \gamma} Z_e enforces the geometric closure condition, possessing the eigenvalue −1-1 for valid cycles and +1+1 for broken cycles.
  2. Ribbon Stabilizers: For every plaquette pp defining a segment of a ribbon kk, the operator Sribbon(k,p)=∏e∈pZeS_{\text{ribbon}}^{(k,p)} = \prod_{e \in p} Z_e enforces the structural connectivity of the strand, possessing the eigenvalue +1+1 for intact ribbons and −1-1 for frayed or disconnected segments.
  3. Vertex Stabilizers: For every vertex vv in the braid subgraph, the operator Svert(v)=∏e∈star(v)XeS_{\text{vert}}^{(v)} = \prod_{e \in \text{star}(v)} X_e enforces the conservation of flux at the node, possessing the eigenvalue +1+1 for valid flow and −1-1 for phase defects.

In Plain English:
Section 10.2.1 formalizes the properties of the QBD definition regarding stabilizer group.


10.2.2 Theorem: Braid Code Consistency​

Derivation of a Consistent Stabilizer Group via Code Protection

Let the stabilizer group S\mathcal{S} define a mathematically consistent quantum error-correcting code on the causal graph, where the stabilizer generators commute mutually and the logical codespace is well-defined.

In Plain English:
Section 10.2.2 formalizes the properties of the QBD theorem regarding braid code consistency.


10.2.3 Lemma: Geometric Commutation​

Verification of Abelian Property via Geometric Check Operators

Assume the geometric stabilizers SgeomS_{\text{geom}} commute mutually and with the vertex stabilizers SvertS_{\text{vert}} on the causal graph. This commutation is structurally enforced by the topological intersection properties of the graph embedding.

In Plain English:
Section 10.2.3 formalizes the properties of the QBD lemma regarding geometric commutation.


10.2.3.1 Proof: Geometric Commutation​

Demonstration of Commutativity via Disjoint and Even-Overlap Supports

I. Pauli Products on Edge Factors

For finite edge sets A,BA,B, define

Z(A)=∏e∈AZe,X(B)=∏e∈BXe,X=(0110),Z=(100−1).Z(A)=\prod_{e\in A}Z_e,\qquad X(B)=\prod_{e\in B}X_e,\qquad X=\begin{pmatrix}0&1\\1&0\end{pmatrix},\quad Z=\begin{pmatrix}1&0\\0&-1\end{pmatrix}.

These act on the tensor factors of the stabilizer construction (Stabilizer Group §10.2.1). On a single factor,

ZX=(01−10),XZ=(0−110),ZX=−XZ.ZX=\begin{pmatrix}0&1\\-1&0\end{pmatrix},\qquad XZ=\begin{pmatrix}0&-1\\1&0\end{pmatrix},\qquad ZX=-XZ.

On distinct factors, ZeXf=XfZeZ_eX_f=X_fZ_e for e≠fe\ne f. Commuting each factor in X(B)X(B) through Z(A)Z(A) gives one minus sign for each edge in the intersection:

Z(A)X(B)=(∏e∈A∩B(−1))X(B)Z(A)=(−1)∣A∩B∣X(B)Z(A).Z(A)X(B) =\left(\prod_{e\in A\cap B}(-1)\right)X(B)Z(A) =(-1)^{|A\cap B|}X(B)Z(A).

II. Two Geometric Checks

For any A,BA,B, factors on the intersection cancel because Ze2=IeZ_e^2=I_e, and all remaining factors commute. With A△B=(A∖B)∪(B∖A)A\triangle B=(A\setminus B)\cup(B\setminus A),

Z(A)Z(B)=(∏e∈A∩BZe2)(∏e∈A△BZe)=Z(A△B),Z(B)Z(A)=Z(B△A)=Z(A△B),[Z(A),Z(B)]=0.\begin{aligned} Z(A)Z(B) &=\left(\prod_{e\in A\cap B}Z_e^2\right) \left(\prod_{e\in A\triangle B}Z_e\right) =Z(A\triangle B),\\ Z(B)Z(A)&=Z(B\triangle A)=Z(A\triangle B),\\ [Z(A),Z(B)]&=0. \end{aligned}

In particular this holds for two triangular cycles γ,γ′\gamma,\gamma'.

III. Cycle-Star Intersection

Let γ=(v0,v1,v2,v0)\gamma=(v_0,v_1,v_2,v_0) be a simple triangular cycle, and let B=star⁡(v)B=\operatorname{star}(v). Its edge-set intersection is

γ∩star⁡(v)={∅,v∉{v0,v1,v2},{ej−1,ej},v=vj,\gamma\cap\operatorname{star}(v)= \begin{cases} \varnothing,&v\notin\{v_0,v_1,v_2\},\\ \{e_{j-1},e_j\},&v=v_j, \end{cases}

where the edge indices are read modulo three. The two listed edges are distinct because the cycle is simple. Thus the intersection size is zero or two, and

Sgeom(γ)Svert(v)=(−1)∣γ∩star⁡(v)∣Svert(v)Sgeom(γ)=Svert(v)Sgeom(γ).\begin{aligned} S_{geom}^{(\gamma)}S_{vert}^{(v)} &=(-1)^{|\gamma\cap\operatorname{star}(v)|} S_{vert}^{(v)}S_{geom}^{(\gamma)}\\ &=S_{vert}^{(v)}S_{geom}^{(\gamma)}. \end{aligned}

This proves the required pairwise relations (Geometric Commutation §10.2.3):

[Sgeom(γ),Sgeom(γ′)]=0,[Sgeom(γ),Svert(v)]=0.\boxed{[S_{geom}^{(\gamma)},S_{geom}^{(\gamma')}]=0,\qquad [S_{geom}^{(\gamma)},S_{vert}^{(v)}]=0.}

Q.E.D.

In Plain English:
Section 10.2.3.1 formalizes the properties of the QBD proof regarding geometric commutation.


10.2.4 Lemma: Bit-Flip Localization​

Localization of single bit flips via the cycle incidence matrix

Let the geometric checks on the candidate edge set have a binary cycle-incidence matrix. Then the relative syndrome of XeX_e is its edge column, and every single flip is distinguished from the no-error case and from other single flips exactly when these columns are nonzero and pairwise distinct.

In Plain English:
Section 10.2.4 formalizes the properties of the QBD lemma regarding bit-flip localization.


10.2.4.1 Proof: Bit-Flip Localization​

Derivation of single-flip syndromes via cycle membership

I. Signed reference checks

Use the geometric operators Sγ=∏f∈γZfS_\gamma=\prod_{f\in\gamma}Z_f of Stabilizer Group §10.2.1. Write Sγ∣ψ⟩=sγ∣ψ⟩S_\gamma|\psi\rangle=s_\gamma|\psi\rangle with the registered sign sγ∈{1,−1}s_\gamma\in\{1,-1\}. Define (HZ)γe=1{e∈γ}(H_Z)_{\gamma e}=\mathbf1_{\{e\in\gamma\}}. For each factor,

ZfXe=(−1)1{f=e}XeZf,SγXe∣ψ⟩=(−1)(HZ)γesγXe∣ψ⟩.Z_f X_e=(-1)^{\mathbf1_{\{f=e\}}}X_eZ_f,\qquad S_\gamma X_e|\psi\rangle =(-1)^{(H_Z)_{\gamma e}}s_\gamma X_e|\psi\rangle.

The relative syndrome bit, equal to 11 when the output sign differs from sγs_\gamma, is therefore bγ=(HZ)γeb_\gamma=(H_Z)_{\gamma e}.

II. Inversion of the syndrome

For the candidate set in Bit-Flip Localization §10.2.4, the no-error bit string is zero and the single-flip string at ee is HZeeH_Z\boldsymbol e_e. An edge can be distinguished from no error exactly if HZee≠0H_Z\boldsymbol e_e\ne0. Two edges e,fe,f can be distinguished exactly if

HZee≠HZef⟺HZ(ee+ef)≠0H_Z\boldsymbol e_e\ne H_Z\boldsymbol e_f \quad\Longleftrightarrow\quad H_Z(\boldsymbol e_e+\boldsymbol e_f)\ne0

over F2\mathbb F_2. These are the nonzero and distinct-column conditions.

III. Worked cycle patterns

If distinct triangles γ1,γ2\gamma_1,\gamma_2 share exactly one edge, a flip of that edge marks both rows. The joint mark identifies the shared edge among candidates, since any other edge with those marks would also have to belong to their intersection. By contrast, on one isolated triangle whose edges are e1,e2,e3e_1,e_2,e_3, the check matrix is

HZ=(111),HZee1=HZee2=HZee3=1.H_Z=\begin{pmatrix}1&1&1\end{pmatrix},\qquad H_Z\boldsymbol e_{e_1}=H_Z\boldsymbol e_{e_2}=H_Z\boldsymbol e_{e_3}=1.

The single check detects any of the three flips and leaves their locations indistinguishable.

Q.E.D.

In Plain English:
Section 10.2.4.1 formalizes the properties of the QBD proof regarding bit-flip localization.


10.2.5 Lemma: Ribbon Integrity Commutation​

Verification of the Abelian Property via Ribbon Segment Stabilizers

Assume the ribbon integrity stabilizers SribbonS_{\text{ribbon}} commute with all other generators of the stabilizer group S\mathcal{S} on the causal graph. This property is structurally enforced by the construction of ribbon segments as closed plaquettes that share an even number of edges with any vertex star.

In Plain English:
Section 10.2.5 formalizes the properties of the QBD lemma regarding ribbon integrity commutation.


10.2.5.1 Proof: Ribbon Integrity Commutation​

Demonstration of Commutativity via Modular Segment Structure

I. Plaquette Support

Let a ribbon segment have the four distinct boundary edges

p={ri,ti,ri+1,bi},Rp=ZriZtiZri+1Zbi=Z(p)p=\{r_i,t_i,r_{i+1},b_i\},\qquad R_p=Z_{r_i}Z_{t_i}Z_{r_{i+1}}Z_{b_i}=Z(p)

as in the stabilizer construction (Stabilizer Group §10.2.1). Its boundary vertices may be labeled a,b,c,da,b,c,d, with edges ab,bc,cd,daab,bc,cd,da in the underlying undirected support.

II. Commutation with All Diagonal Checks

For a geometric cycle γ\gamma or a second ribbon plaquette qq, the all-ZZ product rule gives

RpZ(γ)=Z(p△γ)=Z(γ△p)=Z(γ)Rp,RpRq=Z(p△q)=Z(q△p)=RqRp.\begin{aligned} R_pZ(\gamma)&=Z(p\triangle\gamma) =Z(\gamma\triangle p)=Z(\gamma)R_p,\\ R_pR_q&=Z(p\triangle q) =Z(q\triangle p)=R_qR_p. \end{aligned}

The cancellation rule is valid for arbitrary overlaps because every repeated factor contributes Ze2=IeZ_e^2=I_e (Geometric Commutation §10.2.3).

III. Commutation with Vertex Checks

The intersections with a vertex star are explicitly

vp∩star⁡(v)∣p∩star⁡(v)∣a{ab,da}2b{ab,bc}2c{bc,cd}2d{cd,da}2v∉{a,b,c,d}∅0\begin{array}{c|c|c} v&p\cap\operatorname{star}(v)&|p\cap\operatorname{star}(v)|\\\hline a&\{ab,da\}&2\\b&\{ab,bc\}&2\\ c&\{bc,cd\}&2\\d&\{cd,da\}&2\\ v\notin\{a,b,c,d\}&\varnothing&0 \end{array}

Consequently,

RpSvert(v)=(−1)∣p∩star⁡(v)∣Svert(v)Rp=Svert(v)Rp.R_pS_{vert}^{(v)} =(-1)^{|p\cap\operatorname{star}(v)|}S_{vert}^{(v)}R_p =S_{vert}^{(v)}R_p.

IV. Extension to the Generated Group

Let g1,…,gmg_1,\ldots,g_m be any stabilizer generators. If Rpgj=gjRpR_pg_j=g_jR_p for each jj, repeated substitution gives

Rp(g1g2⋯gm)=g1Rp(g2⋯gm)=⋯=(g1g2⋯gm)Rp.R_p(g_1g_2\cdots g_m) =g_1R_p(g_2\cdots g_m) =\cdots=(g_1g_2\cdots g_m)R_p.

Every group element is such a finite product, since each Pauli check is its own inverse. Therefore

[Rp,S]=0for every S∈S.\boxed{[R_p,S]=0\qquad\text{for every }S\in\mathcal S.}

Q.E.D.

In Plain English:
Section 10.2.5.1 formalizes the properties of the QBD proof regarding ribbon integrity commutation.


10.2.6 Lemma: Fraying Detection​

Detection of internal fraying via adjacent plaquette signs

Let the ordered ribbon strip assign each internal rung rir_i to exactly the two adjacent plaquettes pi−1,pip_{i-1},p_i. Then an XX flip on rir_i has the relative syndrome pair {i−1,i}\{i-1,i\} and is distinguishable from flips on the other internal rungs.

In Plain English:
Section 10.2.6 formalizes the properties of the QBD lemma regarding fraying detection.


10.2.6.1 Proof: Fraying Detection​

Derivation of the fraying signature via adjacent support

I. Ribbon plaquette checks

Use the plaquette of Ribbon Integrity Commutation §10.2.5 with Bpj=ZrjZtjZrj+1ZbjB_{p_j}=Z_{r_j}Z_{t_j}Z_{r_{j+1}}Z_{b_j}. For an internal rung rir_i of Fraying Detection §10.2.6, the support indicator is

1{ri∈pj}=δj,i−1+δj,i.\mathbf1_{\{r_i\in p_j\}}=\delta_{j,i-1}+\delta_{j,i}.

II. Relative syndrome

If the baseline is Bpj∣ψ⟩=sj∣ψ⟩B_{p_j}|\psi\rangle=s_j|\psi\rangle, commuting XriX_{r_i} past the four factors gives

BpjXri∣ψ⟩=(−1)δj,i−1+δj,iXriBpj∣ψ⟩=sj(−1)δj,i−1+δj,iXri∣ψ⟩.B_{p_j}X_{r_i}|\psi\rangle =(-1)^{\delta_{j,i-1}+\delta_{j,i}}X_{r_i}B_{p_j}|\psi\rangle =s_j(-1)^{\delta_{j,i-1}+\delta_{j,i}}X_{r_i}|\psi\rangle .

Thus the bit vector is bi=ei−1+eib_i=\boldsymbol e_{i-1}+\boldsymbol e_i. With the intact baseline sj=+1s_j=+1, the measured signs at those two positions are −1-1 and all other signs remain +1+1.

III. Scope of the pair signature

For a linearly ordered strip, equality bi=bkb_i=b_k gives min⁡{i−1,i}=min⁡{k−1,k}\min\{i-1,i\}=\min\{k-1,k\}, hence i=ki=k. A boundary rung that belongs to only one plaquette gives a single mark. Two adjacent internal rung flips instead give

bi+bi+1=(ei−1+ei)+(ei+ei+1)=ei−1+ei+1b_i+b_{i+1} =(\boldsymbol e_{i-1}+\boldsymbol e_i)+(\boldsymbol e_i+\boldsymbol e_{i+1}) =\boldsymbol e_{i-1}+\boldsymbol e_{i+1}

over F2\mathbb F_2, because the shared mark cancels.

Q.E.D.

In Plain English:
Section 10.2.6.1 formalizes the properties of the QBD proof regarding fraying detection.


10.2.7 Lemma: Vertex Commutation​

Verification of Abelian Property via Vertex Operators

For all vertex stabilizers SvertS_{\text{vert}}, the operators commute mutually across the entire graph. This is enforced by the property that any two distinct vertex stars share at most one edge, upon which the operators acting are identical (Pauli-X), satisfying the trivial self-commutation relation [X,X]=0[X, X] = 0.

In Plain English:
Section 10.2.7 formalizes the properties of the QBD lemma regarding vertex commutation.


10.2.7.1 Proof: Vertex Commutation​

Demonstration of Commutativity via Even Self-Overlaps and Balanced Anticommutations

I. Vertex-Star Products

For each vertex vv, let Av=star⁡(v)A_v=\operatorname{star}(v) and

Sv=X(Av)=∏e∈AvXeS_v=X(A_v)=\prod_{e\in A_v}X_e

(Stabilizer Group §10.2.1). On the same factor Xe2=IeX_e^2=I_e, and on distinct factors

XeXf=(X⊗I)(I⊗X)=X⊗X=(I⊗X)(X⊗I)=XfXe.X_eX_f=(X\otimes I)(I\otimes X) =X\otimes X=(I\otimes X)(X\otimes I)=X_fX_e.

II. Arbitrary Overlap

For vertices u,vu,v, put A=AuA=A_u, B=AvB=A_v. Commutativity of all XX factors permits collection of the common edges:

SuSv=(∏e∈A∖BXe)(∏e∈A∩BXe2)(∏e∈B∖AXe)=∏e∈A△BXe=X(A△B),SvSu=X(B△A)=X(A△B).\begin{aligned} S_uS_v &=\left(\prod_{e\in A\setminus B}X_e\right) \left(\prod_{e\in A\cap B}X_e^2\right) \left(\prod_{e\in B\setminus A}X_e\right)\\ &=\prod_{e\in A\triangle B}X_e=X(A\triangle B),\\ S_vS_u&=X(B\triangle A)=X(A\triangle B). \end{aligned}

For disjoint stars this is the product on their union. For adjacent vertices with a unique shared edge ee, the shared pair is XeXe=IeX_eX_e=I_e. The formula also includes u=vu=v, where A△A=∅A\triangle A=\varnothing and Sv2=IS_v^2=I.

III. Pairwise Commutation

Subtracting the two products gives

[Su,Sv]=X(A△B)−X(A△B)=0for all u,v.\boxed{[S_u,S_v]=X(A\triangle B)-X(A\triangle B)=0 \qquad\text{for all }u,v.}

Together with the cycle-star and plaquette-star relations (Geometric Commutation §10.2.3), (Ribbon Integrity Commutation §10.2.5), this supplies pairwise commutation of the three declared check families.

Q.E.D.

In Plain English:
Section 10.2.7.1 formalizes the properties of the QBD proof regarding vertex commutation.


10.2.8 Lemma: Phase Error Detection​

Identification of Z-Errors via Vertex Stabilizers

Let a single Pauli-Z error on an edge euve_{uv} be uniquely identified by the simultaneous syndrome flip of the vertex stabilizers SuXS_u^X and SvXS_v^X at the edge's endpoints. The error signature corresponds to the unique pair of vertices {u,v}\{u, v\}, which unambiguously identifies the connecting edge in a simple graph topology.

In Plain English:
Section 10.2.8 formalizes the properties of the QBD lemma regarding phase error detection.


10.2.8.1 Proof: Phase Error Detection​

Verification of Syndrome Patterns via Z-Type Edge Errors

I. Single-Edge Error and Reference Syndrome

Fix an edge e={u,v}e=\{u,v\} in the simple support graph, with distinct endpoints. Let ∣ψ⟩|\psi\rangle satisfy the vertex checks

Sx∣ψ⟩=∣ψ⟩,Sx=∏f∈star⁡(x)XfS_x|\psi\rangle=|\psi\rangle,\qquad S_x=\prod_{f\in\operatorname{star}(x)}X_f

(Stabilizer Group §10.2.1). The phase-error state is ∣ψe⟩=Ze∣ψ⟩|\psi_e\rangle=Z_e|\psi\rangle. Since Ze†Ze=IZ_e^\dagger Z_e=I, it has the same norm as ∣ψ⟩|\psi\rangle.

II. Syndrome at Every Vertex

At x=ux=u, separate the XeX_e factor:

SuZe=Xe(∏f∈star⁡(u)∖{e}Xf)Ze=XeZe∏f∈star⁡(u)∖{e}Xf=−ZeSu,Su∣ψe⟩=−ZeSu∣ψ⟩=−∣ψe⟩.\begin{aligned} S_uZ_e &=X_e\left(\prod_{f\in\operatorname{star}(u)\setminus\{e\}}X_f\right)Z_e\\ &=X_eZ_e\prod_{f\in\operatorname{star}(u)\setminus\{e\}}X_f =-Z_eS_u,\\ S_u|\psi_e\rangle&=-Z_eS_u|\psi\rangle=-|\psi_e\rangle. \end{aligned}

The same calculation at vv yields Sv∣ψe⟩=−∣ψe⟩S_v|\psi_e\rangle=-|\psi_e\rangle. If x∉{u,v}x\notin\{u,v\}, then e∉star⁡(x)e\notin\operatorname{star}(x); every XfX_f has f≠ef\ne e, so

Sx∣ψe⟩=ZeSx∣ψ⟩=∣ψe⟩.S_x|\psi_e\rangle=Z_eS_x|\psi\rangle=|\psi_e\rangle.

Thus the complete vertex syndrome is

σx(e)=(−1)1{u,v}(x),{x:σx(e)=−1}={u,v}\sigma_x(e)=(-1)^{\mathbf1_{\{u,v\}}(x)},\qquad \{x:\sigma_x(e)=-1\}=\{u,v\}

(Phase Error Detection §10.2.8).

III. Injectivity in the Stated Error Class

Suppose two single-edge phase errors on ee and ff have the same vertex syndrome. Their negative-syndrome sets are equal:

σx(e)=σx(f) ∀x ⟹ ∂e=∂f.\sigma_x(e)=\sigma_x(f)\ \forall x \ \Longrightarrow\ \partial e=\partial f.

In a simple support graph there is at most one edge with a given unordered pair of endpoints. Therefore e=fe=f, and the map e↦(σx(e))xe\mapsto(\sigma_x(e))_x is injective among single-edge ZZ errors. In particular,

Ze∣ψ⟩ ⟼ {flipped vertex checks}=∂e={u,v}.\boxed{Z_e|\psi\rangle\ \longmapsto\ \{\text{flipped vertex checks}\}=\partial e=\{u,v\}.}

Q.E.D.

In Plain English:
Section 10.2.8.1 formalizes the properties of the QBD proof regarding phase error detection.


10.2.9 Proof: Braid Code Consistency​

Code Consistency via Signed Checks and Incidence Syndromes

I. Commuting Signed Checks

Write S~γ=−Z(γ)\widetilde S_\gamma=-Z(\gamma) for a valid geometric cycle, S~p=Z(p)\widetilde S_p=Z(p) for an intact plaquette, and S~v=X(star⁡(v))\widetilde S_v=X(\operatorname{star}(v)) for a vertex check. For edge supports A,BA,B,

Z(A)X(B)=(−1)∣A∩B∣X(B)Z(A).Z(A)X(B)=(-1)^{|A\cap B|}X(B)Z(A).

A cycle or plaquette meets a vertex star in zero or two edges, giving commutation by Geometric Commutation §10.2.3 and Ribbon Integrity Commutation §10.2.5. All XX checks commute with one another (Vertex Commutation §10.2.7), and all ZZ checks commute with one another. The scalar signs leave these relations unchanged.

II. Nonempty Signed Sector

Let HZ,HXH_Z,H_X be the binary check matrices and let sZ,sXs_Z,s_X record the prescribed signs as bits. For a binary selection of rows (a,b)(a,b), group the ZZ and XX operators in that order. The product is

(−1)aTsZ+bTsXZ(HZTa)X(HXTb).(-1)^{a^Ts_Z+b^Ts_X}Z(H_Z^Ta)X(H_X^Tb).

This is scalar exactly when HZTa=HXTb=0H_Z^Ta=H_X^Tb=0. The signed checks therefore generate a group excluding −I-I exactly when aTsZ+bTsX=0a^Ts_Z+b^Ts_X=0 for every such dependency. Under this condition the group average

P=1∣S∣∑S∈SS,P2=P,SP=P (S∈S),Tr⁡P=2n∣S∣>0P=\frac1{|\mathcal S|}\sum_{S\in\mathcal S}S,\qquad P^2=P,\qquad SP=P\ (S\in\mathcal S),\qquad \operatorname{Tr}P=\frac{2^n}{|\mathcal S|}>0

is the projector onto the common positive sector. The idempotence follows because each group element appears ∣S∣|\mathcal S| times in the double sum, and only the identity has nonzero trace. A nontrivial encoded qubit further requires Tr⁡P≥2\operatorname{Tr}P\ge2.

III. Single-Error Signatures

For the columns ze=HZeez_e=H_Z\boldsymbol e_e and xe=HXeex_e=H_X\boldsymbol e_e, the relative binary syndromes are

b(Xe)=(ze,0),b(Ze)=(0,xe),b(Ye)=(ze,xe).b(X_e)=(z_e,0),\qquad b(Z_e)=(0,x_e),\qquad b(Y_e)=(z_e,x_e).

For bit flips, nonzero and pairwise distinct columns distinguish the errors and the identity (Bit-Flip Localization §10.2.4). For phase flips, distinct endpoints give the two incident star bits. A simple underlying graph with checks on both endpoints distinguishes edges through these bits (Phase Error Detection §10.2.8). If both matrices have nonzero and pairwise distinct columns then all the displayed single-edge signatures are distinct.

IV. Rung and Boundary Checks

In the plaquette restriction of Fraying Detection §10.2.6, an internal rung rir_i has zri=ei−1+eiz_{r_i}=\boldsymbol e_{i-1}+\boldsymbol e_i, hence the signs on its two adjacent plaquettes both flip to −1-1 from the intact sector. A rung incident on one checked boundary plaquette has a single syndrome bit, and an unchecked boundary edge has zero plaquette syndrome. Distinct internal rungs have different adjacent pairs. For two adjacent internal flips,

zri+zri+1=(ei−1+ei)+(ei+ei+1)=ei−1+ei+1.z_{r_i}+z_{r_{i+1}} =(\boldsymbol e_{i-1}+\boldsymbol e_i)+(\boldsymbol e_i+\boldsymbol e_{i+1}) =\boldsymbol e_{i-1}+\boldsymbol e_{i+1}.

The shared check cancels. Equal columns on any two edges instead give a zero two-flip syndrome for that check family. Thus the adjacent pair of signs follows from local support, while global localization uses the full incidence test.

Q.E.D.

In Plain English:
Section 10.2.9 formalizes the properties of the QBD proof regarding braid code consistency.


10.2.9.1 Calculation: Stabilizer Commutativity Verification​

Computational Verification through Stabilizer Commutation Relations

Verification of the abelian structure of the stabilizer group established in the Braid Code Consistency §10.2.9 is based on the following protocols:

  1. Operator Construction: The algorithm constructs tensor product operators representing geometric stabilizers (Z-type cycles), ribbon integrity checks (Z-type segments), and vertex stabilizers (X-type stars) on a 6-qubit system.
  2. Overlap Definition: The protocol defines specific test cases for disjoint supports, even overlaps (sharing 2 edges), and odd overlaps (sharing 1 edge) to test the commutation logic.
  3. Commutator Metric: The simulation computes the norm of the commutator [A,B][A, B] for each pair. A norm of zero confirms commutation, while a non-zero norm indicates anticommutation. This verifies the result established in Braid Code Consistency §10.2.9.
import qutip as qt
import numpy as np

# Define Pauli matrices
I = qt.qeye(2)
X = qt.sigmax()
Z = qt.sigmaz()

# Assume a 6-qubit system for demonstration

# Case 1: Disjoint geometric stabilizers on qubits 0-2 and 3-5
S_geom1 = qt.tensor(Z, Z, Z, I, I, I)
S_geom2 = qt.tensor(I, I, I, Z, Z, Z)
comm1 = (S_geom1 * S_geom2 - S_geom2 * S_geom1).norm()
print("Disjoint geometric commutator norm: ", comm1)

# Case 2: Overlapping geometric on qubits 0-2 and 2-4 (share qubit 2)
S_geom_overlap1 = qt.tensor(Z, Z, Z, I, I, I)
S_geom_overlap2 = qt.tensor(I, I, Z, Z, Z, I)
comm2 = (S_geom_overlap1 * S_geom_overlap2 - S_geom_overlap2 * S_geom_overlap1).norm()
print("Overlapping geometric commutator norm: ", comm2)

# Case 3: Ribbon stabilizer on qubits 0-3: Z0 Z1 Z2 Z3, geom on 1,2,4 (even overlap on 1,2)
S_ribbon = qt.tensor(Z, Z, Z, Z, I, I)
S_geom_r = qt.tensor(I, Z, Z, I, Z, I)
comm3 = (S_ribbon * S_geom_r - S_geom_r * S_ribbon).norm()
print("Ribbon-geom commutator norm (even overlap): ", comm3)

# Case 4: Vertex X stabilizers, v1 incident to 0,1: X0 X1, v2 to 1,2: X1 X2
S_v1 = qt.tensor(X, X, I, I, I, I)
S_v2 = qt.tensor(I, X, X, I, I, I)
comm4 = (S_v1 * S_v2 - S_v2 * S_v1).norm()
print("Vertex X commutator norm: ", comm4)

# Case 5: Vertex X and geom Z with even overlap (share two edges: 0,1)
S_v_even = qt.tensor(X, X, I, I, I, I)
S_geom_even = qt.tensor(Z, Z, Z, Z, I, I)
comm5 = (S_v_even * S_geom_even - S_geom_even * S_v_even).norm()
print("Vertex-geom even overlap commutator norm: ", comm5)

# Odd overlap contrast (share one: qubit 0)
S_geom_odd = qt.tensor(Z, I, Z, I, I, I)
comm6 = (S_v_even * S_geom_odd - S_geom_odd * S_v_even).norm()
print("Odd overlap (should not commute): ", comm6)

print("Commutators near 0 confirm commutation where designed.")

Simulation Results:

Disjoint geometric commutator norm: 0.0
Overlapping geometric commutator norm: 0.0
Ribbon-geom commutator norm (even overlap): 0.0
Vertex X commutator norm: 0.0
Vertex-geom even overlap commutator norm: 0.0
Odd overlap (should not commute): 128.0
Commutators near 0 confirm commutation where designed.

Conclusion: The simulation confirms that all designed stabilizer pairs (disjoint and even-overlap) yield a commutator norm of exactly 0.0. Specifically, the vertex-geometric interaction with an even overlap (sharing 2 edges) commutes, validating the topological intersection rule. In contrast, the control case with an odd overlap yields a non-zero norm (128.0), confirming that the code correctly distinguishes valid topological intersections from errors. These results validate the consistency of the stabilizer group structure.

In Plain English:
Section 10.2.9.1 formalizes the properties of the QBD calculation regarding stabilizer commutativity verification.


10.3.1 Definition: Logical Codespace​

Definition of Protected Subspace Spanned by Stable Braids

The Logical Codespace, denoted CL\mathcal{C}_L, is defined as the two-dimensional subspace of the global Hilbert space spanned by the orthonormal stable electron braid configurations, CL=span{∣βe⟩,∣βe∗⟩}\mathcal{C}_L = \text{span}\{|\beta_e\rangle, |\beta_{e*}\rangle\}. This subspace is energetically protected by the mass gap of the vacuum, such that any state ∣ψ⟩∈CL|\psi\rangle \in \mathcal{C}_L is a simultaneous eigenstate of the full stabilizer group S\mathcal{S} with the specific code-defined syndrome vector.

In Plain English:
Section 10.3.1 formalizes the properties of the QBD definition regarding logical codespace.


10.3.2 Theorem: Topological Fault Tolerance​

Verification of Physical Protection through Error Bounds

Let the topological qubit constitute a quantum error-correcting code capable of protecting quantum information against local graph defects through thermodynamic self-correction. This is established by the proof that no operator of weight 1 or 2 exists that commutes with the stabilizer group S\mathcal{S} while acting non-trivially on the logical subspace CL\mathcal{C}_L, thereby guaranteeing the deterministic detection and correction of all arbitrary single-qubit errors.

In Plain English:
Section 10.3.2 formalizes the properties of the QBD theorem regarding topological fault tolerance.


10.3.3 Lemma: Syndrome Flipping​

Single-error detection via signed Pauli checks

Let an encoded edge be covered by at least one ZZ-type and one XX-type check in a commuting Pauli code. Then each single-edge error X,Y,ZX,Y,Z has a nontrivial syndrome and sends the code to an orthogonal syndrome sector.

In Plain English:
Section 10.3.3 formalizes the properties of the QBD lemma regarding syndrome flipping.


10.3.3.1 Proof: Syndrome Flipping​

Derivation of Pauli syndromes via commutation signs

I. Signed stabilizers

For each registered check SjS_j of Stabilizer Group §10.2.1, put S~j=sjSj\widetilde S_j=s_jS_j where sj=±1s_j=\pm1 is its code eigenvalue. Then S~jP=P\widetilde S_j P=P for the code projector PP. For a Pauli EE, define bj(E)b_j(E) by

S~jE=(−1)bj(E)ES~j,S~jE∣ψL⟩=(−1)bj(E)E∣ψL⟩.\widetilde S_jE=(-1)^{b_j(E)}E\widetilde S_j,\qquad \widetilde S_jE|\psi_L\rangle=(-1)^{b_j(E)}E|\psi_L\rangle .

The sign sjs_j cancels from the relative syndrome.

II. The three single-edge errors

Let hZ(e)h_Z(e) and hX(e)h_X(e) be the incidence columns of the ZZ and XX checks covering edge ee. The relations ZX=−XZZX=-XZ and XZ=−ZXXZ=-ZX give the separate contributions for XeX_e and ZeZ_e. Since Ye=iXeZeY_e=iX_eZ_e, its sign on each check is the product of the two signs. Thus

b(Xe)=(hZ(e),0),b(Ze)=(0,hX(e)),b(Ye)=(hZ(e),hX(e)).b(X_e)=(h_Z(e),0),\qquad b(Z_e)=(0,h_X(e)),\qquad b(Y_e)=(h_Z(e),h_X(e)).

Both columns are nonzero under Syndrome Flipping §10.3.3, so each listed syndrome is nonzero.

III. Orthogonality and a matched inverse

If a sign flips on check jj, then for any code vector ∣ϕL⟩|\phi_L\rangle,

⟨ϕL∣E∣ψL⟩=⟨ϕL∣S~jE∣ψL⟩=−⟨ϕL∣E∣ψL⟩=0.\langle\phi_L|E|\psi_L\rangle =\langle\phi_L|\widetilde S_j E|\psi_L\rangle =-\langle\phi_L|E|\psi_L\rangle =0 .

If the observed syndrome identifies EE up to a phase and a stabilizer, an inverse representative E^†\widehat E^\dagger recovers the logical state: E^†EP=eiθSP=eiθP\widehat E^\dagger E P=e^{i\theta}SP=e^{i\theta}P for a signed stabilizer SS. This recovery condition is stronger than the nonzero syndrome test.

Q.E.D.

In Plain English:
Section 10.3.3.1 formalizes the properties of the QBD proof regarding syndrome flipping.


10.3.4 Lemma: Minimum Weight​

Code distance via the absence of low-weight logical Paulis

Let a nontrivial logical stabilizer code have the property that every Pauli of weight at most two with zero syndrome acts as a scalar on the code. Then its Pauli distance satisfies d≥3d\ge3, with equality if a weight-three zero-syndrome Pauli acts nontrivially on the code.

In Plain English:
Section 10.3.4 formalizes the properties of the QBD lemma regarding minimum weight.


10.3.4.1 Proof: Minimum Weight​

Derivation of the distance criterion via syndrome products

I. Low-weight products

In Minimum Weight §10.3.4, define the weight of a Pauli as the number of edge factors on which it acts nontrivially. The commutation signs of Syndrome Flipping §10.3.3 give

S~jEF=(−1)bj(E)ES~jF=(−1)bj(E)+bj(F)EFS~j,b(EF)=b(E)+b(F).\widetilde S_j EF =(-1)^{b_j(E)}E\widetilde S_jF =(-1)^{b_j(E)+b_j(F)}EF\widetilde S_j,\qquad b(EF)=b(E)+b(F).

Thus two single errors with equal syndromes can have a zero-syndrome product even when each is detected.

II. Distance and correction

A zero-syndrome Pauli preserves the joint code sector. A nonzero-syndrome Pauli sends it to an orthogonal sector. Hence

d=min⁡{wt⁡(E):b(E)=0, E∣im⁡P is non-scalar}.d=\min\{\operatorname{wt}(E):b(E)=0,\ E|_{\operatorname{im}P} \text{ is non-scalar}\}.

The stated low-weight criterion yields d≥3d\ge3. For any errors E,FE,F of weight at most one, E†FE^\dagger F has weight at most two. If its syndrome is nonzero, PE†FP=0PE^\dagger FP=0. Otherwise the criterion gives PE†FP=cEFPPE^\dagger FP=c_{EF}P. Thus the weight-one set satisfies the scalar compression condition for exact correction. A zero-syndrome non-scalar weight-three witness gives d≤3d\le3.

A sufficient incidence test is available for a CSS check family. Write a Pauli, up to phase, as X(x)Z(z)X(\boldsymbol x)Z(\boldsymbol z), where the binary vectors select its XX and ZZ factors. Then its syndrome is

b(E)=(HZx, HXz).b(E)=(H_Z\boldsymbol x,\ H_X\boldsymbol z).

If both check matrices have nonzero, pairwise distinct columns, each kernel excludes every binary vector of weight one or two. A vector of weight one maps to its nonzero column, and a vector of weight two maps to the sum of two different columns. For wt⁡(E)≤2\operatorname{wt}(E)\le2, both x\boldsymbol x and z\boldsymbol z have weight at most two. Zero syndrome therefore forces x=z=0\boldsymbol x=\boldsymbol z=0. This gives the low-weight exclusion for such an incidence model.

III. Single-check diagnostic example

For the three-edge fixture of Code Distance Verification §10.3.5.2, the valid geometric sign is −1-1 for Z1Z2Z3Z_1Z_2Z_3. With that check alone,

(Z1Z2Z3)X1X2=X1X2(Z1Z2Z3),(Z1Z2Z3)Z1=Z1(Z1Z2Z3).(Z_1Z_2Z_3)X_1X_2=X_1X_2(Z_1Z_2Z_3),\qquad (Z_1Z_2Z_3)Z_1=Z_1(Z_1Z_2Z_3).

Moreover Z1∣111⟩=−∣111⟩Z_1|111\rangle=-|111\rangle and Z1∣010⟩=∣010⟩Z_1|010\rangle=|010\rangle, with both vectors in the check's −1-1 eigenspace. Hence Z1Z_1 is non-scalar for this single-check code. The full braid check family needs the separate low-weight test.

Q.E.D.

In Plain English:
Section 10.3.4.1 formalizes the properties of the QBD proof regarding minimum weight.


10.3.5 Lemma: Thermodynamic Correction​

Logical recovery via syndrome-conditioned inverse operations

Let a recovery round use the signed syndrome projectors and inverse representatives that correct the identity and every single-edge Pauli on the code. Then it defines a trace-preserving recovery channel, and under independent per-edge Pauli error probability pp on nn edges the pure-state fidelity is at least 1−(n2)p21-\binom n2p^2.

In Plain English:
Section 10.3.5 formalizes the properties of the QBD lemma regarding thermodynamic correction.


10.3.5.1 Proof: Thermodynamic Correction​

Derivation of recovery fidelity via syndrome projectors and pair probabilities

I. Syndrome projectors

Use the commuting signed checks of Syndrome Flipping §10.3.3. For a syndrome sign vector ss define

Ps=∏jI+sjS~j2.P_s=\prod_j \frac{I+s_j\widetilde S_j}{2}.

For distinct s,ts,t at least one pair of factors multiplies to (I−S~j2)/4=0(I-\widetilde S_j^2)/4=0, so PsPt=0P_sP_t=0. Also

∑sPs=∏j(I+S~j2+I−S~j2)=I.\sum_sP_s=\prod_j\left(\frac{I+\widetilde S_j}{2} +\frac{I-\widetilde S_j}{2}\right)=I.

Inconsistent sign vectors give zero projectors.

II. Corrective channel

For each syndrome choose a unitary representative inverse RsR_s as in Thermodynamic Correction §10.3.5. With Ks=RsPsK_s=R_s P_s,

R(ρ)=∑sKsρKs†,∑sKs†Ks=∑sPsRs†RsPs=∑sPs=I.\mathcal R(\rho)=\sum_s K_s\rho K_s^\dagger,\qquad \sum_s K_s^\dagger K_s=\sum_s P_sR_s^\dagger R_sP_s=\sum_sP_s=I.

For a correctable Pauli EE with syndrome s(E)s(E), PsEP=δs,s(E)EPP_s EP=\delta_{s,s(E)}EP and Rs(E)EP=eiθEPR_{s(E)}EP=e^{i\theta_E}P. Thus for ρ=PρP\rho=P\rho P,

R(EρE†)=(eiθEP)ρ(e−iθEP)=ρ.\mathcal R(E\rho E^\dagger) =(e^{i\theta_E}P)\rho(e^{-i\theta_E}P)=\rho .

III. Independent-noise bound

Let AeA_e denote an error at edge ee. Two or more errors imply at least one pair Ae∩AfA_e\cap A_f, so independence and the union bound give

Pr⁡(at least two errors)≤∑e<fPr⁡(Ae∩Af)=(n2)p2.\Pr(\text{at least two errors})\le\sum_{e<f}\Pr(A_e\cap A_f) =\binom n2p^2 .

All other branches return ρ\rho. For a pure input ∣ψ⟩|\psi\rangle, their contribution to the output overlap is their total probability, and the remaining branches have nonnegative overlap. Hence ⟨ψ∣ρout∣ψ⟩≥1−(n2)p2\boxed{\langle\psi|\rho_{\mathrm{out}}|\psi\rangle\ge1-\binom n2p^2}.

Q.E.D.

In Plain English:
Section 10.3.5.1 formalizes the properties of the QBD proof regarding thermodynamic correction.


10.3.5.2 Calculation: Code Distance Verification​

Evaluation of Syndrome Collisions via a Single Geometric Check

The fixture uses the relative syndrome rule of Syndrome Flipping §10.3.3 and illustrates why the low-weight criterion in Minimum Weight §10.3.4 needs the full check family.

  1. State Initialization: Use ∣111⟩|111\rangle with baseline sign −1-1 for the unsigned geometric check Z0Z1Z2Z_0Z_1Z_2.
  2. Error Application: Apply each listed Pauli independently to that same initial state.
  3. Syndrome Comparison: Compare each measured sign with the baseline to identify collisions and undetected errors.
import qutip as qt


identity = qt.qeye(2)
x = qt.sigmax()
z = qt.sigmaz()
check = qt.tensor(z, z, z)
state = qt.tensor(qt.basis(2, 1), qt.basis(2, 1), qt.basis(2, 1))

errors = {
"I": qt.tensor(identity, identity, identity),
"X0": qt.tensor(x, identity, identity),
"X1": qt.tensor(identity, x, identity),
"Z0": qt.tensor(z, identity, identity),
"X0 X1": qt.tensor(x, x, identity),
}

print("One-check syndrome example (check = Z0 Z1 Z2)")
for name, error in errors.items():
output = error * state
print(f"{name:5} check sign: {qt.expect(check, output):+.0f}")

Simulation Results:

One-check syndrome example (check = Z0 Z1 Z2)
I check sign: -1
X0 check sign: +1
X1 check sign: +1
Z0 check sign: -1
X0 X1 check sign: -1

Conclusion: Both X0X_0 and X1X_1 flip the check to +1+1, so the check detects them but cannot distinguish them. The identity, Z0Z_0, and X0X1X_0X_1 all give the baseline sign −1-1. This tests one check. The distance of a specified physical code depends on its full check family and the action of its low-weight zero-syndrome errors.

In Plain English:
Section 10.3.5.2 formalizes the properties of the QBD calculation regarding code distance verification.


10.3.6 Lemma: Vertex Fock Space Formalization​

Graph-Size Sectors via Labeled Insertion and Adjoint Removal

Let HFock=⨁N≥0HN\mathcal H_{\text{Fock}}=\bigoplus_{N\ge0}\mathcal H_N be the Hilbert direct sum of fixed-size graph sectors, with graph labels retained for the vertex operators. Then a fixed legal insertion mode defines an isometry from its eligible subspace into the next sector, whose adjoint removes that mode on its image and vanishes on the orthogonal complement.

In Plain English:
Vertex Fock Space represents the quantum state of the causal graph as a direct sum of Hilbert spaces of different sizes, allowing quantum superpositions of graph sizes.


10.3.6.1 Proof: Vertex Fock Space Formalization​

Mode-Resolved Graph Operators via Injective Basis Maps and Adjointness

I. Orthogonal Size Sectors

Use orthonormal graph basis states, with labels retained for the insertion operation (Vertex Fock Space Formalization §10.3.6). Distinct sizes are orthogonal. For vectors with finitely many nonzero components,

∥∑N∣ψN⟩∥2=∑N,M⟨ψM∣ψN⟩=∑N∥ψN∥2.\left\|\sum_N|\psi_N\rangle\right\|^2 =\sum_{N,M}\langle\psi_M|\psi_N\rangle =\sum_N\|\psi_N\|^2 .

The Hilbert completion consists of sequences with finite sum of squared norms. Indeed the squared distance between partial sums ending at KK and J>KJ>K is ∑N=K+1J∥ψN∥2\sum_{N=K+1}^J\|\psi_N\|^2, which tends to zero for square-summable sequences. A normalized state has total squared norm one.

II. Legal Insertion as an Isometry

Fix a mode η=(v,Enew)\eta=(v,E_{\text{new}}) with a fresh vertex label and specified incident edges. Let HN,η\mathcal H_{N,\eta} be the closed span of basis graphs on which insertion is legal. The operator is conditional on that domain, as with other legality-restricted operations (Elementary Task Space §1.5.1). On a basis graph GG in the domain set

Iη(G)=(V(G)∪{v},E(G)∪Enew),a^η†∣G⟩=∣Iη(G)⟩.I_\eta(G)=\bigl(V(G)\cup\{v\},E(G)\cup E_{\text{new}}\bigr),\qquad \hat a_\eta^\dagger|G\rangle=|I_\eta(G)\rangle .

Deleting the marked vertex vv and its incident edges from Iη(G)I_\eta(G) returns GG. Thus Iη(G)=Iη(G′)I_\eta(G)=I_\eta(G') implies G=G′G=G', so for basis elements

⟨Iη(G′)∣Iη(G)⟩=δG′,G.\langle I_\eta(G')|I_\eta(G)\rangle=\delta_{G',G}.

For any finite linear combination, the norm of the image is therefore the square root of the same sum of squared coefficients. This defines an isometry by continuous extension.

III. Adjoint and Range Projection

Let a^η\hat a_\eta be the adjoint of the isometry. The basis matrix element is

⟨G∣a^η∣F⟩=⟨Iη(G)∣F⟩=δIη(G),F.\langle G|\hat a_\eta|F\rangle =\langle I_\eta(G)|F\rangle=\delta_{I_\eta(G),F}.

Consequently a^η∣F⟩\hat a_\eta|F\rangle is ∣G⟩|G\rangle when F=Iη(G)F=I_\eta(G) and zero for all other basis graphs. The products satisfy

a^ηa^η†=IHN,η,a^η†a^η=Pim⁡(a^η†).\hat a_\eta\hat a_\eta^\dagger=I_{\mathcal H_{N,\eta}},\qquad \hat a_\eta^\dagger\hat a_\eta=P_{\operatorname{im}(\hat a_\eta^\dagger)} .

If the mode is admissible throughout HN\mathcal H_N, the first identity is IHNI_{\mathcal H_N}. Extending the map by zero on the ineligible subspace instead gives the eligible-space projector on the whole sector.

Q.E.D.

In Plain English:
Section 10.3.6.1 formalizes the properties of the QBD proof regarding vertex fock space formalization.


10.3.7 Proof: Topological Fault Tolerance​

Distance and Recovery via Binary Incidence and Syndrome Projectors

I. Low-Weight Criterion

For a commuting signed CSS family and a Pauli E=X(x)Z(z)E=X(\boldsymbol x)Z(\boldsymbol z) up to phase, the relative syndrome of Syndrome Flipping §10.3.3 is b(E)=(HZx,HXz)b(E)=(H_Z\boldsymbol x,H_X\boldsymbol z). If both matrices have nonzero and pairwise distinct columns, a vector of weight one maps to a nonzero column and a vector of weight two maps to the sum of distinct columns. For wt⁡(E)≤2\operatorname{wt}(E)\le2, both x\boldsymbol x and z\boldsymbol z have weight at most two, so b(E)=0b(E)=0 implies x=z=0\boldsymbol x=\boldsymbol z=0.

More generally, for a code with projector PP, the criterion in Minimum Weight §10.3.4 allows scalar zero-syndrome products. For single-edge errors or the identity E,FE,F, a nonzero syndrome of E†FE^\dagger F gives PE†FP=0PE^\dagger FP=0 by orthogonality. If it has zero syndrome, the criterion gives PE†FP=cEFPPE^\dagger FP=c_{EF}P. This is the exact correction condition for those errors and yields d≥3d\ge3 on a nontrivial code.

II. Explicit Distance-Three Benchmark

As a separate seven-edge CSS fixture, choose HX=HZ=MH_X=H_Z=M with columns e1,e2,e1+e2,e3,e1+e3,e2+e3,e1+e2+e3\boldsymbol e_1,\boldsymbol e_2,\boldsymbol e_1+\boldsymbol e_2,\boldsymbol e_3,\boldsymbol e_1+\boldsymbol e_3,\boldsymbol e_2+\boldsymbol e_3,\boldsymbol e_1+\boldsymbol e_2+\boldsymbol e_3. Thus

M=(101010101100110001111),MMT=0over F2.M=\begin{pmatrix} 1&0&1&0&1&0&1\\ 0&1&1&0&0&1&1\\ 0&0&0&1&1&1&1 \end{pmatrix},\qquad MM^T=0\quad\text{over }\mathbb F_2.

Each row has weight four and each pair shares two ones, proving the last equality. Columns 1,2,41,2,4 exhibit rank three, so with all checks signed positive the independent checks give dimension 27−6=22^{7-6}=2. For u=(1,1,1,0,0,0,0)Tu=(1,1,1,0,0,0,0)^T, Mu=e1+e2+(e1+e2)=0Mu=\boldsymbol e_1+\boldsymbol e_2+(\boldsymbol e_1+\boldsymbol e_2)=0. Both X(u)=X1X2X3X(u)=X_1X_2X_3 and Z(u)=Z1Z2Z3Z(u)=Z_1Z_2Z_3 preserve the code. Their restrictions anticommute because their overlap has size three:

Z(u)X(u)=(−1)3X(u)Z(u)=−X(u)Z(u).Z(u)X(u)=(-1)^3X(u)Z(u)=-X(u)Z(u).

An invertible scalar action could not anticommute with the other invertible restriction. Thus X(u)X(u) acts nontrivially on the code. Together with the column test, this gives d=3d=3 for the fixture. A physical scaffold needs its own check matrices and witness. Steane's seven-qubit code

III. Recovery Round

Use the syndrome projectors PsP_s and inverse representatives RsR_s from Thermodynamic Correction §10.3.5. They satisfy ∑s(RsPs)†RsPs=∑sPs=I\sum_s(R_sP_s)^\dagger R_sP_s=\sum_s P_s=I. For independent per-edge Pauli error probability pp, the probability of errors on two or more edges is bounded by

Pr⁡(at least two errors)≤∑i<jPr⁡(errors on i,j)=(n2)p2.\Pr(\text{at least two errors}) \le\sum_{i<j}\Pr(\text{errors on }i,j)=\binom n2p^2.

If the recovery corrects the identity and all single-edge errors, those histories return the input. Hence for pure encoded input the recovered fidelity is at least 1−(n2)p21-\binom n2p^2.

IV. Labeled Graph-Size Changes

For a fixed legal insertion with isometry JJ on its eligible sector, J†J=PeligibleJ^\dagger J=P_{\mathrm{eligible}} and JJ†=PimageJJ^\dagger=P_{\mathrm{image}} (Vertex Fock Space Formalization §10.3.6). In particular J†J(α∣G⟩+β∣G′⟩)=α∣G⟩+β∣G′⟩J^\dagger J(\alpha|G\rangle+\beta|G'\rangle)=\alpha|G\rangle+\beta|G'\rangle for eligible inputs. A recovery using this insertion needs the indicated domain and removal match. These identities do not supply an autonomous physical decoder.

Q.E.D.

In Plain English:
Section 10.3.7 formalizes the properties of the QBD proof regarding topological fault tolerance.


10.4.1 Definition: Writhe Shuffling​

Physical Process Transforming Braid Topology via Writhe Shuffling

The Writhe Shuffling process (implementing the Logical X Gate, denoted RX\mathcal{R}_X) is defined as the specific sequence of PUC-compliant graph rewrites that transforms the internal writhe configuration from the symmetric vector (−1,−1,−1)(-1, -1, -1) to the asymmetric vector (−2,−1,0)(-2, -1, 0) and vice versa. This process constitutes a conservative redistribution of local twist among the ribbons, constrained by the strict invariance of the total writhe WW and the linking number LL.

In Plain English:
Section 10.4.1 formalizes the properties of the QBD definition regarding writhe shuffling.


10.4.2 Theorem: Logical X Gate​

Physical Realization of Pauli-X via Charge-Conserving Shuffles

Let the writhe shuffling operation RX\mathcal{R}_X execute a logical X gate on the topological qubit codespace, which satisfies the conservation of global invariants for electric charge and color charge modulo the logical state definition.

In Plain English:
Section 10.4.2 formalizes the properties of the QBD theorem regarding logical x gate.


10.4.3 Lemma: Writhe Conservation​

Verification of Total Writhe Invariance through Redistribution

For any writhe shuffling operation, the total writhe WW of the braid configuration is conserved during the transformation.

In Plain English:
Section 10.4.3 formalizes the properties of the QBD lemma regarding writhe conservation.


10.4.3.1 Proof: Writhe Conservation​

Formal Summation via Topological Invariants

I. Elementary Redistribution

Let w=(w1,…,wn)∈Zn\boldsymbol w=(w_1,\ldots,w_n)\in\mathbb Z^n and let a shuffle transfer an integer aa from coordinate jj to coordinate ii, with i≠ji\ne j. Its label action is

w′=w+aei−aej,wr′=wr+aδri−aδrj\boldsymbol w'=\boldsymbol w+a\boldsymbol e_i-a\boldsymbol e_j,\qquad w_r'=w_r+a\delta_{ri}-a\delta_{rj}

(Writhe Shuffling §10.4.1). Define W(w)=∑r=1nwrW(\boldsymbol w)=\sum_{r=1}^n w_r.

II. Sum Before and After a Shuffle

Both affected coordinates and every unaffected one contribute explicitly:

W(w′)=∑r=1n(wr+aδri−aδrj)=∑r=1nwr+a∑r=1nδri−a∑r=1nδrj=W(w)+a−a=W(w).\begin{aligned} W(\boldsymbol w') &=\sum_{r=1}^n(w_r+a\delta_{ri}-a\delta_{rj})\\ &=\sum_{r=1}^nw_r+a\sum_{r=1}^n\delta_{ri} -a\sum_{r=1}^n\delta_{rj}\\ &=W(\boldsymbol w)+a-a=W(\boldsymbol w). \end{aligned}

For a sequence w(0),…,w(m)\boldsymbol w^{(0)},\ldots,\boldsymbol w^{(m)} of such transfers, the base equality is W(w(0))=W(w(0))W(\boldsymbol w^{(0)})=W(\boldsymbol w^{(0)}). The single-transfer identity gives

W(w(r+1))=W(w(r))=W(w(0)).W(\boldsymbol w^{(r+1)})=W(\boldsymbol w^{(r)}) =W(\boldsymbol w^{(0)}).

Induction therefore establishes conservation for every finite shuffle sequence.

III. Selected Logical Transition

For the specified logical labels (Logical X Gate §10.4.2), the coordinate difference is

w1−w0=(−2,−1,0)−(−1,−1,−1)=(−1,0,1)=−e1+e3,W0=−1−1−1=−3,W1=−2−1+0=−3,ΔW=(−3)−(−3)=0.\begin{aligned} \boldsymbol w_1-\boldsymbol w_0 &=(-2,-1,0)-(-1,-1,-1)=(-1,0,1) =-\boldsymbol e_1+\boldsymbol e_3,\\ W_0&=-1-1-1=-3,\\ W_1&=-2-1+0=-3,\\ \Delta W&=(-3)-(-3)=0. \end{aligned}

The reverse transfer has the negative coordinate increment and also preserves the sum. Hence

W(w′)=W(w),W0=W1=−3.\boxed{W(\boldsymbol w')=W(\boldsymbol w),\qquad W_0=W_1=-3.}

Q.E.D.

In Plain English:
Section 10.4.3.1 formalizes the properties of the QBD proof regarding writhe conservation.


10.4.4 Lemma: Charge Conservation​

Verification through Electric Charge Invariance during Operations

Let the global electric charge QQ be conserved under all writhe shuffling operations.

In Plain English:
Section 10.4.4 formalizes the properties of the QBD lemma regarding charge conservation.


10.4.4.1 Proof: Charge Conservation​

Formal Derivation via the Topological Charge Operator

I. Integer-Writhe Charge

The charge definition and total writhe are

Q(w)=13W(w),W(w)=∑iwiQ(\boldsymbol w)=\frac13W(\boldsymbol w),\qquad W(\boldsymbol w)=\sum_iw_i

(Charge Operator §7.3.1). An allowed shuffle has W(w′)=W(w)W(\boldsymbol w')=W(\boldsymbol w) by the coordinate-sum calculation (Writhe Conservation §10.4.3).

II. Charge Difference

Substitution gives

Q(w′)−Q(w)=13∑iwi′−13∑iwi=13(∑iwi′−∑iwi)=13(W′−W)=0.\begin{aligned} Q(\boldsymbol w')-Q(\boldsymbol w) &=\frac13\sum_iw_i'-\frac13\sum_iw_i\\ &=\frac13\left(\sum_iw_i'-\sum_iw_i\right) =\frac13(W'-W)=0. \end{aligned}

For the selected logical labels,

Q0=−1−1−13=−1,Q1=−2−1+03=−1.Q_0=\frac{-1-1-1}{3}=-1,\qquad Q_1=\frac{-2-1+0}{3}=-1.

III. Linear Operator Form

On writhe basis states define Q^∣w⟩=Q(w)∣w⟩\hat Q|\boldsymbol w\rangle=Q(\boldsymbol w)|\boldsymbol w\rangle. Let UU be a shuffle operator whose matrix elements vanish unless the sums agree:

U∣w⟩=∑w′:W(w′)=W(w)uw′,w∣w′⟩.U|\boldsymbol w\rangle =\sum_{\boldsymbol w':W(\boldsymbol w')=W(\boldsymbol w)} u_{\boldsymbol w',\boldsymbol w}|\boldsymbol w'\rangle.

On finite linear combinations in the common domain,

Q^U∣w⟩=∑w′uw′,wQ(w′)∣w′⟩=Q(w)∑w′uw′,w∣w′⟩=UQ^∣w⟩.\begin{aligned} \hat Q U|\boldsymbol w\rangle &=\sum_{\boldsymbol w'}u_{\boldsymbol w',\boldsymbol w} Q(\boldsymbol w')|\boldsymbol w'\rangle\\ &=Q(\boldsymbol w)\sum_{\boldsymbol w'}u_{\boldsymbol w',\boldsymbol w} |\boldsymbol w'\rangle =U\hat Q|\boldsymbol w\rangle. \end{aligned}

Thus the shuffle preserves charge, including on coherent linear combinations in each fixed-charge sector:

ΔQ=0,[Q^,U]=0.\boxed{\Delta Q=0,\qquad[\hat Q,U]=0.}

Q.E.D.

In Plain English:
Section 10.4.4.1 formalizes the properties of the QBD proof regarding charge conservation.


10.4.5 Proof: Logical X Gate​

Logical Exchange via Projected Transfers and Prefix Conservation

I. Writhe Balance Along the Rewrite Word

In the transfer convention T^ij:w↦w+ei−ej\hat T_{ij}:\boldsymbol w\mapsto\boldsymbol w+\boldsymbol e_i-\boldsymbol e_j, the forward and reverse transfers are

(−1,−1,−1)→T^31(−2,−1,0),(−2,−1,0)→T^13(−1,−1,−1).(-1,-1,-1)\xrightarrow{\hat T_{31}}(-2,-1,0), \qquad (-2,-1,0)\xrightarrow{\hat T_{13}}(-1,-1,-1).

For a prefix of a word of admitted elementary transfers as in Writhe Conservation §10.4.3,

w(k)=w(0)+∑r=1kar(eir−ejr),W(k)=−3+∑r=1kar(1−1)=−3.\boldsymbol w^{(k)}=\boldsymbol w^{(0)}+ \sum_{r=1}^{k}a_r(\boldsymbol e_{i_r}-\boldsymbol e_{j_r}),\qquad W^{(k)}=-3+\sum_{r=1}^{k}a_r(1-1)=-3 .

Therefore Q(k)=W(k)/3=−1Q^{(k)}=W^{(k)}/3=-1 at each step (Charge Conservation §10.4.4). A coherent superposition of intermediate labels in this sector is also a Q=−1Q=-1 eigenstate.

II. Projected Exchange and Pulse

For the logical projector PP, the unprojected forward shift also sends (−2,−1,0)(-2,-1,0) to (−3,−1,1)(-3,-1,1), and the reverse shift sends (−1,−1,−1)(-1,-1,-1) to (0,−1,−2)(0,-1,-2). Thus

PT^31P=∣1L⟩⟨0L∣,PT^13P=∣0L⟩⟨1L∣,P(T^31+T^13)P=XL.P\hat T_{31}P=|1_L\rangle\langle0_L|,\quad P\hat T_{13}P=|0_L\rangle\langle1_L|,\quad P(\hat T_{31}+\hat T_{13})P=X_L .

With the admitted invariant control HX∣im⁡P=gXLH_X|_{\operatorname{im}P}=gX_L of State Controllability §10.1.5, (I−P)HXP=0(I-P)H_XP=0. Since XL2=ILX_L^2=I_L,

e−igtXL=cos⁡(gt)IL−isin⁡(gt)XL,e−iπXL/2=−iXL.e^{-i g t X_L}=\cos(gt)I_L-i\sin(gt)X_L,\qquad e^{-i\pi X_L/2}=-iX_L .

It exchanges α∣0L⟩+β∣1L⟩\alpha|0_L\rangle+\beta|1_L\rangle with −i(β∣0L⟩+α∣1L⟩)-i(\beta|0_L\rangle+\alpha|1_L\rangle), preserving the norm and the code.

III. Color and Physical Support

If the encoded color observable is C=λc∣1L⟩⟨1L∣C=\lambda_c|1_L\rangle\langle1_L| as in Basis Measurability §10.1.6, then

[C,XL]=λc(∣1L⟩⟨0L∣−∣0L⟩⟨1L∣).[C,X_L]=\lambda_c\bigl(|1_L\rangle\langle0_L|-|0_L\rangle\langle1_L|\bigr).

Thus an exact global color conservation law would need a matched model of the control and surrounding degrees of freedom. The prefix balance establishes electric charge conservation for the stated transfer word. Whether the matched control is transversal depends on its physical tensor factors and implementation.

Q.E.D.

In Plain English:
Section 10.4.5 formalizes the properties of the QBD proof regarding logical x gate.


10.5.1 Theorem: Logical Z Gate​

Physical Realization of Pauli-Z via QND Color Measurement

Let the Logical Z Gate be implemented by a Quantum Non-Demolition (QND) measurement process RZ\mathcal{R}_Z that couples the qubit to the SU(3)SU(3) gauge field, satisfying the condition that the process induces a state-dependent geometric phase shift of exactly π\pi on the excited state ∣1L⟩|1_L\rangle while leaving the ground state ∣0L⟩|0_L\rangle strictly invariant.

In Plain English:
Section 10.5.1 formalizes the properties of the QBD theorem regarding logical z gate.


10.5.2 Lemma: Singlet Transparency​

Singlet transparency via a total-generator probe

Let the logical zero carry the trivial SU(3)SU(3) representation and let the probe couple only through the total color generators. Then the probe Hamiltonian annihilates the logical-zero sector and its interaction-picture action there is the identity.

In Plain English:
Section 10.5.2 formalizes the properties of the QBD lemma regarding singlet transparency.


10.5.2.1 Proof: Singlet Transparency​

Derivation of the vanishing probe response via the singlet action

I. Trivial action and generators

Use the logical zero of Logical Basis §10.1.1 with the specified trivial color action in Singlet Transparency §10.5.2. For each generator TaT^a, e−itTa∣0L⟩=∣0L⟩e^{-itT^a}|0_L\rangle=|0_L\rangle for every tt. Differentiating at t=0t=0 gives

−iTa∣0L⟩=0,Ta∣0L⟩=0.-iT^a|0_L\rangle=0,\qquad T^a|0_L\rangle=0 .

II. Probe matrix elements

In the total-generator model let Hint(t)=∑aTa⊗Aa(t)H_{\mathrm{int}}(t)=\sum_a T^a\otimes A_a(t), with the Aa(t)A_a(t) including the coupling and probe variables. For any probe vector ∣χ⟩|\chi\rangle,

Hint(t)(∣0L⟩⊗∣χ⟩)=∑a(Ta∣0L⟩)⊗Aa(t)∣χ⟩=0.H_{\mathrm{int}}(t)(|0_L\rangle\otimes|\chi\rangle) =\sum_a (T^a|0_L\rangle)\otimes A_a(t)|\chi\rangle=0 .

For arbitrary final vectors the transition matrix element of this interaction is therefore zero, including the diagonal expectation.

III. Interaction evolution

Let P0=∣0L⟩⟨0L∣P_0=|0_L\rangle\langle0_L| and let Uint(0)=IU_{\mathrm{int}}(0)=I. The adjoint evolution obeys

ddt(Uint†(t)(P0⊗I))=iUint†(t)Hint(t)(P0⊗I)=0.\frac{\mathrm d}{\mathrm dt}\bigl(U_{\mathrm{int}}^\dagger(t)(P_0\otimes I)\bigr) =i U_{\mathrm{int}}^\dagger(t)H_{\mathrm{int}}(t)(P_0\otimes I)=0 .

Integration gives Uint†(t)(P0⊗I)=P0⊗IU_{\mathrm{int}}^\dagger(t)(P_0\otimes I)=P_0\otimes I, and multiplying by Uint(t)U_{\mathrm{int}}(t) gives Uint(t)(P0⊗I)=P0⊗IU_{\mathrm{int}}(t)(P_0\otimes I)=P_0\otimes I.

The probe-induced phase on that sector is zero relative to free evolution.

Q.E.D.

In Plain English:
Section 10.5.2.1 formalizes the properties of the QBD proof regarding singlet transparency.


10.5.3 Lemma: Color Phase​

Logical phase via an admitted holonomy eigenline

Let a coherent color transport along a closed path preserve the logical pair, act trivially on the singlet, and have eigenvalue eiθe^{i\theta} on the logical-one line. Then its restriction is diag⁡(1,eiθ)\operatorname{diag}(1,e^{i\theta}), yielding logical ZZ when the admitted path is calibrated to θ=π\theta=\pi modulo 2π2\pi.

In Plain English:
Section 10.5.3 formalizes the properties of the QBD lemma regarding color phase.


10.5.3.1 Proof: Color Phase​

Derivation of a phase gate via ordered transport and its restriction

I. Ordered color transport

In the model of Color Phase §10.5.3, parametrize the closed path by s∈[0,1]s\in[0,1] and write its Hermitian connection along the path as A(s)A(s). The equation dU/ds=iA(s)U(s)\mathrm dU/\mathrm ds=iA(s)U(s) with U(0)=IU(0)=I gives the integral relation

U(s)=I+i∫0sA(u)U(u) du.U(s)=I+i\int_0^s A(u)U(u)\,\mathrm du.

Substitution into the right side gives the first two terms beyond the identity,

U(1)=I+i∫01A(s) ds−∫01 ⁣ds∫0s ⁣du A(s)A(u)+⋯=Pexp⁡(i∫01A(s) ds).U(1)=I+i\int_0^1 A(s)\,\mathrm ds -\int_0^1\!\mathrm ds\int_0^s\!\mathrm du\,A(s)A(u)+\cdots =\mathcal P\exp\left(i\int_0^1 A(s)\,\mathrm ds\right).

The later connection matrices appear to the left. Since d(U†U)/ds=−iU†AU+iU†AU=0\mathrm d(U^\dagger U)/\mathrm ds=-iU^\dagger AU+iU^\dagger AU=0, the transport is unitary.

II. A commuting calibration example

In the fundamental color model, let D=diag⁡(1,−1,0)D=\operatorname{diag}(1,-1,0) and A(s)=a(s)DA(s)=a(s)D along the path. For all u,vu,v, A(u)A(v)=a(u)a(v)D2=A(v)A(u)A(u)A(v)=a(u)a(v)D^2=A(v)A(u). Define

Θ(s)=∫0sa(u) du,V(s)=diag⁡(eiΘ(s),e−iΘ(s),1).\Theta(s)=\int_0^s a(u)\,\mathrm du,\qquad V(s)=\operatorname{diag}(e^{i\Theta(s)},e^{-i\Theta(s)},1).

Since Θ(0)=0\Theta(0)=0, one has V(0)=IV(0)=I. Its derivative is

dVds=diag⁡(ia(s)eiΘ(s),−ia(s)e−iΘ(s),0)=ia(s)D diag⁡(eiΘ(s),e−iΘ(s),1)=iA(s)V(s).\begin{aligned} \frac{\mathrm d V}{\mathrm ds} &=\operatorname{diag}\bigl(i a(s)e^{i\Theta(s)},-i a(s)e^{-i\Theta(s)},0\bigr)\\ &=i a(s)D\,\operatorname{diag}(e^{i\Theta(s)},e^{-i\Theta(s)},1) =i A(s)V(s). \end{aligned}

Thus VV satisfies the same transport equation and initial condition as UU. Their product has derivative and initial value

dds(V†U)=−iV†A(s)U+iV†A(s)U=0,V†(0)U(0)=I.\frac{\mathrm d}{\mathrm ds}(V^\dagger U) =-iV^\dagger A(s)U+iV^\dagger A(s)U=0,\qquad V^\dagger(0)U(0)=I .

Since V(s)V(s) is unitary, V†(s)U(s)=IV^\dagger(s)U(s)=I yields U(s)=V(s)U(s)=V(s). With Θ=Θ(1)\Theta=\Theta(1),

U(1)=exp⁡(iΘD)=diag⁡(eiΘ,e−iΘ,1),det⁡U(1)=eiΘe−iΘ=1.U(1)=\exp(i\Theta D)=\operatorname{diag}(e^{i\Theta},e^{-i\Theta},1),\qquad \det U(1)=e^{i\Theta}e^{-i\Theta}=1.

The first color basis line acquires eigenvalue −1-1 at Θ=π\Theta=\pi. Its phase follows from the specified connection and chosen line.

III. Logical restriction

Using Singlet Transparency §10.5.2 for the singlet line and the stipulated holonomy eigenvalue on the other line,

U(1)(α∣0L⟩+β∣1L⟩)=α∣0L⟩+eiθβ∣1L⟩.U(1)(\alpha|0_L\rangle+\beta|1_L\rangle) =\alpha|0_L\rangle+e^{i\theta}\beta|1_L\rangle.

At θ=π\theta=\pi, this is α∣0L⟩−β∣1L⟩\alpha|0_L\rangle-\beta|1_L\rangle. Both projectors onto the logical basis lines commute with the restricted transporter, and the code remains invariant by premise.

Q.E.D.

In Plain English:
Section 10.5.3.1 formalizes the properties of the QBD proof regarding color phase.


10.5.4 Proof: Logical Z Gate​

Logical Phase via Singlet Transparency and Calibrated Color Transport

I. Singlet Probe Response

With the trivial color representation of Singlet Transparency §10.5.2, differentiating e−itTa∣0L⟩=∣0L⟩e^{-itT^a}|0_L\rangle=|0_L\rangle gives Ta∣0L⟩=0T^a|0_L\rangle=0. For P0=∣0L⟩⟨0L∣P_0=|0_L\rangle\langle0_L| and Hint(t)=∑aTa⊗Aa(t)H_{\mathrm{int}}(t)=\sum_a T^a\otimes A_a(t),

Hint(t)(P0⊗I)=0,ddt(Uint†(t)(P0⊗I))=0.H_{\mathrm{int}}(t)(P_0\otimes I)=0,\qquad \frac{\mathrm d}{\mathrm dt}\bigl(U_{\mathrm{int}}^\dagger(t)(P_0\otimes I)\bigr)=0 .

Since Uint(0)=IU_{\mathrm{int}}(0)=I, this gives Uint(t)(P0⊗I)=P0⊗IU_{\mathrm{int}}(t)(P_0\otimes I)=P_0\otimes I in the interaction picture.

II. Holonomy Calibration

Along a closed path γ\gamma with the connection convention of Color Phase §10.5.3, solve U′(s)=iA(s)U(s)U'(s)=iA(s)U(s) with U(0)=IU(0)=I. Iterating the integral equation gives

U(1)=I+i∫01A(s) ds−∫01 ⁣ds∫0s ⁣du A(s)A(u)+⋯=Pexp⁡(i∮γA).U(1)=I+i\int_0^1 A(s)\,\mathrm ds -\int_0^1\!\mathrm ds\int_0^s\!\mathrm du\,A(s)A(u)+\cdots =\mathcal P\exp\left(i\oint_\gamma A\right).

For the commuting calibration A(s)=a(s)diag⁡(1,−1,0)A(s)=a(s)\operatorname{diag}(1,-1,0) on the represented color sector, integrating Θ=∫01a(s) ds\Theta=\int_0^1 a(s)\,\mathrm ds yields

U(1)=diag⁡(eiΘ,e−iΘ,1),U(1)e1=eiΘe1.U(1)=\operatorname{diag}(e^{i\Theta},e^{-i\Theta},1),\qquad U(1)\boldsymbol e_1=e^{i\Theta}\boldsymbol e_1 .

At Θ=π\Theta=\pi, a logical excited line matched to e1\boldsymbol e_1 acquires eigenvalue −1-1. Taking Θ=0\Theta=0 in the same representation yields +1+1 on that line. The quadratic Casimir is unchanged between these two calibrations.

III. Coherent Gate on the Code

If the admitted transport returns the probe to the same auxiliary state on both branches, the singlet result and the calibrated eigenline give

(α∣0L⟩+β∣1L⟩)∣χ⟩⟼(α∣0L⟩−β∣1L⟩)∣χ′⟩,UL=P0−P1=ZL.(\alpha|0_L\rangle+\beta|1_L\rangle)|\chi\rangle \longmapsto(\alpha|0_L\rangle-\beta|1_L\rangle)|\chi'\rangle,\qquad U_L=P_0-P_1=Z_L .

For a recorded projective measurement, tracing out orthogonal records instead yields ρ↦P0ρP0+P1ρP1\rho\mapsto P_0\rho P_0+P_1\rho P_1 and sends ∣0L⟩⟨1L∣|0_L\rangle\langle1_L| to zero. The coherent gate sends that same matrix element to −∣0L⟩⟨1L∣-|0_L\rangle\langle1_L|.

Q.E.D.

In Plain English:
Section 10.5.4 formalizes the properties of the QBD proof regarding logical z gate.


10.6.1 Theorem: Hadamard Gate​

Verification of Superposition Generation via Thermal Relaxation

Let the Hadamard rewrite process RH\mathcal{R}_H execute a logical Hadamard gate on the topological qubit codespace. This is established by a thermodynamic cycle that heats the qubit to drive mixing and quenches it to trap coherence, mapping ∣0L⟩→12(∣0L⟩+∣1L⟩)|0_L\rangle \to \frac{1}{\sqrt{2}}(|0_L\rangle + |1_L\rangle) and ∣1L⟩→12(∣0L⟩−∣1L⟩)|1_L\rangle \to \frac{1}{\sqrt{2}}(|0_L\rangle - |1_L\rangle).

In Plain English:
Section 10.6.1 formalizes the properties of the QBD theorem regarding hadamard gate.


10.6.2 Lemma: Temperature Control​

Local temperature relaxation via an effective driven model

Let the local temperature increment be proportional to the excess rewrite density and relax after the drive according to a first-order decay law. Then the post-drive increment is exponentially decreasing, and an independently specified activated dephasing rate gives a coherence-time bound in terms of the barrier and temperature.

In Plain English:
Section 10.6.2 formalizes the properties of the QBD lemma regarding temperature control.


10.6.2.1 Proof: Temperature Control​

Derivation of the temperature and coherence bounds via effective rate laws

I. Local density and temperature

For a patch of volume ∣V∣|V| in Temperature Control §10.6.2, let NR(t)N_{\mathcal R}(t) count rewrites in a fixed sampling interval and NvacN_{\mathrm{vac}} be its undriven reference count. The excess density and temperature are

δρrewrite(t)=NR(t)−Nvac∣V∣,Tlocal(t)=Tvac+k δρrewrite(t)\delta\rho_{\mathrm{rewrite}}(t)=\frac{N_{\mathcal R}(t)-N_{\mathrm{vac}}}{|V|}, \qquad T_{local}(t)=T_{\mathrm{vac}}+k\,\delta\rho_{\mathrm{rewrite}}(t)

with k>0k>0 a calibration coefficient. The assigned density already includes the volume division.

II. Post-drive relaxation

Assume first-order relaxation after the drive ends at t0t_0, with δT=Tlocal−Tvac\delta T=T_{local}-T_{\mathrm{vac}} and time constant τrel>0\tau_{\mathrm{rel}}>0. Then

dδTdt=−δTτrel,ddt(e(t−t0)/τrelδT(t))=0.\frac{\mathrm d\delta T}{\mathrm dt}=-\frac{\delta T}{\tau_{\mathrm{rel}}}, \qquad \frac{\mathrm d}{\mathrm dt}\left(e^{(t-t_0)/\tau_{\mathrm{rel}}}\delta T(t)\right)=0.

Hence δT(t)=δT(t0)e−(t−t0)/τrel\delta T(t)=\delta T(t_0)e^{-(t-t_0)/\tau_{\mathrm{rel}}}. At t=t0+τrelt=t_0+\tau_{\mathrm{rel}} the remaining increment is δT(t0)/e\delta T(t_0)/e.

III. Conditional coherence bound

For a separate effective activation model with barrier Δ>0\Delta>0 as in Topological Stability §10.1.3, take kB=1k_B=1 and assume Γdeph(T)=Γ0e−Δ/T\Gamma_{\mathrm{deph}}(T)=\Gamma_0 e^{-\Delta/T} at fixed T>0T>0. For a gate duration tg>0t_g>0,

τdephtg=eΔ/TΓ0tg,τdeph≥104tg ⟺ ΔT≥ln⁡(104Γ0tg).\frac{\tau_{\mathrm{deph}}}{t_g} =\frac{e^{\Delta/T}}{\Gamma_0 t_g},\qquad \tau_{\mathrm{deph}}\ge10^4t_g \ \Longleftrightarrow\ \frac{\Delta}{T}\ge\ln(10^4\Gamma_0t_g).

When the logarithm is positive, this holds for T≤Δ/ln⁡(104Γ0tg)T\le\Delta/\ln(10^4\Gamma_0t_g). When it is nonpositive, the ratio is already at least 10410^4 for every positive TT in that model.

Q.E.D.

In Plain English:
Section 10.6.2.1 formalizes the properties of the QBD proof regarding temperature control.


10.6.3 Lemma: Topological Degeneracy​

Logical energy comparison via assigned sharing costs

Let the two logical labels have a common baseline and mass conversion in the quadratic writhe cost model, with sharing savings zero and two for the two states, respectively. Then their modeled energies are equal and the restricted thermal ensemble has equal populations when each state has multiplicity one.

In Plain English:
Section 10.6.3 formalizes the properties of the QBD lemma regarding topological degeneracy.


10.6.3.1 Proof: Topological Degeneracy​

Derivation of the degeneracy criterion via the two net costs

I. Net costs

Use the logical labels of Logical Basis §10.1.1 and the sharing convention motivated by Integer Geometric Efficiency §7.4.5. Let sbs_b denote the total saving in units of one geometric quantum in the quadratic model. Then

Nnet(0)=(−1)2+(−1)2+(−1)2−s0=3−s0,Nnet(1)=(−2)2+(−1)2+02−s1=5−s1.\begin{aligned} N_{\mathrm{net}}(0)&=(-1)^2+(-1)^2+(-1)^2-s_0=3-s_0,\\ N_{\mathrm{net}}(1)&=(-2)^2+(-1)^2+0^2-s_1=5-s_1 . \end{aligned}

With Eb=Eref+κNnet(b)E_b=E_{\mathrm{ref}}+\kappa N_{\mathrm{net}}(b) and κ>0\kappa>0,

E1−E0=κ[(5−s1)−(3−s0)]=κ(2−(s1−s0)).E_1-E_0=\kappa[(5-s_1)-(3-s_0)] =\kappa(2-(s_1-s_0)).

Hence E1=E0E_1=E_0 precisely when s1−s0=2s_1-s_0=2. The assigned values s0=0,s1=2s_0=0,s_1=2 give Nnet(0)=Nnet(1)=3N_{\mathrm{net}}(0)=N_{\mathrm{net}}(1)=3.

II. Thermal population

In the restricted ensemble of Topological Degeneracy §10.6.3, with one state per label and kB=1k_B=1, the probabilities satisfy

P0=e−E0/Te−E0/T+e−E1/T,P1P0=e−(E1−E0)/T.P_0=\frac{e^{-E_0/T}}{e^{-E_0/T}+e^{-E_1/T}},\qquad \frac{P_1}{P_0}=e^{-(E_1-E_0)/T}.

For equal energies the denominator is 2e−E0/T2e^{-E_0/T}, and P0=P1=1/2P_0=P_1=1/2.

III. Thermal state and coherent comparison

Write ∣+L⟩=(∣0L⟩+∣1L⟩)/2|+_L\rangle=(|0_L\rangle+|1_L\rangle)/\sqrt2. In the logical basis the density matrices are

ρth=12(1001),∣+L⟩⟨+L∣=12(1111).\rho_{\mathrm{th}}=\tfrac12 \begin{pmatrix}1&0\\0&1\end{pmatrix},\qquad |+_L\rangle\langle+_L|=\tfrac12 \begin{pmatrix}1&1\\1&1\end{pmatrix}.

Thus Tr⁡(ρth2)=1/2\operatorname{Tr}(\rho_{\mathrm{th}}^2)=1/2, whereas Tr⁡((∣+L⟩⟨+L∣)2)=1\operatorname{Tr}((|+_L\rangle\langle+_L|)^2)=1. Every logical unitary preserves ρth=IL/2\rho_{\mathrm{th}}=I_L/2.

Q.E.D.

In Plain English:
Section 10.6.3.1 formalizes the properties of the QBD proof regarding topological degeneracy.


10.6.4 Proof: Hadamard Gate​

Hadamard Construction via Coherent Driving and a Dephasing Budget

I. Thermal Evolution

In the two-state population model take Γ01/Γ10=exp⁡(−ΔElog/(kBT))\Gamma_{01}/\Gamma_{10}=\exp(-\Delta E_{\mathrm{log}}/(k_BT)). At the assigned degeneracy of Topological Degeneracy §10.6.3, ΔElog=0\Delta E_{\mathrm{log}}=0 and the two rates coincide. With common possibly time-dependent rate Γ(t)\Gamma(t) and coherence damping γ(t)\gamma(t), the undriven equations integrate to

p1(t)−12=(p1(0)−12)e−2∫0tΓ(s) ds,ρ01(t)=ρ01(0)e−∫0tγ(s) ds.p_1(t)-\tfrac12=(p_1(0)-\tfrac12)e^{-2\int_0^t\Gamma(s)\,\mathrm ds}, \qquad \rho_{01}(t)=\rho_{01}(0)e^{-\int_0^t\gamma(s)\,\mathrm ds}.

Cooling can reduce the decay rates. A diagonal input remains diagonal, and an exact maximally mixed state also satisfies U(IL/2)U†=IL/2U(I_L/2)U^\dagger=I_L/2 for every unitary.

II. Admitted Coherent Pulse

Let B=(XL+ZL)/2B=(X_L+Z_L)/\sqrt2. From XLZL=−ZLXLX_LZ_L=-Z_LX_L and XL2=ZL2=ILX_L^2=Z_L^2=I_L,

B2=12(XL2+XLZL+ZLXL+ZL2)=IL.B^2=\tfrac12(X_L^2+X_LZ_L+Z_LX_L+Z_L^2)=I_L .

For an admitted code-preserving drive Hd=ℏΩB/2H_{\mathrm d}=\hbar\Omega B/2, the pulse at tg=π/Ωt_g=\pi/\Omega gives

e−itgHd/ℏ=cos⁡(π/2)IL−isin⁡(π/2)B=−iB,B=12(111−1).e^{-it_gH_{\mathrm d}/\hbar}=\cos(\pi/2)I_L-i\sin(\pi/2)B=-iB, \quad B=\frac1{\sqrt2}\begin{pmatrix}1&1\\1&-1\end{pmatrix}.

The columns give B∣0L⟩=∣+⟩B|0_L\rangle=|+\rangle and B∣1L⟩=∣−⟩B|1_L\rangle=|-\rangle. In particular B∣0L⟩⟨0L∣B†B|0_L\rangle\langle0_L|B^\dagger has all four entries equal to 1/21/2.

III. Conditional Thermal Budget

For the activated dephasing law of Temperature Control §10.6.2, let Δ>0\Delta>0 be the activation barrier, separate from the logical splitting. With Γdeph=Γ0e−Δ/(kBT)\Gamma_{\mathrm{deph}}=\Gamma_0 e^{-\Delta/(k_BT)}, the stipulated budget is

tgτdeph=tgΓ0e−Δ/(kBT)≤10−4⟺ΔkBT≥ln⁡(104Γ0tg).\frac{t_g}{\tau_{\mathrm{deph}}}=t_g\Gamma_0e^{-\Delta/(k_BT)}\le10^{-4} \quad\Longleftrightarrow\quad \frac{\Delta}{k_BT}\ge\ln(10^4\Gamma_0t_g).

When the logarithm is positive this gives T≤Δ/[kBln⁡(104Γ0tg)]T\le \Delta/[k_B\ln(10^4\Gamma_0t_g)]. When it is nonpositive every positive TT meets this budget in the model. For a driven Markovian dephasing model with jump Γdeph/2 ZL\sqrt{\Gamma_{\mathrm{deph}}/2}\,Z_L, the dissipative term has trace norm at most Γdeph\Gamma_{\mathrm{deph}} on a density matrix because ∥ZLρZL−ρ∥1≤2\|Z_L\rho Z_L-\rho\|_1\le2. Integrating in the ideal drive's interaction picture bounds the trace distance to ideal evolution by 12∫0tgΓdeph(t) dt\frac12\int_0^{t_g}\Gamma_{\mathrm{deph}}(t)\,\mathrm dt. This bound uses the specified dephasing channel.

Q.E.D.

In Plain English:
Section 10.6.4 formalizes the properties of the QBD proof regarding hadamard gate.


10.6.4.1 Calculation: Hadamard Quench Verification​

Evaluation of Driven Populations and Coherence via a Two-Level Model

The example uses the distinction between the active pulse and undriven relaxation in Hadamard Gate §10.6.4. It assigns constant dissipation rather than a temperature-dependent history of the form considered in Temperature Control §10.6.2.

  1. State Initialization: Start from the pure state ∣0⟩⟨0∣|0\rangle\langle0|.
  2. Driven Evolution: Integrate with ℏ=1\hbar=1, Hamiltonian (Ω/2)Y(\Omega/2)Y, Ω=10\Omega=10, and two fixed raising and lowering jump rates Γ=0.1\Gamma=0.1 over 0≤t≤0.20\le t\le0.2.
  3. Output Comparison: Read the two populations and both components of the off-diagonal element.
import qutip as qt
import numpy as np
from qutip import mesolve, sigmay, sigmap, sigmam

# Initial |0><0|
rho0 = qt.ket2dm(qt.basis(2, 0))

# Drive H = Ω σy /2
Ω = 10.0
H = (Ω / 2) * sigmay()

# Low Γ=0.1 for partial mixing
Γ = 0.1
c_ops = [np.sqrt(Γ) * sigmam(), np.sqrt(Γ) * sigmap()]

times = np.linspace(0, 0.2, 50)

result = mesolve(H, rho0, times, c_ops)
rho_final = result.states[-1]
off_diag_real = np.real(rho_final[0,1])
off_diag_imag = np.imag(rho_final[0,1])
pops = np.real(np.diag(rho_final.full()))

print("Final pops: ", pops)
print("Final off-diag real: ", off_diag_real)
print("Final off-diag imag: ", off_diag_imag)
print("Verification: High Ω low Γ for ~0.5 coherence.")

Simulation Results:

Final pops: [0.29588084 0.70411916]
Final off-diag real: 0.441222096461602
Final off-diag imag: 0.0
Verification: High Ω low Γ for ~0.5 coherence.

Conclusion: The final populations are about 0.2960.296 and 0.7040.704. The real coherence is about 0.4410.441 and the imaginary coherence is zero. The nonzero coherence occurs in the model with an explicit drive. For this input the overlap with ∣+⟩|+\rangle is ⟨+∣ρ∣+⟩=1/2+Re⁡ρ01≃0.941\langle+|\rho|+\rangle=1/2+\operatorname{Re}\rho_{01}\simeq0.941. The output evaluates one driven state trajectory. Certifying a Hadamard channel requires its action on the full operator space.

In Plain English:
Section 10.6.4.1 formalizes the properties of the QBD calculation regarding hadamard quench verification.


10.7.1 Theorem: Controlled-Z Gate​

Verification of Entangling Gate Action via Topological Bridges

Let the Controlled-Z rewrite process RCZ\mathcal{R}_{CZ}, realized by the conditional interaction of two adjacent topological qubits mediated by a local gauge bridge, execute a logical Controlled-Z gate on the two-qubit codespace. This is established by the coupled syndrome dynamics that execute a phase flip on target state ∣1L⟩|1_L\rangle if and only if control state is ∣1L⟩|1_L\rangle.

In Plain English:
Section 10.7.1 formalizes the properties of the QBD theorem regarding controlled-z gate.


10.7.2 Lemma: Syndrome Coupling​

Nondemolition syndrome transfer via a matched bridge interaction

Let an admitted bridge couple each commuting signed check to a separate pointer through the Hamiltonian Hcouple=g∑iSi⊗ZiH_{\mathrm{couple}}=g\sum_i S_i\otimes Z_i, with the pointers prepared in ∣+⟩|+\rangle. Then the syndrome is transferred to orthogonal pointer states at gt=π/4gt=\pi/4, preserving the encoded state within each fixed syndrome sector.

In Plain English:
Section 10.7.2 formalizes the properties of the QBD lemma regarding syndrome coupling.


10.7.2.1 Proof: Syndrome Coupling​

Derivation of nondemolition transfer via conditional pointer phases

I. Commuting bridge model

For the bridge of Syndrome Coupling §10.7.2, let SiS_i be the signed checks of Syndrome Flipping §10.3.3. On the data register SiSj=SjSiS_iS_j=S_jS_i, and the pointer Pauli matrices ZiZ_i act on separate pointer factors. Consequently,

[Si⊗Zi,Sj⊗Zj]=0,[Sj⊗I,Hcouple]=0.[S_i\otimes Z_i,S_j\otimes Z_j]=0,\qquad [S_j\otimes I,H_{\mathrm{couple}}]=0.

The bridge preserves the measured data eigenspaces throughout the pulse.

II. Transfer on each syndrome

Let ∣ψs⟩|\psi_s\rangle have eigenvalues Si∣ψs⟩=si∣ψs⟩S_i|\psi_s\rangle=s_i|\psi_s\rangle for si=±1s_i=\pm1. With ℏ=1\hbar=1 the evolution factors as

e−itHcouple(∣ψs⟩⊗∣+⟩⊗m)=∣ψs⟩⊗⨂i=1me−igtsiZ∣+⟩.e^{-i t H_{\mathrm{couple}}} \left(|\psi_s\rangle\otimes|+\rangle^{\otimes m}\right) =|\psi_s\rangle\otimes\bigotimes_{i=1}^m e^{-i g t s_iZ}|+\rangle .

For one pointer, ∣a±⟩=e∓igtZ∣+⟩|a_\pm\rangle=e^{\mp i g t Z}|+\rangle. Their overlap is

⟨a+∣a−⟩=⟨+∣e2igtZ∣+⟩=12(e2igt+e−2igt)=cos⁡(2gt).\langle a_+|a_-\rangle=\langle+|e^{2i g t Z}|+\rangle =\tfrac12(e^{2i g t}+e^{-2i g t})=\cos(2gt).

At gt=π/4gt=\pi/4 it vanishes, so product pointers for distinct syndromes are orthogonal.

III. State preservation and readout

If PsP_s are the joint syndrome projectors, linearity gives the output on an arbitrary input ∣ψ⟩|\psi\rangle as

∑sPs∣ψ⟩⊗∣as⟩,∣as⟩=⨂i∣asi⟩.\sum_s P_s|\psi\rangle\otimes|a_s\rangle,\qquad |a_s\rangle=\bigotimes_i |a_{s_i}\rangle .

A pointer readout selects Ps∣ψ⟩P_s|\psi\rangle with probability ∥Psψ∥2\|P_s\psi\|^2. Inside one eigenspace the pointer is independent of the logical vector and the data state is unchanged. Discarding the pointer on a superposition across distinct syndromes yields ∑sPs∣ψ⟩⟨ψ∣Ps\sum_s P_s|\psi\rangle\langle\psi|P_s.

Q.E.D.

In Plain English:
Section 10.7.2.1 formalizes the properties of the QBD proof regarding syndrome coupling.


10.7.3 Lemma: Control Dynamics​

Conditional phase via a coherent projector interaction

Let a code-preserving two-qubit interaction restrict to J∣1L1L⟩⟨1L1L∣J|1_L1_L\rangle\langle1_L1_L|, with J>0J>0, and leave no branch record in auxiliary degrees of freedom. Then its pulse at Jt=πJt=\pi is the logical controlled-ZZ gate.

In Plain English:
Section 10.7.3 formalizes the properties of the QBD lemma regarding control dynamics.


10.7.3.1 Proof: Control Dynamics​

Derivation of conditional dynamics via projector evolution and branch records

I. Coherent controlled phase

For the model in Control Dynamics §10.7.3, abbreviate the two-qubit basis as ∣ab⟩|ab\rangle and set P11=∣11⟩⟨11∣P_{11}=|11\rangle\langle11|. Since P11k=P11P_{11}^k=P_{11} for k≥1k\ge1,

U(t)=e−iJtP11=I+(∑k=1∞(−iJt)kk!)P11=I+(e−iJt−1)P11.U(t)=e^{-i J t P_{11}} =I+\left(\sum_{k=1}^{\infty}\frac{(-i J t)^k}{k!}\right)P_{11} =I+(e^{-i J t}-1)P_{11}.

On a general input this gives

U(t)∑a,bcab∣ab⟩=c00∣00⟩+c01∣01⟩+c10∣10⟩+e−iJtc11∣11⟩.U(t)\sum_{a,b}c_{ab}|ab\rangle =c_{00}|00\rangle+c_{01}|01\rangle+c_{10}|10\rangle +e^{-i J t}c_{11}|11\rangle.

At Jt=πJt=\pi the restriction is diag⁡(1,1,1,−1)\operatorname{diag}(1,1,1,-1), the action in Controlled-Z Gate §10.7.1.

II. Recorded stochastic comparison

In the scheduler comparison, write p0=f(+1)p_0=f(+1) and p1=f(−1)p_1=f(-1) for the two modeled acceptance probabilities at unit thermal factor (Addition Probability §4.5.6). With orthogonal records for acceptance and rejection, one corresponding channel has operators

Ka=(p0P0+p1P1)⊗Z,Kr=(1−p0P0+1−p1P1)⊗I,K_{\mathrm a}=(\sqrt{p_0}P_0+\sqrt{p_1}P_1)\otimes Z,\qquad K_{\mathrm r}=(\sqrt{1-p_0}P_0+\sqrt{1-p_1}P_1)\otimes I,

where Pa=∣a⟩⟨a∣P_a=|a\rangle\langle a| on the control. They satisfy Ka†Ka+Kr†Kr=IK_{\mathrm a}^\dagger K_{\mathrm a}+K_{\mathrm r}^\dagger K_{\mathrm r}=I. In the ideal probability limit (p0,p1)=(0,1)(p_0,p_1)=(0,1), applying the channel to ∣00⟩⟨10∣|00\rangle\langle10| gives zero: the acceptance operator kills ∣00⟩|00\rangle and the rejection operator kills ∣10⟩|10\rangle. The coherent U(π/J)U(\pi/J) leaves this matrix element unchanged.

III. Continuous dephasing comparison

For a separate Markovian model with H=JP11H=JP_{11} and jump L=γP11L=\sqrt{\gamma}P_{11}, γ≥0\gamma\ge0, the equation is

ρ˙=−i[H,ρ]+γ(P11ρP11−12(P11ρ+ρP11)).\dot\rho=-i[H,\rho]+\gamma\left(P_{11}\rho P_{11} -\tfrac12(P_{11}\rho+\rho P_{11})\right).

The populations are constant. For a≠11a\ne11, ρ˙a,11=(iJ−γ/2)ρa,11\dot\rho_{a,11}=(iJ-\gamma/2)\rho_{a,11}, so ρa,11(t)=eiJt−γt/2ρa,11(0)\rho_{a,11}(t)=e^{i J t-\gamma t/2}\rho_{a,11}(0). In this model the same phase evolution acquires an additional coherence loss when γ>0\gamma>0.

Q.E.D.

In Plain English:
Section 10.7.3.1 formalizes the properties of the QBD proof regarding control dynamics.


10.7.4 Proof: Controlled-Z Gate​

Controlled Phase via Coherent Coupling and a Scoped Feedback Model

I. Nondemolition Syndrome Transfer

In Syndrome Coupling §10.7.2, take commuting signed checks SiS_i and separate pointers with Hcouple=g∑iSi⊗ZiH_{\mathrm{couple}}=g\sum_i S_i\otimes Z_i, using ℏ=1\hbar=1. For a simultaneous eigenstate with eigenvalues si=±1s_i=\pm1, the pointer outputs at gt=π/4gt=\pi/4 are ⨂ie−iπsiZi/4∣+⟩i\bigotimes_i e^{-i\pi s_i Z_i/4}|+\rangle_i. A pointer with opposite signs has overlap

⟨+∣eiπZ/2∣+⟩=cos⁡(π/2)=0.\langle+|e^{i\pi Z/2}|+\rangle=\cos(\pi/2)=0 .

The scaffold state is unchanged within the given syndrome. The checks act by fixed signs on the valid codespace, so this coupling alone has the same pointer action on every logical branch.

II. Coherent Conditional Phase

Take the separately admitted interaction JP11JP_{11} with P11=∣1L1L⟩⟨1L1L∣P_{11}=|1_L1_L\rangle\langle1_L1_L| and the same final auxiliary state for every branch (Control Dynamics §10.7.3). Then

e−iJtP11=I+(e−iJt−1)P11,e−iπP11=diag⁡(1,1,1,−1).e^{-i J t P_{11}}=I+(e^{-i J t}-1)P_{11},\qquad e^{-i\pi P_{11}}=\operatorname{diag}(1,1,1,-1).

On ∣+⟩∣+⟩|+\rangle|+\rangle it gives (∣00⟩+∣01⟩+∣10⟩−∣11⟩)/2(|00\rangle+|01\rangle+|10\rangle-|11\rangle)/2. Its coefficient matrix has determinant −1/2-1/2, hence rank two, proving entanglement. The result requires coherent branch action and removal of auxiliary records.

III. Readout and Noise

Write D[L]ρ=LρL†−12{L†L,ρ}\mathcal D[L]\rho=L\rho L^\dagger-\tfrac12\{L^\dagger L,\rho\}. For a specified controller model use syndrome projectors PsP_s, readout jumps κsPs\sqrt{\kappa_s}P_s, and detectable Pauli events EaE_a with constant rates γa\gamma_a. The effective equation between feedback rounds is

ρ˙=−i[JP11,ρ]+∑sκsD[Ps]ρ+∑aγa(EaρEa†−ρ).\dot\rho=-i[JP_{11},\rho] +\sum_s\kappa_s\mathcal D[P_s]\rho +\sum_a\gamma_a(E_a\rho E_a^\dagger-\rho).

Here the Hamiltonian denotes its codespace restriction and must have a specified extension on error sectors. The readout dissipator vanishes within any fixed syndrome block since Psρ=ρPsP_s\rho=\rho P_s equals either ρ\rho or zero there. An unobserved projector jump that distinguishes logical branches, such as γ P11\sqrt{\gamma}\,P_{11}, instead damps the a,11a,11 coherence by e−γt/2e^{-\gamma t/2} for a≠11a\ne11 in the model of Control Dynamics §10.7.3.

IV. Ideal Fast Feedback

Assume the cycle reliably resolves the syndrome and applies the inverse correction, and that one fault anywhere in the driven cycle remains correctable relative to ideal evolution. In a cycle of length τcycle\tau_{\mathrm{cycle}}, independent Poisson Pauli events with total rate γ=∑aγa\gamma=\sum_a\gamma_a have mean x=γτcyclex=\gamma\tau_{\mathrm{cycle}}. Failure is possible only for two or more events in this ideal controller model, so

pfail≤1−(1+x)e−x=∫0xue−u du≤x2/2.p_{\mathrm{fail}}\le1-(1+x)e^{-x}=\int_0^x u e^{-u}\,\mathrm du\le x^2/2 .

For mm cycles the union bound gives m(γτcycle)2/2m(\gamma\tau_{\mathrm{cycle}})^2/2. The small-cycle limit γτcycle≪1\gamma\tau_{\mathrm{cycle}}\ll1 gives the conditional quadratic suppression per round. The bound assumes the specified correctable events and reliable controller.

Q.E.D.

In Plain English:
Section 10.7.4 formalizes the properties of the QBD proof regarding controlled-z gate.


10.8.1 Definition: Rewrite Process​

Composite Rewrite Process for Loop Nucleation via Self-Braiding

The T-Gate Process, denoted RT\mathcal{R}_T, is defined as a composite sequence of PUC-compliant rewrites that is constituted by three mandatory topological phases:

  1. Loop Nucleation: A rewrite process that nucleates a temporary, closed 3-cycle loop adjacent to the target braid, adhering to the Axiom 2: Geometric Constructibility §2.3.1 by forming irreducible geometric quanta.
  2. Self-Braiding: A topological transport phase where the loop encircles a single strand of the target ribbon and passes through the framing, realizing a geometric half-Dehn twist.
  3. Loop Annihilation: An inverse rewrite process that de-allocates the temporary loop, returning the graph to vacuum while retaining the accumulated geometric phase on the target qubit.

In Plain English:
Section 10.8.1 formalizes the properties of the QBD definition regarding rewrite process.


10.8.2 Theorem: T-Gate​

Physical Realization of the Non-Clifford T-Gate via Self-Braiding

Let the twist rewrite process RT\mathcal{R}_T execute a logical T gate (π/4\pi/4 phase rotation) on the topological qubit codespace. This is established by a self-exchange operation that induces a fractional Dehn twist on the framing of the asymmetric excited state while leaving the symmetric ground state invariant.

In Plain English:
Section 10.8.2 formalizes the properties of the QBD theorem regarding t-gate.


10.8.3 Lemma: Ribbon Category​

Construction of the ribbon category via collared framed tangles

Let CQBD\mathcal{C}_{QBD} denote the diagram model whose objects are ordered words of oriented ribbon ends and whose morphisms are boundary-fixed framed isotopy classes of collared tangles. Then stacking and straight ribbons define a category, with the ribbon structure supplied by the tensor, braiding, duality, and twist constructions below.

In Plain English:
Section 10.8.3 formalizes the properties of the QBD lemma regarding ribbon category.


10.8.3.1 Proof: Ribbon Category​

Derivation of the category laws via collared stacking

I. Objects and morphisms

In Ribbon Category §10.8.3, fix standard ordered boundary points and reference framings in the two end planes of R2×[0,1]\mathbb R^2\times[0,1]. An object A=(a1,…,am)A=(a_1,\ldots,a_m) records the orientations of its ordered ribbon ends. A morphism f:A→Bf:A\to B is a framed oriented tangle with those ends, straight and fixed in small collars of both end planes. Write [f][f] for its framed ambient isotopy class relative to the collars. The slice coordinate orders stacking and allows cups and caps in the interior.

II. Composition and well-definedness

For f:A→Bf:A\to B and g:B→Cg:B\to C, place ff below gg and identify the collared ends labeled BB. Write this stack as f∣gf\mid g. For example, the two height embeddings are

t⟼12t,t⟼12+12t.t\longmapsto \tfrac12 t,\qquad t\longmapsto\tfrac12+\tfrac12 t .

The straight collars meet with the same orientation and framing. If fsf_s and gsg_s are collar-fixed isotopies of the two factors, the rescaled isotopies in their respective slabs agree with the identity near the seam. Their union is an isotopy of the stack. Thus [g]∘[f]=[f∣g][g]\circ[f]=[f\mid g] depends only on the classes.

III. Associativity and identity

For h:C→Dh:C\to D, the two parenthesizations place the three factors between breakpoints (0,14,12,1)(0,\tfrac14,\tfrac12,1) and (0,12,34,1)(0,\tfrac12,\tfrac34,1). Interpolate the two interior heights:

b1(s)=14+s4,b2(s)=12+s4,0<b1(s)<b2(s)<1.b_1(s)=\tfrac14+\tfrac{s}{4},\qquad b_2(s)=\tfrac12+\tfrac{s}{4}, \qquad 0<b_1(s)<b_2(s)<1 .

At every ss, embed the three tangles into the three ordered slabs. Using straight collars at the moving seams, this gives a framed isotopy with fixed external ends, so

[h]∘([g]∘[f])=([h]∘[g])∘[f].[h]\circ([g]\circ[f])=([h]\circ[g])\circ[f] .

The identity 1A1_A consists of straight ribbons with the standard framing. Stacking with 1A1_A or 1B1_B changes only the length of the straight end collars of ff. Reparametrizing those collars gives [f]∘1A=[f]=1B∘[f][f]\circ1_A=[f]=1_B\circ[f].

IV. Ribbon structure

Horizontal juxtaposition and block exchanges give the structures in Monoidal Structure §10.8.4 and Braiding Structure §10.8.5.

The cups and caps and the full framing rotation satisfy the identities in Duality Structure §10.8.6 and Twist Structure §10.8.7 on the same classes.

Q.E.D.

In Plain English:
Section 10.8.3.1 formalizes the properties of the QBD proof regarding ribbon category.


10.8.4 Lemma: Monoidal Structure​

Monoidal coherence via ordered horizontal juxtaposition

Let the tensor product on the framed-tangle model concatenate boundary words and juxtapose representatives in disjoint ordered strips. Then it is a bifunctor with the empty word as unit, and the canonical reassociations and unit removals satisfy the pentagon and triangle identities.

In Plain English:
Section 10.8.4 formalizes the properties of the QBD lemma regarding monoidal structure.


10.8.4.1 Proof: Monoidal Structure​

Derivation of monoidal coherence via ordered boundary words

I. Juxtaposition of morphisms

In Ribbon Category §10.8.3, represent each factor in an ordered strip and place it to the left or right by an orientation-preserving horizontal rescaling. Align the ordered ends to the standard boundary points by straightened collars. For two choices of strip positions, the inequalities between the strip endpoints remain strict under linear interpolation, and each strip width remains positive. This supplies a deformation through disjoint supports, relative to the external ends after collar alignment. Isotopies of the individual representatives stay in their respective strips.

For f:A→A′f:A\to A', f′:A′→A′′f':A'\to A'', g:B→B′g:B\to B', and g′:B′→B′′g':B'\to B'', both sides of

(f′⊗g′)∘(f⊗g)=(f′∘f)⊗(g′∘g)(f'\otimes g')\circ(f\otimes g)=(f'\circ f)\otimes(g'\circ g)

have f,f′f,f' in the left strip and g,g′g,g' in the right strip, in that bottom-to-top order. The seams can be chosen at the same height, so the two stacks represent the same class. Juxtaposition of straight ribbons also gives 1A⊗1B=1A⊗B1_A\otimes1_B=1_{A\otimes B}.

II. Reassociation and the pentagon

Use the ordered-word model of Monoidal Structure §10.8.4. The two parenthesizations (A⊗B)⊗C(A\otimes B)\otimes C and A⊗(B⊗C)A\otimes(B\otimes C) flatten to the same word ABCABC. Their canonical associator aA,B,Ca_{A,B,C} is the straight identity on that word. With four factors both pentagon composites are explicitly

aA,B,C⊗D∘aA⊗B,C,D=1ABCD∘1ABCD=1ABCD,(1A⊗aB,C,D)∘aA,B⊗C,D∘(aA,B,C⊗1D)=1ABCD∘1ABCD∘1ABCD=1ABCD.\begin{aligned} a_{A,B,C\otimes D}\circ a_{A\otimes B,C,D} &=1_{ABCD}\circ1_{ABCD}=1_{ABCD},\\ (1_A\otimes a_{B,C,D})\circ a_{A,B\otimes C,D}\circ(a_{A,B,C}\otimes1_D) &=1_{ABCD}\circ1_{ABCD}\circ1_{ABCD}=1_{ABCD}. \end{aligned}

Naturality is the equality of the same three ordered tangle factors on the two sides of the reassociation square.

III. Unit and the triangle

The empty word II contributes no ribbon to a juxtaposition, so lA:I⊗A→Al_A:I\otimes A\to A and rA:A⊗I→Ar_A:A\otimes I\to A are the identity on the flattened word AA. Removing the empty middle strip directly or after reassociation gives

(1A⊗lB)∘aA,I,B=1AB∘1AB=1AB=rA⊗1B.(1_A\otimes l_B)\circ a_{A,I,B} =1_{AB}\circ1_{AB}=1_{AB}=r_A\otimes1_B .

Thus the pentagon and triangle hold in the strict ordered-word realization.

Q.E.D.

In Plain English:
Section 10.8.4.1 formalizes the properties of the QBD proof regarding monoidal structure.


10.8.5 Lemma: Braiding Structure​

Braiding via coherent block overcrossings in the diagram model

Let cA,B:A⊗B→B⊗Ac_{A,B}:A\otimes B\to B\otimes A be the framed block overcrossing of the ordered tangle model. Then it is a natural isomorphism and satisfies both hexagon identities with the canonical associators.

In Plain English:
Section 10.8.5 formalizes the properties of the QBD lemma regarding braiding structure.


10.8.5.1 Proof: Braiding Structure​

Derivation of naturality and the hexagons via framed block exchanges

I. Block exchange and its inverse

For Braiding Structure §10.8.5, put the blocks in small disks of radius r<ar<a centered at (−a,0)(-a,0) and (a,0)(a,0). Move their centers along

qA(s)=(−acos⁡(πs),asin⁡(πs)),qB(s)=−qA(s),0≤s≤1.q_A(s)=(-a\cos(\pi s),a\sin(\pi s)),\qquad q_B(s)=-q_A(s), \qquad 0\le s\le1.

The center separation remains constant with d=2ad=2a and are translated without rotation of their internal framings. In projection, the left block crosses over the right block. Reversing the motion gives the inverse of the exchange. The motion followed by its reversal contracts by replacing the progress parameter along the out-and-back path by (1−u)(1-u) times that parameter for uu from zero to one. All intermediate motions retain the disk separation, and the contraction fixes the external ends.

II. Naturality

For f:A→A′f:A\to A' and g:B→B′g:B\to B', put their collared representatives in the two disks, as in Monoidal Structure §10.8.4. At deformation parameter uu, run each internal tangle in the height interval [(1−u)/2,1−u/2][(1-u)/2,1-u/2]. Give the exchange a progress function (1−u)hearly(t)+uhlate(t)(1-u)h_{\mathrm{early}}(t)+u h_{\mathrm{late}}(t), where the first function completes the exchange below the midplane and the second starts it above the midplane. Each height slice places the two local pieces in disjoint disks. The two parameters interpolate between exchanging before the internal tangles and exchanging after them. This gives the framed isotopy

cA′,B′∘(f⊗g)=(g⊗f)∘cA,B.c_{A',B'}\circ(f\otimes g)=(g\otimes f)\circ c_{A,B}.

III. Both hexagons

Use the strict word convention, with straight reassociations suppressed. In a positive shuffle of two blocks, each elementary crossing swaps an adjacent pair ABAB to BABA, with the left-block strand over the right-block strand. For a strand order ww, let N(w)N(w) count pairs consisting of an AA-strand still to the left of a BB-strand. If N(w)>0N(w)>0, a pair of this kind with the smallest position separation is adjacent. An intervening AA-strand would be closer to the right member, and an intervening BB-strand would be closer to the left member. An adjacent swap changes the relative order of exactly those two strands, so for a step w→w′w\to w',

N(w′)=N(w)−1.N(w')=N(w)-1 .

It follows that every partial shuffle can be completed in N(w)N(w) further steps from ww. The induction assertion is that all complete shuffles from a fixed ww represent the same braid morphism. If N(w)=0N(w)=0, all BB-strands already precede all AA-strands, and the only shuffle is the empty word.

Suppose the assertion holds for all orders with fewer than nn remaining pairs, and let N(w)=n>0N(w)=n>0. If two shuffles start with the same crossing, their tails agree as braids by the induction hypothesis at n−1n-1. If their first crossings occupy positions i,i+1i,i+1 and j,j+1j,j+1, respectively, they cannot overlap, since an overlapped position would have to be both an AA-strand and a BB-strand. Thus ∣i−j∣≥2|i-j|\ge2. Let wiw_i and wjw_j be the orders after the respective first steps, and wijw_{ij} the order after both. The two routes have the same target and satisfy the distant braid relation (Distant Commutativity §8.1.3)

w→σiwi→σjwij,w→σjwj→σiwij,σj∘σi=σi∘σj,N(wij)=n−2.\begin{aligned} w&\xrightarrow{\sigma_i}w_i\xrightarrow{\sigma_j}w_{ij},\\ w&\xrightarrow{\sigma_j}w_j\xrightarrow{\sigma_i}w_{ij},\\ \sigma_j\circ\sigma_i&=\sigma_i\circ\sigma_j,\qquad N(w_{ij})=n-2. \end{aligned}

Let hh be a complete shuffle from wijw_{ij}. By the induction hypothesis at wiw_i, the tail after σi\sigma_i equals h∘σjh\circ\sigma_j as a braid. At wjw_j, the tail after σj\sigma_j equals h∘σih\circ\sigma_i. The original shuffles therefore agree by

h∘σj∘σi=h∘(σj∘σi)=h∘(σi∘σj)=h∘σi∘σj.h\circ\sigma_j\circ\sigma_i =h\circ(\sigma_j\circ\sigma_i) =h\circ(\sigma_i\circ\sigma_j) =h\circ\sigma_i\circ\sigma_j .

In cA,B⊗Cc_{A,B\otimes C}, each strand of AA crosses once over each strand of BB and CC, and the order within BCBC is preserved. Exchanging with BB and then with CC is another shuffle of the same blocks. Likewise, cA⊗B,Cc_{A\otimes B,C} shuffles ABAB past CC, which can be done by crossing BB over CC and then AA over CC. The typed equations are

cA,B⊗C=(1B⊗cA,C)∘(cA,B⊗1C),cA⊗B,C=(cA,C⊗1B)∘(1A⊗cB,C).\begin{aligned} c_{A,B\otimes C} &=(1_B\otimes c_{A,C})\circ(c_{A,B}\otimes1_C),\\ c_{A\otimes B,C} &=(c_{A,C}\otimes1_B)\circ(1_A\otimes c_{B,C}). \end{aligned}

With parentheses retained, the two routes are

cA,B⊗C=aB,C,A−1∘(1B⊗cA,C)∘aB,A,C∘(cA,B⊗1C)∘aA,B,C−1,cA⊗B,C=aC,A,B∘(cA,C⊗1B)∘aA,C,B−1∘(1A⊗cB,C)∘aA,B,C.\begin{aligned} c_{A,B\otimes C} &=a_{B,C,A}^{-1}\circ(1_B\otimes c_{A,C})\circ a_{B,A,C} \circ(c_{A,B}\otimes1_C)\circ a_{A,B,C}^{-1},\\ c_{A\otimes B,C} &=a_{C,A,B}\circ(c_{A,C}\otimes1_B)\circ a_{A,C,B}^{-1} \circ(1_A\otimes c_{B,C})\circ a_{A,B,C}. \end{aligned}

Every associator is the straight identity on the ordered word. Substituting those identities gives the two shuffle equations above, with sources A⊗(B⊗C)A\otimes(B\otimes C) and (A⊗B)⊗C(A\otimes B)\otimes C, respectively.

IV. Three-block relation

Apply naturality with f=cA,Bf=c_{A,B} and g=1Cg=1_C. Expanding cB⊗A,Cc_{B\otimes A,C} and cA⊗B,Cc_{A\otimes B,C} by the second hexagon gives

(cB,C⊗1A)∘(1B⊗cA,C)∘(cA,B⊗1C)=(1C⊗cA,B)∘(cA,C⊗1B)∘(1A⊗cB,C).\begin{aligned} &(c_{B,C}\otimes1_A)\circ(1_B\otimes c_{A,C})\circ(c_{A,B}\otimes1_C)\\ &\quad=(1_C\otimes c_{A,B})\circ(c_{A,C}\otimes1_B)\circ(1_A\otimes c_{B,C}). \end{aligned}

Both composites have source ABCABC and target CBACBA.

Q.E.D.

In Plain English:
Section 10.8.5.1 formalizes the properties of the QBD proof regarding braiding structure.


10.8.6 Lemma: Duality Structure​

Rigidity via oriented cups and caps

Let X∗X^* be the reverse word of XX with each orientation reversed, and equip the collared tangle model with nested untwisted cups and caps for that pairing. Then the two snake composites are the identities on XX and X∗X^*.

In Plain English:
Section 10.8.6 formalizes the properties of the QBD lemma regarding duality structure.


10.8.6.1 Proof: Duality Structure​

Derivation of both snake identities via tracing the ribbon ends

I. Boundary pairing

For X=(x1,…,xm)X=(x_1,\ldots,x_m) set X∗=(xm∗,…,x1∗)X^*=(x_m^*,\ldots,x_1^*), where the star on each end reverses its orientation. In Duality Structure §10.8.6, use bX:I→X⊗X∗b_X:I\to X\otimes X^* and dX:X∗⊗X→Id_X:X^*\otimes X\to I. In either ordered boundary, the nested arcs pair positions jj and 2m+1−j2m+1-j for 1≤j≤m1\le j\le m. The corresponding end orientations match along each bend and the planar reference framing introduces zero twists. Juxtaposition and the units use Monoidal Structure §10.8.4.

II. Snake on XX

The first map bX⊗1Xb_X\otimes1_X produces the ordered blocks X,X∗,XX,X^*,X. Index an incoming xjx_j in the last block by 2m+j2m+j. The cap joins it to the middle-block end at position 2m+1−j2m+1-j, and the cup joins that end to position jj in the first block. The path is therefore

2m+j → dX  2m+1−j → bX  j.2m+j\ \xrightarrow{\ d_X\ }\ 2m+1-j\ \xrightarrow{\ b_X\ }\ j .

Each cap and cup is used by one of these paths, leaving no closed component. In the planar composite each path joins the same ordered ends as a straight ribbon. The two bends are untwisted. Sliding a bent arc across the empty planar strip between it and its straightened position removes the bends; for the nested arcs one does this from an outermost strip, then repeats on the remaining arcs. The framing extends across each planar slide. Thus

(1X⊗dX)∘(bX⊗1X)=1X.(1_X\otimes d_X)\circ(b_X\otimes1_X)=1_X .

III. Snake on X∗X^*

For 1X∗⊗bX1_{X^*}\otimes b_X, the three blocks are X∗,X,X∗X^*,X,X^*. An incoming end at position jj in the first block is joined by the cap to position 2m+1−j2m+1-j in the middle block. The cup sends it to position 2m+j2m+j in the last block. Hence

j → dX  2m+1−j → bX  2m+j.j\ \xrightarrow{\ d_X\ }\ 2m+1-j\ \xrightarrow{\ b_X\ }\ 2m+j .

The output is in position jj of X∗X^* and again there is no closed component. Straightening the untwisted arcs gives

(dX⊗1X∗)∘(1X∗⊗bX)=1X∗.(d_X\otimes1_{X^*})\circ(1_{X^*}\otimes b_X)=1_{X^*}.

Q.E.D.

In Plain English:
Section 10.8.6.1 formalizes the properties of the QBD proof regarding duality structure.


10.8.7 Lemma: Twist Structure​

Ribbon twist via full rotation of the framing

Let θX\theta_X be the positive full framing rotation of the boundary block XX in the collared tangle model. Then θ\theta is a natural isomorphism satisfying the unit, balancing, and dual-twist identities.

In Plain English:
Section 10.8.7 formalizes the properties of the QBD lemma regarding twist structure.


10.8.7.1 Proof: Twist Structure​

Derivation of twist compatibility via scheduled disk rotations

I. Twist and naturality

For Twist Structure §10.8.7, let RφR_\varphi rotate a transverse plane through angle φ\varphi in the positive crossing sense. On a straight boundary block, θX\theta_X is the motion (x,t)↦(R2πh(t)x,t)(x,t)\mapsto(R_{2\pi h(t)}x,t) for hh increasing from zero to one and constant on the end collars. The inverse uses the negative rotation, and an empty block gives θI=1I\theta_I=1_I.

For a collared tangle f:X→Yf:X\to Y, apply this rotation to every height slice. Choose one progress function h0h_0 that completes the rotation in the input collar and another h1h_1 that performs it in the output collar. The family hu=(1−u)h0+uh1h_u=(1-u)h_0+u h_1 has the same end values. Each map rotates an entire slice and hence preserves disjointness and framing. The end diagrams give

f∘θX=θY∘f.f\circ\theta_X=\theta_Y\circ f .

II. Balancing

For two disjoint disks centered at qX,qYq_X,q_Y, write a point of either disk as qj+vq_j+v. The full rotation sends it to

Rφ(qj+v)=Rφqj+Rφv.R_\varphi(q_j+v)=R_\varphi q_j+R_\varphi v.

The first term moves the centers through two positive half-exchanges as in Braiding Structure §10.8.5. The second term makes one full internal framing rotation in each disk. The disks stay disjoint during the center motion. The progress of the internal rotation can therefore be delayed continuously until the center motion has finished, while fixing both initial and final framings. The resulting stack is

θX⊗Y=(θX⊗θY)∘cY,X∘cX,Y.\boxed{\theta_{X\otimes Y} =(\theta_X\otimes\theta_Y)\circ c_{Y,X}\circ c_{X,Y}}.

III. Dual compatibility

In the planar cup and cap convention of Duality Structure §10.8.6, the dual of a tangle box is its half-turn in the plane of the bends. To see this for an endomorphism f:X→Xf:X\to X, its dual composite is

f∗=(dX⊗1X∗)∘(1X∗⊗f⊗1X∗)∘(1X∗⊗bX).f^*=(d_X\otimes1_{X^*})\circ (1_{X^*}\otimes f\otimes1_{X^*})\circ (1_{X^*}\otimes b_X).

The two bends route each strand into and out of the box from the opposite end, reversing the horizontal order and end orientation. Turning the box through the bends and straightening the untwisted collars yields the half-turned diagram. In coordinates it replaces tt by 1−t1-t and conjugates the transverse action by the reflection J(x,y)=(−x,y)J(x,y)=(-x,y). Since JRφJ=R−φJ R_\varphi J=R_{-\varphi},

JR2πh(1−t)J=R−2πh(1−t)=R2π(1−h(1−t)).J R_{2\pi h(1-t)}J =R_{-2\pi h(1-t)} =R_{2\pi(1-h(1-t))}.

The new progress function 1−h(1−t)1-h(1-t) again starts at zero and ends at one, and the order and orientations are those of X∗X^*. This proves (θX)∗=θX∗(\theta_X)^*=\theta_{X^*}.

Q.E.D.

In Plain English:
Section 10.8.7.1 formalizes the properties of the QBD proof regarding twist structure.


10.8.8 Lemma: Gate Set Universality​

Encoded universality via coherent realizations of Hadamard, controlled phase, and TT

Let Gphys={RH,RCZ,RT}\mathcal{G}_{phys}=\{\mathcal{R}_H,\mathcal{R}_{CZ},\mathcal{R}_T\} act coherently on a common logical register as HH, CZCZ, and TT up to global phase, with single-site addressing and an admitted CZCZ on each pair. Then their products are dense in the logical unitary group modulo global phase.

In Plain English:
Section 10.8.8 formalizes the properties of the QBD lemma regarding gate set universality.


10.8.8.1 Proof: Gate Set Universality​

Derivation of universality via dense rotations and Pauli strings

I. One-qubit rotations

For nn sites work with the inverse image G~n⊂SU(2n)\widetilde G_n\subset SU(2^n) of the closed projective gate group under the quotient by scalar phases. This is a closed subgroup and contains the determinant-one representatives of the gate words. On one site, use H2=IH^2=I, HZH=XHZH=X, HYH=−YHYH=-Y, and HXH=ZHXH=Z. In the logical gate model of T-Gate §10.8.2, T=diag⁡(1,eiπ/4)T=\operatorname{diag}(1,e^{i\pi/4}), so up to global phase it is e−iπZ/8e^{-i\pi Z/8}. Let c=cos⁡(π/8)c=\cos(\pi/8) and s=sin⁡(π/8)s=\sin(\pi/8). The product of its HH conjugate and itself has determinant-one representative

V=(cI−isX)(cI−isZ)=c2I−i(csX−s2Y+csZ).V=(c I-i s X)(c I-i s Z)=c^2I-i\bigl(c s X-s^2 Y+c s Z\bigr).

Its eigenvalues are e±iϑe^{\pm i\vartheta} with 2cos⁡ϑ=Tr⁡V=2c2=1+1/22\cos\vartheta=\operatorname{Tr}V=2c^2=1+1/\sqrt2. If ϑ/π\vartheta/\pi were rational, these eigenvalues would be roots of unity and their sum an algebraic integer. But the norm of 1+1/21+1/\sqrt2 in Q(2)\mathbb Q(\sqrt2) is

(1+1/2)(1−1/2)=12,(1+1/\sqrt2)(1-1/\sqrt2)=\tfrac12,

which is not an integer. Thus ϑ/π\vartheta/\pi is irrational, and powers of VV are dense on its axis of rotations. Conjugation by HH changes the axis vector from (cs,−s2,cs)(cs,-s^2,cs) to (cs,s2,cs)(cs,s^2,cs), giving a second, nonparallel axis. For the two axes v=(p,−q,p)v=(p,-q,p) and w=(p,q,p)w=(p,q,p) with p=csp=cs and q=s2q=s^2, the Pauli multiplication rule gives

[−i v⋅σ,−i w⋅σ]=−2i(v×w)⋅σ,v×w=(−2pq,0,2pq).[-i\,v\cdot\boldsymbol\sigma,-i\,w\cdot\boldsymbol\sigma] =-2i(v\times w)\cdot\boldsymbol\sigma,\qquad v\times w=(-2pq,0,2pq).

The cross product is nonzero and perpendicular to both axes. The three generators span su(2)\mathfrak{su}(2), so G~1=SU(2)\widetilde G_1=SU(2).

II. Coupling sites

For the two-site gate of Controlled-Z Gate §10.7.1,

(I⊗H)CZ(I⊗H)=∣0⟩⟨0∣⊗I+∣1⟩⟨1∣⊗X=CNOT⁡.(I\otimes H)CZ(I\otimes H) =|0\rangle\langle0|\otimes I+|1\rangle\langle1|\otimes X =\operatorname{CNOT}.

It sends ∣a,b⟩|a,b\rangle to ∣a,a⊕b⟩|a,a\oplus b\rangle and is its own inverse. Conjugating ZZ on the target gives a factor (−1)a⊕b=(−1)a(−1)b(-1)^{a\oplus b}=(-1)^a(-1)^b on ∣a,b⟩|a,b\rangle, so

CNOT⁡i→jZjCNOT⁡i→j=ZiZj.\operatorname{CNOT}_{i\to j} Z_j\operatorname{CNOT}_{i\to j} =Z_i Z_j .

Let {j,i1,…,im}\{j,i_1,\ldots,i_m\} be a nonempty support with distinct sites, and set Cr=CNOT⁡ir→jC_r=\operatorname{CNOT}_{i_r\to j} for 1≤r≤m1\le r\le m. Define V0=IV_0=I and Vr=Cr⋯C1V_r=C_r\cdots C_1. The base case is V0ZjV0†=ZjV_0Z_jV_0^\dagger=Z_j. For 0≤r<m0\le r<m, suppose VrZjVr†=(∏k=1rZik)ZjV_rZ_jV_r^\dagger=(\prod_{k=1}^r Z_{i_k})Z_j. Every iki_k with k≤rk\le r is outside the support of Cr+1C_{r+1}, so

Vr+1ZjVr+1†=Cr+1(∏k=1rZik)ZjCr+1†=(∏k=1rZik)Cr+1ZjCr+1†=(∏k=1rZik)Zir+1Zj=(∏k=1r+1Zik)Zj.\begin{aligned} V_{r+1}Z_jV_{r+1}^\dagger &=C_{r+1}\left(\prod_{k=1}^r Z_{i_k}\right)Z_jC_{r+1}^\dagger\\ &=\left(\prod_{k=1}^r Z_{i_k}\right)C_{r+1}Z_jC_{r+1}^\dagger\\ &=\left(\prod_{k=1}^r Z_{i_k}\right)Z_{i_{r+1}}Z_j =\left(\prod_{k=1}^{r+1}Z_{i_k}\right)Z_j . \end{aligned}

For a local change of Pauli factor, HZH†=XHZH^\dagger=X. With S=T2=diag⁡(1,i)S=T^2=\operatorname{diag}(1,i),

SHZH†S†=SXS†=(100i)(0110)(100−i)=(0−ii0)=Y.S H Z H^\dagger S^\dagger =S X S^\dagger =\begin{pmatrix}1&0\\0&i\end{pmatrix} \begin{pmatrix}0&1\\1&0\end{pmatrix} \begin{pmatrix}1&0\\0&-i\end{pmatrix} =\begin{pmatrix}0&-i\\i&0\end{pmatrix}=Y.

For any Pauli string PP on the chosen support, let LL be the product of the corresponding local changes H,SH,IH,SH,I for the factors X,Y,ZX,Y,Z, respectively. Then LVmZjVm†L†=PL V_m Z_j V_m^\dagger L^\dagger=P, and the gate group closure contains

LVme−itZjVm†L†=e−itP,t∈R.L V_m e^{-i t Z_j}V_m^\dagger L^\dagger=e^{-i t P}, \qquad t\in\mathbb R.

Scalar phases of the conjugating gates cancel in this identity.

III. Density on the register

The 4n4^n Pauli strings are orthogonal for the trace pairing since Tr⁡(PQ)=2nδP,Q\operatorname{Tr}(P Q)=2^n\delta_{P,Q}. The 4n−14^n-1 nonidentity strings are traceless, so their multiples by ii form a real basis of su(2n)\mathfrak{su}(2^n). The Lie algebra of G~n\widetilde G_n therefore contains this basis. Since SU(2n)SU(2^n) is connected, G~n=SU(2n)\widetilde G_n=SU(2^n).

IV. Transfer to admitted rewrites

Let WW be the encoding isometry and suppose RgW=eiϕgWgR_gW=e^{i\phi_g}Wg for each generator gg of Gate Set Universality §10.8.8. For a word gm⋯g1g_m\cdots g_1, define Gr=gr⋯g1G_r=g_r\cdots g_1, Rr=Rgr⋯Rg1\mathcal R_r=R_{g_r}\cdots R_{g_1} and Φr=∑k=1rϕgk\Phi_r=\sum_{k=1}^r\phi_{g_k} for 1≤r≤m1\le r\le m. The empty word has G0=IG_0=I, R0=I\mathcal R_0=I and Φ0=0\Phi_0=0, hence R0W=W=eiΦ0WG0\mathcal R_0 W=W=e^{i\Phi_0}WG_0. For 0≤r<m0\le r<m, assume RrW=eiΦrWGr\mathcal R_r W=e^{i\Phi_r}WG_r. Then

Rr+1W=Rgr+1RrW=eiΦrRgr+1WGr=eiΦreiϕgr+1Wgr+1Gr=eiΦr+1WGr+1.\begin{aligned} \mathcal R_{r+1}W &=R_{g_{r+1}}\mathcal R_r W =e^{i\Phi_r}R_{g_{r+1}}W G_r\\ &=e^{i\Phi_r}e^{i\phi_{g_{r+1}}}Wg_{r+1}G_r =e^{i\Phi_{r+1}}WG_{r+1}. \end{aligned}

Thus RmW=eiΦmWGm\mathcal R_m W=e^{i\Phi_m}WG_m. In particular, for the code projector PW=WW†P_W=WW^\dagger,

(I−PW)RmW=eiΦm(I−WW†)WGm=eiΦm(W−W)Gm=0.(I-P_W)\mathcal R_m W =e^{i\Phi_m}(I-WW^\dagger)WG_m =e^{i\Phi_m}(W-W)G_m =0 .

The complete circuit reproduces the dense logical gate set up to global phase.

Q.E.D.

In Plain English:
Section 10.8.8.1 formalizes the properties of the QBD proof regarding gate set universality.


10.8.9 Proof: T-Gate​

Conditional T Phase via a Matched Framing Action and Dense Rotations

I. Diagram Operations and the Physical Bridge

In the diagram model of Ribbon Category §10.8.3, stacking composes operations and horizontal juxtaposition gives the tensor product (Monoidal Structure §10.8.4).

Block exchanges are supplied by Braiding Structure §10.8.5, and reversed oriented ends by Duality Structure §10.8.6. The natural twist θ\theta of Twist Structure §10.8.7 is a full framing rotation. A physical half-twist needs a matched closed logical operation, including the boundary identification and a coherent representation of its square by the full twist on the code.

II. Relative Phase Calibration

Let Pb=∣bL⟩⟨bL∣P_b=|b_L\rangle\langle b_L|. Suppose a supplied realization preserves both lines and gives the full twist lifted eigenphases θ0=ϕ\theta_0=\phi and θ1=ϕ+π/2\theta_1=\phi+\pi/2. For the selected square-root branch with half the lifted eigenphase on each line, the eigenvalue equations are

D^L∣bL⟩=eiθb∣bL⟩,BL∣bL⟩=eiθb/2∣bL⟩.\hat{D}_L|b_L\rangle=e^{i\theta_b}|b_L\rangle,\qquad B_L|b_L\rangle=e^{i\theta_b/2}|b_L\rangle .

Thus D^L=eiϕ(P0+iP1)\hat{D}_L=e^{i\phi}(P_0+iP_1) and BL=eiϕ/2(P0+eiπ/4P1)B_L=e^{i\phi/2}(P_0+e^{i\pi/4}P_1). Because PbPc=δbcPbP_bP_c=\delta_{bc}P_b,

BL2=eiϕ(P0+eiπ/2P1)=D^L,e−iϕ/2BL(α∣0L⟩+β∣1L⟩)=α∣0L⟩+eiπ/4β∣1L⟩.B_L^2=e^{i\phi}(P_0+e^{i\pi/2}P_1)=\hat{D}_L,\qquad e^{-i\phi/2}B_L(\alpha|0_L\rangle+\beta|1_L\rangle) =\alpha|0_L\rangle+e^{i\pi/4}\beta|1_L\rangle .

The square condition allows an independent sign on each square-root eigenvalue, so the branch must be supplied by the physical matching. If the full twist phases are parametrized by e2πihbe^{2\pi i h_b}, the matched relative full phase requires h1−h0=1/4 mod 1h_1-h_0=1/4\bmod 1. A relative weight of 1/81/8 would give full phase π/4\pi/4 and phase π/8\pi/8 on the corresponding half branch. Permutation symmetry of a writhe label supplies neither a phase integral nor cancellation among loop amplitudes.

III. Irrational Rotation from the Calibrated Gate

With the represented Hadamard HH, use HZH=XHZH=X. The phase-normalized T=eiπ/8e−iπZ/8T=e^{i\pi/8}e^{-i\pi Z/8} gives the determinant-one product

V=e−iπX/8e−iπZ/8=c2I−i(csX−s2Y+csZ),c=cos⁡(π/8),s=sin⁡(π/8).V=e^{-i\pi X/8}e^{-i\pi Z/8} =c^2I-i(c s X-s^2Y+c s Z),\qquad c=\cos(\pi/8),\quad s=\sin(\pi/8).

Here XZ=−iYXZ=-iY and 2c2=1+1/22c^2=1+1/\sqrt2. If the eigenangles ±ϑ\pm\vartheta of VV satisfied ϑ/π∈Q\vartheta/\pi\in\mathbb Q, the eigenvalues would be roots of unity, and their sum 1+1/21+1/\sqrt2 an algebraic integer. Its quadratic norm is

(1+1/2)(1−1/2)=1/2,(1+1/\sqrt2)(1-1/\sqrt2)=1/2,

which cannot be the norm of an algebraic integer in Q(2)\mathbb Q(\sqrt2). Hence ϑ/π\vartheta/\pi is irrational. The Bloch rotation angle is 2ϑ2\vartheta up to orientation. This supplies the irrational rotation used in Gate Set Universality §10.8.8 after the physical phase match.

Q.E.D.

In Plain English:
Section 10.8.9 formalizes the properties of the QBD proof regarding t-gate.


10.8.9.1 Calculation: T-Gate Phase Verification​

Evaluation of Assigned Logical Phases via Matrix Overlaps

The calculation supplies the diagonal matrix from the calibrated model in T-Gate §10.8.9 as an input. The physical framing representation for Twist Structure §10.8.7 is a separate premise.

  1. Operator Definition: Set T=diag⁡(1,eiπ/4)T=\operatorname{diag}(1,e^{i\pi/4}).
  2. State Evolution: Apply the supplied matrix to both basis states and to the equal superposition.
  3. Overlap Check: Compute the real part of ⟨ψ∣T∣ψ⟩\langle\psi|T|\psi\rangle for each input.
import qutip as qt
import numpy as np

# Define logical basis: |0_L> = |0>, |1_L> = |1>
psi0 = qt.basis(2, 0) # |0_L>
psi1 = qt.basis(2, 1) # |1_L>

# T-gate unitary: diag(1, exp(i π/4))
theta = np.pi / 4
T = qt.Qobj(np.diag([1, np.exp(1j * theta)]))

# Action on |0_L>: phase 0
result0 = T * psi0
phase0 = np.real(psi0.dag() * result0) # Scalar for pure state; no [0,0] needed
print(f"Phase on |0_L> (expected 0, cos(0)=1): {phase0}")

# Action on |1_L>: phase π/4
result1 = T * psi1
phase1 = np.real(psi1.dag() * result1)
print(f"Phase on |1_L> (expected cos(π/4)≈0.707): {phase1}")

# Superposition: (|0_L> + |1_L>)/√2
superpos = (psi0 + psi1).unit()
result_super = T * superpos
expect_super = np.real(superpos.dag() * result_super)
print(f"Real part on superposition (mixed phases): {expect_super}")

print("Verification: Phases match T-gate unitary, confirming state-dependent geometric phase.")

Simulation Results:

Phase on |0_L> (expected 0, cos(0)=1): 1.0
Phase on |1_L> (expected cos(π/4)≈0.707): 0.7071067811865476
Real part on superposition (mixed phases): 0.8535533905932736
Verification: Phases match T-gate unitary, confirming state-dependent geometric phase.

Conclusion: For the assigned matrix the real overlaps are 11, cos⁡(π/4)≃0.7071\cos(\pi/4)\simeq0.7071, and (1+cos⁡(π/4))/2≃0.8536(1+\cos(\pi/4))/2\simeq0.8536. These real overlaps would be the same for the opposite phase. The program checks the assigned matrix and leaves the sign and physical realization of the geometric phase to the representation calibration.

In Plain English:
Section 10.8.9.1 formalizes the properties of the QBD calculation regarding t-gate phase verification.


10.9.1 Theorem: Group Closure​

Derivation of Derived Gates from Computational Robustness

Let the physical gate set Gphys={RH,RCZ,RT}\mathcal{G}_{phys} = \{\mathcal{R}_H, \mathcal{R}_{CZ}, \mathcal{R}_T\} generate the full Clifford group via exact composition and approximate arbitrary unitary operators in SU(2n)SU(2^n) via the Solovay-Kitaev theorem. This closure ensures that the causal graph dynamics are computationally universal and fault-tolerant.

In Plain English:
Section 10.9.1 formalizes the properties of the QBD theorem regarding group closure.


10.9.2 Lemma: Clifford Generation​

Explicit Construction of S via CNOT Gates

Let the derived gates SS (Phase) and CNOTCNOT be constructible from the physical primitives. Specifically, SS is generated by the sequence RT∘RT\mathcal{R}_T \circ \mathcal{R}_T, and CNOTCNOT is generated by the sequence (I⊗RH)∘RCZ∘(I⊗RH)(I \otimes \mathcal{R}_H) \circ \mathcal{R}_{CZ} \circ (I \otimes \mathcal{R}_H), establishing the completeness of the set for Clifford operations.

In Plain English:
Section 10.9.2 formalizes the properties of the QBD lemma regarding clifford generation.


10.9.2.1 Proof: Clifford Generation​

Algebraic Verification through Gate Composition

I. Declared Primitive Actions

Use the stated logical actions of the physical primitives as inputs. The first action is RH↦H\mathcal R_H\mapsto H (Hadamard Gate §10.6.1). The phase action is RT↦T\mathcal R_T\mapsto T (T-Gate §10.8.2). The two-qubit action is RCZ↦CZ\mathcal R_{CZ}\mapsto CZ (Controlled-Z Gate §10.7.1). In the ordered one- and two-qubit bases, the matrices are

H=12(111−1),T=(100eiπ/4),CZ=(I200Z),Z=(100−1).H=\frac1{\sqrt2}\begin{pmatrix}1&1\\1&-1\end{pmatrix},\qquad T=\begin{pmatrix}1&0\\0&e^{i\pi/4}\end{pmatrix},\qquad CZ=\begin{pmatrix}I_2&0\\0&Z\end{pmatrix},\qquad Z=\begin{pmatrix}1&0\\0&-1\end{pmatrix}.

The tensor order is control first, target second.

II. Phase and Controlled-NOT Matrices

Direct multiplication gives

T2=(1⋅100eiπ/4eiπ/4)=(100i)=S.T^2 =\begin{pmatrix}1\cdot1&0\\0&e^{i\pi/4}e^{i\pi/4}\end{pmatrix} =\begin{pmatrix}1&0\\0&i\end{pmatrix}=S.

The two target products needed for the controlled operation are

H2=12(111−1)(111−1)=12(2002)=I,HZH=12(1−111)(111−1)=12(0220)=X.\begin{aligned} H^2&=\frac12\begin{pmatrix}1&1\\1&-1\end{pmatrix} \begin{pmatrix}1&1\\1&-1\end{pmatrix} =\frac12\begin{pmatrix}2&0\\0&2\end{pmatrix}=I,\\ H Z H&=\frac12\begin{pmatrix}1&-1\\1&1\end{pmatrix} \begin{pmatrix}1&1\\1&-1\end{pmatrix} =\frac12\begin{pmatrix}0&2\\2&0\end{pmatrix}=X. \end{aligned}

Consequently,

(I⊗H)CZ(I⊗H)=(H00H)(I00Z)(H00H)=(H200HZH)=(1000010000010010)=CNOT⁡.\begin{aligned} (I\otimes H)CZ(I\otimes H) &=\begin{pmatrix}H&0\\0&H\end{pmatrix} \begin{pmatrix}I&0\\0&Z\end{pmatrix} \begin{pmatrix}H&0\\0&H\end{pmatrix}\\ &=\begin{pmatrix}H^2&0\\0&H Z H\end{pmatrix} =\begin{pmatrix}1&0&0&0\\0&1&0&0\\0&0&0&1\\0&0&1&0\end{pmatrix} =\operatorname{CNOT}. \end{aligned}

It follows on all four basis vectors that CNOT∣a,b⟩=∣a,b⊕a⟩CNOT|a,b\rangle=|a,b\mathbin\oplus a\rangle.

III. Pauli Conjugation

Let Y=iXZ=(0−ii0)Y=iXZ=\begin{pmatrix}0&-i\\i&0\end{pmatrix}. Besides HZH=XH Z H=X calculated above,

HXH=12(11−11)(111−1)=Z,HYH=12(i−i−i−i)(111−1)=−Y,SXS†=(01i0)(100−i)=Y,SYS†=(0−i−10)(100−i)=−X,SZS†=(100−i)(100−i)=Z.\begin{aligned} H X H&=\frac12\begin{pmatrix}1&1\\-1&1\end{pmatrix} \begin{pmatrix}1&1\\1&-1\end{pmatrix}=Z,\\ H Y H&=\frac12\begin{pmatrix}i&-i\\-i&-i\end{pmatrix} \begin{pmatrix}1&1\\1&-1\end{pmatrix}=-Y,\\ S X S^\dagger&=\begin{pmatrix}0&1\\i&0\end{pmatrix} \begin{pmatrix}1&0\\0&-i\end{pmatrix}=Y,\\ S Y S^\dagger&=\begin{pmatrix}0&-i\\-1&0\end{pmatrix} \begin{pmatrix}1&0\\0&-i\end{pmatrix}=-X,\\ S Z S^\dagger&=\begin{pmatrix}1&0\\0&-i\end{pmatrix} \begin{pmatrix}1&0\\0&-i\end{pmatrix}=Z. \end{aligned}

Write C=CNOT=C†C=CNOT=C^\dagger. Applying the conjugated operators to ∣a,b⟩|a,b\rangle, for a,b∈{0,1}a,b\in\{0,1\}, gives

CX1C∣a,b⟩=C∣a⊕1,b⊕a⟩=∣a⊕1,b⊕1⟩=X1X2∣a,b⟩,CX2C∣a,b⟩=C∣a,b⊕a⊕1⟩=∣a,b⊕1⟩=X2∣a,b⟩,CZ1C∣a,b⟩=(−1)aC∣a,b⊕a⟩=(−1)a∣a,b⟩=Z1∣a,b⟩,CZ2C∣a,b⟩=(−1)b⊕aC∣a,b⊕a⟩=(−1)a+b∣a,b⟩=Z1Z2∣a,b⟩.\begin{aligned} C X_1 C|a,b\rangle &=C|a\oplus1,b\oplus a\rangle =|a\oplus1,b\oplus1\rangle=X_1X_2|a,b\rangle,\\ C X_2 C|a,b\rangle &=C|a,b\oplus a\oplus1\rangle =|a,b\oplus1\rangle=X_2|a,b\rangle,\\ C Z_1 C|a,b\rangle &=(-1)^a C|a,b\oplus a\rangle =(-1)^a|a,b\rangle=Z_1|a,b\rangle,\\ C Z_2 C|a,b\rangle &=(-1)^{b\oplus a} C|a,b\oplus a\rangle =(-1)^{a+b}|a,b\rangle=Z_1Z_2|a,b\rangle. \end{aligned}

Since conjugation preserves products and the Xj,ZjX_j,Z_j generate the Pauli group, these identities show that H,S,CNOTH,S,CNOT normalize that group.

IV. Reduction of an Arbitrary Clifford Action

Let UU normalize the nn-qubit Pauli group. Its Hermitian Pauli images

P=UZ1U†,Q=UX1U†P=UZ_1U^\dagger,\qquad Q=UX_1U^\dagger

satisfy P2=Q2=IP^2=Q^2=I and PQ=−QPPQ=-QP. The support of PP is nonempty: P=±IP=\pm I would imply Z1=U†(±I)U=±IZ_1=U^\dagger(\pm I)U=\pm I, a contradiction. The local reductions supplied by Section III are

HXH=Z,(HS)Y(HS)†=H(−X)H=−Z,IZI=Z.H X H=Z,\qquad (H S)Y(H S)^\dagger=H(-X)H=-Z,\qquad I Z I=Z.

Applying the corresponding gate on each nonidentity factor takes PP to ±∏j∈AZj\pm\prod_{j\in A}Z_j for a nonempty support AA.

Move one element of AA to position one if necessary. The required swap is a generated gate, since

(a,b)↦CNOT⁡1→2(a,b⊕a)↦CNOT⁡2→1(b,b⊕a)↦CNOT⁡1→2(b,a).\begin{aligned} (a,b)&\xmapsto{\operatorname{CNOT}_{1\to2}}(a,b\oplus a) \xmapsto{\operatorname{CNOT}_{2\to1}}(b,b\oplus a) \xmapsto{\operatorname{CNOT}_{1\to2}}(b,a). \end{aligned}

For every j∈A∖{1}j\in A\setminus\{1\}, conjugation by CNOTj→1CNOT_{j\to1} cancels the extra ZjZ_j factor:

Z1Zj ⟼ (ZjZ1)Zj=Z1.Z_1Z_j\ \longmapsto\ (Z_jZ_1)Z_j=Z_1.

If the result is −Z1-Z_1, conjugation by X1=H1S12H1X_1=H_1S_1^2H_1 changes it to Z1Z_1. This constructs a generated circuit VV for which W=VUW=VU fixes Z1Z_1 by conjugation.

For Q′=WX1W†Q'=WX_1W^\dagger,

Q′Z1=(WX1W†)(WZ1W†)=WX1Z1W†=−WZ1X1W†=−Z1Q′.\begin{aligned} Q'Z_1 &=(W X_1 W^\dagger)(W Z_1 W^\dagger) =W X_1 Z_1 W^\dagger\\ &=-W Z_1 X_1 W^\dagger=-Z_1Q'. \end{aligned}

Thus its first Pauli factor is X1X_1 or Y1Y_1. A power of S1S_1, which fixes Z1Z_1, makes this factor X1X_1 up to sign. Local gates on the remaining qubits make every other nonidentity factor XjX_j. Then CNOT1→jCNOT_{1\to j} removes such a factor because

X1Xj ⟼ (X1Xj)Xj=X1,X_1X_j\ \longmapsto\ (X_1X_j)X_j=X_1,

while keeping Z1Z_1 fixed. A remaining negative sign is removed by conjugation with Z1=S12Z_1=S_1^2. Hence a further generated circuit converts WW to a unitary W′W' satisfying

W′Z1W′†=Z1,W′X1W′†=X1.W'Z_1W'^\dagger=Z_1,\qquad W'X_1W'^\dagger=X_1.

To solve these two conditions, write W′=(ABCD)W'=\begin{pmatrix}A&B\\C&D\end{pmatrix} in the first-qubit decomposition. Commutation with Z1Z_1 gives

(A−BC−D)=(AB−C−D) ⟹ B=C=0.\begin{pmatrix}A&-B\\C&-D\end{pmatrix} =\begin{pmatrix}A&B\\-C&-D\end{pmatrix} \ \Longrightarrow\ B=C=0.

Commutation with X1X_1 then gives

(0AD0)=(0DA0) ⟹ A=D.\begin{pmatrix}0&A\\D&0\end{pmatrix} =\begin{pmatrix}0&D\\A&0\end{pmatrix} \ \Longrightarrow\ A=D.

Therefore W′=I2⊗AW'=I_2\otimes A, with A†A=IA^\dagger A=I from W′†W′=IW'^\dagger W'=I. For every remaining qubit jj, the conjugates are

W′(I2⊗Xj)W′†=I2⊗(AXjA†),W′(I2⊗Zj)W′†=I2⊗(AZjA†).\begin{aligned} W'(I_2\otimes X_j)W'^\dagger&=I_2\otimes(A X_j A^\dagger),\\ W'(I_2\otimes Z_j)W'^\dagger&=I_2\otimes(A Z_j A^\dagger). \end{aligned}

They are Pauli operators since W′W' is a product of Clifford operators. Their first factor is the identity, so AXjA†A X_j A^\dagger and AZjA†A Z_j A^\dagger are Pauli operators on the remaining factors. Thus AA is an (n−1)(n-1)-qubit Clifford.

For n=1n=1, the same block calculation leaves A=eiϕA=e^{i\phi}, a scalar. For the induction step, suppose all (n−1)(n-1)-qubit Clifford actions have generated circuits. Let KK denote the additional generated circuit taking WW to W′W'. Then

KVU=I2⊗A⟹U=V−1K−1(I2⊗A).K V U=I_2\otimes A \quad\Longrightarrow\quad U=V^{-1}K^{-1}(I_2\otimes A).

The induction hypothesis supplies the circuit for AA; VV and KK were constructed above. Hence all nn-qubit Clifford actions are generated, up to a common global phase.

V. Primitive Rewrite Compositions

Replacing each primitive matrix by its stated logical rewrite action yields the exact compositions (Clifford Generation §10.9.2):

S=T2,CNOT⁡=(I⊗H)CZ(I⊗H).\boxed{S=T^2,\qquad \operatorname{CNOT}=(I\otimes H)CZ(I\otimes H).}

Every inverse used in the reduction is also a finite word: H−1=HH^{-1}=H, S−1=S3S^{-1}=S^3, CNOT−1=CNOTCNOT^{-1}=CNOT. Consequently the reduction gives a synthesis in the declared primitive set for every Clifford action modulo global phase.

Q.E.D.

In Plain English:
Section 10.9.2.1 formalizes the properties of the QBD proof regarding clifford generation.


10.9.3 Lemma: Solovay-Kitaev Density​

Polylogarithmic Gate Approximation via a Dense Instruction Set

Let a finite inverse-closed instruction set generate a dense subgroup of SU(2n)SU(2^n) at fixed nn. Then the Dawson-Nielsen Solovay-Kitaev construction approximates each target to operator-norm error ϵ\epsilon using O(log⁡c(1/ϵ))O(\log^c(1/\epsilon)) gates, where c=ln⁡5/ln⁡(3/2)c=\ln5/\ln(3/2).

In Plain English:
Section 10.9.3 formalizes the properties of the QBD lemma regarding solovay-kitaev density.


10.9.3.1 Proof: Solovay-Kitaev Density​

Gate-Length Exponent via the Solovay-Kitaev Refinement Recurrence

I. Dense Instruction Set and Refinement

Let the finite gate set be inverse closed and dense in the stated sense (Solovay-Kitaev Density §10.9.3). This is the instruction-set hypothesis for the approximation argument, separate from the construction of Clifford operations (Clifford Generation §10.9.2). Compactness and density give a finite net at a fixed base error ϵ0\epsilon_0. The balanced-commutator refinement has the error and length bounds ϵj+1≤Cϵj3/2\epsilon_{j+1}\le C\epsilon_j^{3/2} and Lj+1≤5LjL_{j+1}\le5L_j for some fixed C>0C>0. The factor five counts the previous approximation and the four factors of the correction commutator. Dawson and Nielsen

II. Solving the Error and Length Bounds

Choose the base error with 0<δ0=C2ϵ0<10<\delta_0=C^2\epsilon_0<1 and set δj=C2ϵj\delta_j=C^2\epsilon_j. Then

δj+1≤C3(δj/C2)3/2=δj3/2,δj≤δ0(3/2)j,Lj≤5jL0.\delta_{j+1}\le C^3(\delta_j/C^2)^{3/2}=\delta_j^{3/2}, \qquad \delta_j\le\delta_0^{(3/2)^j},\qquad L_j\le5^j L_0 .

The two bounds hold with equality at j=0j=0. Given both bounds at jj, the next step satisfies

δj+1≤(δ0(3/2)j)3/2=δ0(3/2)j+1,Lj+1≤5(5jL0)=5j+1L0.\delta_{j+1}\le\bigl(\delta_0^{(3/2)^j}\bigr)^{3/2}=\delta_0^{(3/2)^{j+1}}, \qquad L_{j+1}\le5(5^jL_0)=5^{j+1}L_0.

III. Length at the Target Error

For target ϵ<ϵ0\epsilon<\epsilon_0, the bound ϵj≤C−2δ0(3/2)j\epsilon_j\le C^{-2}\delta_0^{(3/2)^j} gives ϵj≤ϵ\epsilon_j\le\epsilon whenever

(3/2)jln⁡(1/δ0)≥ln⁡(1/(C2ϵ)).(3/2)^j\ln(1/\delta_0)\ge \ln(1/(C^2\epsilon)).

Set B=ln⁡(1/(C2ϵ))/ln⁡(1/δ0)>1B=\ln(1/(C^2\epsilon))/\ln(1/\delta_0)>1 and take j=⌈ln⁡B/ln⁡(3/2)⌉j=\lceil\ln B/\ln(3/2)\rceil. Then

5j≤5exp⁡ ⁣(ln⁡5ln⁡(3/2)ln⁡B)=5Bln⁡5/ln⁡(3/2).5^j\le 5\exp\!\left(\frac{\ln5}{\ln(3/2)}\ln B\right)=5B^{\ln5/\ln(3/2)}.

Since B=O(ln⁡(1/ϵ))B=O(\ln(1/\epsilon)) as ϵ↓0\epsilon\downarrow0, the length is O(ln⁡c(1/ϵ))O(\ln^{c}(1/\epsilon)) with c=ln⁡5/ln⁡(3/2)≃1.609438/0.405465≃3.96936c=\ln5/\ln(3/2)\simeq1.609438/0.405465\simeq3.96936.

Q.E.D.

In Plain English:
Section 10.9.3.1 formalizes the properties of the QBD proof regarding solovay-kitaev density.


10.9.4 Proof: Group Closure​

Encoded Universality via Pauli-String Density and Gate Refinement

I. Exact Logical Gates

On an admitted invariant register take the logical H,T,CZH,T,CZ up to scalar phases and allow single-site addressing and the specified pair couplings. The products of Clifford Generation §10.9.2 give

T2=diag⁡(1,i)=S,(I⊗H)CZ(I⊗H)=P0⊗I+P1⊗X=CNOT⁡,T^2=\operatorname{diag}(1,i)=S,\qquad (I\otimes H)CZ(I\otimes H) =P_0\otimes I+P_1\otimes X=\operatorname{CNOT},

where Pa=∣a⟩⟨a∣P_a=|a\rangle\langle a| on the control. Together with HH these generate the logical Clifford group modulo overall phase. Gottesman's stabilizer formalism

II. Density of the Admitted Gate Set

The product of normalized TT and its HH conjugate from T-Gate §10.8.9 has an irrational eigenangle. With p=cos⁡(π/8)sin⁡(π/8)>0p=\cos(\pi/8)\sin(\pi/8)>0 and q=sin⁡2(π/8)>0q=\sin^2(\pi/8)>0, its rotation axis and the conjugate axis are v=(p,−q,p)v=(p,-q,p) and w=(p,q,p)w=(p,q,p). Powers are dense in the circle about each axis. For the Pauli vector σ\boldsymbol\sigma,

[−iv⋅σ,−iw⋅σ]=−2i(v×w)⋅σ,v×w=(−2pq,0,2pq).[-i v\cdot\boldsymbol\sigma,-i w\cdot\boldsymbol\sigma] =-2i(v\times w)\cdot\boldsymbol\sigma,\qquad v\times w=(-2pq,0,2pq).

The two axes and the bracket therefore span su(2)\mathfrak{su}(2). On multiple sites, conjugating ZjZ_j by CNOT⁡i→j\operatorname{CNOT}_{i\to j} multiplies its action on ∣a,b⟩|a,b\rangle by the replacement (−1)b↦(−1)a⊕b=(−1)a(−1)b(-1)^b\mapsto(-1)^{a\oplus b}=(-1)^a(-1)^b, giving ZiZjZ_iZ_j. For support JJ containing jj, conjugation by the product of CNOTs with target jj and all controls in J∖{j}J\setminus\{j\} gives

Zj ⟼ ∏i∈JZi.Z_j\ \longmapsto\ \prod_{i\in J}Z_i.

Conjugating locally changes each ZZ into the desired Pauli direction. The closure thus contains the one-parameter groups of every nonidentity Pauli string. Their skew-Hermitian generators are 4n−14^n-1 independent traceless matrices by trace orthogonality, so the projective closure has full Lie algebra and is the full connected projective unitary group (Gate Set Universality §10.8.8).

III. Normalization and Inverses

Use the local determinant-one representatives H^=iH\widehat H=iH, T^=e−iπ/8T\widehat T=e^{-i\pi/8}T, and CZ^=eiπ/4CZ\widehat{CZ}=e^{i\pi/4}CZ, embedded at their addressed sites. Their powers H^4=T^16=CZ^8=I\widehat H^4=\widehat T^{16}=\widehat{CZ}^8=I provide inverses at constant cost. Let KK be their closure in SU(2n)SU(2^n). Projective surjectivity gives KZcen=SU(2n)KZ_{\mathrm{cen}}=SU(2^n) for its finite scalar center ZcenZ_{\mathrm{cen}}. Thus KK has finitely many closed cosets and is open, so connectedness gives K=SU(2n)K=SU(2^n). The physical gate words implement these representative actions up to scalar phase.

IV. Gate Length at Fixed Register Size

For this inverse-closed dense finite instruction set, Solovay-Kitaev Density §10.9.3 uses ϵj+1≤Cϵj3/2\epsilon_{j+1}\le C\epsilon_j^{3/2} and Lj+1≤5LjL_{j+1}\le5L_j. With δ0=C2ϵ0<1\delta_0=C^2\epsilon_0<1,

ϵj≤C−2δ0(3/2)j,Lj≤5jL0.\epsilon_j\le C^{-2}\delta_0^{(3/2)^j},\qquad L_j\le5^jL_0 .

For B=ln⁡(1/(C2ϵ))/ln⁡(1/δ0)>1B=\ln(1/(C^2\epsilon))/\ln(1/\delta_0)>1, the choice j=⌈ln⁡B/ln⁡(3/2)⌉j=\lceil\ln B/\ln(3/2)\rceil yields

ϵj≤ϵ,Lj≤5L0Bln⁡5/ln⁡(3/2)=O(ln⁡ ln⁡5/ln⁡(3/2)(1/ϵ)),ln⁡5ln⁡(3/2)≃3.97.\epsilon_j\le\epsilon,\qquad L_j\le5L_0 B^{\ln5/\ln(3/2)} =O\bigl(\ln^{\,\ln5/\ln(3/2)}(1/\epsilon)\bigr), \qquad \frac{\ln5}{\ln(3/2)}\simeq3.97 .

The approximation is for the admitted logical gates at fixed nn. Physical fault tolerance additionally requires control and recovery guarantees for faults throughout a circuit. Dawson and Nielsen

Q.E.D.

In Plain English:
Section 10.9.4 formalizes the properties of the QBD proof regarding group closure.


10.9.4.1 Calculation: Solovay-Kitaev Verification​

Computational Verification of Unitary Approximation via Gate Sequences

Verification of the universality principle established by Clifford Generation §10.9.2.1 and Group Closure §10.9.4 is based on the following protocols:

  1. Base Net Construction: Enumerate the unique determinant-one single-qubit words generated by {H^,H^†,T^,T^†}\{\widehat{H}, \widehat{H}^\dagger, \widehat{T}, \widehat{T}^\dagger\} (H^=iH\widehat{H} = iH, T^=e−iπ/8T\widehat{T} = e^{-i\pi/8}T) up to length L0=18L_0 = 18 in SU(2)≅S3SU(2) \cong S^3.
  2. Recursive SU(2)SU(2) Refinement: Run the Dawson-Nielsen balanced-commutator Solovay-Kitaev recursion across depths n=0…5n = 0 \dots 5 on a seeded target U∈SU(2)U \in SU(2) and verify exact primitive word reconstruction against UnU_n.
  3. Multi-Qubit Compilation: Compile Haar-random targets across n=1,2,3n = 1, 2, 3 qubits (SU(2)SU(2), SU(4)SU(4), SU(8)SU(8)) into primitive {H^,H^†,T^,T^†,CZ}\{\widehat{H}, \widehat{H}^\dagger, \widehat{T}, \widehat{T}^\dagger, CZ\} gate sequences via recursive Quantum Shannon Decomposition combined with depth-44 Solovay-Kitaev synthesis, evaluating the phase-aligned operator-norm distance ∥U−e−iϕUapprox∥op\lVert U - e^{-i\phi} U_{\mathrm{approx}} \rVert_{\mathrm{op}}.
# §10.9.4.1 — Solovay-Kitaev SU(2) refinement and SU(2^n) QSD synthesis

import numpy as np
import qutip as qt
import scipy.linalg as sl

H_MAT = 1j / np.sqrt(2) * np.array([[1, 1], [1, -1]], dtype=complex)
T_MAT = np.exp(-1j * np.pi / 8) * np.diag([1, np.exp(1j * np.pi / 4)])
GENS = (H_MAT, H_MAT.conj().T, T_MAT, T_MAT.conj().T)
INV = {0: 1, 1: 0, 2: 3, 3: 2}
PAULI = (
np.array([[0, 1], [1, 0]], dtype=complex),
np.array([[0, -1j], [1j, 0]], dtype=complex),
np.array([[1, 0], [0, -1]], dtype=complex),
)


def su2_to_quat(u):
"""Map SU(2) matrix to unit quaternion (w, x, y, z) on S^3."""
return np.array(
[u[0, 0].real, -u[0, 1].imag, -u[0, 1].real, -u[0, 0].imag],
dtype=float,
)


def build_base_net(max_len=18):
"""Enumerate unique SU(2) gate words up to max_len using BFS."""
seen = {tuple(np.round(su2_to_quat(np.eye(2)), 10)): ()}
mats = [np.eye(2, dtype=complex)]
quats = [np.array([1.0, 0.0, 0.0, 0.0])]
frontier = [(mats[0], ())]
for _ in range(max_len):
nxt = []
for u, w in frontier:
for gi, g in enumerate(GENS):
if w and w[-1] == INV[gi]:
continue
u2 = g @ u
q = su2_to_quat(u2)
key = tuple(np.round(q, 10))
if key not in seen:
w2 = w + (gi,)
seen[key] = w2
mats.append(u2)
quats.append(q)
nxt.append((u2, w2))
frontier = nxt
return np.array(quats), np.array(mats), list(seen.values())


QUATS, NET_MATS, NET_WORDS = build_base_net(18)


def gc_decompose(delta):
"""Balanced group commutator delta = V W V^dag W^dag in SU(2)."""
q = su2_to_quat(delta)
w0 = np.clip(q[0], -1.0, 1.0)
vec = q[1:]
vnorm = np.linalg.norm(vec)
if vnorm < 1e-13:
eye = np.eye(2, dtype=complex)
return eye, eye
n_hat = vec / vnorm
s = ((1.0 - w0) / 2.0) ** 0.25
c = np.sqrt(max(0.0, 1.0 - s * s))
v0 = c * np.eye(2, dtype=complex) - 1j * s * PAULI[0]
w0_m = c * np.eye(2, dtype=complex) - 1j * s * PAULI[1]
q0 = su2_to_quat(v0 @ w0_m @ v0.conj().T @ w0_m.conj().T)
m_hat = q0[1:] / np.linalg.norm(q0[1:])
mid = m_hat + n_hat
mid_n = np.linalg.norm(mid)
if mid_n < 1e-12:
orth = np.cross(m_hat, [1.0, 0.0, 0.0])
if np.linalg.norm(orth) < 1e-6:
orth = np.cross(m_hat, [0.0, 1.0, 0.0])
axis = orth / np.linalg.norm(orth)
else:
axis = mid / mid_n
rot = -1j * sum(axis[i] * PAULI[i] for i in range(3))
return rot @ v0 @ rot.conj().T, rot @ w0_m @ rot.conj().T


def sk_compile(u, depth):
"""Recursive Dawson-Nielsen Solovay-Kitaev approximation in SU(2)."""
if depth == 0:
idx = int(np.argmax(QUATS @ su2_to_quat(u)))
return NET_WORDS[idx], NET_MATS[idx]
w_p, u_p = sk_compile(u, depth - 1)
v, w = gc_decompose(u @ u_p.conj().T)
w_v, v_a = sk_compile(v, depth - 1)
w_w, w_a = sk_compile(w, depth - 1)
inv_v = tuple(INV[g] for g in reversed(w_v))
inv_w = tuple(INV[g] for g in reversed(w_w))
word = w_p + inv_w + inv_v + w_w + w_v
mat = v_a @ w_a @ v_a.conj().T @ w_a.conj().T @ u_p
return word, mat


def walsh_hadamard(angles):
"""Compute normalized inverse Walsh-Hadamard transform of rotation angles."""
phi = np.array(angles, dtype=float)
m = len(phi)
step = 1
while step < m:
for i in range(0, m, 2 * step):
for j in range(step):
a, b = phi[i + j], phi[i + j + step]
phi[i + j], phi[i + j + step] = a + b, a - b
step *= 2
return phi / m


def emit_ucg(angles, pauli_idx, qubits, depth, ops):
"""Compile uniformly controlled SU(2) rotation into {H, T, CZ} ops."""
target, ctrls = qubits[0], qubits[1:]
k = len(ctrls)
m = 1 << k
phi = walsh_hadamard(angles)
for s_idx in range(m):
g = s_idx ^ (s_idx >> 1)
ang = phi[g]
if abs(ang) > 1e-13:
rot = np.cos(ang / 2) * np.eye(2, dtype=complex) - 1j * np.sin(ang / 2) * PAULI[pauli_idx]
word, _ = sk_compile(rot, depth)
for gi in word:
ops.append((gi, target))
g_next = (s_idx + 1) ^ ((s_idx + 1) >> 1) if s_idx + 1 < m else 0
diff = g ^ g_next
bit = (diff & -diff).bit_length() - 1
c_q = ctrls[k - 1 - bit]
# CNOT = H_hat CZ H_hat^dag cancels extra scalar phases cleanly
ops.extend([(0, target), ("CZ", c_q, target), (1, target)])


def demultiplex(a_blk, b_blk, qubits, depth, ops):
"""Factor block-diagonal diag(A, B) into sub-blocks and controlled R_z."""
t_mat, v_mat = sl.schur(a_blk @ b_blk.conj().T, output="complex")
lam = np.angle(np.diag(t_mat))
d_diag = np.exp(0.5j * lam)
w_mat = (d_diag.conj()[:, None]) * (v_mat.conj().T @ a_blk)
qsd_compile(w_mat, qubits[1:], depth, ops)
emit_ucg(-lam, 2, qubits, depth, ops)
qsd_compile(v_mat, qubits[1:], depth, ops)


def qsd_compile(u, qubits, depth, ops):
"""Compile n-qubit unitary into primitive {H, H^dag, T, T^dag, CZ} ops."""
if len(qubits) == 1:
u_su2 = u / np.sqrt(np.linalg.det(u))
word, _ = sk_compile(u_su2, depth)
for gi in word:
ops.append((gi, qubits[0]))
return
half = u.shape[0] // 2
(u1, u2), theta, (v1h, v2h) = sl.cossin(u, p=half, q=half, separate=True)
demultiplex(v1h, v2h, qubits, depth, ops)
emit_ucg(2.0 * theta, 1, qubits, depth, ops)
demultiplex(u1, u2, qubits, depth, ops)


def evaluate_ops(ops, n_qubits):
"""Multiply primitive gate list sequentially, contracting 1q runs."""
dim = 1 << n_qubits
total = np.eye(dim, dtype=complex)
i2 = np.eye(2, dtype=complex)

def embed1(mat, q):
res = mat if q == 0 else i2
for i in range(1, n_qubits):
res = np.kron(res, mat if i == q else i2)
return res

def cz_mat(q1, q2):
diag = np.ones(dim, dtype=complex)
for b in range(dim):
if ((b >> (n_qubits - 1 - q1)) & 1) and ((b >> (n_qubits - 1 - q2)) & 1):
diag[b] = -1.0
return np.diag(diag)

run_q, run_mat = None, None
for op in ops:
if op[0] == "CZ":
if run_q is not None:
total = embed1(run_mat, run_q) @ total
run_q = None
total = cz_mat(op[1], op[2]) @ total
else:
gi, q = op
if run_q == q:
run_mat = GENS[gi] @ run_mat
else:
if run_q is not None:
total = embed1(run_mat, run_q) @ total
run_q, run_mat = q, GENS[gi]
if run_q is not None:
total = embed1(run_mat, run_q) @ total
return total


def eval_word_su2(word):
"""Reconstruct exact SU(2) product matrix from primitive indices."""
mat = np.eye(2, dtype=complex)
for gi in word:
mat = GENS[gi] @ mat
return mat


def proj_op_norm(target, approx):
"""Phase-aligned operator norm distance between two unitaries."""
phi = np.angle(np.trace(target.conj().T @ approx))
return float(np.linalg.norm(target - np.exp(-1j * phi) * approx, 2))


# 1. Single-qubit SU(2) Dawson-Nielsen refinement on seeded U_target
u_raw = qt.rand_unitary(2, seed=42).full()
u_su2_target = u_raw / np.sqrt(np.linalg.det(u_raw))

print(f"SU(2) base net size (L0 <= 18): {len(NET_MATS)}")
print("depth | gate_count | ||U - U_n||_op | word_check")
for d in range(6):
w_d, u_d = sk_compile(u_su2_target, d)
err_d = float(np.linalg.norm(u_su2_target - u_d, 2))
w_chk = float(np.linalg.norm(u_d - eval_word_su2(w_d), 2))
assert w_chk < 1e-12
if d == 5:
assert err_d < 1e-6
print(f"{d:5d} | {len(w_d):10d} | {err_d:14.3e} | {w_chk:10.2e}")

# 2. Multi-qubit SU(2^n) compilation into {H, T, CZ} (QSD + SK depth 4)
rng = np.random.default_rng(42)
print("qubits | group | CZ_gates | 1q_gates | projective_error")
for nq in (1, 2, 3):
dim = 1 << nq
raw = rng.normal(size=(dim, dim)) + 1j * rng.normal(size=(dim, dim))
q_mat, r_mat = np.linalg.qr(raw)
q_mat *= np.sign(np.diag(r_mat))
u_nq = q_mat / (np.linalg.det(q_mat) ** (1.0 / dim))
ops = []
qsd_compile(u_nq, list(range(nq)), 4, ops)
assert all(op[0] in (0, 1, 2, 3, "CZ") for op in ops)
u_approx = evaluate_ops(ops, nq)
err_nq = proj_op_norm(u_nq, u_approx)
assert err_nq < 1e-3
cz_count = sum(1 for op in ops if op[0] == "CZ")
oneq_count = len(ops) - cz_count
grp = f"SU({dim})"
print(f"{nq:6d} | {grp:<6s} | {cz_count:8d} | {oneq_count:10d} | {err_nq:16.3e}")

Simulation Results:

SU(2) base net size (L0 <= 18): 27544
depth | gate_count | ||U - U_n||_op | word_check
0 | 16 | 2.883e-02 | 0.00e+00
1 | 78 | 5.556e-02 | 7.19e-16
2 | 400 | 1.273e-02 | 1.83e-15
3 | 1692 | 6.395e-04 | 9.01e-15
4 | 8716 | 2.653e-05 | 5.13e-14
5 | 40900 | 2.944e-07 | 2.95e-13
qubits | group | CZ_gates | 1q_gates | projective_error
1 | SU(2) | 0 | 8275 | 3.374e-05
2 | SU(4) | 6 | 86793 | 2.497e-04
3 | SU(8) | 36 | 445113 | 5.907e-04

Conclusion: Using the 27,54427{,}544-word base net (L0≤18L_0 \le 18) over {H^,H^†,T^,T^†}\{\widehat{H}, \widehat{H}^\dagger, \widehat{T}, \widehat{T}^\dagger\}, recursive Dawson-Nielsen Solovay-Kitaev refinement reduces the operator-norm error on the seeded SU(2)SU(2) target from 2.883×10−22.883 \times 10^{-2} at depth 00 to 2.944×10−72.944 \times 10^{-7} at depth 55 (with exact gate-word agreement within 2.95×10−132.95 \times 10^{-13}). Coupling the depth-44 single-qubit compiler with recursive Quantum Shannon Decomposition and CZCZ entanglers compiles Haar-random targets across n=1,2,3n = 1, 2, 3 qubits directly into primitive {H^,H^†,T^,T^†,CZ}\{\widehat{H}, \widehat{H}^\dagger, \widehat{T}, \widehat{T}^\dagger, CZ\} gate sequences, achieving phase-aligned operator-norm errors of 3.374×10−53.374 \times 10^{-5} for SU(2)SU(2), 2.497×10−42.497 \times 10^{-4} for SU(4)SU(4) (66 CZCZ gates, 86,79386{,}793 single-qubit gates), and 5.907×10−45.907 \times 10^{-4} for SU(8)SU(8) (3636 CZCZ gates, 445,113445{,}113 single-qubit gates). These compiled sequences verify constructive Solovay-Kitaev universality for the admitted gate set modulo global phase.

In Plain English:
Section 10.9.4.1 formalizes the properties of the QBD calculation regarding solovay-kitaev verification.


10.9.5.1 Calculation: Shor's Algorithm​

Realization of Factoring via Topological Rewrite Sequences

Demonstration of the computational power and fault tolerance established in the Group Closure §10.9.4 and the Solovay-Kitaev Density §10.9.3.1 is based on the following protocols:

  1. Circuit Compilation: Construct the gate-level Beauregard (2m+32m+3-qubit) quantum modular multiplication and semiclassical IQFT circuits strictly from elementary one- and two-qubit operations (H, X, RZ, CNOT, CP), verifying that CNOT and C−RkC-R_k decompose into {H,CZ,Rz}\{H, CZ, R_z\} and checking exact reversible modular multiplication on N=15,21,35N = 15, 21, 35 with N2≤2t<2N2N^2 \le 2^t < 2N^2.
  2. Multi-Semiprime Factoring: Run noiseless circuit sampling across N=15N = 15 (a=7,t=8a = 7, t = 8), N=21N = 21 (a=2,t=9,r=6∤512a = 2, t = 9, r = 6 \nmid 512), and N=35N = 35 (a=2,t=11,r=12∤2048a = 2, t = 11, r = 12 \nmid 2048), extracting periods and prime factors via continued fractions (limit_denominator(N)), two-shot LCM aggregation, and gcd⁡(ar/2±1,N)\gcd(a^{r/2} \pm 1, N).
  3. Gate-Noise Sweep: Inject stochastic Pauli depolarizing faults after every one- and two-qubit gate on the 1313-qubit N=21N = 21 circuit across pgate∈{0,3×10−5,10−4,3×10−4,10−3}p_{\mathrm{gate}} \in \{0, 3 \times 10^{-5}, 10^{-4}, 3 \times 10^{-4}, 10^{-3}\} to measure harmonic peak lock, single-shot recovery, and two-shot LCM recovery.
# §10.9.5.1 — Gate-compiled Beauregard Shor factoring across N=15, 21, 35

import math
from fractions import Fraction
import numpy as np

H_MAT = np.array([[1, 1], [1, -1]], dtype=np.complex128) / np.sqrt(2.0)
X_MAT = np.array([[0, 1], [1, 0]], dtype=np.complex128)
Y_MAT = np.array([[0, -1j], [1j, 0]], dtype=np.complex128)
Z_MAT = np.array([[1, 0], [0, -1]], dtype=np.complex128)
PAULIS = (X_MAT, Y_MAT, Z_MAT)


class Circuit2Q:
"""Statevector simulator restricted to 1-qubit gates and 2-qubit entanglers."""

def __init__(self, n_qubits):
self.n = n_qubits
idx = np.arange(1 << n_qubits)
self.q0 = [idx[((idx >> (n_qubits - 1 - q)) & 1) == 0] for q in range(n_qubits)]
self.q1 = [idx[((idx >> (n_qubits - 1 - q)) & 1) == 1] for q in range(n_qubits)]
self.pair11 = {
(a, b): idx[
(((idx >> (n_qubits - 1 - a)) & 1) == 1)
& (((idx >> (n_qubits - 1 - b)) & 1) == 1)
]
for a in range(n_qubits)
for b in range(n_qubits)
if a != b
}
self.cx0 = {
(c, t): idx[
(((idx >> (n_qubits - 1 - c)) & 1) == 1)
& (((idx >> (n_qubits - 1 - t)) & 1) == 0)
]
for c in range(n_qubits)
for t in range(n_qubits)
if c != t
}
self.cx1 = {
(c, t): idx[
(((idx >> (n_qubits - 1 - c)) & 1) == 1)
& (((idx >> (n_qubits - 1 - t)) & 1) == 1)
]
for c in range(n_qubits)
for t in range(n_qubits)
if c != t
}

def apply_1q(self, v, q, mat):
i0, i1 = self.q0[q], self.q1[q]
a, b = v[i0].copy(), v[i1].copy()
v[i0] = mat[0, 0] * a + mat[0, 1] * b
v[i1] = mat[1, 0] * a + mat[1, 1] * b

def inject_noise(self, v, p, rng, *qs):
if p <= 0.0:
return
if len(qs) == 1:
if rng.random() < p:
self.apply_1q(v, qs[0], PAULIS[int(rng.integers(3))])
elif rng.random() < p:
code = int(rng.integers(1, 16))
p1, p2 = code >> 2, code & 3
if p1:
self.apply_1q(v, qs[0], PAULIS[p1 - 1])
if p2:
self.apply_1q(v, qs[1], PAULIS[p2 - 1])

def g1(self, v, q, mat, p=0.0, rng=None):
self.apply_1q(v, q, mat)
self.inject_noise(v, p, rng, q)

def rz(self, v, q, phase, p=0.0, rng=None):
v[self.q1[q]] *= phase
self.inject_noise(v, p, rng, q)

def cnot(self, v, c, t, p=0.0, rng=None):
c0, c1 = self.cx0[(c, t)], self.cx1[(c, t)]
v[c0], v[c1] = v[c1].copy(), v[c0].copy()
self.inject_noise(v, p, rng, c, t)

def cphase(self, v, q1, q2, phase, p=0.0, rng=None):
v[self.pair11[(q1, q2)]] *= phase
self.inject_noise(v, p, rng, q1, q2)


def verify_primitive_identities():
"""Confirm CNOT and CR_k decompose exactly into {H, CZ, R_z}."""
cz = np.diag([1.0, 1.0, 1.0, -1.0])
ih = np.kron(np.eye(2), H_MAT)
cnot_ref = np.array([[1, 0, 0, 0], [0, 1, 0, 0], [0, 0, 0, 1], [0, 0, 1, 0]], dtype=float)
assert np.linalg.norm(ih @ cz @ ih - cnot_ref, 2) < 1e-13
for k in (2, 3, 4, 8):
ang = np.pi / (1 << (k - 1))
cp_ref = np.diag([1.0, 1.0, 1.0, np.exp(1j * ang)])
rz_p = np.diag([np.exp(-0.25j * ang), np.exp(0.25j * ang)])
rz_m = np.diag([np.exp(0.25j * ang), np.exp(-0.25j * ang)])
synth = np.exp(0.25j * ang) * np.kron(rz_p, rz_p) @ cnot_ref @ np.kron(np.eye(2), rz_m) @ cnot_ref
assert np.linalg.norm(synth - cp_ref, 2) < 1e-13


def emit_ccphase(c1, c2, t, phi, ops):
if abs(phi) < 1e-14:
return
hp, hm = np.exp(0.5j * phi), np.exp(-0.5j * phi)
ops.extend([("CP", c2, t, hp), ("CNOT", c1, c2), ("CP", c2, t, hm), ("CNOT", c1, c2), ("CP", c1, t, hp)])


def emit_qft(b, ops):
nb = len(b)
for j in range(nb):
ops.append(("H", b[j]))
for k in range(j + 1, nb):
ops.append(("CP", b[k], b[j], np.exp(1j * np.pi / (1 << (k - j)))))


def emit_iqft(b, ops):
nb = len(b)
for j in range(nb - 1, -1, -1):
for k in range(nb - 1, j, -1):
ops.append(("CP", b[k], b[j], np.exp(-1j * np.pi / (1 << (k - j)))))
ops.append(("H", b[j]))


def emit_phi_add(b, val, sign, ctrls, ops):
nb = len(b)
for j, q in enumerate(b):
ang = sign * 2.0 * np.pi * val / (1 << (nb - j))
if abs(ang) < 1e-14:
continue
if not ctrls:
ops.append(("RZ", q, np.exp(1j * ang)))
elif len(ctrls) == 1:
ops.append(("CP", ctrls[0], q, np.exp(1j * ang)))
else:
emit_ccphase(ctrls[0], ctrls[1], q, ang, ops)


def emit_cc_add_mod(c1, c2, b, anc, val, mod_n, ops):
msb = b[0]
emit_phi_add(b, val, +1, (c1, c2), ops)
emit_phi_add(b, mod_n, -1, (), ops)
emit_iqft(b, ops)
ops.append(("CNOT", msb, anc))
emit_qft(b, ops)
emit_phi_add(b, mod_n, +1, (anc,), ops)
emit_phi_add(b, val, -1, (c1, c2), ops)
emit_iqft(b, ops)
ops.extend([("X", msb), ("CNOT", msb, anc), ("X", msb)])
emit_qft(b, ops)
emit_phi_add(b, val, +1, (c1, c2), ops)


def emit_cc_sub_mod(c1, c2, b, anc, val, mod_n, ops):
msb = b[0]
emit_phi_add(b, val, -1, (c1, c2), ops)
emit_iqft(b, ops)
ops.extend([("X", msb), ("CNOT", msb, anc), ("X", msb)])
emit_qft(b, ops)
emit_phi_add(b, val, +1, (c1, c2), ops)
emit_phi_add(b, mod_n, -1, (anc,), ops)
emit_iqft(b, ops)
ops.append(("CNOT", msb, anc))
emit_qft(b, ops)
emit_phi_add(b, mod_n, +1, (), ops)
emit_phi_add(b, val, -1, (c1, c2), ops)


def build_mult_ops(c, x, b, anc, a_val, mod_n):
m = len(x)
ops = []
emit_qft(b, ops)
for j in range(m):
emit_cc_add_mod(c, x[j], b, anc, (a_val * (1 << (m - 1 - j))) % mod_n, mod_n, ops)
emit_iqft(b, ops)
for j in range(m):
xq, bq = x[j], b[1 + j]
ops.extend([("CNOT", bq, xq), ("H", bq)])
emit_ccphase(c, xq, bq, np.pi, ops)
ops.extend([("H", bq), ("CNOT", bq, xq)])
a_inv = pow(a_val, -1, mod_n)
emit_qft(b, ops)
for j in range(m - 1, -1, -1):
emit_cc_sub_mod(c, x[j], b, anc, (a_inv * (1 << (m - 1 - j))) % mod_n, mod_n, ops)
emit_iqft(b, ops)
return ops


def run_ops(circ, v, ops, p, rng):
for op in ops:
k = op[0]
if k == "H":
circ.g1(v, op[1], H_MAT, p, rng)
elif k == "X":
circ.g1(v, op[1], X_MAT, p, rng)
elif k == "RZ":
circ.rz(v, op[1], op[2], p, rng)
elif k == "CNOT":
circ.cnot(v, op[1], op[2], p, rng)
else:
circ.cphase(v, op[1], op[2], op[3], p, rng)


def verify_multiplier_unitary(mod_n, a_val, circ):
"""Verify exact reversible modular multiplication on x in {1, N-2}."""
m = mod_n.bit_length()
x = list(range(1, m + 1))
b = list(range(m + 1, 2 * m + 2))
ops = build_mult_ops(0, x, b, 2 * m + 2, a_val, mod_n)
for y_in in (1, mod_n - 2):
v = np.zeros(1 << (2 * m + 3), dtype=np.complex128)
v[(1 << (2 * m + 2)) | (y_in << (m + 2))] = 1.0
run_ops(circ, v, ops, 0.0, None)
idx_exp = (1 << (2 * m + 2)) | (((a_val * y_in) % mod_n) << (m + 2))
assert abs(abs(v[idx_exp]) - 1.0) < 1e-11


def build_stage_table(mod_n, a_base, t_bits):
m = mod_n.bit_length()
x = list(range(1, m + 1))
b = list(range(m + 1, 2 * m + 2))
anc = 2 * m + 2
return [build_mult_ops(0, x, b, anc, pow(a_base, 1 << (t_bits - 1 - s), mod_n), mod_n) for s in range(t_bits)]


def shor_shot(mod_n, t_bits, stages, circ, p, rng):
m = mod_n.bit_length()
n_tot = 2 * m + 3
v = np.zeros(1 << n_tot, dtype=np.complex128)
v[1 << (m + 2)] = 1.0 # c=0, x=1, b=0, anc=0
bits = []
half = 1 << (n_tot - 1)
gates_run = 0
for s in range(t_bits):
circ.g1(v, 0, H_MAT, p, rng)
run_ops(circ, v, stages[s], p, rng)
gates_run += len(stages[s]) + 2
rot = -sum(bits[j] * np.pi / (1 << (s - j)) for j in range(s))
if abs(rot) > 1e-14:
circ.rz(v, 0, np.exp(1j * rot), p, rng)
gates_run += 1
circ.g1(v, 0, H_MAT, p, rng)
p1 = float(np.sum(np.abs(v[half:]) ** 2))
bit = 1 if rng.random() < p1 else 0
bits.append(bit)
if bit == 1:
v[:half] = 0.0
v /= math.sqrt(max(p1, 1e-30))
circ.g1(v, 0, X_MAT, p, rng)
gates_run += 1
else:
v[half:] = 0.0
v /= math.sqrt(max(1.0 - p1, 1e-30))
return sum(bits[j] << j for j in range(t_bits)), gates_run


def cf_period(x_meas, t_bits, mod_n):
return 1 if x_meas <= 0 else Fraction(x_meas, 1 << t_bits).limit_denominator(mod_n).denominator


def extract_factors(mod_n, a_base, r_cand):
for mult in (r_cand, 2 * r_cand):
if mult > 0 and mult % 2 == 0 and pow(a_base, mult, mod_n) == 1:
g = math.gcd(pow(a_base, mult // 2, mod_n) - 1, mod_n)
if 1 < g < mod_n:
return mult, (min(g, mod_n // g), max(g, mod_n // g))
return None


def is_harmonic(x_meas, t_bits, r_true):
"""True when measurement x_meas lies within +-1.5 bins of s * 2^t / r."""
scale = 1 << t_bits
return any(abs(x_meas - (s * scale) / r_true) <= 1.5 for s in range(r_true + 1))


verify_primitive_identities()
rng = np.random.default_rng(42)

# 1. Noiseless Beauregard factoring benchmark across N=15, 21, 35
print("N | a | t | qubits | mean_gates | r_est | factors | peak_lock | single_P | lcm2_P")
n21_noiseless = []
cases = [(15, 7, 8, 4, 40), (21, 2, 9, 6, 40), (35, 2, 11, 12, 10)]
for mod_n, a_base, t_bits, r_true, shots in cases:
m = mod_n.bit_length()
assert (1 << t_bits) >= mod_n * mod_n and (1 << (t_bits - 1)) < mod_n * mod_n
circ = Circuit2Q(2 * m + 3)
verify_multiplier_unitary(mod_n, pow(a_base, 2, mod_n), circ)
stages = build_stage_table(mod_n, a_base, t_bits)
runs = [shor_shot(mod_n, t_bits, stages, circ, 0.0, rng) for _ in range(shots)]
meas = [r[0] for r in runs]
mean_g = int(round(np.mean([r[1] for r in runs])))
if mod_n == 21:
n21_noiseless = meas
lock_p = float(np.mean([is_harmonic(xm, t_bits, r_true) for xm in meas]))
assert lock_p > 0.70
single_hits = []
r_found = None
factors_found = None
for xm in meas:
res = extract_factors(mod_n, a_base, cf_period(xm, t_bits, mod_n))
single_hits.append(res is not None)
if res is not None and factors_found is None:
r_found, factors_found = res
pair_hits = []
for i in range(0, len(meas) - 1, 2):
r1 = cf_period(meas[i], t_bits, mod_n)
r2 = cf_period(meas[i + 1], t_bits, mod_n)
res = extract_factors(mod_n, a_base, math.lcm(r1, r2))
pair_hits.append(res is not None)
if res is not None and factors_found is None:
r_found, factors_found = res
assert factors_found is not None
f_str = f"{factors_found[0]}x{factors_found[1]}"
print(
f"{mod_n:<2d} | {a_base} | {t_bits:<2d} | {2*m+3:<6d} | {mean_g:<10d} "
f"| {r_found:<5d} | {f_str:<7s} | {lock_p:9.2f} | {np.mean(single_hits):8.2f} | {np.mean(pair_hits):6.2f}"
)

# 2. Per-gate depolarizing noise sweep on N=21 (13 qubits, ~18.3k gates/shot)
c21 = Circuit2Q(13)
s21 = build_stage_table(21, 2, 9)
print("p_gate | shots | peak_lock | single_P | lcm2_P")
for p in (0.0, 3e-5, 1e-4, 3e-4, 1e-3):
draws = n21_noiseless if p == 0.0 else [shor_shot(21, 9, s21, c21, p, rng)[0] for _ in range(36)]
lock_p = float(np.mean([is_harmonic(xm, 9, 6) for xm in draws]))
s_hits = [extract_factors(21, 2, cf_period(xm, 9, 21)) is not None for xm in draws]
p_hits = [
extract_factors(21, 2, math.lcm(cf_period(draws[i], 9, 21), cf_period(draws[i + 1], 9, 21))) is not None
for i in range(0, len(draws) - 1, 2)
]
print(f"{p:8.1e} | {len(draws):5d} | {lock_p:9.2f} | {np.mean(s_hits):8.2f} | {np.mean(p_hits):6.2f}")

Simulation Results:

N | a | t | qubits | mean_gates | r_est | factors | peak_lock | single_P | lcm2_P
15 | 7 | 8 | 11 | 10321 | 4 | 3x5 | 1.00 | 0.62 | 0.75
21 | 2 | 9 | 13 | 18287 | 6 | 3x7 | 0.90 | 0.57 | 0.85
35 | 2 | 11 | 15 | 32881 | 12 | 5x7 | 0.80 | 0.60 | 1.00
p_gate | shots | peak_lock | single_P | lcm2_P
0.0e+00 | 40 | 0.90 | 0.57 | 0.85
3.0e-05 | 36 | 0.67 | 0.50 | 0.67
1.0e-04 | 36 | 0.39 | 0.33 | 0.44
3.0e-04 | 36 | 0.14 | 0.19 | 0.28
1.0e-03 | 36 | 0.06 | 0.19 | 0.33

Conclusion: Executing the gate-compiled Beauregard architecture strictly with one- and two-qubit operations recovers the true periods and factors across all three benchmarks (15=3×515 = 3 \times 5 with r=4r = 4 over 10,32110{,}321 gates; 21=3×721 = 3 \times 7 with non-dyadic r=6r = 6 over 18,28718{,}287 gates; and 35=5×735 = 5 \times 7 with r=12r = 12 over 32,88132{,}881 gates), with two-shot LCM pairing lifting noiseless recovery on N=21N = 21 from 0.570.57 to 0.850.85 and reaching 1.001.00 on the N=35N = 35 pairs. Under per-gate depolarizing trajectories on N=21N = 21, harmonic peak lock drops from 0.900.90 at p=0p = 0 to 0.670.67 at p=3×10−5p = 3 \times 10^{-5}, 0.390.39 at p=10−4p = 10^{-4}, and 0.060.06 at p=10−3p = 10^{-3}, demonstrating quantitatively why unencoded gate sequences of depth ∼1.8×104\sim 1.8 \times 10^4 require sub-10−410^{-4} logical error rates supplied by fault-tolerant encoding.

In Plain English:
Section 10.9.5.1 formalizes the properties of the QBD calculation regarding shor's algorithm.