Appendix G Beyond the Stabilizer Polytope: Majorana Codes, Clifford Magic, and Steering
Across the main chapters of this book, five converging geometric threads have mapped out the algebraic skeleton of finite-dimensional quantum structures: Chapter 10 analyzed commutation order, compatible Gram geometry, and doily contextuality parity; Chapter 13 showed how the two-qubit cosine arc breaks the classical polygonal Bell (CHSH) bound and shapes remote conditional states into a steering ellipsoid; Chapter 14 and Section 14.2 established generalized Pauli-word syndromes and symplectic orthogonality for stabilizer codes; Chapter 16 and Section 16.3 traced how finite discrete gate sets carve polyhedral approximations on the three-sphere; and Appendix B compiled the graded blade identities, XOR multiplication table, and binary symplectic phase-space dictionary of the Clifford algebra .
Once we step beyond the boundary of the stabilizer polytope and local hidden-state models, five concrete finite-dimensional reachability questions immediately arise:
- Distance obstructions for small Majorana stabilizer codes: Under binary self-orthogonality, inclusion of the all-ones total-parity vector, and positive logical dimension (), can Majorana modes ever host a binary code of distance at least ?
- Multiplicative tensor law for discrete phase-space magic on the equator: When two single-qubit density states both lie on the equatorial plane of the Bloch ball (-component equal to ), does their two-qubit discrete Wigner distance obey an exact compositional formula?
- Limits of single-factor factorization for non-equatorial tensor deficits: Once the second qubit leaves the equator and enters the strictly positive Bloch octant, can the gap (deficit) between the multiplicative baseline and the true two-qubit Wigner distance still factor universally as ?
- Pointwise positivity test for odd-prime Clifford third moments: In odd-prime qudit dimensions, must the third-moment trace of a normalized state against every stochastic Lagrangian subspace operator stay inside the pointwise interval , as the pointwise clause of Conjecture 2 of Zhu, Mao, and Yi (2024) asserts?
- Sharp ellipsoid-centre radius for three-setting Pauli steering: In a two-qubit state, at what exact Euclidean norm of Bob’s conditional steering-ellipsoid centre does every violation of the three-orthonormal-setting steering bound vanish?
This appendix answers all five questions through explicit finite-dimensional hand calculations paired with five frozen Lean 4 kernel-verified theorems (verification boundaries in Appendix C). All five come from the published literature: question 1 from M. B. Hastings (Quantum Inf. Comput. 17, 2017); question 2 is Conjecture 5.6 in S. Dutta and Tushar, A Phase-Space Geometric Measure of Magic in Qubit Systems, and question 3 tests the factorization clause of their Conjecture 5.5 in the strictly positive octant (arXiv:2603.20792v4); question 4 is the pointwise clause of Conjecture 2 in H. Zhu, C. Mao, and C. Yi, Third moments of qudit Clifford orbits and 3-designs based on magic orbits (arXiv:2410.13575v1); question 5 comes from A. F. Ducuara, C. E. Susa, and P. Skrzypczyk (Phys. Rev. A 110, 022435, 2024). At the outset, we state an explicit epistemic boundary: the unifying mathematical thread across Sections G.1–G.5 is where finite algebraic and polyhedral characterizations close cleanly and where naive extrapolations break down on explicit counterexamples; this book does not claim that binary Hamming code weight, single- and two-qubit Wigner distances, odd-prime Clifford third moments, and the three-setting steering parameter are mutually equivalent resource measures.
G.1 Low-Weight Logical Operators for Majorana Codes up to Fourteen Modes
Recalling the real Clifford generator conventions of Appendix B (as motivating physical background), let Majorana operators satisfy and for . A binary indicator vector marks which Majorana modes appear in a monomial product; whenever two indicator vectors both have even Hamming weight, their Majorana monomials commute if and only if they overlap on an even number of modes—that is, their standard coordinate dot product over vanishes. When a binary check subspace is self-orthogonal, contains the all-ones total-fermion-parity vector , and leaves at least one logical degree of freedom (), any vector represents a nontrivial logical operator commuting with every stabilizer check without belonging to the stabilizer itself. Achieving code distance at least requires that no vector in have Hamming weight strictly below .
Before stating the general fourteen-mode theorem, we work out the smallest nontrivial instance by hand. In , take the one-dimensional subspace with :
- Self-orthogonality and parity check: Over , , and pairings with the zero vector vanish trivially, so is self-orthogonal and contains ; moreover satisfies .
- Explicit low-weight logical operator: Inspect . Its dot product with the generator is , placing , whereas gives . Its Hamming weight is , immediately ruling out distance .
To state the general bound up to , we align with the exact formal definitions in BinaryCharacterCodeDuality and MajoranaFourteenModeDistanceFour:
- Over any commutative semiring and finite index type (
[Fintype I]),standardCoordinatePairing K Iis the coordinatewise dot-product bilinear form , andcharacterOrthogonalComplement K spaceis the submodule orthogonal tospaceunder that pairing (for , ); - A binary submodule satisfies
IsSelfOrthogonal cwhen for all and ; - The Hamming weight of is counted by
hammingNorm v.
For every natural number and every binary submodule , if IsSelfOrthogonal c holds, , and
then there exists such that and .
Assume and let satisfy self-orthogonality, , and . Because is orthogonal to itself over , must be even, and every vector in the orthogonal complement has even Hamming weight; together with , this rules out as well as the self-dual boundary , restricting to a finite table of even mode counts . Assuming for contradiction that every element of has Hamming weight at least , the Lean development combines coordinate-duality rank identities, weight-distribution constraints, and puncturing/shortening reductions across the remaining cases up to to force a contradiction, establishing some with . The full proof is checked by the Lean kernel.
Two strict scope boundaries govern Theorem G.1:
- An impossibility bound, never a distance- code construction: This theorem excludes minimum logical weight across the entire stated family for (indeed, since forces every to be nonzero of even weight, implies weight ); it must never be misread as constructing a fourteen-mode distance- Majorana code. As a manual and literature benchmark outside this frozen theorem, at the very next even mode count , the first-order Reed–Muller code has dimension (), contains , has doubly-even weights in (hence is self-orthogonal), and has dual of minimum nonzero weight —explaining why the cutoff is algebraically sharp.
- Finite binary algebra versus physical fault tolerance: Neither nor may be dropped (for instance, at the self-dual code has and ). Moreover, this is a theorem of finite binary linear coding theory and does not by itself supply continuous-time fermionic Hamiltonian dynamics or hardware fault-tolerance thresholds.
G.2 Equatorial-State Tensor Rules for Wigner Distance
Whereas stabilizer codes carve invariant subspaces, Chapter 16, Section 16.3 showed that universal gate synthesis requires non-Clifford gates such as to break out of the Clifford polytope, because Clifford unitaries alone cannot generate non-stabilizer “magic.” On one and two qubits, how can we measure the exact distance in discrete phase space from a quantum state to the stabilizer convex hull?
We follow verbatim the definitions in FiniteDimensional, PauliMatrix, BinaryStabilizerLocalInequivalence, DensitySpan, WignerDistanceMinimum, and QubitWignerDistanceTensorRules:
-
Single- and two-qubit matrices and density states: Write
QubitMatrix := Matrix (Fin 2) (Fin 2) ℂandTwoQubitMatrix := Matrix (Fin 2 × Fin 2) (Fin 2 × Fin 2) ℂ. For any finite dimension ,IsDensity AisA.PosSemidef ∧ Matrix.trace A = 1. The mappauliMatrixsends , , , and , with Bloch readouts . -
Discrete phase-point kernels and Wigner quasiprobabilities: Set
PhasePoint := Fin 2 × Fin 2. At each phase point , the single-qubit kernelphasePoint aisand the two-qubit product kernel is
phasePointTwo (a, b) := phasePoint a ⊗ₖ phasePoint b. On any finite index type of cardinality ,Wigner A ρ a := (ρ * A a).trace.re / Fintype.card ι; specializing to and givesWignerOne ρ : PhasePoint → ℝandWignerTwo ρ : PhasePoint × PhasePoint → ℝ. -
Stabilizer polytope
Wfreeand distancesCOne,CTwo: LetpauliSet = {c • pauliMatrix p | c ∈ {1, -1, i, -i}}andpauliTwo = {c • (pauliMatrix p ⊗ₖ pauliMatrix q) | c ∈ {1, -1, i, -i}}. The setStab Pcollects all rank-one projectors of unit vectors uniquely stabilized (one-dimensional joint eigenspace) by an abelian subgroup of cardinality contained in ; its Wigner polytope isWfree A P := convexHull ℝ (Wigner A '' Stab P). Measuring distances in the -normed spaceWithLp 1, we define
Let us compute every number explicitly on the equatorial pure state with rational Bloch vector :
Using in the phase-point order , the four Wigner weights are
Now inspect the single-qubit stabilizer vertices: Stab pauliSet consists of the six axial projectors , whose WignerOne vectors each have two entries equal to and two entries equal to (for example, and ). Every convex combination therefore satisfies at all four phase points , giving an immediate lower bound:
Conversely, the stabilizer-edge mixture attains , proving . For the two-qubit product , the theorem below bypasses any brute-force search over the -vertex two-qubit stabilizer polytope in and yields directly:
For any single-qubit matrices satisfying IsDensity ρ, IsDensity σ, and vanishing -Bloch components
the two-qubit Wigner distance of their Kronecker product satisfies
Let and be single-qubit density matrices with . For the upper bound, any pair of single-qubit free distributions has tensor product inside the convex hull of product stabilizer states, hence inside Wfree phasePointTwo pauliTwo; decomposing and using together with yields . For the matching lower bound on the equator, the module uses nearest-edge projections from WignerSimplexNearestEdge to construct dual sign vectors certifying and , and verifies that their Kronecker sign functional has pairing at most against every pure stabilizer state in Stab pauliTwo (both product and entangled). The full proof is checked by the Lean kernel.
Two precision guardrails apply to Theorem G.2:
- Covers mixed as well as pure equatorial states, but never non-equatorial states: The theorem assumes only
IsDensity ρ,IsDensity σ, and —no purity hypothesis is imposed, so every mixed state in the equatorial disk (including interior stabilizer mixtures with and ) is covered. Conversely, the identity must never be extrapolated off the equator, as the next section refutes even a weakened factorization once one factor acquires a nonzero -component. - Functional-specific definition:
COneandCTwodenote the infimum distances toWfreefor the exactphasePointsign convention andIsDensityinputs; they are neither matrix trace distances nor claimed to be unconditionally monotone under arbitrary quantum channels.
G.3 Refutation of a Single-Factor Wigner Deficit Formula
Because pairs of equatorial states satisfy , it is tempting to conjecture a separated correction law when one state leaves the equator: if remains an equatorial magic state ( and ) while enters the strictly positive Bloch octant , does the tensor deficit factor linearly in as for some universal function of alone?
In QubitWignerDeficitFactorRefutation, the deficit functional deficit and the candidate factorization statement claim are defined explicitly as
with claim asserting the existence of a single map such that for all satisfying IsDensity ρ, , , IsDensity σ, and .
To see concretely why this single-factor ansatz fails, we evaluate the three rational witness matrices constructed in the source module:
-
First equatorial pure state
rhoA: Again taking with Bloch vector , Section G.2 established and . -
Second equatorial pure state
rhoB: Built from the Pythagorean triple,Its four phase-point weights are . Because every obeys and , we have , matched by the edge mixture , so .
-
Positive-octant non-equatorial pure state
sigma: Built from the quadruple ,Here and , confirming
IsDensity sigma, while places strictly inside the positive octant. Its Wigner vector is ; since and force , attained at , we have .
Geometrically, along the first-quadrant equatorial arc, depends only on the sum and is completely blind to the transverse difference . In two qubits, however, Stab pauliTwo contains not only nonnegative product stabilizer vertices, but also even-permutation entangled stabilizer vertices such as , whose -point Wigner distribution takes twelve times and four times. Once carries a nonzero -component, mixing in entangled stabilizer vertices to absorb negative entries of couples to the transverse coordinate ( for versus for ). Because and are strictly positive (never invoking division-by-zero total extensions), any universal function satisfying claim would require
which the formal proof refutes directly.
Define . There does not exist a function such that for all single-qubit matrices satisfying IsDensity ρ, , , IsDensity σ, and
the identity holds (that is, ¬ claim holds).
Suppose for contradiction that such a function existed. Instantiating claim on the explicit rational witness matrices rhoA, rhoB, and sigma, the proof first checks IsDensity rhoA, IsDensity rhoB, IsDensity sigma, , , , and . Eliminating between and forces . By exhibiting primal rational convex combinations in Wfree phasePointTwo pauliTwo (upper-bounding ) paired with dual separating hyperplanes on the -point two-qubit phase space (lower-bounding ), the module proves that the two normalized deficits are strictly unequal, a contradiction. The full proof is checked by the Lean kernel.
Respect the exact quantifier structure: ¬ claim refutes the existence of a single universal factor valid across all admissible pairs (). It does not assert that the deficit fails to factor at a fixed pair (where the trivial ratio always works when ), nor does it invalidate Theorem G.2 or rule out genuinely bivariate tensor bounds.
G.4 Negative Clifford Third-Moment Expectation in Dimension Eleven
For qubits (), discrete phase-point distributions of entangled stabilizer states already exhibit negative entries; in odd prime dimensions (such as ), by contrast, Gross’s theorem (literature context, not re-locked here) ensures that pure stabilizer states have nonnegative discrete Wigner functions. That nonnegativity can easily tempt a positivity conjecture—the pointwise clause of Conjecture 2 of Zhu, Mao, and Yi (2024)—in Clifford Schur–Weyl duality: for the stochastic Lagrangian subspace operators spanning the third-moment commutant of the -qudit Clifford group, must the expectation trace satisfy the pointwise bound across all odd primes , all mode counts , all normalized states , and all stochastic Lagrangian subspaces ?
We record the exact definitions in CliffordThirdMomentNegativity:
-
Stochastic Lagrangian subspaces
IsStochasticLagrangian: For and a -submodule ,IsStochasticLagrangian d Trequires three conditions:- Quadratic isotropy: for every , ;
- Lagrangian dimension: ;
- Stochastic diagonal vector: .
-
Subspace indicator matrix
R d n T: Indexed by three-copy -qudit words , the complex matrix has entries -
Three-copy state cube
stateCubeand third-moment tracekappa: For , set and, under[NeZero d], -
The refuted universal pointwise bound
claim: Underopen scoped ComplexOrder—where in means , so simultaneously requires and —claimasserts that for every prime , every , every with , and every satisfyingIsStochasticLagrangian d T, one has .
The source module constructs an explicit counterexample at prime dimension and mode count , whose hypotheses can be verified directly by hand:
-
Mod- stochastic orthogonal matrix and graph subspace : Inspect the symmetric circulant matrix over :
Computing modulo :
- Row sum: , so ;
- Diagonal dot product: ;
- Off-diagonal dot product: .
Hence in ! Defining the graph submodule (
LinearMap.range graphMap), projection onto the second factor gives ; every satisfies ; and yields . ThusIsStochasticLagrangian 11 Tholds! Moreover, since and , is a real symmetric permutation matrix, forcing . -
Gaussian-integer witness state
psiand negative rational value: Take the -tuple of Gaussian integers given bywhose squared moduli sum to
Setting gives . In the third-moment trace, the normalization factor produces denominator , while summing over all triples yields :
violating in
ComplexOrder!
Under ComplexOrder, it is not the case that for every prime , every natural number , every normalized state satisfying , and every submodule satisfying IsStochasticLagrangian d T, one has
(that is, ¬ claim holds).
Assume claim holds universally, and instantiate it at prime (Nat.Prime 11 and ), , the graph submodule of the mod- orthogonal stochastic matrix , and the Gaussian-integer witness state normalized by . After verifying , , and to establish IsStochasticLagrangian 11 T, together with , the Lean proof evaluates the finite matrix trace to the exact negative scalar , contradicting in ComplexOrder. The full proof is checked by the Lean kernel.
Three strict caveats govern Theorem G.4:
- Preserve
ComplexOrderfaithfully: Becausekappahas codomain , the inequality is typed inComplexOrder(constraining both real and imaginary parts) and must not be silently rewritten as an inequality on.realone. - Existence counterexample at , not a minimal-dimension claim: The theorem refutes universal odd-prime pointwise nonnegativity via a concrete witness; it does not claim that is the smallest odd prime admitting , nor that is negative in every dimension.
- Distinct from Wigner negativity and from aggregated bounds: Negativity of a single three-copy Lagrangian moment is distinct from single-copy discrete Wigner negativity, and refuting the pointwise bound does not refute aggregated magic monotones summed or averaged across all stochastic Lagrangian subspaces.
G.5 Sharp Ellipsoid-Centre Threshold for Three-Setting Steering
Having examined binary parity codes, phase-space polytopes, and third-moment Clifford commutants, we return to the two-qubit correlation geometry of Chapter 13 to locate a sharp threshold for Einstein–Podolsky–Rosen (EPR) quantum steering—the operational hierarchy sitting strictly between entanglement and Bell nonlocality.
When Alice and Bob share a two-qubit density matrix , projective measurements on Alice’s qubit steer Bob’s conditional state across a three-dimensional steering ellipsoid inside Bob’s Bloch ball. When the ellipsoid centre sits near the origin ( small) and the ellipsoid has large semi-axes, Bob can measure along three mutually orthogonal spin axes and certify correlations impossible for any local hidden-state (LHS) model; when is pushed toward the boundary sphere (), spherical positivity squeezes the ellipsoid until three-setting steering collapses. At what exact centre norm does three-setting steering become impossible?
We align with every formal definition in SteeringEllipsoidFullyEntangledFraction, PauliThreeWeightBayesianInverseUniqueness, and SteeringEllipsoidFThreeThreshold:
-
Local Bloch vectors and correlation matrix: Let
TwoQubit := Matrix (Fin 2 × Fin 2) (Fin 2 × Fin 2) ℂ, letpauli : Fin 3 → Matrix (Fin 2) (Fin 2) ℂlist , and write . For , define -
Ellipsoid centre
centreBwith explicit pure-marginal branch: Rather than letting a pure Alice marginal () fall into Lean’s total division-by-zero convention ,centreB ρ : Fin 3 → ℝbranches explicitly: -
Three-setting value set
fThreeValuesand supremumfThree: Writing for , defineand set (note that Alice’s three settings need only be unit vectors, whereas Bob’s form an orthonormal triad; witnesses three-setting steering).
Three hand calculations anchor the formula before the theorem box:
-
Maximally entangled Bell state : Here , so the second branch gives and . Since , choosing and gives , saturating and confirming .
-
Pure product state (exercising the
vlen = 1branch and the, 1floor): Here has norm , triggering the first branch (). Although , choosing all three of Alice’s unit vectors equal to and tilting Bob’s orthonormal triad symmetrically so each has -component achieves —showing why the universal upper bound must be . -
Critical threshold versus the maximally mixed state : Equating the two branches gives
Whenever , , ruling out for every two-qubit density state. Conversely, has yet : thus characterizes which centre lengths admit a steering-violating state, never claiming that every state with violates!
The two-qubit three-setting steering parameter and ellipsoid-centre norm satisfy both of the following:
-
Universal ellipsoid-centre upper bound: For every two-qubit matrix , if and , then
-
Pointwise sharpness below : For every real number , if , then there exists a two-qubit matrix such that
The proof establishes the universal upper bound and the sharpness witness in turn. First, for any positive-semidefinite trace-one matrix , fThreeValues ρ is shown to be nonempty and bounded above so that the conditional real supremum sSup is well-behaved. When , pure-marginal factorization reduces the correlation tensor to product form, and Cauchy–Schwarz across Bob’s orthonormal triad gives ; when , the spin-flip purity identity flip_purity_identity together with the ellipsoid-radius bounds bob_radius_le and delta_le_centre from SteeringEllipsoidCHSH bound every three-setting sum above by . Second, for any , instantiating the explicit witness family tightState (with tight_psd, unit trace, and tight_centre) and evaluating tight_readouts on a symmetric orthonormal triad achieves , proving . The full proof is checked by the Lean kernel.
Total-function and physical boundaries remain explicit: sSup and Real.sqrt (which evaluates to 0 on negative inputs in Lean) carry operational steering meaning only under PosSemidef and trace ρ = 1; furthermore, tests the three-orthonormal-setting linear steering inequality on Bob and does not equate to all-setting one-way steering or full Bell nonlocality.
G.6 Synthesis and Epistemic Scope Audit Table
Taken together, Sections G.1–G.5 chart both sides of the finite-dimensional frontier outside the stabilizer polytope and local hidden-state models: alongside two exact positive laws—the multiplicative equatorial Wigner tensor rule (Theorem G.2) and the sharp ellipsoid-centre threshold for three-setting steering (Theorem G.5)—stand three exact obstructions and counterexamples that cut off plausible over-generalizations: low-weight logical operators in binary self-orthogonal parity codes up to modes (Theorem G.1), non-factorization of the off-equator two-qubit Wigner tensor deficit (Theorem G.3), and negative Clifford third-moment expectation at odd prime dimension (Theorem G.4).
The table below audits the exact hypotheses, verified conclusions, and non-negotiable epistemic boundaries of all five kernel-verified theorems in this appendix (reiterating that the five quantities live in distinct algebraic settings—binary linear codes, one- and two-qubit discrete Wigner convex geometry, odd-prime three-copy Clifford representation theory, and two-qubit steering ellipsoids—with no claim of mutual equivalence):
| Section & Theorem | Frozen Lean Declaration (LEAN ✓) | Role | Exact Hypotheses & Domain | Kernel-Verified Conclusion | Epistemic Boundary (Never Overclaim) |
|---|---|---|---|---|---|
| G.1 Theorem G.1 | MajoranaFourteenModeDistanceFour.result | Obstruction bound | , binary self-orthogonal, , | Exists with | Rules out distance in this family (never claims to construct a distance- code); finite binary algebra only |
| G.2 Theorem G.2 | QubitWignerDistanceTensorRules.resultEquatorial | Positive tensor law | Qubit IsDensity ρ, IsDensity σ, and | Covers pure and mixed equatorial states alike (do not add purity), but never extrapolates off the equator or to other metrics | |
| G.3 Theorem G.3 | QubitWignerDeficitFactorRefutation.result | Refutation (¬ claim) | Equatorial IsDensity ρ () and positive-octant IsDensity σ () | No single function satisfies universally | Refutes universal single-factor factorization only, not fixed-pair ratios or general bivariate bounds |
| G.4 Theorem G.4 | CliffordThirdMomentNegativity.result | Refutation (¬ claim) | Odd prime , unit state , IsStochasticLagrangian d T ( witness) | Refutes universal pointwise in ComplexOrder () | Keep ComplexOrder on ; is an existence witness (not claimed minimal); distinct from Wigner negativity and summed bounds |
| G.5 Theorem G.5 | SteeringEllipsoidFThreeThreshold.result | Upper bound + sharp threshold | Two-qubit PSD trace- ; centreB includes explicit vlen(blochA)=1 branch | , and , with and | Never claim every state with violates (e.g., has ), nor equate to all nonlocality |