Lean, informalized

Nielsen & Chuang · Chapter 2, Introduction to quantum mechanics · p. 68

Exercise 2.10 - The matrix of an outer product of two orthonormal basis vectors, in that basis

The outer product of two basis vectors is a matrix unit.

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

Take an inner product space VV of finite dimension dd, over the real or the complex numbers, with an orthonormal basis |b1⟩,…,|bd⟩|b_1\rangle, \dots, |b_d\rangle, and pick two of its vectors, |bj⟩|b_j\rangle and |bk⟩|b_k\rangle. Their outer product |bj⟩⟨bk||b_j\rangle\langle b_k| is an operator on VV. The exercise asks for its matrix in the basis |bi⟩|b_i\rangle.

Outer Products and Matrices

The outer product |x⟩⟨y||x\rangle\langle y| of two vectors |x⟩|x\rangle and |y⟩|y\rangle of VV is the operator on VV that sends each vector |z⟩|z\rangle to |x⟩|x\rangle multiplied by the inner product ⟨y|z⟩\langle y|z\rangle: (|x⟩⟨y|)|z⟩=⟨y|z⟩|x⟩.\bigl(|x\rangle\langle y|\bigr)\,|z\rangle = \langle y|z\rangle\,|x\rangle .(1)

The matrix [A][A] of an operator AA on VV in the orthonormal basis |bi⟩|b_i\rangle is the d×dd \times d matrix whose entry in row ii and column ll is [A]il=⟨bi|A|bl⟩.[A]_{il} = \langle b_i|A|b_l\rangle .(2)

For indices jj and kk from 11 to dd, the matrix unit EjkE_{jk} is the d×dd \times d matrix with 11 in row jj and column kk and 00 in every other entry: (Ejk)il=δijδkl.(E_{jk})_{il} = \delta_{ij}\,\delta_{kl} .(3)

The Claim

Theorem 1. Let |b1⟩,…,|bd⟩|b_1\rangle, \dots, |b_d\rangle be an orthonormal basis of an inner product space VV of finite dimension dd, real or complex, and let jj and kk be any two indices. The matrix of the outer product |bj⟩⟨bk||b_j\rangle\langle b_k| in this basis is the matrix unit: [|bj⟩⟨bk|]=Ejk.\bigl[\,|b_j\rangle\langle b_k|\,\bigr] = E_{jk} .(4)✦

What Is Checked

The claim is stated over an orthonormal basis of VV and the constructions above: the outer product (1), the matrix of an operator in that basis (2) and the matrix unit (3). What the library proves about them is the equation (4).