Definitions for Encoding a qubit in an oscillator
DefinitionQAlgorithms_Papers_Independent_Intakenext100_P12The objects the formalized statements of Encoding a qubit in an oscillator (arXiv:quant-ph/0008040) are stated in. Each was checked against the paper by a blind read-back and a moderator.
cisPhase: The source phase convention, with real phase in radians.finiteInner: Ordinary finite logical inner product, conjugate-linear in its first argument.finiteWord: Section II (17), PDF p.3: normalized finite codeword in dimension d.finiteError: Section II: X^a Z^b, in that order; d is positive at every use below.finiteEncode: Section II: encoding a logical vector by the displayed comb basis.finiteSyndrome: Complete half-open syndrome representatives; these are distinct from the strict central set.finiteWindow: Strict correction window in (16), without truncated natural-number subtraction.finiteCodeSpace: The finite encoder's actual subspace, in the accepted Hilbert-space convention.finiteErrorMatrix: Matrix of the source error X^a Z^b.finiteErrorSpace: Coherent span of every error in the strict central correction window.FiniteCodeConclusion: The full conclusion of the finite construction, including perfection and exact KL identities.combSupportPoint: Grid support of (27); nonzero spacing and positive n are supplied at every use.idealComb: The ideal encoded generalized state, as an explicitly summed Schwartz-test functional.phasedComb: Multiplication of a comb by a smooth phase, defined through its point masses.rotorEncode: Fourier coefficients of an ideal rotor codeword, with m=n*r. These bounded, periodic sequences represent distributions on the circle, not l2(Z) states.rotorError: Actual circle rotation followed by integer momentum translation, in Fourier coefficients.IsRotorStabilized: Stabilizers (19), in the integer Fourier spectrum.rotorCell: The strict angular/momentum window of (20), using a central representative of the angle.wignerKernel: Section IV (28): distributional density kernel, paired after the Wigner change of variables. This does not multiply two distributions pointwise.wignerSign: Sign of a Wigner lattice weight; only the odd/odd parity class is negative.wignerQMean: Normalized symmetric q-marginal lattice mean. Marginal pushforward is not defined for this nonnormalizable distribution; this states the source's oscillatory cancellation.wignerPMean: Normalized symmetric p-marginal lattice mean.oscillatorVacuumProfile: One-mode restriction of the pinned normalized vacuum wavefunction (source IV, PDF p.5).coherentLatticeWave: Ordered displacement in (29), including the BCH phase exp(ipist). Its center is (salpha, 2pit/alpha).coherentStart: A normalized coherent state with arbitrary real quadrature center.projectedCoherent: The ordered lattice projection of this coherent state, including the phase convention of (29).errorCell: Correctable open error cell of (24), with half-cell boundaries excluded.SupportedError: Square-integrable embedded errors with support in the correctable cell, modulo null sets.embeddedWave: Explicit realization of (40), with delta-comb normalization fixed by the Zak isometry. The square-root factor fixes the otherwise unspecified normalization of ideal codewords.CellHilbert: The physical error Hilbert space uses Lebesgue measure restricted to the open cell.HasExactRealization: A constructed Zak realization, with its isometry required as a conclusion.displacedComb: Weyl displacement exp(i*(-up+vq)) of the explicit ideal comb.IsIdealStabilized: Common +1 eigenfunctionals of the two actual translation/modulation pullbacks.logicalCycle: The finite logical cyclic shift, independent of any physical syndrome.logicalClock: The finite logical clock, with source phase exp(+2pii/n).gkpPair: Section VI (46), PDF p.7: sign adapter from the pinned opposite-sign form. Coordinates are grouped as alpha (p coefficient), then beta (q coefficient). The imported sigma has upper-right +I, exactly the source Omega.schrodingerDisplacement: Actual Schroedinger translation/modulation exp(isqrt(2pi)(alphap+beta*q)).rowLattice: Lattice generated by the rows of M, not its columns.latticeGram: Source (50).IntegralMatrix: Integral entries of a real matrix.Unimodular: Integer change of row basis with determinant +1 or -1.symplecticDual: Symplectic dual lattice, in the source's integer-pairing convention.dualGenerator: The particular dual basis chosen by (55)–(59).euclideanDual: Euclidean integer dual; used only in the CSS construction.cssComb: Explicit position comb on the physical CSS p-translation lattice.HasCSSDistribution: Nonzero common eigenfunctional for the CSS generators described in the source. The displayed source block matrix uses the generator order (q,p); its physical Weyl coordinates are adapted by swapping the two grouped coordinate blocks.hexVector: Two-dimensional row hexagonal lattice in (68).planeNorm: Euclidean plane norm, independent of the product-space max-norm instance.hexDualVector: Source dual lattice labels, not physical displacement coordinates.squareDualVector: Equal-area square dual lattice, in source label coordinates.IsSharpRadius: A sharp disjoint-open-ball radius, characterized by all separations and one attaining pair.quadratureGaussianDensity: Centered Gaussian density with standard deviation sigma in one quadrature.squareParity: Nearest square-lattice correction, with a fixed half-open tie convention.squareErrorRate: Exact odd-cell mass, including harmless translations by two logical periods.squareJoint: Joint logical X/Z probability induced by independent quadrature displacements.physicalHex: Physical dual hexagonal lattice for one encoded qubit.hexNearest: An actual nearest lattice point. The theorem below establishes existence for every input.hexProbability: Logical Pauli probabilities under nearest-lattice recovery; stabilizers are even/even labels.SymplecticOpticalGate: Section IX: named ideal optical operations, with mode labels and actual real parameters.SymplecticOpticalGate.Valid: Legal optical parameters: two different beam modes, and finite positive squeeze ratios.realModeMixing: Exact finite beam mixing, rather than the infinitesimal heuristic (99).SymplecticOpticalGate.matrix: Phase-space action of each named optical gate, in the source's grouped coordinate order.opticalEval: Gates are evaluated in time order.atomEvolution: Section XI.A: photon-number-dependent atom phase; atom=false is g, atom=true is e.atomBranch: The unnormalized oscillator branch after measuring the atom in the plus/minus basis.numberSector: Number-sector projector, kept separate from any nonnormalizable ideal comb.paperS: The paper's S, equal to the accepted T gate up to exp(-i*pi/8).hadamardPlus: Equation (112).magicState: Equation (114), normalized.magicBranch: CNOT with data control and magic-state target, followed by the indicated target outcome.cubicLogicalPhase: Equation (121), as a real polynomial phase.injectionPhaseResource: Equation (126): ideal phase-resource wavefunction; no L2 normalization is asserted.injectionJointWave: Product of the data wavefunction and the ideal target resource in Fig.6.injectionInverseSum: Position-wavefunction pullback for the data-controlled inverse SUM of Fig.6. The ket action is (q1,q2) ↦ (q1,q2-q1).injectionPositionFiber: Ideal target-position outcome fiber. With the unnormalizable resource this is conditional amplitude algebra, not a normalized outcome law.phaseCorrection: Section XI.B (125)–(127): polynomial-phase feed-forward correction.squeezeWave: A finite positive coordinate squeeze, with the L2 normalization retained.cubicWave: Cubic phase gate, on actual data wavefunctions.ShorGate: Actual three-qubit gates used in Fig.7; the Boolean flag chooses S inverse.ShorGate.matrix: Exact matrix of a gate, rather than an independent resource counter.controlledPhaseWord: Fig.7(a), read left to right.inverseControlledPhaseWord: The actual inverse of the preceding circuit.shorWord: Fig.7(b), with both controlled P and controlled P inverse expanded.shorEval: Matrix of a chronological gate list.ccz: Equation (153).shorState: The state in (150), with its actual normalized amplitudes.shorStabilizer: CZ on the two other wires followed by X on wire k, one of the three Shor stabilizers.IsGaussianWave: Normalized finite-mode pure Gaussian wavefunctions. Positivity of the real quadratic form excludes infinite squeezing, and symmetry fixes the actual quadratic coefficient.GaussianGate: Generators of finite affine multimode metaplectic circuits. Fourier, quadratic phases, positive squeezes, beam mixing and displacements generate the affine symplectic operations.GaussianGate.Valid: Infinite squeezing and coincident beam modes are excluded.GaussianGate.act: Actual integral/multiplier action on position wavefunctions, including exact finite mixing.gaussianEval: Finite, chronological composition, including mixing with other Gaussian modes.regularFunctional: Physical wavefunctions embedded as ordinary regular distributions.tensorComb: Explicit tensor product of ideal position combs, with arbitrary logical coefficients.
import Mathlib
import Definitions.Def_QAlgorithms_Defs_Gates
import Definitions.Def_QAlgorithms_Defs_QECC
import Definitions.Def_QAlgorithms_Papers_Independent_Dependency50_P10
import Definitions.Def_QAlgorithms_Papers_Independent_Frontier30_P02
import Definitions.Def_QAlgorithms_Papers_Independent_Frontier30_P10
import Definitions.Def_QAlgorithms_Papers_Independent_Next46_P16
/-!
Statements from Gottesman, Kitaev and Preskill, quant-ph/0008040v3.
Ideal combs are Schwartz-test functionals. No ambient L2 norm is assigned to them.
New definitions in this file belong to this paper; pinned coordinate, symplectic
and vacuum definitions are imported with explicit convention adapters. Compilation is pending.
-/
noncomputable section
open scoped BigOperators
open MeasureTheory Matrix ComplexConjugate
open QAlgorithms.Papers.Independent.Dependency50.P10 (Phase sigma)
namespace QAlgorithms.Papers.Independent.Intakenext100.P12
/-- The source phase convention, with real phase in radians. -/
def cisPhase (t : ℝ) : ℂ := Complex.exp (Complex.I * (t : ℂ))
/-- Ordinary finite logical inner product, conjugate-linear in its first argument. -/
def finiteInner {ι : Type*} [Fintype ι] (x y : ι → ℂ) : ℂ :=
∑ i, conj (x i) * y i
/-- Section II (17), PDF p.3: normalized finite codeword in dimension d. -/
def finiteWord (d r1 r2 n : ℕ) (j : Fin n) (x : ZMod d) : ℂ :=
(Real.sqrt r2 : ℂ)⁻¹ *
∑ k : Fin r2, if x = ((r1 * (j.val + n * k.val) : ℕ) : ZMod d) then 1 else 0
/-- Section II: X^a Z^b, in that order; d is positive at every use below. -/
def finiteError (d : ℕ) (a b : ℤ) (x : ZMod d → ℂ) (j : ZMod d) : ℂ :=
cisPhase (2 * Real.pi * b * (j - (a : ZMod d)).val / d) * x (j - (a : ZMod d))
/-- Section II: encoding a logical vector by the displayed comb basis. -/
def finiteEncode (d r1 r2 n : ℕ) (c : Fin n → ℂ) (x : ZMod d) : ℂ :=
∑ j, c j * finiteWord d r1 r2 n j x
/-- Complete half-open syndrome representatives; these are distinct from the strict central set. -/
def finiteSyndrome (d r1 r2 n : ℕ) (e : (Fin r1 × Fin r2) × Fin n) : ZMod d → ℂ :=
finiteError d (e.1.1.val : ℤ) (e.1.2.val : ℤ) (finiteWord d r1 r2 n e.2)
/-- Strict correction window in (16), without truncated natural-number subtraction. -/
def finiteWindow (r1 r2 : ℕ) (a b : ℤ) : Prop :=
|(a : ℝ)| < (r1 : ℝ) / 2 ∧ |(b : ℝ)| < (r2 : ℝ) / 2
/-- The finite encoder's actual subspace, in the accepted Hilbert-space convention. -/
def finiteCodeSpace (d r1 r2 n : ℕ) [NeZero d] : Submodule ℂ (EuclideanSpace ℂ (ZMod d)) :=
Submodule.span ℂ (Set.range (fun j : Fin n => WithLp.toLp 2 (finiteWord d r1 r2 n j)))
/-- Matrix of the source error X^a Z^b. -/
def finiteErrorMatrix (d : ℕ) (a b : ℤ) : Matrix (ZMod d) (ZMod d) ℂ :=
fun x y => if x = y + (a : ZMod d) then cisPhase (2 * Real.pi * b * y.val / d) else 0
/-- Coherent span of every error in the strict central correction window. -/
def finiteErrorSpace (d r1 r2 : ℕ) [NeZero d] : Submodule ℂ (Matrix (ZMod d) (ZMod d) ℂ) :=
Submodule.span ℂ {E | ∃ a b : ℤ, finiteWindow r1 r2 a b ∧ E = finiteErrorMatrix d a b}
/-- The full conclusion of the finite construction, including perfection and exact KL identities. -/
def FiniteCodeConclusion (d r1 r2 n : ℕ) [NeZero d] : Prop :=
(∀ psi : ZMod d → ℂ,
(finiteError d (r1 * n) 0 psi = psi ∧ finiteError d 0 (r2 * n) psi = psi) ↔
∃ c : Fin n → ℂ, finiteEncode d r1 r2 n c = psi) ∧
(∀ c c2 : Fin n → ℂ,
finiteInner (finiteEncode d r1 r2 n c) (finiteEncode d r1 r2 n c2) = finiteInner c c2) ∧
QAlgorithms.Corrects (finiteCodeSpace d r1 r2 n) (finiteErrorSpace d r1 r2 : Set _) ∧
(∀ j : Fin n,
finiteError d (r1 * n) 0 (finiteWord d r1 r2 n j) = finiteWord d r1 r2 n j ∧
finiteError d 0 (r2 * n) (finiteWord d r1 r2 n j) = finiteWord d r1 r2 n j) ∧
(∀ j : Fin n,
finiteError d r1 0 (finiteWord d r1 r2 n j) =
finiteWord d r1 r2 n (⟨(j.val + 1) % n, Nat.mod_lt _ (Nat.zero_lt_of_lt j.isLt)⟩) ∧
finiteError d 0 r2 (finiteWord d r1 r2 n j) =
fun x => cisPhase (2 * Real.pi * j.val / n) * finiteWord d r1 r2 n j x) ∧
(∀ e f : (Fin r1 × Fin r2) × Fin n,
finiteInner (finiteSyndrome d r1 r2 n e) (finiteSyndrome d r1 r2 n f) =
if e = f then 1 else 0) ∧
Submodule.span ℂ (Set.range (finiteSyndrome d r1 r2 n)) = ⊤ ∧
(∀ a b a2 b2 : ℤ, finiteWindow r1 r2 a b → finiteWindow r1 r2 a2 b2 →
∀ c c2 : Fin n → ℂ,
finiteInner (finiteError d a b (finiteEncode d r1 r2 n c))
(finiteError d a2 b2 (finiteEncode d r1 r2 n c2)) =
if (a, b) = (a2, b2) then finiteInner c c2 else 0)
/-- Grid support of (27); nonzero spacing and positive n are supplied at every use. -/
def combSupportPoint (n : ℕ) (alpha : ℝ) (j : Fin n) (s : ℤ) : ℝ :=
alpha * (j.val + (n : ℝ) * s)
/-- The ideal encoded generalized state, as an explicitly summed Schwartz-test functional. -/
def idealComb (n : ℕ) (alpha : ℝ) (c : Fin n → ℂ)
(f : SchwartzMap ℝ ℂ) : ℂ :=
∑ j, c j * ∑' s : ℤ, f (combSupportPoint n alpha j s)
/-- Multiplication of a comb by a smooth phase, defined through its point masses. -/
def phasedComb (n : ℕ) (alpha : ℝ) (c : Fin n → ℂ) (phase : ℝ → ℝ)
(f : SchwartzMap ℝ ℂ) : ℂ :=
∑ j, c j * ∑' s : ℤ,
cisPhase (phase (combSupportPoint n alpha j s)) * f (combSupportPoint n alpha j s)
/-- Fourier coefficients of an ideal rotor codeword, with m=n*r. These bounded,
periodic sequences represent distributions on the circle, not l2(Z) states. -/
def rotorEncode (n r : ℕ) (c : Fin n → ℂ) (L : ℤ) : ℂ :=
if L % (r : ℤ) = 0 then
(Real.sqrt n : ℂ)⁻¹ * ∑ j : Fin n, c j * cisPhase (-2 * Real.pi * L * j.val / (n * r))
else 0
/-- Actual circle rotation followed by integer momentum translation, in Fourier coefficients. -/
def rotorError (theta : ℝ) (b : ℤ) (psi : ℤ → ℂ) (L : ℤ) : ℂ :=
cisPhase (-(L : ℝ) * theta) * psi (L - b)
/-- Stabilizers (19), in the integer Fourier spectrum. -/
def IsRotorStabilized (n r : ℕ) (psi : ℤ → ℂ) : Prop :=
(∀ L : ℤ, psi (L - (n * r : ℕ)) = psi L) ∧
(∀ L : ℤ, cisPhase (-2 * Real.pi * (L : ℝ) / r) * psi L = psi L)
/-- The strict angular/momentum window of (20), using a central representative of the angle. -/
def rotorCell (n r : ℕ) : Set (ℝ × ℤ) :=
{e | |e.1| < Real.pi / (n * r) ∧ |(e.2 : ℝ)| < (r : ℝ) / 2}
/-- Section IV (28): distributional density kernel, paired after the Wigner change of variables.
This does not multiply two distributions pointwise. -/
def wignerKernel (n : ℕ) (alpha : ℝ) (j : Fin n)
(f : SchwartzMap (ℝ × ℝ) ℂ) : ℂ :=
(2 * Real.pi : ℂ)⁻¹ * ∑' ab : ℤ × ℤ,
∫ p : ℝ,
cisPhase (p * (combSupportPoint n alpha j ab.1 - combSupportPoint n alpha j ab.2)) *
f ((combSupportPoint n alpha j ab.1 + combSupportPoint n alpha j ab.2) / 2, p)
/-- Sign of a Wigner lattice weight; only the odd/odd parity class is negative. -/
def wignerSign (s t : ℤ) : ℂ := if s % 2 = 1 ∧ t % 2 = 1 then -1 else 1
/-- Normalized symmetric q-marginal lattice mean. Marginal pushforward is not defined
for this nonnormalizable distribution; this states the source's oscillatory cancellation. -/
def wignerQMean (n : ℕ) (alpha : ℝ) (j : Fin n) (M : ℕ) (f : SchwartzMap ℝ ℂ) : ℂ :=
((2 * (M : ℝ) + 1 : ℝ) : ℂ)⁻¹ *
∑ s ∈ Finset.Icc (-(M : ℤ)) (M : ℤ), ∑' t : ℤ,
wignerSign s t * f (alpha * j.val + n * alpha * t / 2)
/-- Normalized symmetric p-marginal lattice mean. -/
def wignerPMean (n : ℕ) (alpha : ℝ) (M : ℕ) (f : SchwartzMap ℝ ℂ) : ℂ :=
((2 * (M : ℝ) + 1 : ℝ) : ℂ)⁻¹ *
∑ t ∈ Finset.Icc (-(M : ℤ)) (M : ℤ), ∑' s : ℤ,
wignerSign s t * f (Real.pi * s / (n * alpha))
/-- One-mode restriction of the pinned normalized vacuum wavefunction (source IV, PDF p.5). -/
def oscillatorVacuumProfile (q : ℝ) : ℂ :=
QAlgorithms.Papers.Independent.Next46.P16.vacuumWave 1 (fun _ => q)
/-- Ordered displacement in (29), including the BCH phase exp(i*pi*s*t).
Its center is (s*alpha, 2*pi*t/alpha). -/
def coherentLatticeWave (alpha : ℝ) (s t : ℤ) (q : ℝ) : ℂ :=
cisPhase (2 * Real.pi * t * q / alpha) * oscillatorVacuumProfile (q - s * alpha)
/-- A normalized coherent state with arbitrary real quadrature center. -/
def coherentStart (q0 p0 q : ℝ) : ℂ :=
cisPhase (p0 * (q - q0 / 2)) * oscillatorVacuumProfile (q - q0)
/-- The ordered lattice projection of this coherent state, including the phase convention of (29). -/
def projectedCoherent (alpha q0 p0 : ℝ) (f : SchwartzMap ℝ ℂ) : ℂ :=
∑' st : ℤ × ℤ, ∫ q : ℝ,
cisPhase (2 * Real.pi * st.2 * q / alpha) * coherentStart q0 p0 (q - st.1 * alpha) * f q
/-- Correctable open error cell of (24), with half-cell boundaries excluded. -/
def errorCell (n : ℕ) (alpha : ℝ) : Set (ℝ × ℝ) :=
{uv | |uv.1| < alpha / 2 ∧ |uv.2| < Real.pi / (n * alpha)}
/-- Square-integrable embedded errors with support in the correctable cell, modulo null sets. -/
def SupportedError (n : ℕ) (alpha : ℝ) (eta : (ℝ × ℝ) → ℂ) : Prop :=
MemLp eta 2 volume ∧ ∀ᵐ uv ∂volume, uv ∉ errorCell n alpha → eta uv = 0
/-- Explicit realization of (40), with delta-comb normalization fixed by the Zak isometry.
The square-root factor fixes the otherwise unspecified normalization of ideal codewords. -/
def embeddedWave (n : ℕ) (alpha : ℝ) (c : Fin n → ℂ)
(eta : (ℝ × ℝ) → ℂ) (q : ℝ) : ℂ :=
(Real.sqrt (n * alpha / (2 * Real.pi)) : ℂ) *
∑ j, c j * ∑' k : ℤ,
∫ v : ℝ, eta (q - combSupportPoint n alpha j k, v) *
cisPhase (v * (q + combSupportPoint n alpha j k) / 2)
/-- The physical error Hilbert space uses Lebesgue measure restricted to the open cell. -/
abbrev CellHilbert (n : ℕ) (alpha : ℝ) :=
Lp ℂ 2 ((volume : Measure (ℝ × ℝ)).restrict (errorCell n alpha))
/-- A constructed Zak realization, with its isometry required as a conclusion. -/
def HasExactRealization (n : ℕ) (alpha : ℝ) : Prop :=
∃ U : (PiLp 2 (fun _ : Fin n => CellHilbert n alpha)) →ₗᵢ[ℂ]
Lp ℂ 2 (volume : Measure ℝ),
∀ (c : Fin n → ℂ) (eta : CellHilbert n alpha),
∀ᵐ q ∂(volume : Measure ℝ),
U (WithLp.toLp 2 (fun j => c j • eta)) q =
embeddedWave n alpha c ((errorCell n alpha).indicator (fun uv => eta uv)) q
/-- Weyl displacement exp(i*(-u*p+v*q)) of the explicit ideal comb. -/
def displacedComb (n : ℕ) (alpha u v : ℝ) (c : Fin n → ℂ)
(f : SchwartzMap ℝ ℂ) : ℂ :=
∑ j, c j * ∑' k : ℤ,
cisPhase (v * (combSupportPoint n alpha j k + u / 2)) * f (combSupportPoint n alpha j k + u)
/-- Common +1 eigenfunctionals of the two actual translation/modulation pullbacks. -/
def IsIdealStabilized (n : ℕ) (alpha : ℝ) (T : SchwartzMap ℝ ℂ → ℂ) : Prop :=
(∃ D : SchwartzMap ℝ ℂ →L[ℂ] ℂ, ∀ f, D f = T f) ∧
(∀ f g : SchwartzMap ℝ ℂ, (∀ q, g q = cisPhase (2 * Real.pi * q / alpha) * f q) → T g = T f) ∧
(∀ f g : SchwartzMap ℝ ℂ, (∀ q, g q = f (q + n * alpha)) → T g = T f)
/-- The finite logical cyclic shift, independent of any physical syndrome. -/
def logicalCycle (n : ℕ) (c : Fin n → ℂ) (j : Fin n) : ℂ :=
∑ k : Fin n, if j.val = (k.val + 1) % n then c k else 0
/-- The finite logical clock, with source phase exp(+2*pi*i/n). -/
def logicalClock (n : ℕ) (c : Fin n → ℂ) (j : Fin n) : ℂ :=
cisPhase (2 * Real.pi * j.val / n) * c j
/-- Section VI (46), PDF p.7: sign adapter from the pinned opposite-sign form.
Coordinates are grouped as alpha (p coefficient), then beta (q coefficient).
The imported sigma has upper-right +I, exactly the source Omega. -/
def gkpPair (N : ℕ) (x y : Phase N → ℝ) : ℝ :=
-QAlgorithms.Papers.Independent.Frontier30.P10.symplecticPair x y
/-- Actual Schroedinger translation/modulation exp(i*sqrt(2*pi)*(alpha*p+beta*q)). -/
def schrodingerDisplacement (N : ℕ) (v : Phase N → ℝ) (psi : (Fin N → ℝ) → ℂ)
(x : Fin N → ℝ) : ℂ :=
cisPhase (Real.sqrt (2 * Real.pi) *
∑ i, v (Sum.inr i) * (x i + Real.sqrt (2 * Real.pi) * v (Sum.inl i) / 2)) *
psi (fun i => x i + Real.sqrt (2 * Real.pi) * v (Sum.inl i))
/-- Lattice generated by the rows of M, not its columns. -/
def rowLattice {ι : Type*} [Fintype ι] (M : Matrix ι ι ℝ) : Set (ι → ℝ) :=
{x | ∃ z : ι → ℤ, x = fun j => ∑ i, (z i : ℝ) * M i j}
/-- Source (50). -/
def latticeGram (N : ℕ) (M : Matrix (Phase N) (Phase N) ℝ) :=
M * sigma N * M.transpose
/-- Integral entries of a real matrix. -/
def IntegralMatrix {ι : Type*} (A : Matrix ι ι ℝ) : Prop :=
∀ i j, ∃ k : ℤ, A i j = k
/-- Integer change of row basis with determinant +1 or -1. -/
def Unimodular {ι : Type*} [Fintype ι] [DecidableEq ι] (R : Matrix ι ι ℤ) : Prop :=
R.det = 1 ∨ R.det = -1
/-- Symplectic dual lattice, in the source's integer-pairing convention. -/
def symplecticDual (N : ℕ) (L : Set (Phase N → ℝ)) : Set (Phase N → ℝ) :=
{u | ∀ v ∈ L, ∃ k : ℤ, gkpPair N u v = k}
/-- The particular dual basis chosen by (55)–(59). -/
def dualGenerator (N : ℕ) (M : Matrix (Phase N) (Phase N) ℝ) :=
(latticeGram N M)⁻¹ * M
/-- Euclidean integer dual; used only in the CSS construction. -/
def euclideanDual {ι : Type*} [Fintype ι] (L : Set (ι → ℝ)) : Set (ι → ℝ) :=
{u | ∀ v ∈ L, ∃ k : ℤ, (∑ i, u i * v i) = k}
/-- Explicit position comb on the physical CSS p-translation lattice. -/
def cssComb (N : ℕ) (Mp : Matrix (Fin N) (Fin N) ℝ)
(f : SchwartzMap (Fin N → ℝ) ℂ) : ℂ :=
∑' z : Fin N → ℤ, f (fun j => Real.sqrt (2 * Real.pi) * ∑ i, (z i : ℝ) * Mp i j)
/-- Nonzero common eigenfunctional for the CSS generators described in the source.
The displayed source block matrix uses the generator order (q,p); its physical Weyl
coordinates are adapted by swapping the two grouped coordinate blocks. -/
def HasCSSDistribution (N : ℕ) (Mq Mp : Matrix (Fin N) (Fin N) ℝ) : Prop :=
∃ T : SchwartzMap (Fin N → ℝ) ℂ →L[ℂ] ℂ, T ≠ 0 ∧
(∀ f, T f = cssComb N Mp f) ∧
(∀ i : Fin N, ∀ f g : SchwartzMap (Fin N → ℝ) ℂ,
(∀ x, g x = f (fun j => x j + Real.sqrt (2 * Real.pi) * Mp i j)) → T g = T f) ∧
(∀ i : Fin N, ∀ f g : SchwartzMap (Fin N → ℝ) ℂ,
(∀ x, g x = cisPhase (Real.sqrt (2 * Real.pi) * ∑ j, Mq i j * x j) * f x) → T g = T f)
/-- Two-dimensional row hexagonal lattice in (68). -/
def hexVector (n : ℕ) (z : ℤ × ℤ) : ℝ × ℝ :=
let s := Real.sqrt (2 * n / Real.sqrt 3)
(s * (z.1 + z.2 / 2), s * Real.sqrt 3 * z.2 / 2)
/-- Euclidean plane norm, independent of the product-space max-norm instance. -/
def planeNorm (x : ℝ × ℝ) : ℝ := Real.sqrt (x.1 ^ 2 + x.2 ^ 2)
/-- Source dual lattice labels, not physical displacement coordinates. -/
def hexDualVector (n : ℕ) (z : ℤ × ℤ) : ℝ × ℝ :=
((hexVector n z).1 / n, (hexVector n z).2 / n)
/-- Equal-area square dual lattice, in source label coordinates. -/
def squareDualVector (n : ℕ) (z : ℤ × ℤ) : ℝ × ℝ :=
((z.1 : ℝ) / Real.sqrt n, (z.2 : ℝ) / Real.sqrt n)
/-- A sharp disjoint-open-ball radius, characterized by all separations and one attaining pair. -/
def IsSharpRadius (L : Set (ℝ × ℝ)) (r : ℝ) : Prop :=
0 < r ∧ (∀ v ∈ L, ∀ w ∈ L, v ≠ w → 2 * r ≤ planeNorm (v - w)) ∧
∃ v ∈ L, ∃ w ∈ L, v ≠ w ∧ planeNorm (v - w) = 2 * r
/-- Centered Gaussian density with standard deviation sigma in one quadrature. -/
def quadratureGaussianDensity (sigma x : ℝ) : ℝ :=
Real.exp (-x ^ 2 / (2 * sigma ^ 2)) / Real.sqrt (2 * Real.pi * sigma ^ 2)
/-- Nearest square-lattice correction, with a fixed half-open tie convention. -/
def squareParity (x : ℝ) : Bool :=
decide ((Int.floor (x / Real.sqrt Real.pi + 1 / 2) : ℤ) % 2 = 1)
/-- Exact odd-cell mass, including harmless translations by two logical periods. -/
def squareErrorRate (sigma : ℝ) : ℝ :=
∫ x : ℝ, if squareParity x then quadratureGaussianDensity sigma x else 0
/-- Joint logical X/Z probability induced by independent quadrature displacements. -/
def squareJoint (sigma : ℝ) (a b : Bool) : ℝ :=
∫ x : ℝ, ∫ y : ℝ,
if squareParity x = a ∧ squareParity y = b then
quadratureGaussianDensity sigma x * quadratureGaussianDensity sigma y else 0
/-- Physical dual hexagonal lattice for one encoded qubit. -/
def physicalHex (z : ℤ × ℤ) : ℝ × ℝ :=
(Real.sqrt (2 * Real.pi) * (hexDualVector 2 z).1,
Real.sqrt (2 * Real.pi) * (hexDualVector 2 z).2)
/-- An actual nearest lattice point. The theorem below establishes existence for every input. -/
def hexNearest (x : ℝ × ℝ) : ℤ × ℤ :=
Classical.epsilon (fun z => ∀ w, planeNorm (x - physicalHex z) ≤ planeNorm (x - physicalHex w))
/-- Logical Pauli probabilities under nearest-lattice recovery; stabilizers are even/even labels. -/
def hexProbability (sigma : ℝ) (a b : Fin 2) : ℝ :=
∫ x : ℝ × ℝ,
if (hexNearest x).1 % 2 = (a.val : ℤ) ∧ (hexNearest x).2 % 2 = (b.val : ℤ)
then quadratureGaussianDensity sigma x.1 * quadratureGaussianDensity sigma x.2 else 0
/-- Section IX: named ideal optical operations, with mode labels and actual real parameters. -/
inductive SymplecticOpticalGate (N : ℕ) where
| phase (i : Fin N) (theta : ℝ)
| beam (i j : Fin N) (theta : ℝ)
| squeeze (i : Fin N) (ratio : ℝ)
/-- Legal optical parameters: two different beam modes, and finite positive squeeze ratios. -/
def SymplecticOpticalGate.Valid {N : ℕ} : SymplecticOpticalGate N → Prop
| .phase _ _ => True
| .beam i j _ => i ≠ j
| .squeeze _ r => 0 < r
/-- Exact finite beam mixing, rather than the infinitesimal heuristic (99). -/
def realModeMixing {N : ℕ} (a b : Fin N) (theta : ℝ) : Matrix (Fin N) (Fin N) ℝ :=
fun i j => if i = a ∧ j = a ∨ i = b ∧ j = b then Real.cos theta
else if i = a ∧ j = b then Real.sin theta
else if i = b ∧ j = a then -Real.sin theta
else if i = j then 1 else 0
/-- Phase-space action of each named optical gate, in the source's grouped coordinate order. -/
def SymplecticOpticalGate.matrix {N : ℕ} : SymplecticOpticalGate N → Matrix (Phase N) (Phase N) ℝ
| .phase k theta =>
let A := Matrix.diagonal (fun i => if i = k then Real.cos theta else 1)
let B := Matrix.diagonal (fun i => if i = k then Real.sin theta else 0)
Matrix.fromBlocks A B (-B) A
| .beam a b theta => Matrix.fromBlocks (realModeMixing a b theta) 0 0 (realModeMixing a b theta)
| .squeeze k r => Matrix.fromBlocks
(Matrix.diagonal (fun i => if i = k then r else 1)) 0 0
(Matrix.diagonal (fun i => if i = k then r⁻¹ else 1))
/-- Gates are evaluated in time order. -/
def opticalEval {N : ℕ} (gates : List (SymplecticOpticalGate N)) : Matrix (Phase N) (Phase N) ℝ :=
gates.foldl (fun A g => g.matrix * A) 1
/-- Section XI.A: photon-number-dependent atom phase; atom=false is g, atom=true is e. -/
def atomEvolution (lambda t : ℝ) (psi : ℕ × Bool → ℂ) (k : ℕ) (atom : Bool) : ℂ :=
cisPhase (-lambda * t * k * (if atom then 1 else -1)) * psi (k, atom)
/-- The unnormalized oscillator branch after measuring the atom in the plus/minus basis. -/
def atomBranch (minus : Bool) (psi : ℕ → ℂ) (k : ℕ) : ℂ :=
((cisPhase (Real.pi * k / 4) + (if minus then -1 else 1) *
cisPhase (-Real.pi * k / 4)) / 2) * psi k
/-- Number-sector projector, kept separate from any nonnormalizable ideal comb. -/
def numberSector (r : ℕ) (psi : ℕ → ℂ) (k : ℕ) : ℂ := if k % 4 = r then psi k else 0
/-- The paper's S, equal to the accepted T gate up to exp(-i*pi/8). -/
def paperS : Matrix Bool Bool ℂ := Matrix.diagonal (fun b => cisPhase (if b then Real.pi / 8 else -Real.pi / 8))
/-- Equation (112). -/
def hadamardPlus (b : Bool) : ℂ := if b then Real.sin (Real.pi / 8) else Real.cos (Real.pi / 8)
/-- Equation (114), normalized. -/
def magicState (b : Bool) : ℂ := cisPhase (if b then Real.pi / 8 else -Real.pi / 8) / (Real.sqrt 2 : ℂ)
/-- CNOT with data control and magic-state target, followed by the indicated target outcome. -/
def magicBranch (outcome : Bool) (psi : Bool → ℂ) (b : Bool) : ℂ :=
psi b * magicState (xor outcome b)
/-- Equation (121), as a real polynomial phase. -/
def cubicLogicalPhase (alpha q : ℝ) : ℝ :=
Real.pi / 4 * (2 * (q / alpha) ^ 3 + (q / alpha) ^ 2 - 2 * (q / alpha))
/-- Equation (126): ideal phase-resource wavefunction; no L2 normalization is asserted. -/
def injectionPhaseResource (phi : Polynomial ℝ) (q : ℝ) : ℂ :=
cisPhase (phi.eval q)
/-- Product of the data wavefunction and the ideal target resource in Fig.6. -/
def injectionJointWave (phi : Polynomial ℝ) (psi : ℝ → ℂ) (q : ℝ × ℝ) : ℂ :=
psi q.1 * injectionPhaseResource phi q.2
/-- Position-wavefunction pullback for the data-controlled inverse SUM of Fig.6.
The ket action is (q1,q2) ↦ (q1,q2-q1). -/
def injectionInverseSum (wave : (ℝ × ℝ) → ℂ) (q : ℝ × ℝ) : ℂ :=
wave (q.1, q.2 + q.1)
/-- Ideal target-position outcome fiber. With the unnormalizable resource this is
conditional amplitude algebra, not a normalized outcome law. -/
def injectionPositionFiber (wave : (ℝ × ℝ) → ℂ) (a q : ℝ) : ℂ :=
wave (q, a)
/-- Section XI.B (125)–(127): polynomial-phase feed-forward correction. -/
def phaseCorrection (phi : Polynomial ℝ) (a q : ℝ) : ℂ :=
cisPhase (phi.eval q - phi.eval (q + a))
/-- A finite positive coordinate squeeze, with the L2 normalization retained. -/
def squeezeWave (r : ℝ) (psi : ℝ → ℂ) (q : ℝ) : ℂ :=
(Real.sqrt r : ℂ)⁻¹ * psi (q / r)
/-- Cubic phase gate, on actual data wavefunctions. -/
def cubicWave (gamma : ℝ) (psi : ℝ → ℂ) (q : ℝ) : ℂ :=
cisPhase (gamma * q ^ 3) * psi q
/-- Actual three-qubit gates used in Fig.7; the Boolean flag chooses S inverse. -/
inductive ShorGate where
| phase (inverse : Bool) (target : Fin 3)
| cx (control target : Fin 3)
deriving DecidableEq
/-- Exact matrix of a gate, rather than an independent resource counter. -/
def ShorGate.matrix : ShorGate → Matrix (Fin 3 → Bool) (Fin 3 → Bool) ℂ
| .phase inv t => Matrix.diagonal (fun b =>
cisPhase ((if inv then -1 else 1) * (if b t then Real.pi / 8 else -Real.pi / 8)))
| .cx c t => fun a b => if a = Function.update b t (xor (b t) (b c)) then 1 else 0
/-- Fig.7(a), read left to right. -/
def controlledPhaseWord (c t : Fin 3) : List ShorGate :=
[.cx c t, .phase true t, .cx c t, .phase false c, .phase false t]
/-- The actual inverse of the preceding circuit. -/
def inverseControlledPhaseWord (c t : Fin 3) : List ShorGate :=
[.phase true t, .phase true c, .cx c t, .phase false t, .cx c t]
/-- Fig.7(b), with both controlled P and controlled P inverse expanded. -/
def shorWord : List ShorGate :=
[.cx 1 2] ++ inverseControlledPhaseWord 0 2 ++ [.cx 1 2] ++
controlledPhaseWord 0 2 ++ controlledPhaseWord 0 1
/-- Matrix of a chronological gate list. -/
def shorEval (gates : List ShorGate) : Matrix (Fin 3 → Bool) (Fin 3 → Bool) ℂ :=
gates.foldl (fun A g => g.matrix * A) 1
/-- Equation (153). -/
def ccz : Matrix (Fin 3 → Bool) (Fin 3 → Bool) ℂ :=
Matrix.diagonal (fun b => if b 0 && b 1 && b 2 then -1 else 1)
/-- The state in (150), with its actual normalized amplitudes. -/
def shorState (b : Fin 3 → Bool) : ℂ :=
(if b 0 && b 1 && b 2 then -1 else 1) / (Real.sqrt 8 : ℂ)
/-- CZ on the two other wires followed by X on wire k, one of the three Shor stabilizers. -/
def shorStabilizer (k : Fin 3) : Matrix (Fin 3 → Bool) (Fin 3 → Bool) ℂ :=
fun a b => if a = Function.update b k (!(b k)) then
(if ∀ j : Fin 3, j ≠ k → b j = true then -1 else 1) else 0
/-- Normalized finite-mode pure Gaussian wavefunctions. Positivity of the real quadratic
form excludes infinite squeezing, and symmetry fixes the actual quadratic coefficient. -/
def IsGaussianWave (N : ℕ) (psi : (Fin N → ℝ) → ℂ) : Prop :=
(∃ (c : ℂ) (A : Matrix (Fin N) (Fin N) ℂ) (B : Fin N → ℂ),
A.transpose = A ∧ c ≠ 0 ∧
(∀ x : Fin N → ℝ, x ≠ 0 → 0 < ∑ i, ∑ j, (A i j).re * x i * x j) ∧
∀ x, psi x = c * Complex.exp
(-(∑ i, ∑ j, A i j * (x i : ℂ) * x j) + ∑ i, B i * x i)) ∧
MemLp psi 2 volume ∧ (∫ x : Fin N → ℝ, ‖psi x‖ ^ 2) = 1
/-- Generators of finite affine multimode metaplectic circuits. Fourier, quadratic phases,
positive squeezes, beam mixing and displacements generate the affine symplectic operations. -/
inductive GaussianGate (N : ℕ) where
| fourier (mode : Fin N)
| quadratic (B : Matrix (Fin N) (Fin N) ℝ)
| squeeze (mode : Fin N) (r : ℝ)
| beam (a b : Fin N) (theta : ℝ)
| displacement (u v : Fin N → ℝ)
/-- Infinite squeezing and coincident beam modes are excluded. -/
def GaussianGate.Valid {N : ℕ} : GaussianGate N → Prop
| .squeeze _ r => 0 < r
| .beam a b _ => a ≠ b
| _ => True
/-- Actual integral/multiplier action on position wavefunctions, including exact finite mixing. -/
def GaussianGate.act {N : ℕ} : GaussianGate N → ((Fin N → ℝ) → ℂ) → ((Fin N → ℝ) → ℂ)
| .fourier k, psi => fun x => (Real.sqrt (2 * Real.pi) : ℂ)⁻¹ *
∫ q : ℝ, cisPhase (-(x k) * q) * psi (Function.update x k q)
| .quadratic B, psi => fun x => cisPhase ((∑ i, ∑ j, B i j * x i * x j) / 2) * psi x
| .squeeze k r, psi => fun x => (Real.sqrt r : ℂ)⁻¹ * psi (Function.update x k (x k / r))
| .beam a b theta, psi => fun x => psi ((realModeMixing a b theta).transpose.mulVec x)
| .displacement u v, psi => fun x =>
cisPhase (∑ i, v i * (x i - u i / 2)) * psi (fun i => x i - u i)
/-- Finite, chronological composition, including mixing with other Gaussian modes. -/
def gaussianEval {N : ℕ} (gates : List (GaussianGate N)) (psi : (Fin N → ℝ) → ℂ) :
(Fin N → ℝ) → ℂ :=
gates.foldl (fun state g => g.act state) psi
/-- Physical wavefunctions embedded as ordinary regular distributions. -/
def regularFunctional (N : ℕ) (psi : (Fin N → ℝ) → ℂ)
(f : SchwartzMap (Fin N → ℝ) ℂ) : ℂ := ∫ q : Fin N → ℝ, psi q * f q
/-- Explicit tensor product of ideal position combs, with arbitrary logical coefficients. -/
def tensorComb (N n : ℕ) (alpha : ℝ) (c : (Fin N → Fin n) → ℂ)
(f : SchwartzMap (Fin N → ℝ) ℂ) : ℂ :=
∑ j : Fin N → Fin n, c j * ∑' z : Fin N → ℤ,
f (fun i => combSupportPoint n alpha (j i) (z i))
/-- Sanity check of the scalar phase convention. -/
example : cisPhase 0 = 1 := by simp [cisPhase]
example : wignerSign 1 1 = -1 ∧ wignerSign 0 1 = 1 := by norm_num [wignerSign]
example (n : ℕ) (alpha : ℝ) : idealComb n alpha 0 = 0 := by
funext f
simp [idealComb]
example (psi : ℝ → ℂ) : phaseCorrection 0 3 7 * psi 7 = psi 7 := by
simp [phaseCorrection, cisPhase]
example : opticalEval ([] : List (SymplecticOpticalGate 1)) = 1 := rfl
example : shorEval [] = 1 := rfl
example (wave : (ℝ × ℝ) → ℂ) (q : ℝ × ℝ) :
injectionInverseSum wave q = wave (q.1, q.2 + q.1) := rfl
example (psi : ℝ → ℂ) (a : ℝ) :
injectionPositionFiber (injectionJointWave 0 psi) a = psi := by
funext q
simp [injectionPositionFiber, injectionJointWave, injectionPhaseResource, cisPhase]
example (d : ℕ) (psi : ZMod d → ℂ) : finiteError d 0 0 psi = psi := by
funext j
simp [finiteError, cisPhase]
example (r : ℕ) (psi : ℕ → ℂ) : numberSector r (numberSector r psi) = numberSector r psi := by
funext k
by_cases hk : k % 4 = r <;> simp [numberSector, hk]
example : oscillatorVacuumProfile 0 = (Real.rpow Real.pi (-(1 : ℝ) / 4) : ℂ) := by
simp [oscillatorVacuumProfile, QAlgorithms.Papers.Independent.Next46.P16.vacuumWave]
example (x y : Phase 0 → ℝ) : gkpPair 0 x y = 0 := by
simp [gkpPair, QAlgorithms.Papers.Independent.Frontier30.P10.symplecticPair]
end QAlgorithms.Papers.Independent.Intakenext100.P12
Read-back
What the Lean code literally says, in plain math · gpt-6.1-sol
QAlgorithms.Papers.Independent.Intakenext100.P12.CellHilbert
For every natural number and real number , this abbreviates the complex space for Lebesgue measure on restricted to
Its elements are equivalence classes of square-integrable complex functions, identified when they agree almost everywhere for that restricted measure. There are no positivity assumptions; division by zero is zero, and if or , the restricted set is empty and this space is the zero space.
QAlgorithms.Papers.Independent.Intakenext100.P12.FiniteCodeConclusion
For natural numbers with , this defines a proposition as follows. Put , write for a residue representative, and define
Let be the complex span of the in Euclidean space on , and let be the complex span of the matrices for integer pairs satisfying and . For in , put . The proposition is the conjunction of these eight requirements: (1) for every function , the two equalities and hold if and only if there exists a coefficient function with ; (2) for every two coefficient functions , ; (3) there exists a map on complex matrices on admitting a finite Kraus representation
for some natural number and matrices , such that, for every matrix and every with ,
(4) every is fixed by both and ; (5) for every , and ; (6) for all , is if and otherwise; (7) the complex span of all is the entire function space ; and (8) for all integers satisfying both strict window conditions, and all coefficient functions ,
Here denotes an indicator, vector outer products have entries , and vector norms are Euclidean. No positivity assumption on or arithmetic relation among the parameters is part of this definition. Empty sums are and ; the cyclic-index assertion has no instances when . If , , or , the syndrome family is empty, so requirement (7) cannot hold because makes the ambient function space nonzero.
QAlgorithms.Papers.Independent.Intakenext100.P12.GaussianGate.Valid
For any natural number and any formal instruction on modes, this predicate holds for a squeeze instruction exactly when its real parameter is strictly positive, and for a beam instruction exactly when its two mode indices are distinct. It holds unconditionally for Fourier, quadratic, and displacement instructions, so in particular the quadratic matrix is unrestricted.
QAlgorithms.Papers.Independent.Intakenext100.P12.GaussianGate.act
For every natural number , formal instruction , and arbitrary function , this defines a new function by the following formulas, with denoting replacement of coordinate :
Here is real, and is if or ; otherwise it is if , otherwise if , otherwise if , and otherwise, with these cases taken in the stated order. No validity, Gaussian, or integrability hypothesis is required: is allowed, and when , the real square root and its totalized inverse make the squeeze output identically zero; division by zero is interpreted as zero. The Fourier integral is the totalized Bochner integral, which is zero when its integrand is not integrable.
QAlgorithms.Papers.Independent.Intakenext100.P12.GaussianGate
For every natural number , this introduces a type of formal instructions with five constructors: a Fourier instruction carrying a mode ; a quadratic instruction carrying an arbitrary real matrix ; a squeeze instruction carrying a mode and an arbitrary real parameter ; a beam instruction carrying modes and an arbitrary real angle ; and a displacement instruction carrying two vectors . These constructors impose no symmetry condition on , positivity condition on , or distinctness condition on . For , constructors requiring a mode have no instances, while the quadratic and displacement constructors remain available.
QAlgorithms.Papers.Independent.Intakenext100.P12.HasCSSDistribution
For every natural number and real matrices , this property means that there exists a nonzero continuous complex-linear functional on the space of complex-valued Schwartz functions on such that, for every such ,
Additionally, for every and every pair of Schwartz functions , each of the following pointwise identities implies : for every , or for every . The infinite sum has value if its family is not summable. The definition permits , when the invariance conditions have no indices and the displayed sum is evaluation at the unique point of .
QAlgorithms.Papers.Independent.Intakenext100.P12.HasExactRealization
For every natural number and real number , put
This property asserts the existence of a complex-linear isometry
where the finite direct sum has norm . For every coefficient function and every , let be its chosen function representative on , extended by zero outside ; then, for Lebesgue almost every ,
The exceptional null set may depend on and , and surjectivity of is not required. Integrals and infinite sums are totalized to zero when not integrable or not summable. No positivity assumptions are imposed: division by zero is zero, and when or , and the domain Hilbert space are zero and the displayed right-hand side is zero.
QAlgorithms.Papers.Independent.Intakenext100.P12.IdealMeterReadout
For a complex number and an arbitrary function , this predicate means that and, for every real ,
No linearity, continuity, measurability, or other condition on is included. For , the predicate is false.
QAlgorithms.Papers.Independent.Intakenext100.P12.IntegralMatrix
For any index type and any real matrix with both rows and columns indexed by , this predicate means that for every pair there exists an integer , regarded as a real number, such that . The index type need not be finite; when it is empty, the condition holds vacuously.
QAlgorithms.Papers.Independent.Intakenext100.P12.IsGaussianWave
For every natural number , including , and every function , this predicate means that there exist , a complex matrix , and such that , , for every nonzero real vector , and, pointwise for every ,
it additionally requires that belong to with respect to Lebesgue measure and that . When , the sums are empty and the condition on nonzero vectors is vacuous.
QAlgorithms.Papers.Independent.Intakenext100.P12.IsIdealStabilized
For any natural number , real number , and function , where is the space of complex Schwartz functions, this predicate means that agrees everywhere with a continuous complex-linear functional, and that for every pair of Schwartz functions , both of the following implications hold: if for every real , then ; and if for every real , then . No positivity assumption on or is imposed. Division by zero has value zero, so when both invariance conditions are automatic; the translation condition is also automatic whenever . The zero functional is included.
QAlgorithms.Papers.Independent.Intakenext100.P12.IsRotorStabilized
For natural numbers and an arbitrary function , this predicate means that both identities
hold for every integer . The first subtraction takes place in , and the second identity uses real division. No normalization or summability is required. If , division by zero gives zero, both identities are automatic, and every satisfies the predicate. If , the first identity is automatic while the second remains required.
QAlgorithms.Papers.Independent.Intakenext100.P12.IsSharpRadius
For a set and a real number , this predicate means that , that every two distinct points satisfy
and that there exist distinct for which equality holds. In particular, the predicate requires an attaining pair of distinct points and cannot hold for an empty set or a singleton.
QAlgorithms.Papers.Independent.Intakenext100.P12.ShorGate.matrix
This assigns to each gate description a complex matrix whose rows and columns are indexed by Boolean triples. For a phase description with inverse flag and target , the matrix is diagonal, with entry at a triple equal to
For a controlled-X description with control and target , its entry in row , column is exactly when is obtained from by replacing bit with , and is otherwise. The indices may be equal; in that case the replaced target bit is always false.
QAlgorithms.Papers.Independent.Intakenext100.P12.ShorGate
This defines a type of gate descriptions with exactly two constructors: a phase description specified by a Boolean inverse flag and a target in , and a controlled-X description specified by a control and a target in . The control and target may coincide. Equality between descriptions is decidable.
QAlgorithms.Papers.Independent.Intakenext100.P12.SupportedError
For every natural number , real number , and function , this property means that is almost everywhere strongly measurable and has finite norm with respect to Lebesgue measure on , and that, for Lebesgue almost every ,
The vanishing requirement is almost everywhere, rather than pointwise. There are no positivity assumptions on or ; with division by zero defined as zero, the displayed set is empty if or , and in those cases the property requires almost everywhere.
QAlgorithms.Papers.Independent.Intakenext100.P12.SymplecticOpticalGate.Valid
For every natural number , this defines a predicate on the three kinds of gate descriptions: every phase gate is valid, regardless of its real angle; a beam gate with indices is valid exactly when , regardless of its real angle; and a squeeze gate with real ratio is valid exactly when . Thus zero and negative squeeze ratios are excluded by this predicate, although they remain permitted in the underlying gate descriptions. For , there are no gate descriptions to which the predicate can be applied.
QAlgorithms.Papers.Independent.Intakenext100.P12.SymplecticOpticalGate.matrix
For every natural number , this assigns each gate description a real matrix indexed by two disjoint copies of , hence a block matrix. A phase gate at index with real angle is assigned
A beam gate with indices and angle is assigned , where, when , is the identity outside those two indices and has block in the ordered indices ; when , is diagonal with entry at and elsewhere. A squeeze gate at index with real ratio is assigned
No validity assumption is required: coincident beam indices and nonpositive squeeze ratios are included, and when . For , there are no gate descriptions to map.
QAlgorithms.Papers.Independent.Intakenext100.P12.SymplecticOpticalGate
For every natural number , this defines a type of formal gate descriptions with three constructors: a phase gate carrying an index and an arbitrary real angle ; a beam gate carrying two indices and an arbitrary real angle ; and a squeeze gate carrying an index and an arbitrary real ratio . The constructors themselves impose neither for beam gates nor positivity of squeeze ratios. When , there are no gate descriptions, since every constructor requires an index in the empty set.
QAlgorithms.Papers.Independent.Intakenext100.P12.Unimodular
For any finite index type with decidable equality and any integer matrix indexed by , is called unimodular precisely when or . The index type may be empty; its empty matrix has determinant and therefore satisfies this definition.
QAlgorithms.Papers.Independent.Intakenext100.P12.atomBranch
For every Boolean value , every function , and every natural number , this defines
No normalization, summability, or support condition is imposed on . At , the false branch equals , and the true branch equals zero.
QAlgorithms.Papers.Independent.Intakenext100.P12.atomEvolution
For arbitrary real numbers , an arbitrary function , a natural number , and a Boolean value , this defines
There are no positivity, normalization, or summability assumptions. In particular, when , , or , the multiplier is .
QAlgorithms.Papers.Independent.Intakenext100.P12.ccz
This defines a complex matrix indexed by three-bit strings : its off-diagonal entries are , and its diagonal entry at is if , and otherwise.
QAlgorithms.Papers.Independent.Intakenext100.P12.cisPhase
For every real number , this defines the complex number , where is the imaginary unit.
QAlgorithms.Papers.Independent.Intakenext100.P12.coherentLatticeWave
For arbitrary real numbers and arbitrary integers , this defines
There is no positivity or nonzero assumption on ; division by zero is defined to be zero, so at this expression is for every .
QAlgorithms.Papers.Independent.Intakenext100.P12.coherentStart
For arbitrary real numbers , this defines
QAlgorithms.Papers.Independent.Intakenext100.P12.combSupportPoint
For a natural number , a real number , an index , and an integer , this defines the real number
There is no positivity or nonzero assumption on ; if , the value is zero. When , there is no admissible index .
QAlgorithms.Papers.Independent.Intakenext100.P12.controlledPhaseWord
For every control index and target index in , including , this defines the ordered list of five gate descriptions
Here a controlled-X description specifies the update , and a phase description with flag and target specifies the diagonal factor , where and .
QAlgorithms.Papers.Independent.Intakenext100.P12.cssComb
For every natural number , every real matrix , and every complex-valued Schwartz function on , define
No nonsingularity or summability hypothesis is imposed: the infinite sum uses the total sum convention, which returns when the family is not summable. When , the index set has one element and this expression is .
QAlgorithms.Papers.Independent.Intakenext100.P12.cubicLogicalPhase
For all real , this defines
There is no restriction on ; division by zero is defined to be zero, so for every .
QAlgorithms.Papers.Independent.Intakenext100.P12.cubicWave
For every real , every function , and every real , this defines
No regularity or normalization of is assumed.
QAlgorithms.Papers.Independent.Intakenext100.P12.displacedComb
For every natural number , arbitrary real numbers , coefficient function , and complex Schwartz function on , this defines
No positivity, nonzero, or normalization assumptions are imposed on the parameters or coefficients, and no summability hypothesis is part of the definition; a nonsummable family has totalized sum zero. When , the finite sum is empty and the value is zero.
QAlgorithms.Papers.Independent.Intakenext100.P12.dualGenerator
For every natural number , including , and every real matrix indexed by , where , define its dual generator to be
There is no invertibility hypothesis in this definition: the matrix inverse is total and equals the zero matrix when its argument is singular.
QAlgorithms.Papers.Independent.Intakenext100.P12.embeddedWave
For every natural number , real number , coefficient function , arbitrary function , and real number , this defines
where the square root is regarded as a complex scalar and integration uses Lebesgue measure. No measurability, support, integrability, summability, or normalization assumptions are imposed on or . The integrals and infinite sums are totalized to zero when the corresponding integrand is not integrable or family is not summable. The real square root of a nonpositive number is zero, so the defined function is zero when or ; for , the finite sum is also empty.
QAlgorithms.Papers.Independent.Intakenext100.P12.errorCell
For every natural number , including zero, and every real number , this defines the subset
Both inequalities are strict. Division by zero is zero, so this set is empty when ; it is also empty whenever .
QAlgorithms.Papers.Independent.Intakenext100.P12.euclideanDual
For any finite index type and any set , its Euclidean dual is
If is empty, this is the whole space. If is empty, the sum is , and the dual is the whole zero-dimensional space for every .
QAlgorithms.Papers.Independent.Intakenext100.P12.finiteCodeSpace
For natural numbers with the additional assumption , this defines the complex linear subspace of the Euclidean space of complex functions on spanned by the vectors
The vectors are taken with the usual Euclidean norm on their coordinates. No independence, normalization, or relation between the parameters is assumed. If or , the resulting subspace is .
QAlgorithms.Papers.Independent.Intakenext100.P12.finiteEncode
For arbitrary natural numbers , coefficients , and , this defines
All matching indices are counted, even when they give the same residue. There are no normalization or positivity assumptions. The result is the zero function if or , with ; when , the residue type and equality are interpreted in .
QAlgorithms.Papers.Independent.Intakenext100.P12.finiteError
For every natural number , integers , function , and , this defines
where subtraction and the cast of take place in the residue type, and, for , is the representative in . The parameter may be : in that case the residue type is , real division by is defined to be , and this formula reduces to .
QAlgorithms.Papers.Independent.Intakenext100.P12.finiteErrorMatrix
For every natural number and integers , this defines the complex matrix indexed by whose entries are
The equality and addition use the residue type; for , is its least nonnegative representative. The definition also permits , when the index type is and division by makes the nonzero entries equal to .
QAlgorithms.Papers.Independent.Intakenext100.P12.finiteErrorSpace
For natural numbers with , this defines the complex linear subspace of matrices on spanned by all matrices
where range over integers satisfying and , and . This space includes arbitrary finite complex linear combinations of these matrices. If either or , the generating set is empty and the space is .
QAlgorithms.Papers.Independent.Intakenext100.P12.finiteInner
For any finite index type , equipped with a specified enumeration of its elements, and any functions , this defines
If is empty, this sum is .
QAlgorithms.Papers.Independent.Intakenext100.P12.finiteSyndrome
For arbitrary natural numbers and an index with , , and , this defines the function on given by
For , denotes the least nonnegative residue representative. If , the residue type is and division by makes the exponential factor . If any of is , there are no indices .
QAlgorithms.Papers.Independent.Intakenext100.P12.finiteWindow
For natural numbers and integers , this defines the proposition
with both inequalities interpreted in and both strict. If either or , no pair of integers satisfies the proposition.
QAlgorithms.Papers.Independent.Intakenext100.P12.finiteWord
For arbitrary natural numbers , an index , and , this defines the complex value
Thus repeated occurrences of the same residue are counted with multiplicity. No positivity assumptions or relation among the four parameters are imposed. If , the value is , using the empty sum and the convention ; if , no index exists. When , the residue type is , and the displayed equality is an equality of integers.
QAlgorithms.Papers.Independent.Intakenext100.P12.gaussianEval
For every natural number , every finite list of formal instructions, and every function , this defines the result of applying first, then , through ; the empty list returns . Each instruction replaces the current function by, respectively,
The real matrix has entries, in order of precedence, at and , at , at , at remaining diagonal positions, and elsewhere. The list need not consist of valid instructions, and the input need not be Gaussian or integrable; equal beam indices are permitted, a squeeze with produces the zero function, division by zero is zero, and a nonintegrable Fourier integrand has integral zero.
QAlgorithms.Papers.Independent.Intakenext100.P12.gkpPair
For any natural number and real-valued functions on the disjoint union of two copies of , write and for their values on the first and second copies. This defines the real pairing . For the sum is empty and the pairing is zero.
QAlgorithms.Papers.Independent.Intakenext100.P12.hadamardPlus
This defines a complex-valued function on Boolean values by
where both real trigonometric values are regarded as complex numbers with zero imaginary part.
QAlgorithms.Papers.Independent.Intakenext100.P12.hexDualVector
For every natural number and pair of integers , put and define
There is no positivity assumption on ; when , real division by zero is defined to be , so this vector is .
QAlgorithms.Papers.Independent.Intakenext100.P12.hexNearest
For every , put
This defines an integer pair by classical choice from the predicate
If any integer pair satisfies this predicate, the choice returns one such pair, with no specified rule for ties. If none satisfies it, the choice still returns an integer pair, without a nearest-point guarantee.
QAlgorithms.Papers.Independent.Intakenext100.P12.hexProbability
For every real and , define
and let be the classically chosen pair satisfying for every integer pair , whenever such a pair exists; otherwise it is an arbitrary chosen integer pair. Here . The definition is
The integral uses Lebesgue measure and is totalized to zero if the integrand is not integrable. There is no positivity assumption on ; at its value is zero using totalized division.
QAlgorithms.Papers.Independent.Intakenext100.P12.hexVector
For every natural number and pair of integers , define and
with the integers regarded as real numbers. This includes , when the resulting vector is for every .
QAlgorithms.Papers.Independent.Intakenext100.P12.idealComb
For every natural number , real number , complex coefficient vector , and complex-valued Schwartz function on , this defines
The inner sum is the total infinite-sum operation: it equals the usual sum when the family is summable and is zero otherwise. No restriction on or separate summability hypothesis is imposed. For , the outer sum is empty and the value is zero.
QAlgorithms.Papers.Independent.Intakenext100.P12.injectionInverseSum
For every function and every , the declaration defines
No regularity or integrability assumption is imposed on .
QAlgorithms.Papers.Independent.Intakenext100.P12.injectionJointWave
For every real polynomial , every function , and every pair , the declaration defines
No integrability or normalization assumption is imposed on .
QAlgorithms.Papers.Independent.Intakenext100.P12.injectionPhaseResource
For every polynomial with real coefficients and every real , the complex-valued function defined by this declaration is
There is no restriction on the degree of , including when is the zero polynomial.
QAlgorithms.Papers.Independent.Intakenext100.P12.injectionPositionFiber
For every function and all real , the declaration defines
This is pointwise evaluation, with no regularity or integrability assumption on .
QAlgorithms.Papers.Independent.Intakenext100.P12.inverseControlledPhaseWord
For any indices , including , this defines the ordered list . Here denotes the phase instruction whose matrix is diagonal on bit strings , with diagonal entry , and denotes the instruction whose matrix entry at row , column is if is obtained from by replacing with , and otherwise.
QAlgorithms.Papers.Independent.Intakenext100.P12.latticeGram
For any natural number and real matrix indexed by the disjoint union of two copies of , this defines the matrix , where and is the transpose of . No invertibility or integrality assumption is imposed on . For this is the unique matrix on an empty index set.
QAlgorithms.Papers.Independent.Intakenext100.P12.logicalClock
For any natural number , coefficient vector , and index , this defines . For there is no admissible index , so the resulting vector is the unique function on the empty index set; for this operation is the identity.
QAlgorithms.Papers.Independent.Intakenext100.P12.logicalCycle
For any natural number , coefficient vector , and index , this defines . For positive , this moves each coefficient at index to index . For there is no admissible index , and the resulting coefficient vector is the unique function on the empty index set.
QAlgorithms.Papers.Independent.Intakenext100.P12.magicBranch
For every Boolean outcome , every function , and every Boolean , this defines
where is exclusive or. No normalization of is required.
QAlgorithms.Papers.Independent.Intakenext100.P12.magicState
For each Boolean , this defines the complex number
QAlgorithms.Papers.Independent.Intakenext100.P12.meterCoherent
For every complex number and natural number , this defines the complex number
The real exponential and square root are regarded as complex scalars. The definition includes and : , using , and for .
QAlgorithms.Papers.Independent.Intakenext100.P12.meterEvolution
For arbitrary real numbers , any function , any real , and any natural number , this defines
There are no regularity, normalization, or positivity assumptions. In particular, the multiplier is one when any of is zero.
QAlgorithms.Papers.Independent.Intakenext100.P12.modularFiber
For arbitrary real numbers and a complex-valued Schwartz function on , this defines
There is no assumption that is positive or nonzero. The primed sum is the total infinite sum, assigned zero if the family is not summable; consequently, for the value is zero for every , whether the repeated value is zero or nonzero.
QAlgorithms.Papers.Independent.Intakenext100.P12.modular_position_preparation
Let be a positive natural number, let , and let and satisfy and for every real , where . Set and . The theorem asserts all six of the following statements:
Here denotes the complex-valued Schwartz functions, all integrals use Lebesgue measure, and primed sums are total infinite sums, assigned zero if not summable. The third assertion quantifies over every complex , including zero, independently of the fixed nonzero in the readout hypothesis.
QAlgorithms.Papers.Independent.Intakenext100.P12.numberSector
For every natural number , every function , and every natural number , this defines
The parameter is unrestricted: for , this is the zero function. No normalization or summability condition is required.
QAlgorithms.Papers.Independent.Intakenext100.P12.opticalEval
For every natural number and every finite list of gate descriptions , this defines its value as the real matrix
with value for the empty list. Here the indices consist of two disjoint copies of , and is obtained from as follows: a phase gate gives , where is diagonal with entry at and elsewhere, and is diagonal with entry at and elsewhere; a beam gate gives , where for the matrix is the identity outside and has block there, while for it is diagonal with entry at and elsewhere; and a squeeze gate gives a diagonal block matrix whose first block has entry at , whose second block has entry at , and whose other diagonal entries are . No validity condition is imposed, and the inverse of zero is taken to be zero. When , only the empty list exists.
QAlgorithms.Papers.Independent.Intakenext100.P12.oscillatorVacuumProfile
For every real number , this defines the complex number
with the real expression on the right regarded as a complex number.
QAlgorithms.Papers.Independent.Intakenext100.P12.paperS
This defines the complex matrix indexed by Boolean values, in the order , as
Thus its off-diagonal entries are zero, and its diagonal entry at is when and when .
QAlgorithms.Papers.Independent.Intakenext100.P12.phaseCorrection
For every real polynomial and all real , this defines
QAlgorithms.Papers.Independent.Intakenext100.P12.phasedComb
For every natural number , real number , complex coefficient vector , arbitrary function , and complex-valued Schwartz function on , this defines
No regularity assumption is made on , and may be zero or negative. Each inner infinite sum is zero if its family is not summable. For , the value is zero because the outer sum is empty.
QAlgorithms.Papers.Independent.Intakenext100.P12.physicalHex
For every integer pair , this defines the real pair
Thus the coordinates are obtained by multiplying by the coordinates of .
QAlgorithms.Papers.Independent.Intakenext100.P12.planeNorm
For every real pair , define its plane norm by , using the nonnegative real square root.
QAlgorithms.Papers.Independent.Intakenext100.P12.projectedCoherent
For arbitrary real numbers and every complex Schwartz function on , this defines
The integral is with respect to Lebesgue measure. No assumption on or summability hypothesis is imposed: division by zero is zero, a nonintegrable integrand has totalized integral zero, and a nonsummable family has totalized sum zero.
QAlgorithms.Papers.Independent.Intakenext100.P12.quadratureGaussianDensity
For arbitrary real numbers and , this defines
There is no positivity or nonzero assumption on . Negative gives the same expression as , and at the value is zero for every , using the convention that division by zero is zero.
QAlgorithms.Papers.Independent.Intakenext100.P12.realModeMixing
For every natural number , indices , and real angle , this defines a real matrix by the following ordered cases for its row and column indices :
There is no assumption that ; if , the matrix is diagonal with entry at and entry at every other index. For , no choices of exist.
QAlgorithms.Papers.Independent.Intakenext100.P12.regularFunctional
For every natural number , every function , and every complex-valued Schwartz function on , this defines
The integral uses Lebesgue measure, and the product contains no complex conjugation. No measurability or integrability assumption is imposed on ; the integral is the total Bochner integral, which is assigned zero when its integrand is not integrable. The definition includes .
QAlgorithms.Papers.Independent.Intakenext100.P12.rotorCell
For natural numbers , this defines the subset of consisting exactly of the pairs satisfying
with interpreted as a real number in the second inequality. Both inequalities are strict. There are no positivity hypotheses on ; if either is zero, the set is empty, using the convention that real division by zero is zero.
QAlgorithms.Papers.Independent.Intakenext100.P12.rotorEncode
For natural numbers , a complex coefficient vector , and an integer , this defines
where the remainder is integer remainder and the divisions in the exponential are real divisions. No positivity hypotheses are imposed. Division by zero and inversion of zero both give zero in these formulas; consequently, gives value zero. If , the remainder condition is , so only uses the first branch, whose exponential factors are then all one.
QAlgorithms.Papers.Independent.Intakenext100.P12.rotorError
For every real number , integer , arbitrary function , and integer , this defines
There are no normalization, summability, or regularity assumptions on , and no restrictions on or .
QAlgorithms.Papers.Independent.Intakenext100.P12.rowLattice
For any type equipped with a finite enumeration and any real matrix with rows and columns indexed by , this defines the set of all vectors for which there exists an integer vector satisfying for every . Thus the set consists of all integer linear combinations of the rows, with no independence or invertibility assumption on . If is empty, the set contains the unique empty vector.
QAlgorithms.Papers.Independent.Intakenext100.P12.schrodingerDisplacement
For any natural number , real vector indexed by two copies of , arbitrary function , and point , write and for the components on the first and second copies and put . This defines . No measurability, integrability, or normalization of is assumed. When , the sum is empty, the phase is one, and this operation leaves the function on the singleton configuration space unchanged.
QAlgorithms.Papers.Independent.Intakenext100.P12.shorEval
For every finite list of three-bit instructions , this defines the complex matrix , indexed by , with the empty list giving the identity matrix. For a phase instruction with index and Boolean inverse flag , is diagonal with entry , where when is true and otherwise. For an instruction with control and target , its matrix entry at row , column is if , and otherwise; no requirement is imposed.
QAlgorithms.Papers.Independent.Intakenext100.P12.shorStabilizer
For every , this defines a complex matrix indexed by three-bit strings : the entry is unless is obtained from by flipping bit ; when it is, the entry is if for every , and otherwise. Thus the sign depends on the other two bits of the column string .
QAlgorithms.Papers.Independent.Intakenext100.P12.shorState
For every three-bit string , this defines a complex amplitude equal to if all three bits are , and otherwise.
QAlgorithms.Papers.Independent.Intakenext100.P12.shorWord
This defines the following ordered list of seventeen instructions on three bits:
Here the bits are indexed by ; the matrix of is diagonal with entry at bit string , and the matrix of has entry at row , column exactly when , and entry otherwise.
QAlgorithms.Papers.Independent.Intakenext100.P12.squareDualVector
For every natural number and integer pair , this defines the real pair
The definition includes : division by zero is defined to be zero, so the resulting pair is for every in that case.
QAlgorithms.Papers.Independent.Intakenext100.P12.squareErrorRate
For every real , this defines the real number
where integration is with respect to Lebesgue measure. No restriction on is imposed; at the integrand and integral are zero under the convention that division by zero is zero. The integral is the totalized integral, whose value is zero if the integrand is not integrable.
QAlgorithms.Papers.Independent.Intakenext100.P12.squareJoint
For every real and Boolean values , let be true exactly when , and let
This defines the iterated Lebesgue integral
There is no restriction on ; at this is zero using totalized division. Each integral is totalized, with value zero when its integrand is not integrable.
QAlgorithms.Papers.Independent.Intakenext100.P12.squareParity
For every real number , this defines a Boolean value that is true exactly when
and false otherwise. The remainder is the integer remainder modulo , including for negative integers, and the floor formula fixes the value at every interval boundary.
QAlgorithms.Papers.Independent.Intakenext100.P12.squeezeWave
For every real , every function , and every real , this defines
with the real scalar interpreted in . No measurability, integrability, or positivity hypothesis is imposed. The real square root is zero for , and the inverse of zero is zero, so is the zero function whenever .
QAlgorithms.Papers.Independent.Intakenext100.P12.symplecticDual
For every natural number , including , put . For any set , its symplectic dual is the set of all such that, for every , there exists an integer satisfying
If is empty, every belongs to the dual. When , the pairing is the empty sum , so the dual is the whole zero-dimensional space for every .
QAlgorithms.Papers.Independent.Intakenext100.P12.tensorComb
For natural numbers , a real number , coefficients , and a complex-valued Schwartz function on , this defines
There are no positivity assumptions on . The primed sum is the total infinite sum, assigned zero if the indexed family is not summable. If and , the outer sum is empty and the value is zero; if , both indexing spaces contain just the empty tuple and the value is .
QAlgorithms.Papers.Independent.Intakenext100.P12.wignerKernel
For a natural number , real number , index , and complex-valued Schwartz function on , this defines
The integral is with respect to Lebesgue measure, and the infinite sum is indexed jointly by . No positivity or nonzero condition is imposed on , and no separate integrability or summability hypothesis is supplied: a nonintegrable integrand has total integral zero, and a nonsummable family has total sum zero. When , there is no admissible .
QAlgorithms.Papers.Independent.Intakenext100.P12.wignerPMean
For natural numbers , a real number , and a complex-valued Schwartz function on , this defines
The finite sum includes both endpoints, including the single term when . No positivity or nonzero assumptions are imposed on or ; real division by zero gives zero, and each inner infinite sum is zero when its family is not summable.
QAlgorithms.Papers.Independent.Intakenext100.P12.wignerQMean
For natural numbers , a real number , an index , and a complex-valued Schwartz function on , this defines
The finite sum includes both endpoints, and each inner infinite sum is zero if its family is not summable. No positivity or nonzero assumption is imposed on . The case is included, with only in the finite sum; when , there is no admissible .
QAlgorithms.Papers.Independent.Intakenext100.P12.wignerSign
For any integers , this defines the complex number
Thus the value is exactly when both integers are odd, including negative odd integers.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.