Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Abstract / §IV (21)–(27): ideal single-oscillator qunit code and exact small-shift correction

Open
QAlgorithms.Papers.Independent.Intakenext100.P12.ideal_oscillator_code

by Gohan · Oct 30, 2026 · Mathlib 0df444a (Lean v4.33.1)

prove2quantum

Let n≥2n\ge2n≥2 and α>0\alpha>0α>0. Give the logical space Cn\mathbb C^nCn its usual inner product. Define Jc=∑j=0n−1cj∑k∈Zδα(j+nk)Jc=\sum_{j=0}^{n-1}c_j\sum_{k\in\mathbb Z}\delta_{\alpha(j+nk)}Jc=∑j=0n−1​cj​∑k∈Z​δα(j+nk)​. These sums converge against Schwartz tests, JJJ is injective, and its image is exactly the common +1+1+1 space of translation by nαn\alphanα and multiplication by e2πiq/αe^{2\pi iq/\alpha}e2πiq/α. Translation by α\alphaα and multiplication by e2πiq/(nα)e^{2\pi iq/(n\alpha)}e2πiq/(nα) induce the logical shift XXX and clock ZZZ, satisfying

ZX=e2πi/nXZ.ZX=e^{2\pi i/n}XZ.ZX=e2πi/nXZ.

One linear algebraic syndrome decoder, chosen before the error and logical vector, separates every displacement ei(−up+vq)e^{i(-up+vq)}ei(−up+vq) with ∣u∣<α/2|u|<\alpha/2∣u∣<α/2 and ∣v∣<π/(nα)|v|<\pi/(n\alpha)∣v∣<π/(nα), including finite coherent sums. There is also an isometric realization of Cn⊗L2(C)\mathbb C^n\otimes L^2(C)Cn⊗L2(C) in physical L2(R)L^2(\mathbb R)L2(R), where CCC is this open error cell, given by the explicitly defined displacement integral. Thus square-integrable embedded errors preserve the logical factor. The radii obey ∣uv∣<π/(2n)|uv|<\pi/(2n)∣uv∣<π/(2n); choosing α=2π/n\alpha=\sqrt{2\pi/n}α=2π/n​ makes the two radii equal.

This is an ideal generalized-state code, with no claim that the combs themselves are normalized physical vectors.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Intakenext100_P12
Formal statement
noncomputable section

open scoped BigOperators

open MeasureTheory Matrix ComplexConjugate

open QAlgorithms.Papers.Independent.Dependency50.P10 (Phase sigma)

namespace QAlgorithms.Papers.Independent.Intakenext100.P12

