Abstract
Stabilizer codes are the cornerstone of quantum error correction, yet their mathematical characterization has historically been limited to systems with prime or prime-power dimensions. This paper provides the first exact formula for counting the number of $[[n, k]]_d$ stabilizer codes for any arbitrary dimension $d$. By extending the group-theoretic framework to modular qudits, the authors demonstrate that the total number of stabilizer codes scales at the same order of magnitude regardless of whether the dimension is prime or composite. This result provides a new quantifier for the resource theory of "magic" and establishes a universal foundation for higher-dimensional quantum computing.
Introduction
In the landscape of quantum information, stabilizer codes serve as the primary framework for protecting quantum information from noise. While the theory for qubits ($d=2$) and prime-dimensional qudits is well-established, many physical systems and theoretical models naturally involve composite dimensions. In these cases, the underlying mathematics shifts from linear algebra over a finite field to modules over a ring ($\mathbb{Z}_d$), where traditional methods of counting and classification often fail.
Previously, the seminal work by David Gross in 2006 provided a method for counting stabilizer codes in prime-power dimensions (Galois qudits). However, his proofs relied heavily on field properties—specifically the existence of multiplicative inverses for all non-zero elements—which do not hold for composite dimensions like $d=6$ or $d=10$. This paper fills this significant gap in the literature, providing a universal counting method for "modular qudits" of any dimension $d$.
Mathematical Framework
From Fields to Rings
The primary challenge in addressing arbitrary dimensions is the transition from Galois qudits to modular qudits. In Galois systems of dimension $p^m$, the state space behaves like a vector space over a field. In modular systems of dimension $d$, the state space behaves like a module over the ring $\mathbb{Z}_d$. This distinction is crucial: in a ring, division is not always possible, and the structure of the symplectic group—which governs the transformations of stabilizer codes—becomes significantly more complex.
The Counting Methodology
The authors employ a sophisticated group-theoretic approach to bypass these limitations:
- Symplectic Group Mapping: They establish a bijection between distinct stabilizer codes and the cosets of the symplectic group $Sp(2n, \mathbb{Z}_d)$ over a specific redundancy subgroup $T(2n, k, \mathbb{Z}_d)$.
- Subgroup Decomposition: To count the elements in the subgroup $T$, they decompose it into four distinct, non-overlapping components: a General Linear group $GL(n-k, \mathbb{Z}_d)$, a smaller Symplectic group $Sp(2k, \mathbb{Z}_d)$, and two abelian subgroups (symmetric and anti-symmetric).
- Chinese Remainder Theorem (CRT): The CRT serves as the "secret sauce" for handling composite dimensions. It allows the authors to decompose the counting problem for a composite $d$ into a product of counts for its prime-power factors. If $d = p_1^{e_1} p_2^{e_2} \dots$, the total count is simply the product of the counts for each $p_i^{e_i}$.
Key Results and Insights
The Universal Scaling Law
The most striking finding of this research is that the number of stabilizer codes scales at the same order of magnitude whether $d$ is prime or composite. One might intuitively expect the algebraic complexity of composite dimensions to significantly alter the cardinality of the stabilizer set. However, the authors prove that for any $d$, the number of codes $C[[n, k]]_d$ is bounded by:
$$d^{\frac{(n-k)(n+3k+1)}{2}} \le C[[n, k]]_d < d^{\frac{(n-k)(n+3k+1)}{2} + 2.17}$$
For the specific case of stabilizer states ($k=0$), the number scales as $d^{\frac{n(n+3)}{2}}$. This consistency across dimensions suggests a fundamental structural uniformity in quantum state space that transcends the specific arithmetic properties of the dimension.
Quantifying Quantum Magic
This work has immediate implications for the resource theory of "magic" (non-stabilizer operations). Magic states are the extremal points of the stabilizer polytope; they are the resources required to achieve universal quantum computation beyond what classical computers can efficiently simulate. By providing an exact count of stabilizer states, the authors provide a rigorous quantifier for this resource, helping to define the boundaries of classical simulability in higher-dimensional systems.
Discussion and Future Work
While this paper provides a rigorous analytical foundation, it also highlights several open challenges. First, while we can now count these codes, efficiently sampling (randomly selecting) a stabilizer code for $k \ge 1$ in the non-prime case remains a difficult open problem. Second, the computational complexity of calculating specific magic measures, such as "mana" or robustness of magic, remains super-exponentially difficult despite knowing the size of the stabilizer set.
Finally, as a theoretical derivation, the physical implementation of these arbitrary-dimensional codes remains a task for experimentalists. Whether in trapped ions, photonic systems, or superconducting circuits, the ability to utilize composite-dimensional qudits may offer new pathways for more efficient quantum error correction and fault-tolerant architectures.
Summary updated