← Exercise library← All exercises for this theme
Theme 2 — Hilbert Spaces and Dirac Notation

Ket-bra operators

Keywords: Dirac notation · ket-bra · rank-one operator · adjoint · trace · eigenvalues · normal operator

Exercise 1 : Ket-bra operators

We work in C3\C^3 equipped with its canonical orthonormal basis, and consider the two normalised vectors

∣u⟩=12(1i0),∣v⟩=12(011),\ket u=\frac{1}{\sqrt2}\begin{pmatrix}1\\ i\\0\end{pmatrix},\qquad \ket v=\frac{1}{\sqrt2}\begin{pmatrix}0\\1\\1\end{pmatrix},

together with the operator A^=∣u⟩⟨v∣\hat A=\ket u\bra v, which acts according to A^∣w⟩=⟨v|w⟩ ∣u⟩\hat A\ket w=\braket vw\,\ket u.

Question 1
Write down the matrix of A^\hat A. Determine its image, kernel and rank.

Solution
The matrix of ∣u⟩⟨v∣\ket u\bra v is the product of the column vector ∣u⟩\ket u and the row vector ⟨v∣=12(0,1,1)\bra v=\frac{1}{\sqrt2}(0,1,1):

A=12(1i0)(011)=12(0110ii000).\begin{aligned} A=\frac12\begin{pmatrix}1\\ i\\0\end{pmatrix}\begin{pmatrix}0&1&1\end{pmatrix}=\frac12\begin{pmatrix}0&1&1\\0&i&i\\0&0&0\end{pmatrix}. \end{aligned}

From A^∣w⟩=⟨v|w⟩∣u⟩\hat A\ket w=\braket vw\ket u, every vector in the image is proportional to ∣u⟩\ket u: the image is the line spanned by ∣u⟩\ket u, and the rank is 11. The kernel is the set of vectors orthogonal to ∣v⟩\ket v, namely the plane with equation w2+w3=0w_2+w_3=0, of dimension 22, in accordance with the rank—nullity theorem.

Question 2
Determine the adjoint operator A^†\hat A^\dagger. Under what condition is an operator ∣a⟩⟨b∣\ket a\bra b, with ∣a⟩\ket a and ∣b⟩\ket b non-zero, self-adjoint?

Solution
For all ∣w⟩\ket w, ∣z⟩\ket z, we have ⟨w|A^z⟩=⟨v|z⟩⟨w|u⟩\braket{w}{\hat A z}=\braket vz\braket wu. The operator ∣v⟩⟨u∣\ket v\bra u satisfies ⟨(∣v⟩⟨u∣)w|z⟩=⟨u|w⟩∗⟨v|z⟩=⟨w|u⟩⟨v|z⟩\braket{(\ket v\bra u)w}{z}=\braket uw^*\braket vz=\braket wu\braket vz, which is the same quantity. Thus

A^†=∣v⟩⟨u∣,A†=12(0001−i01−i0),\begin{aligned} \hat A^\dagger=\ket v\bra u, \qquad A^\dagger=\frac12\begin{pmatrix}0&0&0\\1&-i&0\\1&-i&0\end{pmatrix}, \end{aligned}

which is indeed the conjugate transpose of AA. More generally, (∣a⟩⟨b∣)†=∣b⟩⟨a∣(\ket a\bra b)^\dagger=\ket b\bra a. The operator ∣a⟩⟨b∣\ket a\bra b is therefore self-adjoint if and only if ∣a⟩⟨b∣=∣b⟩⟨a∣\ket a\bra b=\ket b\bra a. Applying both sides to ∣a⟩\ket a gives ⟨b|a⟩∣a⟩=∥a∥2∣b⟩\braket ba\ket a=\norm a^2\ket b, so ∣b⟩\ket b is proportional to ∣a⟩\ket a: ∣b⟩=λ∣a⟩\ket b=\lambda\ket a. The equality then becomes λ∗∣a⟩⟨a∣=λ∣a⟩⟨a∣\lambda^*\ket a\bra a=\lambda\ket a\bra a, hence λ\lambda is real. A ket-bra is self-adjoint if and only if the two vectors are proportional with a real coefficient; this is the case for projectors ∣a⟩⟨a∣\ket a\bra a.

Question 3
Calculate A^2\hat A^2 and tr⁡A^\tr\hat A. Verify the results using the matrix.

Solution
Using associativity of the product,

A^2=∣u⟩⟨v|u⟩⟨v∣=⟨v|u⟩ A^.\hat A^2=\ket u\braket vu\bra v=\braket vu\,\hat A .

Now ⟨v|u⟩=12(0⋅1+1⋅i+1⋅0)=i2\braket vu=\frac12(0\cdot1+1\cdot i+1\cdot0)=\frac i2, so A^2=i2A^\hat A^2=\frac i2\hat A. For the trace, we use an arbitrary orthonormal basis (∣ek⟩)(\ket{e_k}):

tr⁡A^=∑k⟨ek|u⟩⟨v|ek⟩=∑k⟨v|ek⟩⟨ek|u⟩=⟨v|u⟩=i2,\tr\hat A=\sum_k\braket{e_k}{u}\braket{v}{e_k}=\sum_k\braket{v}{e_k}\braket{e_k}{u}=\braket vu=\frac i2,

by the closure relation ∑k∣ek⟩⟨ek∣=1\sum_k\ket{e_k}\bra{e_k}=\mathbf{1}. In the matrix, the sum of the diagonal entries is indeed 12(0+i+0)=i2\frac12(0+i+0)=\frac i2, and direct calculation also verifies that A2=i2AA^2=\frac i2A.

Question 4
Determine the eigenvalues and eigenspaces of A^\hat A. Is the operator diagonalisable? Are its eigenvectors orthogonal?

Solution
The kernel, of dimension 22, is the eigenspace associated with the eigenvalue 00. Moreover, A^∣u⟩=⟨v|u⟩∣u⟩=i2∣u⟩\hat A\ket u=\braket vu\ket u=\frac i2\ket u: ∣u⟩\ket u is an eigenvector with eigenvalue i2\frac i2. Since i2≠0\frac i2\neq0, there are 2+1=32+1=3 linearly independent eigenvectors, and A^\hat A is diagonalisable. Its eigenvectors are not orthogonal, however: for example, ∣u⟩\ket u is not orthogonal to the vector (1,0,0)(1,0,0) in the kernel, since their inner product is 12\frac{1}{\sqrt2}.

This is consistent with the spectral theorem: an orthonormal basis of eigenvectors exists only for a normal operator, A^A^†=A^†A^\hat A\hat A^\dagger=\hat A^\dagger\hat A. Now A^A^†=∣u⟩⟨v|v⟩⟨u∣=∣u⟩⟨u∣\hat A\hat A^\dagger=\ket u\braket vv\bra u=\ket u\bra u, whereas A^†A^=∣v⟩⟨u|u⟩⟨v∣=∣v⟩⟨v∣\hat A^\dagger\hat A=\ket v\braket uu\bra v=\ket v\bra v: these two projectors are different, and A^\hat A is not normal.