Quantum LDPC code

Also known as: qLDPC

On this page 7

A quantum LDPC code (qLDPC) is a stabilizer code in which every check measures only a small, bounded number of qubits and every qubit takes part in only a small, bounded number of checks. In quantum error correction, this low-density structure keeps syndrome measurement circuits shallow while allowing codes that encode many logical qubits with large code distance.

The idea extends classical low-density parity-check codes, which underpin modern Wi-Fi, 5G and storage systems, to quantum information. Interest has surged because recent constructions promise an order of magnitude lower qubit overhead than the surface code for comparable protection, a key factor for fault-tolerant quantum computing.

How quantum LDPC codes are structured

A quantum LDPC code is described by sparse parity-check matrices. Most practical examples are CSS codes, which use one matrix for X-type checks and another for Z-type checks, with the condition that every X check commutes with every Z check. Sparsity means each row and each column of these matrices contains only a few nonzero entries.

Codes are summarized by the triple [[n, k, d]]: n physical qubits, k logical qubits and distance d. The low-density property is captured by two numbers, the check weight and the qubit degree, both of which stay constant as the code grows.

The table below explains the core parameters and why each matters.

ParameterMeaningPractical impact
nPhysical qubitsHardware size
kLogical qubits encodedUseful capacity
dCode distanceNumber of errors tolerated
Rate k/nEncoding efficiencyOverhead per logical qubit
Check weightQubits per stabilizerDepth of syndrome circuits
Qubit degreeChecks per qubitError spread during measurement
Core parameters of a quantum LDPC code

Families and milestones in qLDPC research

The surface code and the toric code are themselves qLDPC codes with weight-four checks, but they encode only a constant number of logical qubits, so their rate falls toward zero as distance grows. Research has therefore focused on families that keep rate and distance high at the same time.

The following table lists the main families and their headline properties.

FamilyRateDistance scalingNotes
Surface codeVanishingAbout √nPlanar, nearest-neighbor
Hypergraph product codesConstantAbout √nBuilt from two classical codes
Lifted and balanced product codesConstantBeyond √nAlgebraic constructions
Asymptotically good codesConstantLinear in nProved to exist in 2021-2022
Bivariate bicycle codesModerateGood at small sizesExample: [[144, 12, 12]]
Important families of quantum LDPC codes

The bivariate bicycle example encodes 12 logical qubits in 144 data qubits with distance 12. A surface code with the same distance would need roughly ten times as many physical qubits for those 12 logical qubits, which illustrates the overhead advantage that drives the field.

Asymptotically good constructions, such as quantum Tanner codes, settled a long-standing theoretical question, but their known instances are large. For near-term hardware, small and structured codes found by computer search currently matter more than asymptotic scaling.

Quantum LDPC codes compared with the surface code

The central trade-off is overhead versus connectivity. A theorem by Bravyi, Poulin and Terhal shows that codes with only local interactions in two dimensions cannot have both high rate and large distance. High-performance qLDPC codes must therefore use long-range connections between qubits.

AspectSurface codeHigh-rate qLDPC code
Qubits per logical qubitHundreds to thousandsTens to low hundreds
Connectivity2D nearest-neighborLong-range or multilayer
Check weight4Typically 6-12
Logical gatesMature via lattice surgeryStill under active research
DecodingFast matching decodersBelief propagation with post-processing
Error thresholdAbout 1%Comparable for some families
Surface code versus high-rate qLDPC codes

Because of these differences, many proposed architectures combine both approaches: a qLDPC code serves as dense quantum memory, while surface-code patches or teleportation-based gadgets carry out logical operations.

Decoding and syndrome measurement

Syndrome measurement in qLDPC codes uses ancilla qubits that interact with each qubit in a check. Low check weight keeps these circuits short, but the gate order must be chosen carefully so that hook errors, faults on an ancilla that spread to several data qubits, do not reduce the effective distance.

Decoding is harder than for the surface code. Classical belief propagation struggles with quantum degeneracy and short cycles in the code graph, so it is usually paired with ordered statistics decoding or similar post-processing. Decoders must also be fast enough for real time, typically on the scale of microseconds per round for superconducting hardware.

Another subtlety is degeneracy: many different physical errors produce the same syndrome and act identically on the logical information. A good decoder does not need to identify the exact error, only an equivalent correction. Exploiting degeneracy well is one reason why quantum decoders differ from their classical counterparts, and why decoder choice can change the observed logical error rate by a large factor at the same physical noise level.

Engineering challenges and open problems

Quantum LDPC codes move the difficulty from qubit count to hardware design and control. The table below summarizes the main obstacles and current responses.

ChallengeWhy it arisesCurrent approach
Long-range couplersChecks span distant qubitsMultilayer wiring, movable atoms or ions
Logical gatesNo simple transversal setGadgets, code switching, ancilla systems
Real-time decodingGraphs with many short cyclesHardware-optimized BP-OSD variants
Circuit-level noiseWeight-6 or higher checksOptimized scheduling of check gates
Practical challenges for qLDPC deployment

Platforms with flexible connectivity, such as trapped ions and neutral atoms that can be physically moved, are natural candidates, while superconducting designs are adding longer couplers across multiple chip layers to support these codes.

A plain-language summary

Qubits make mistakes, so they need protection. The usual method spreads one piece of information across many qubits and checks them often. This works, but it uses a huge number of qubits.

A quantum LDPC code checks qubits in small groups, and each qubit joins only a few groups. The groups can reach across the chip. This clever wiring lets one block of qubits protect many pieces of information at once. The catch is that the chip must support those long connections.

An example from practice

A hardware team plans a memory module for a future fault-tolerant processor. It needs 12 logical qubits that survive at least 12 rounds of noise without uncorrectable errors. A surface-code layout at distance 12 would require several thousand physical qubits, including ancillas.

The team instead chooses a [[144, 12, 12]] bivariate bicycle code. With one ancilla per check, the module uses about 288 physical qubits in total. Simulations at a physical error rate of 0.1 percent show a logical error rate comparable to the surface-code design. The price is a two-layer chip with longer couplers and a dedicated decoder running on a nearby FPGA.