Skip to content
Current section
The Quantum Computing Enthusiast’s Hub
Saved
All sections

All sections

Saved
Skip Learn navigation
Encyclopedia
Topic

Hypergraph-product quantum codes

Hypergraph-product codes combine classical parity-check structures into quantum CSS codes while enforcing cross-type commutation algebraically.

Edition released Coverage: Overview · Technical · Research
On this page

Explanation and significance

The construction is a major route from sparse classical codes to quantum LDPC codes. It exposes how rate, distance, check weight and geometric connectivity arise from input matrices. A mathematically sparse code can still require nonlocal physical interactions; the product construction does not solve the hardware layout problem by itself.

Mechanism and mathematical structure

For H1 of size m1×n1 and H2 of size m2×n2, one convention uses H_X=[H1⊗I_n2 | I_m1⊗H2^T] and H_Z=[I_n1⊗H2 | H1^T⊗I_m2]. Both act on n1n2+m1m2 data positions. Their cross product vanishes over F2 because the two identical Kronecker-product terms add to zero. The encoded dimension depends on ranks of both matrices and their transposes.

Fully worked reference example

Take H1=H2=[1 1]. Then n1=n2=2 and m1=m2=1, so the product has 2×2+1×1=5 data qubits. Each H_X and H_Z has two rows. The two input classical kernels each have dimension one, while transposed kernels have dimension zero, giving k=1. This small example has distance two and therefore detects arbitrary single-qubit Pauli errors but does not guarantee their correction. The construction is not the five-qubit perfect code despite the identical n=5 count.

Limits and misconceptions

Input-code distance and transpose-code structure both matter; quoting only one classical distance can be misleading. Short cycles and degeneracy complicate belief-propagation decoding. A good asymptotic rate does not establish practical finite-size overhead.

Scientific relationships

Is a CSS quantum LDPC construction. Uses tensor products of classical parity-check matrices. Is used in studies of belief propagation and ordered-statistics decoding.

The two populations of data positions

The product construction contains two kinds of qubits: variable-variable positions indexed by a column of H1 and a column of H2, and check-check positions indexed by a row of each matrix. Their counts are n1n2 and m1m2. An X check is indexed by a check of the first input and a variable of the second; a Z check reverses those roles. This indexing explains the dimensions of the Kronecker blocks and prevents confusing classical check nodes with quantum ancillas. Syndrome-extraction ancillas are additional implementation resources.

Using the stated convention, multiplication gives H_X H_Z^T=(H1⊗I)(I⊗H2^T)+(I⊗H2^T)(H1⊗I). Both terms equal H1⊗H2^T. Binary addition cancels them. No assumption of orthogonal rows within either classical matrix is needed. This is why ordinary classical parity-check structures can seed commuting quantum checks even though a naive reuse of one classical matrix for both Pauli types could fail.

Rank and transpose kernels

Write r_i=rank(H_i), k_i=n_i−r_i, and k_i^T=m_i−r_i. The quantum encoded dimension is k=k1k2+k1^Tk2^T. The second term is easy to omit when thinking only about the ordinary classical codes. It vanishes when both input matrices have full row rank, but redundant parity checks can make it nonzero. Those redundancies change the product construction rather than merely changing how the same quantum checks are printed.

For identical full-row-rank inputs with n columns and m=(1−R)n rows, the quantum rate is R_Q=R²/[1+(1−R)²]. If the classical rate R is one-half, the quantum rate is one-fifth. This calculation concerns the mathematical data-qubit encoding rate. It excludes extraction ancillas, idle space, routing resources, and logical-gate overhead. A rate advantage can shrink or disappear when those resources are included at an equal target logical error.

A thirteen-qubit worked construction

Choose H1=H2=H with rows 110 and 011. This is a length-three repetition-code parity matrix with rank two, kernel dimension one, and minimum nonzero kernel weight three. The transposed kernel is trivial. The product has 3²+2²=13 data qubits, six X-check rows, six Z-check rows, and k=1.

Direct binary elimination gives rank six for each quantum check matrix. Exhaustive enumeration of binary vectors on thirteen positions finds minimum weight three among X-type operators commuting with all Z checks but lying outside the X-check row space. The analogous Z calculation also gives three. Thus this explicit example is a [[13,1,3]] CSS code under the chosen construction. The enumeration tests all 8,192 binary supports for each Pauli type; it is an exact small-code calculation, not a threshold simulation.

The row-space exclusion is essential. A low-weight vector in the kernel of the opposite check matrix may simply be a stabilizer and hence act trivially. Computing the minimum nonzero kernel weight alone can therefore report the wrong quantum distance. The quotient by stabilizers is the operation that turns a classical-looking linear constraint into a logical-operator calculation.

Sparsity, distance, and geometry

An X-check row combines a row of H1 with a column of H2. Its weight is their weight sum because the supports occupy disjoint data blocks. Bounded row and column weights of the input matrices therefore give bounded quantum check weight and bounded data degree. Sparsity controls how many interactions a check needs, but not how far those interactions reach in a physical layout.

For suitable input families with classical distance proportional to n and product length proportional to n², the resulting distance scales on the order of the square root of quantum block length, subject to the construction's distance conditions and nontrivial kernel sectors. This statement does not imply that every sparse seed has that behavior. Disconnected inputs, low-weight kernel vectors, or unfavorable transpose-code structure can produce poor quantum codes despite formal commutation.

Extraction and decoding consequences

The check graph often contains cycles that frustrate simple belief propagation. Quantum degeneracy additionally means that reliable local marginals need not assemble into a syndrome-consistent or logically correct error pattern. Postprocessing can enforce the parity equations, but its runtime and residual class-selection errors must be measured separately from the code's algebraic parameters.

Sequential extraction of a weight-six check can spread an ancilla fault across several data positions. Perfect-check code-capacity calculations omit that mechanism. Tensor-product algebra gives commuting checks and the kernel quotients determine logical protection, as in the thirteen-qubit rank example. Geometry and fault-aware extraction determine physical cost.

Redundant input rows change the constructed code

Take both input matrices to have rows 11 and 11. Each has n=m=2 and rank one, so both its ordinary and transpose kernels have dimension one. The product has eight data positions and k=1×1+1×1=2. By contrast, deleting the duplicate row from each input gives the five-position construction with k=1. Removing redundant classical checks is harmless to the original classical code, but it changes the second data block and kernel contribution of the quantum product. The input matrices, rather than only classical code names, therefore belong in the construction specification.

Sources

  • Jean-Pierre Tillich; Gilles Zemor · · Research paper · Preprint recorded · arXiv
    Verification scope

    Recorded source check ·

    Product dimension formula, transpose-code contribution and full-row-rank distance statement checked. Exact 13-qubit enumeration is original.

    Selected text only; no full threshold proof, experimental replication, or current performance ranking.

  • Joschka Roffe; David R. White; Simon Burton; Earl Campbell · · Research paper · Peer-reviewed publication recorded · journals.aps.org
    Verification scope

    Recorded source check ·

    Rank-selected OSD basis, free-variable candidate construction, and bounded search variants checked.

    Selected text only; no full threshold proof, experimental replication, or current performance ranking.