Nielsen & Chuang · Chapter 2, Introduction to quantum mechanics · p. 64
Exercise2.2 - The operator exchanging
and
has different matrices in two bases
The matrix of an operator depends on the basis.
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 a complex vector space of dimension two with basis vectors and , and let be the linear operator on it that exchanges the two basis vectors.✦ The exercise asks for the matrix of with respect to the basis , used for input and output alike, and then for a basis in which has a different matrix.
The Space and Two Bases
The library works on .The computational basis of is its standard basis, the two unit column vectors (1)✦
The basis of consists of the sum and the difference of the computational basis vectors, in this order: (2)✦ Its vectors are not normalized.
The Operator and Its Matrix
The operator of the exercise is the linear operator on defined on the computational basis by (3)✦
The matrix of a linear operator on with respect to a basis , taken for both input and output, is the matrix whose entries satisfy (4)
The Claim
Theorem 1. Let be the linear operator on that exchanges and .✦In the computational basis its matrix is (5)✦in the basis it is (6)✦ and the two matrices are different: (7)✦
What Is Checked
The claim is stated over the operator of (3) and over two bases of , the computational basis(1) and the basis of (2).
About these constructions the library proves that and are linearly independent.✦