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

Unitary operators

Keywords: unitary operator · preservation of the inner product · eigenvalues of modulus one · orthonormal columns · exponential

Exercise 1 : Unitary operators

An operator U^\hat U on a finite-dimensional Hilbert space H\H is said to be unitary if U^†U^=1\hat U^\dagger\hat U=\mathbf{1}.

Question 1
Show that U^\hat U is unitary if and only if it preserves the inner product: ⟨U^u|U^v⟩=⟨u|v⟩\braket{\hat Uu}{\hat Uv}=\braket uv for all ∣u⟩,∣v⟩\ket u,\ket v. Deduce that it preserves the norm and that its columns form an orthonormal basis.

Solution
We have ⟨U^u|U^v⟩=⟨u|U^†U^v⟩\braket{\hat Uu}{\hat Uv}=\braket{u}{\hat U^\dagger\hat Uv}. If U^†U^=1\hat U^\dagger\hat U=\mathbf{1}, this is ⟨u|v⟩\braket uv. Conversely, if the inner product is preserved, ⟨u|(U^†U^−1)v⟩=0\braket{u}{(\hat U^\dagger\hat U-\mathbf{1})v}=0 for all ∣u⟩\ket u, hence (U^†U^−1)∣v⟩=0(\hat U^\dagger\hat U-\mathbf{1})\ket v=0 for every ∣v⟩\ket v, and U^†U^=1\hat U^\dagger\hat U=\mathbf{1}. Taking ∣u⟩=∣v⟩\ket u=\ket v shows that the norm is preserved. Finally, the jjth column of the matrix of U^\hat U in an orthonormal basis (∣ej⟩)(\ket{e_j}) represents the vector U^∣ej⟩\hat U\ket{e_j}, and ⟨U^ej|U^ek⟩=⟨ej|ek⟩=δjk\braket{\hat Ue_j}{\hat Ue_k}=\braket{e_j}{e_k}=\delta_{jk}: the columns are orthonormal. In finite dimension, U^†U^=1\hat U^\dagger\hat U=\mathbf{1} implies that U^\hat U is invertible with inverse U^†\hat U^\dagger, and therefore also U^U^†=1\hat U\hat U^\dagger=\mathbf{1}.

Question 2
Show that the eigenvalues of a unitary operator have modulus 11, that eigenvectors associated with distinct eigenvalues are orthogonal, and that ∣det⁡U^∣=1|\det\hat U|=1.

Solution
If U^∣v⟩=λ∣v⟩\hat U\ket v=\lambda\ket v with ∣v⟩≠0\ket v\neq0, preservation of the norm gives ∥v∥=∥U^v∥=∣λ∣∥v∥\norm v=\norm{\hat Uv}=|\lambda|\norm v, hence ∣λ∣=1|\lambda|=1: we may write λ=eiθ\lambda=e^{i\theta}. If U^∣u⟩=λ∣u⟩\hat U\ket u=\lambda\ket u and U^∣v⟩=μ∣v⟩\hat U\ket v=\mu\ket v, then ⟨u|v⟩=⟨U^u|U^v⟩=λ∗μ⟨u|v⟩\braket uv=\braket{\hat Uu}{\hat Uv}=\lambda^*\mu\braket uv. Since ∣λ∣=1|\lambda|=1, λ∗=1/λ\lambda^*=1/\lambda, and λ∗μ=μ/λ≠1\lambda^*\mu=\mu/\lambda\neq1 if λ≠μ\lambda\neq\mu: hence ⟨u|v⟩=0\braket uv=0. Finally, det⁡(U†U)=det⁡(U)∗det⁡(U)=∣det⁡U∣2=det⁡1=1\det(U^\dagger U)=\det(U)^*\det(U)=|\det U|^2=\det\mathbf{1}=1.

Question 3
Consider the matrix

U=12(1ii1).\begin{aligned} U=\frac{1}{\sqrt2}\begin{pmatrix}1&i\\ i&1\end{pmatrix}. \end{aligned}

Show that it is unitary, then determine its eigenvalues and eigenvectors. Verify the preceding properties.

Solution
The columns 12(1,i)\frac{1}{\sqrt2}(1,i) and 12(i,1)\frac{1}{\sqrt2}(i,1) are normalised, and their inner product is 12(1⋅i+(−i)⋅1)=0\frac12\bigl(1\cdot i+(-i)\cdot1\bigr)=0: they form an orthonormal basis, and UU is unitary. Since UU has the form α1+βσx\alpha\mathbf{1}+\beta\sigma_x, its eigenvectors are those of σx\sigma_x, namely 12(1,1)\frac{1}{\sqrt2}(1,1) and 12(1,−1)\frac{1}{\sqrt2}(1,-1). We find

U(11)=1+i2(11),U(1−1)=1−i2(1−1).U\begin{pmatrix}1\\1\end{pmatrix}=\frac{1+i}{\sqrt2}\begin{pmatrix}1\\1\end{pmatrix}, \qquad U\begin{pmatrix}1\\-1\end{pmatrix}=\frac{1-i}{\sqrt2}\begin{pmatrix}1\\-1\end{pmatrix}.

The eigenvalues are eiπ/4e^{i\pi/4} and e−iπ/4e^{-i\pi/4}, of modulus 11, and the eigenvectors are orthogonal. The determinant is 12(1−i2)=1\frac12(1-i^2)=1, the product of the two eigenvalues.

Question 4
Show that U=eiπ4σxU=e^{i\frac\pi4\sigma_x}, given that σx2=1\sigma_x^2=\mathbf{1}. More generally, show that if H^\hat H is self-adjoint, the operator eiH^e^{i\hat H} is unitary.

Solution
Since σx2=1\sigma_x^2=\mathbf{1}, the even powers of σx\sigma_x equal 1\mathbf{1} and the odd powers equal σx\sigma_x. Separating the even and odd terms of the exponential series gives eiθσx=cos⁡θ 1+isin⁡θ σxe^{i\theta\sigma_x}=\cos\theta\,\mathbf{1}+i\sin\theta\,\sigma_x. For θ=π/4\theta=\pi/4, cos⁡θ=sin⁡θ=12\cos\theta=\sin\theta=\frac{1}{\sqrt2}, and we recover UU. More generally, if H^\hat H is self-adjoint, it can be diagonalised in an orthonormal basis, H^=∑kλk∣k⟩⟨k∣\hat H=\sum_k\lambda_k\ket{k}\bra k with real λk\lambda_k, and eiH^=∑keiλk∣k⟩⟨k∣e^{i\hat H}=\sum_ke^{i\lambda_k}\ket k\bra k. Its adjoint is ∑ke−iλk∣k⟩⟨k∣\sum_ke^{-i\lambda_k}\ket k\bra k, and their product is ∑k∣k⟩⟨k∣=1\sum_k\ket k\bra k=\mathbf{1}. This is why the evolution operator e−iH^t/ℏe^{-i\hat Ht/\hbar} is unitary.