Let LL be a and QQ a positive definite on its real span such that Q(L)⊆ZQ(L)\subseteq\mathbb Z. Its theta series, with the norm normalization used here, is

ΘL,Q(z)=∑x∈LqQ(x)=∑n≥0rL,Q(n)qn,q=e2πiz,Im⁡z>0,\Theta_{L,Q}(z)=\sum_{x\in L}q^{Q(x)} =\sum_{n\ge0}r_{L,Q}(n)q^n, \qquad q=e^{2\pi iz},\quad\operatorname{Im}z>0,

where rL,Q(n)=#{x∈L:Q(x)=n}r_{L,Q}(n)=\#\{x\in L:Q(x)=n\}. Positive definiteness makes these counts finite and the series convergent.

Quaternion orders

For an order in a definite rational , take Q=nrd⁡Q=\operatorname{nrd}. Its theta coefficients count elements of each reduced norm. Related lattices give the coefficients of .

Normalization

If a lattice is presented with an even integral bb, a common convention is Q(x)=b(x,x)/2Q(x)=b(x,x)/2. Replacing QQ by 2Q2Q replaces zz by 2z2z; it can change the modular level. Consequently one must specify both the lattice and its quadratic form when comparing theta series, including those associated with and Hurwitz quaternions.

References
  1. John Voight, Quaternion Algebras, §40.4, equation (40.4.1), Lemma 40.4.2, and the level convention in Definition 40.4.3.