Let be a family of stabilizer codes with parameters and , each given together with a list of stabilizer generators (not necessarily independent). The family is a quantum low-density parity-check (qLDPC) family if there are constants and , independent of , such that in every
- every listed generator acts nontrivially on at most qubits (check weight), and
- every qubit is acted on nontrivially by at most listed generators (qubit degree).
Equivalently, the Tanner graph — the bipartite graph with a node for each qubit, a node for each listed generator and an edge whenever the generator acts on the qubit — has bounded degree. For a CSS code the condition is that both check matrices and are sparse in the sense of a classical LDPC family, together with .
The rate is and the relative distance . A qLDPC family is good (asymptotically good) if both are bounded below by positive constants: and .
As in the classical case, sparsity is a property of the chosen generators, not of the code space: any stabilizer group has dense generating sets, and the definition only constrains families. The low weight of the checks is what makes syndrome extraction cheap — each check needs a bounded number of two-qubit gates, independent of — and it is the reason the checks themselves are low-weight stabilizers, so qLDPC codes with growing distance are necessarily degenerate. Sparse quantum codes were studied by MacKay, Mitchison and McFadden; the role of qLDPC families in fault tolerance with constant overhead is due to Gottesman; a review is Breuckmann and Eberhardt.