/-- Abstract/Section IV (21)–(27), PDF pp.1,4–5: the explicitly constructed nonzero ideal
qunit code, exact logical operations and a single syndrome realization for all small shifts.
No ideal comb is asserted to belong to L2. The algebraic decoder handles finite coherent
error sums; the unitary realization handles square-integrable embedded-error wavefunctions. -/
theorem ideal_oscillator_code (n : ℕ) (hn : 2 ≤ n) (alpha : ℝ) (ha : 0 < alpha) :
    Function.Injective (idealComb n alpha) ∧
    (∀ j : Fin n, ∀ f : SchwartzMap ℝ ℂ, Summable (fun k : ℤ => f (combSupportPoint n alpha j k))) ∧
    (∀ T : SchwartzMap ℝ ℂ → ℂ,
      IsIdealStabilized n alpha T ↔ ∃ c : Fin n → ℂ, idealComb n alpha c = T) ∧
    (∀ c : Fin n → ℂ,
      displacedComb n alpha alpha 0 c = idealComb n alpha (logicalCycle n c) ∧
      displacedComb n alpha 0 (2 * Real.pi / (n * alpha)) c = idealComb n alpha (logicalClock n c) ∧
      logicalClock n (logicalCycle n c) =
        fun j => cisPhase (2 * Real.pi / n) * logicalCycle n (logicalClock n c) j) ∧
    (∃ R : (SchwartzMap ℝ ℂ → ℂ) →ₗ[ℂ] ({uv // uv ∈ errorCell n alpha} → Fin n → ℂ),
      ∀ (e : {uv // uv ∈ errorCell n alpha}) (c : Fin n → ℂ),
        R (displacedComb n alpha e.val.1 e.val.2 c) = fun s => if s = e then c else 0) ∧
    HasExactRealization n alpha ∧
    (∀ u v : ℝ, |u| < alpha / 2 → |v| < Real.pi / (n * alpha) →
      |u * v| < Real.pi / (2 * n)) ∧
    Real.pi / (n * Real.sqrt (2 * Real.pi / n)) = Real.sqrt (2 * Real.pi / n) / 2 := by sorry

end QAlgorithms.Papers.Independent.Intakenext100.P12

end
Source
Encoding a qubit in an oscillator, arXiv:quant-ph/0008040v3, PDF p. 1, Abstract / §IV (21)–(27): ideal single-oscillator qunit code and exact small-shift correction
Read-back

What the Lean code literally says, in plain math · gpt-6.1-sol

For every natural number n≥2n\ge2n≥2 and real α>0\alpha>0α>0, put aj,k=α(j+nk)a_{j,k}=\alpha(j+nk)aj,k​=α(j+nk) for 0≤j<n0\le j<n0≤j<n and k∈Zk\in\mathbb Zk∈Z, and define functions on complex Schwartz test functions by Cc(f)=∑j=0n−1cj∑k∈Zf(aj,k)C_c(f)=\sum_{j=0}^{n-1}c_j\sum_{k\in\mathbb Z}f(a_{j,k})Cc​(f)=∑j=0n−1​cj​∑k∈Z​f(aj,k​) and Du,v,c(f)=∑j=0n−1cj∑k∈Zeiv(aj,k+u/2)f(aj,k+u)D_{u,v,c}(f)=\sum_{j=0}^{n-1}c_j\sum_{k\in\mathbb Z}e^{iv(a_{j,k}+u/2)}f(a_{j,k}+u)Du,v,c​(f)=∑j=0n−1​cj​∑k∈Z​eiv(aj,k​+u/2)f(aj,k​+u). Define (Pc)j=∑k=0n−11{j=(k+1) mod n}ck(Pc)_j=\sum_{k=0}^{n-1}\mathbf 1_{\{j=(k+1)\bmod n\}}c_k(Pc)j​=∑k=0n−1​1{j=(k+1)modn}​ck​ and (Qc)j=ei2πj/ncj(Qc)_j=e^{i2\pi j/n}c_j(Qc)j​=ei2πj/ncj​, and let E={(u,v)∈R2:∣u∣<α/2, ∣v∣<π/(nα)}\mathcal E=\{(u,v)\in\mathbb R^2:|u|<\alpha/2,\ |v|<\pi/(n\alpha)\}E={(u,v)∈R2:∣u∣<α/2, ∣v∣<π/(nα)}. The assertion is that c↦Ccc\mapsto C_cc↦Cc​ is injective; for every jjj and every Schwartz function fff, the series ∑k∈Zf(aj,k)\sum_{k\in\mathbb Z}f(a_{j,k})∑k∈Z​f(aj,k​) is summable; an arbitrary function T:S(R;C)→CT:\mathcal S(\mathbb R;\mathbb C)\to\mathbb CT:S(R;C)→C equals CcC_cCc​ for some ccc if and only if it agrees with a continuous complex-linear functional and, for all Schwartz functions f,gf,gf,g, satisfies T(g)=T(f)T(g)=T(f)T(g)=T(f) whenever either g(q)=ei2πq/αf(q)g(q)=e^{i2\pi q/\alpha}f(q)g(q)=ei2πq/αf(q) for all qqq or g(q)=f(q+nα)g(q)=f(q+n\alpha)g(q)=f(q+nα) for all qqq; for every ccc, Dα,0,c=CPcD_{\alpha,0,c}=C_{Pc}Dα,0,c​=CPc​, D0,2π/(nα),c=CQcD_{0,2\pi/(n\alpha),c}=C_{Qc}D0,2π/(nα),c​=CQc​, and Q(Pc)j=ei2π/nP(Qc)jQ(Pc)_j=e^{i2\pi/n}P(Qc)_jQ(Pc)j​=ei2π/nP(Qc)j​ for every jjj; there exists a complex-linear map RRR from all functions S(R;C)→C\mathcal S(\mathbb R;\mathbb C)\to\mathbb CS(R;C)→C to functions from E\mathcal EE to coefficient vectors such that R(Du,v,c)(s)R(D_{u,v,c})(s)R(Du,v,c​)(s) equals ccc when s=(u,v)s=(u,v)s=(u,v) and zero otherwise, for every (u,v),s∈E(u,v),s\in\mathcal E(u,v),s∈E and every ccc; there exists a complex-linear isometry UUU from the space of nnn-tuples of elements of L2(E)L^2(\mathcal E)L2(E), with the ℓ2\ell^2ℓ2 sum norm and restricted two-dimensional Lebesgue measure, into L2(R)L^2(\mathbb R)L2(R) such that for every coefficient vector ccc and every η∈L2(E)\eta\in L^2(\mathcal E)η∈L2(E), almost every qqq satisfies U((cjη)j)(q)=nα/(2π)∑j=0n−1cj∑k∈Z∫Rη~(q−aj,k,v)eiv(q+aj,k)/2 dvU((c_j\eta)_j)(q)=\sqrt{n\alpha/(2\pi)}\sum_{j=0}^{n-1}c_j\sum_{k\in\mathbb Z}\int_{\mathbb R}\widetilde\eta(q-a_{j,k},v)e^{iv(q+a_{j,k})/2}\,dvU((cj​η)j​)(q)=nα/(2π)​∑j=0n−1​cj​∑k∈Z​∫R​η​(q−aj,k​,v)eiv(q+aj,k​)/2dv, where η~\widetilde\etaη​ is the representative of η\etaη extended by zero outside E\mathcal EE; every real u,vu,vu,v satisfying the two strict bounds defining E\mathcal EE obeys ∣uv∣<π/(2n)|uv|<\pi/(2n)∣uv∣<π/(2n); and π/(n2π/n)=2π/n/2\pi/(n\sqrt{2\pi/n})=\sqrt{2\pi/n}/2π/(n2π/n​)=2π/n​/2. No normalization of ccc is imposed.

Human review
  • Endorsed by Shuze Chen · Oct 31, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Gohan · Oct 31, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me