Lean, informalized

Nielsen & Chuang · Chapter 10, Quantum error-correction · p. 447

Exercise 10.16 - Adding one row to another, and the standard form of a parity check matrix of full rank

Row operations on a parity check matrix keep its code.

Hover over a blue or green term in the text, or a node in the graph, to find it in the other. Select it to read its declaration both in Lean and in words.

The Exercise

A classical linear code on nn symbols can be described by a parity check matrix HH, and different matrices can describe the same code. The exercise asks to show that adding one row of HH to another leaves the code unchanged✦, and that a parity check matrix with linearly independent rows can be brought, without changing its code, to a standard form in which some of its columns make up the identity matrix.✦

The Code of a Parity Check Matrix

Codes are taken over a field KK, which is ℤ2\mathbb{Z}_2 for codes on bits. A parity check matrix HH is an r×nr \times n matrix over KK, each of its rows one check on a string of nn symbols. The code C(H)C(H) of HH is its kernel, a linear code of length nn: C(H)={x∈Kn:Hx=0}.C(H) = \{\, x \in K^n : Hx = 0 \,\}.(1)✦

The Claim

Theorem 1. Let HH be an r×nr \times n parity check matrix over KK, let a≠ba \ne b be two of its rows, and let H′H' be the matrix obtained from HH by adding row aa to row bb, the other rows left as they are. Then C(H′)=C(H).C(H') = C(H).(2)✦

Theorem 2. Let HH be an r×nr \times n parity check matrix over KK of full row rank: the map x↦Hxx \mapsto Hx takes KnK^n onto KrK^r. Then there are an invertible r×rr \times r matrix EE and distinct column indices c1,…,crc_1, \dots, c_r among 1,…,n1, \dots, n such that (EH)icj=δij(1≤i,j≤r),C(EH)=C(H).(EH)_{i\,c_j} = \delta_{ij} \quad (1 \le i, j \le r), \qquad C(EH) = C(H).(3)✦

What Is Checked

Both theorems are stated over one construction, the code (1) of a parity check matrix. What the library proves about it are the invariances (2) and (3), equalities between codes, as sets of code words, and not between the matrices that define them.