Let be an parity-check matrix of a binary linear code. Its Tanner graph is the bipartite graph with variable nodes (the columns, one per code bit), check nodes (the rows), and an edge between check and variable exactly when . A word is a codeword if and only if, at every check node, the bits on the neighbouring variable nodes sum to zero.
A family of codes with parity-check matrices of growing length is a low-density parity-check (LDPC) family if there is a constant , independent of , such that every row and every column of every has at most ones; equivalently, the Tanner graphs have bounded degree. The family is -regular if every variable node has degree and every check node degree . Counting edges gives , so the rate is at least the design rate , with equality when the rows of are independent.
Sparsity is a property of the matrix , not of the code: the same code has many parity-check matrices, most of them dense, and the performance of iterative decoders depends on which one is used. "LDPC" is meaningful only for a family, since any single matrix has bounded weights.
LDPC codes were introduced by Gallager together with iterative decoding; the graph description is due to Tanner. A modern account is Richardson and Urbanke. The quantum counterpart, where two sparse check matrices must also be orthogonal, is the subject of quantum LDPC codes.