The [[15, 1, 3]] code space and its transversal T #
Category: 1-Mathlib (CSD-free; staged for upstream). BACKLOG #76, part (b) of R-004
(specs/magic-plan.md, "The split").
The logical states of the [[15, 1, 3]] quantum Reed–Muller code, in the coordinate-operator model
of Pauli.lean/Magic.lean on QReg 15: |0̄⟩ = ∑_{x ∈ C} |x⟩ and |1̄⟩ = ∑_{x ∈ C} |x + 𝟙⟩, with
C the [15, 4] simplex code spanned by the four rows of the parity-check matrix
(ReedMuller15.col), unnormalised (‖·‖ = 4). The X-stabilisers X^{row i} permute the
codewords and fix both logical states (pauliOp_row_logical0/1). Every codeword has weight 0
or 8 and every word of the coset C + 𝟙 has weight 7 or 15 (weight_codeword,
weight_codeword_add_one, finite checks), so the transversal T, T^{⊗15}, whose coordinate
action is |x⟩ ↦ e^{iπ|x|/4}|x⟩, fixes |0̄⟩ and multiplies |1̄⟩ by e^{−iπ/4}: it acts on the
logical qubit as T†. Applied to the encoded |+̄⟩ = |0̄⟩ + |1̄⟩ it produces the encoded
T†|+⟩, the magic state up to the Clifford S (S T† = T).
row i,codeword a,codeword_injective;wt— the weight onFin 15 → Fin 2;weight_codeword,weight_codeword_add_one— the weights0/8and7/15(the triorthogonality of the code, in the form the transversal gate needs);logical0,logical1,logicalPlus;pauliOp_basisState_zero, ★pauliOp_row_logical0/1— theX-stabilisers fix the logical states;tTrans— the transversalTas a coordinate operator,tTrans_eq_comp— it is the composite of the fifteen single-qubitTgates;tTrans_basisState;- ★★
tTrans_logical0,tTrans_logical1—T^{⊗15}is the logicalT†; ★tTrans_logicalPlus— the encoded magic state|0̄⟩ + e^{−iπ/4}|1̄⟩.
Honest scope #
⚠️ The code space is presented by its two logical states, not as the range of the fourteen-generator
stabiliser average of Stabilizer.lean; the Z-stabilisers and the action of Z-error patterns on
the logical states are BACKLOG #77, the distillation bound #78.
References: S. Bravyi, A. Kitaev, PRA 71 (2005) 022316 §IV; E. Knill, R. Laflamme, W. Zurek,
quant-ph/9610011; S. Bravyi, J. Haah, PRA 86 (2012) 052329 (triorthogonal codes);
specs/magic-plan.md; specs/BACKLOG.md #76; specs/future-work.md.
The codeword ∑ᵢ aᵢ · row i of the [15, 4] simplex code.
Equations
- QuantumInfo.ReedMuller15.codeword a j = ∑ i : Fin 4, a i * QuantumInfo.ReedMuller15.row i j
Instances For
The logical states and the X-stabilisers #
|0̄⟩ = ∑_{x ∈ C} |x⟩ (unnormalised).
Equations
Instances For
|1̄⟩ = ∑_{x ∈ C} |x + 𝟙⟩ (unnormalised).
Equations
- QuantumInfo.ReedMuller15.logical1 = ∑ a : Fin 4 → Fin 2, QuantumInfo.basisState (QuantumInfo.ReedMuller15.codeword a + 1)
Instances For
The encoded |+̄⟩, unnormalised: |0̄⟩ + |1̄⟩.
Equations
Instances For
X^a moves a basis state: X^a |x⟩ = |x + a⟩.
The transversal T #
The transversal T gate T^{⊗15}: |x⟩ ↦ e^{iπ|x|/4}|x⟩.
Equations
- QuantumInfo.ReedMuller15.tTrans ψ = (WithLp.equiv 2 ((Fin 15 → Fin 2) → ℂ)).symm fun (z : Fin 15 → Fin 2) => QuantumInfo.tPhase ^ QuantumInfo.ReedMuller15.wt z * ψ.ofLp z
Instances For
Transversality: tTrans is the composite of the fifteen single-qubit T gates.
★★ T^{⊗15} multiplies |1̄⟩ by e^{−iπ/4}: every word of the coset has weight 7 or
15. Together with tTrans_logical0: the transversal T is the logical T†.
★ The encoded magic state: T^{⊗15}|+̄⟩ = |0̄⟩ + e^{−iπ/4}|1̄⟩, the encoded T†|+⟩.