Theta Series and Lattice Analytics
Counting Lattice Points: The Theta Series
When we evaluate the union-bound error probability of a lattice code, we need to count how many lattice points sit at each squared distance from the origin: how many at distance , how many at , and so on. The generating function that packages all of these counts into a single object is the theta series . The theta series is the "spectrum" of a lattice — the analogue of the weight enumerator of a code, or the power spectral density of a signal — and it does all the heavy lifting in three places:
- Performance analysis. The union-bound expansion reads off of .
- Optimality proofs. Viazovska's proofs use modular-form properties of the theta series of and .
- Code construction. Matching theta-series coefficients between and is the numerical fingerprint of a good coding lattice.
This section introduces the theta series, computes it for the canonical lattices, and illustrates how its first few coefficients are read off the lattice.
Definition: Theta Series
Theta Series
The theta series of a lattice is the formal power series where is the number of lattice points of squared norm . In particular, (the origin) and (the kissing number).
The series converges as a holomorphic function of in the open unit disk . It is often written with the substitution for in the upper half-plane, which makes the modular-form structure explicit.
Two lattices can have the same theta series without being isometric (Milnor's -dimensional example: and ). However, for small dimensions and for the classical lattices we care about, the theta series is a very effective fingerprint.
Theorem: Theta Series of (Jacobi)
The theta series of the integer lattice factors across dimensions: In particular, has , the number of ways to write as a sum of squares of integers.
A lattice point is a tuple of integers, and . So the theta-series coefficient is the count of -tuples summing to in squares, which factors as an -fold convolution of the 1D coefficient .
Use the product formula .
Separation of sum
.
Jacobi's formula
The 1D series is one of Jacobi's four theta functions. Expanding: gives ; give ; give ; etc. So .
Consequence
For : . The coefficient is the count of representations of as a sum of two squares, a classical number-theoretic quantity computed by Gauss and Fermat.
Example: First Coefficients of and
Compute the first few coefficients of the theta series and . Compare the kissing numbers to the values (for ) and (for ).
$\Theta_{D_4}(q)$: setup
. Squared norms are non-negative integers, and minimum squared norm is . We need to count points at squared norm .
$\Theta_{D_4}(q)$: counting
- (the origin).
- (to get squared norm 1, exactly one coordinate is and the rest zero; but then the coordinate sum is , odd — not in ).
- (permutations and signs of , coordinate sum even: ).
- (squared norm 3 would require with odd coordinate sum — not in ).
- (permutations and signs of : ; plus with even sign sum: ; plus we missed actually gives squared norm 4 but let me recount: gives 8 and has even sum iff the nonzero coordinate is even — always even, so all 8 are in ; has sum in , even always, so all are in ; total ).
- So . The kissing number matches the coefficient: .
$\Theta_{E_8}(q)$
has minimum squared norm . A tabulated expansion reads The coefficient matches , and the higher coefficients are the number of lattice points at radii . Equivalently, in the classical notation where and is the normalized Eisenstein series of weight 4 — a modular form, which is the crucial structural fact Viazovska exploited in her 2017 proof.
Definition: Theta Series as Modular Form (Informal)
Theta Series as Modular Form (Informal)
When is an even self-dual lattice (so and all squared norms are even integers), the theta series , regarded as a function of in the upper half-plane, is a modular form of weight : it satisfies The first identity is the Poisson summation formula in disguise; the second is immediate from the even-squared-norm property.
For and this structure determines the theta series uniquely up to scalars — there is essentially only one modular form of weight (giving ) and a two-dimensional space of weight (giving the two Niemeier-class theta series, one of which is ). The rigidity is what makes modular-form arguments so powerful for these lattices.
Full modular-form machinery (Eisenstein series, cusp forms, Hecke operators) is beyond the scope of this chapter. The summary one needs is: even self-dual lattices have their theta series essentially determined by , and Viazovska's magic function for the Cohn–Elkies bound is built from these same modular forms.
Theta-Series Coefficients for Classical Lattices
Bar chart of the first several theta-series coefficients for classical lattices . The first nonzero coefficient (after ) is the kissing number ; subsequent coefficients track the number of lattice points at increasing radii. Note the huge disparity: has minimum vectors, has . These numbers multiply the pairwise union-bound terms in an ML-decoding error analysis.
Parameters
Theorem: Poisson Summation and the Functional Equation
For any lattice and any Schwartz function , where is the Fourier transform of . Applied to (whose Fourier transform is ), this yields the theta-series functional equation
Poisson summation says that summing a function over a lattice is the same as summing its Fourier transform over the dual lattice, up to a volume normalisation. The theta series identity falls out by specialising to a Gaussian.
Write as a Fourier series on the quotient torus .
The Fourier coefficients are evaluated at the dual lattice.
Build a periodic function
Consider . This is a -periodic function on , so admits a Fourier expansion indexed by the dual lattice :
Compute the Fourier coefficients
The coefficient is an integral over a fundamental region : The second step unfolds the sum over against the restricted integral.
Evaluate at $\mathbf{x} = \mathbf{0}$
, and the Fourier side is . Equality gives Poisson summation. The theta-series equation follows by plugging in the Gaussian .
How the Theta Series Enters Error Analysis
For a lattice code on the AWGN channel with noise variance , the pairwise error probability between two codewords differing by is . The union bound on ML error probability is The first term dominates at high SNR and is controlled by the kissing number. The tail terms are controlled by the rest of the theta series, and the series summarises the entire error-floor picture as a function of "noise parameter" .
Using Theta Series for Fast Error-Rate Simulations
In practice, Monte Carlo simulation of lattice-code error rates at SNRs above dB is prohibitive: error events are so rare that channel uses are required to get error events for a reliable estimate. The union-bound formula above — reading the theta series directly — provides a tight estimate at a computational cost of zero: one looks up the first – nonzero coefficients of from Conway–Sloane's tables (or a small Python script iterating over short vectors) and plugs into the formula. This is how Forney–Ungerboeck (1998) generates essentially all of its AWGN error-rate curves for lattice-based TCM.
The theta-series estimate is an upper bound; it over-counts because union bound double-counts overlapping error regions. At error rates below it is tight within dB.
- •
Requires knowing the first few theta-series coefficients: tabulated in Conway–Sloane for all classical lattices.
- •
Tight within 0.1 dB at BER — better than Monte Carlo for the relevant SNR range.
- •
For fading channels, the theta series is replaced by the product distance spectrum.
Historical Note: Jacobi (1829): Theta Functions and Sums of Squares
1829Carl Gustav Jacob Jacobi's treatise Fundamenta Nova Theoriae Functionum Ellipticarum introduced the theta functions as tools for studying elliptic functions. In it Jacobi established the product expansion , the triple identity and — most strikingly for us — the formula for the number of representations of an integer as a sum of two, four, six, or eight squares. The formula , for example, is literally the coefficient of in .
years after Jacobi, the same theta-series technology rephrased would let Viazovska solve the sphere-packing problem in dimensions and . The continuity of mathematical methods across this span is remarkable.
Theta series
The generating function that counts lattice points by squared norm. Equivalent to the weight enumerator of a code in lattice language.
Related: Kissing Number, Theta Series as Modular Form (Informal)
Modular form
A function on the upper half-plane satisfying specific transformation rules under and . The theta series of an even self-dual lattice is a modular form of weight .
Related: Theta Series, Self Dual
Common Mistake: Theta Series is a Power Series, Not a Dirichlet Series
Mistake:
Conflating with the Dirichlet series that appears in analytic number theory. Both are generating functions for the same counting sequence , but they behave very differently under transformation.
Correction:
The theta series is a power series in , convergent for . Under the modular transformation , it satisfies a functional equation (Jacobi's inversion formula). The associated Dirichlet series is defined in the half-plane and has a Mellin-transform relation to the theta series; do not mix the two up unless you know which properties you need.
Quick Check
The coefficient of in is , the number of ways to write as a sum of two squares of integers. What is this coefficient?
. The four representations are . So , and the coefficient of is . More generally, .
Key Takeaway
The theta series packages every distance-related property of a lattice into one generating function. Its first nonzero coefficient (after ) is the kissing number ; its higher coefficients directly feed the union-bound error analysis of AWGN lattice codes. For even self-dual lattices — , , — the theta series is a modular form, and the whole theory of modular forms is available for computation and proof. This is the mathematical lever Viazovska used to prove optimality of and in , and the practical tool Forney–Ungerboeck use to generate AWGN error-rate curves for lattice codes without Monte Carlo.