Special Operators (Unitary/Hermitian/Projection)

4 hours ~5 min read

Special Operators: Hermitian, Unitary, Projection, Positive

Four families of operators carry all of quantum mechanics. Hermitian operators are observables (and Hamiltonians). Unitary operators are the reversible evolutions and quantum gates. Projection operators are measurements. Positive operators are density matrices and POVM elements. Each is a special case of "normal," so the spectral theorem from 0.1.5 describes them all — we just read off which eigenvalues each allows.

Learning Objectives

After this lesson you will be able to:

  1. Characterize Hermitian operators (real spectrum) and connect them to observables.
  2. Prove that unitary operators preserve inner products and have unit-modulus eigenvalues.
  3. Manipulate orthogonal projection operators and use them for measurement.
  4. Define positive (semidefinite) operators and recognize density matrices.
  5. Build functions of operators, especially eiHte^{-iHt}, linking Hermitian generators to unitary gates.

Intuition

Diagonalize a normal operator (spectral theorem): it's "multiply each eigen-direction by its eigenvalue λk\lambda_k." The type of operator is then dictated entirely by where the eigenvalues live:

Operator Constraint Eigenvalues live on… Role in QM
Hermitian A=AA^\dagger = A the real line R\mathbb{R} observables, Hamiltonians
Unitary UU=IU^\dagger U = I the unit circle {eiθ}\{e^{i\theta}\} gates, time evolution
Projection P2=P=PP^2 = P = P^\dagger {0,1}\{0,1\} measurement onto a subspace
Positive $A^\dagger=A,\ \langle\psi A \psi\rangle\ge0$

Everything below is making this table precise.


Theory

Hermitian operators

AA is Hermitian (self-adjoint) if A=AA^\dagger = A. By the spectral theorem (Hermitian ⇒ normal) it has an orthonormal eigenbasis, and (proved in 0.1.5 E3) its eigenvalues are real. Conversely, a normal operator with real spectrum is Hermitian. So:

A=A    A=kλkvkvk with λkR. A = A^\dagger \iff A = \sum_k \lambda_k|v_k\rangle\langle v_k| \text{ with } \lambda_k\in\mathbb{R}.

This is the measurement postulate's backbone (Term 1.3): an observable is a Hermitian operator, its eigenvalues are the possible measured values, and its eigenvectors are the states of definite value. The expectation value $\langle A\rangle = \langle\psi|A|\psi\rangle = \sum_k \lambda_k |\langle v_k|\psi\rangle|^2$ is a real, probability-weighted average of eigenvalues.

Unitary operators

UU is unitary if UU=UU=IU^\dagger U = U U^\dagger = I, i.e. U1=UU^{-1} = U^\dagger.

Theorem. The following are equivalent: (i) UU is unitary; (ii) UU preserves inner products, UϕUψ=ϕψ\langle U\phi|U\psi\rangle = \langle\phi|\psi\rangle; (iii) UU maps an ONB to an ONB; (iv) UU is normal with all eigenvalues of modulus 11.

Proof of (i)⇔(ii). UϕUψ=ϕUUψ\langle U\phi|U\psi\rangle = \langle\phi|U^\dagger U|\psi\rangle, which equals ϕψ\langle\phi|\psi\rangle for all ϕ,ψ\phi,\psi iff UU=IU^\dagger U = I. (iv): UU normal gives an orthonormal eigenbasis with Uvk=μkvkU|v_k\rangle = \mu_k|v_k\rangle; then $\langle v_k|U^\dagger U|v_k\rangle = |\mu_k|^2 = 1,so, so \mu_k = e^{i\theta_k}$. ∎

Preserving inner products means preserving probabilities and normalization — which is precisely why closed-system quantum evolution and every quantum gate must be unitary. Spectral form:

U=keiθkvkvk,θkR. U = \sum_k e^{i\theta_k}\,|v_k\rangle\langle v_k|, \qquad \theta_k\in\mathbb{R}.

Projection operators

PP is an orthogonal projector if P2=PP^2 = P (idempotent) and P=PP^\dagger = P (Hermitian). Its eigenvalues are 00 or 11 (0.1.5 E2); it projects onto the subspace S=range(P)\mathcal{S} = \operatorname{range}(P) along S\mathcal{S}^\perp. For an orthonormal set {uj}\{|u_j\rangle\} spanning S\mathcal{S},

P=jujuj,IP=projector onto S. P = \sum_j |u_j\rangle\langle u_j|, \qquad I - P = \text{projector onto } \mathcal{S}^\perp .

A rank-1 projector ψψ|\psi\rangle\langle\psi| (with ψ=1\|\psi\|=1) projects onto the line through ψ|\psi\rangle. Projectors implement projective measurement (Term 1.3): the spectral projectors {Pk}\{P_k\} of an observable give outcome kk with probability ψPkψ\langle\psi|P_k|\psi\rangle.

Positive (semidefinite) operators

AA is positive semidefinite (A0A \succeq 0) if it is Hermitian and ψAψ0\langle\psi|A|\psi\rangle\ge 0 for all ψ|\psi\rangle; equivalently, all eigenvalues are 0\ge 0. It is positive definite (A0A\succ 0) if strictly >0>0. Facts: any A=BBA = B^\dagger B is positive; a positive operator has a unique positive square root A\sqrt{A} (take λk\sqrt{\lambda_k} in the spectral form). A density matrix ρ\rho is exactly a positive operator with Tr(ρ)=1\operatorname{Tr}(\rho)=1 (Term 1.5), and POVM elements are positive operators summing to II (Term 1.3).

Functions of operators and the exponential map

For normal A=kλkPkA = \sum_k\lambda_k P_k and any f:CCf:\mathbb{C}\to\mathbb{C}, define $f(A) = \sum_k f(\lambda_k)P_k$ (consistent with power series where they converge). The case that powers the whole field:

Hermitian generates unitary. If H=HH = H^\dagger (Hermitian), then for real tt,

U(t)=eiHt=keiλktvkvk U(t) = e^{-iHt} = \sum_k e^{-i\lambda_k t}\,|v_k\rangle\langle v_k|

is unitary, because each eigenvalue eiλkte^{-i\lambda_k t} has modulus 11.

Proof of unitarity. U=ke+iλktvkvkU^\dagger = \sum_k e^{+i\lambda_k t}|v_k\rangle\langle v_k| (real λk\lambda_k), and UU=keiλkte+iλktvkvk=kPk=IU^\dagger U = \sum_k e^{-i\lambda_k t}e^{+i\lambda_k t}|v_k\rangle\langle v_k| = \sum_k P_k = I. ∎

This is the bridge from physics (Hamiltonians) to computation (gates): every gate U=eiHtU = e^{-iHt} for some Hermitian HH and "time" tt. We use it constantly from Term 1.6 onward, and computationally it's scipy.linalg.expm(-1j*H*t) (Appendix B). Conversely, by Stone's theorem / the matrix log, every unitary is eiHe^{-iH} for some Hermitian HH.

Caution. eAeB=eA+Be^{A}e^{B} = e^{A+B} only if [A,B]=0[A,B]=0. In general use Baker–Campbell–Hausdorff (Appendix E); the failure of this identity is exactly why Trotterization is needed for Hamiltonian simulation (Term 3.4).

Polar and singular-value decompositions (brief)

Every operator factors as A=UAA = U|A| with A=AA0|A| = \sqrt{A^\dagger A}\succeq 0 and UU unitary (polar decomposition), and as A=UΣVA = U\Sigma V^\dagger with Σ0\Sigma\succeq0 diagonal (SVD). We will need the SVD for the Schmidt decomposition of entangled states (Term 1.4) and operator norms; flagged here, developed when needed.


Worked Examples

Example 1 — ZZ is Hermitian and unitary; build Rz(θ)=eiθZ/2R_z(\theta) = e^{-i\theta Z/2}

Z=diag(1,1)Z = \operatorname{diag}(1,-1) has real eigenvalues ±1\pm1 (Hermitian) and ZZ=IZ^\dagger Z = I (unitary) — an involution, as in 0.1.4. Using the spectral form $Z = (+1)|0\rangle\langle0| + (-1)|1\rangle\langle1|$:

eiθZ/2=eiθ/200+e+iθ/211=(eiθ/200eiθ/2)=Rz(θ), e^{-i\theta Z/2} = e^{-i\theta/2}|0\rangle\langle0| + e^{+i\theta/2}|1\rangle\langle1| = \begin{pmatrix} e^{-i\theta/2} & 0 \\ 0 & e^{i\theta/2}\end{pmatrix} = R_z(\theta),

the zz-rotation gate (Appendix E). The Hermitian ZZ generates the unitary RzR_z — a concrete instance of the bridge.

Example 2 — A rank-1 projector and an expectation value

For ψ=12(0+1)=+|\psi\rangle = \tfrac1{\sqrt2}(|0\rangle+|1\rangle) = |+\rangle, the projector onto 0|0\rangle is P0=00=diag(1,0)P_0 = |0\rangle\langle0| = \operatorname{diag}(1,0). Probability of outcome "0" measuring in the computational basis:

ψP0ψ=120+1000+1=121=12. \langle\psi|P_0|\psi\rangle = \tfrac12\langle 0+1|\,|0\rangle\langle0|\,|0+1\rangle = \tfrac12\cdot 1 = \tfrac12 .

And Z=+Z+=12(11)=0\langle Z\rangle = \langle+|Z|+\rangle = \tfrac12(1 - 1) = 0: the ±1\pm1 outcomes are equally likely, averaging to 00. Consistent with the Bloch picture of +|+\rangle lying on the equator (Term 1.2).


Hands-on (Python)

import numpy as np
from scipy.linalg import expm

def dag(A): return A.conj().T

Z = np.array([[1, 0], [0, -1]], dtype=complex)

def is_hermitian(A): return np.allclose(A, dag(A))
def is_unitary(A):   return np.allclose(dag(A) @ A, np.eye(A.shape[0]))
def is_projector(A): return is_hermitian(A) and np.allclose(A @ A, A)
def is_positive(A, tol=1e-12):
    w = np.linalg.eigvalsh((A + dag(A)) / 2)   # symmetrize for numerical safety
    return np.all(w >= -tol)

print(is_hermitian(Z), is_unitary(Z))          # True True (involution)

# Hermitian generates unitary: R_z(θ) = exp(-i θ Z / 2)
theta = 0.9
Rz = expm(-1j * theta * Z / 2)
print(is_unitary(Rz))                           # True
print(np.round(Rz, 3))                          # diag(e^{-iθ/2}, e^{+iθ/2})
# Projector onto |0> and a Born probability for |+>:
ket0 = np.array([1, 0], dtype=complex)
plus = np.array([1, 1], dtype=complex) / np.sqrt(2)
P0 = np.outer(ket0, ket0.conj())
print(is_projector(P0))                          # True
print(np.real(plus.conj() @ P0 @ plus))          # 0.5  = Born prob of outcome "0"

# A density matrix is positive with trace 1:
rho = 0.5 * np.eye(2)                             # maximally mixed qubit
print(is_positive(rho), np.isclose(np.trace(rho), 1))   # True True

# Square root of a positive operator:
A = np.array([[2, 0], [0, 9]], dtype=complex)
sqrtA = expm(0.5 * np.log(2) * np.array([[1,0],[0,0]])  # illustrative; in practice:
             )  # prefer scipy.linalg.sqrtm
from scipy.linalg import sqrtm
print(np.round(sqrtm(A).real, 3))                # diag(√2, 3)

Exercises

E1 (easy). Show that Y = \begin{psmallmatrix}0&-i\\ i&0\end{psmallmatrix} is Hermitian and unitary, and find its eigenvalues.

Solution

Y^\dagger = \overline{Y}^T = \begin{psmallmatrix}0&-i\\ i&0\end{psmallmatrix} = Y (Hermitian). Y2=IY^2 = I so YY=IY^\dagger Y = I (unitary). det(YλI)=λ21=0λ=±1\det(Y-\lambda I) = \lambda^2 - 1 = 0 \Rightarrow \lambda = \pm1.

E2 (easy). Prove that the product of two unitaries is unitary.

Solution

(UV)(UV)=VUUV=VIV=VV=I(UV)^\dagger(UV) = V^\dagger U^\dagger U V = V^\dagger I V = V^\dagger V = I. ∎ (Hence circuits, which compose gates, are unitary.)

E3 (medium). Let HH be Hermitian. Prove U=eiHU = e^{iH} is unitary directly from $U^\dagger = e^{-iH^\dagger} = e^{-iH}$, and explain where Hermiticity is used.

Solution

Since H=HH = H^\dagger, U=(eiH)=e(iH)=eiH=eiHU^\dagger = (e^{iH})^\dagger = e^{(iH)^\dagger} = e^{-iH^\dagger} = e^{-iH}. Because iHiH and iH-iH commute, UU=eiHeiH=e0=IU^\dagger U = e^{-iH}e^{iH} = e^{0} = I. Hermiticity is what makes the exponent of UU^\dagger the negative of that of UU (so they cancel); for non-Hermitian HH this fails. ∎

E4 (medium). Show that if PP is a projector then IPI-P is a projector, and P(IP)=0P(I-P) = 0. Interpret for measurement.

Solution

(IP)=IP(I-P)^\dagger = I - P and (IP)2=I2P+P2=I2P+P=IP(I-P)^2 = I - 2P + P^2 = I - 2P + P = I - P, a projector. $P(I-P) = P - P^2 = P - P = 0.Interpretation:. Interpretation: {P, I-P}$ are complementary outcomes of a yes/no measurement; their probabilities ψPψ+ψ(IP)ψ=1\langle\psi|P|\psi\rangle + \langle\psi|(I-P)|\psi\rangle = 1, and a definite outcome lands entirely in one subspace.

E5 (hard). Prove that any positive operator A0A\succeq 0 has a unique positive square root, and that A=BBA = B^\dagger B for some BB.

Solution

Spectrally A=kλkvkvkA = \sum_k\lambda_k|v_k\rangle\langle v_k| with λk0\lambda_k\ge0. Define $\sqrt A = \sum_k\sqrt{\lambda_k}|v_k\rangle\langle v_k|\succeq0;then; then (\sqrt A)^2 = A$. Uniqueness among positive roots: any positive RR with R2=AR^2 = A commutes with AA (since RA=R3=ARRA = R^3 = AR), hence shares AA's eigenbasis, and on each eigenvector must multiply by the nonnegative root λk\sqrt{\lambda_k} — so R=AR = \sqrt A. Finally A=(A)(A)=BBA = (\sqrt A)^\dagger(\sqrt A) = B^\dagger B with B=AB = \sqrt A. ∎


Checkpoint

  1. Where do the eigenvalues of Hermitian, unitary, projection, and positive operators live?
  2. Prove unitaries preserve inner products and state why that matters physically.
  3. Give the spectral form of an orthogonal projector and its eigenvalues.
  4. State the Hermitian-generates-unitary theorem and why it bridges physics and computation.
  5. When does eAeB=eA+Be^A e^B = e^{A+B}, and what's the consequence when it fails?
Answers
  1. Hermitian → R\mathbb{R}; unitary → unit circle eiθe^{i\theta}; projector → {0,1}\{0,1\}; positive → [0,)[0,\infty).
  2. UϕUψ=ϕUUψ=ϕψ\langle U\phi|U\psi\rangle = \langle\phi|U^\dagger U|\psi\rangle = \langle\phi|\psi\rangle iff UU=IU^\dagger U=I; preserving overlaps preserves probabilities/normalization, required of valid evolutions and gates.
  3. P=jujujP = \sum_j|u_j\rangle\langle u_j| over an ONB of the target subspace; eigenvalues 00 and 11.
  4. For Hermitian HH, eiHte^{-iHt} is unitary; thus every observable/energy generates a valid gate, and every gate is eiHe^{-iH} for some Hermitian HH.
  5. Only when [A,B]=0[A,B]=0; otherwise BCH adds commutator corrections, and Hamiltonian simulation must Trotterize (Term 3.4).

Further Reading

  • [NC] Nielsen & Chuang, §2.1.6–2.1.8 — Hermitian/unitary/positive operators, functions of operators, polar/singular decompositions.
  • [Axl] Axler, Linear Algebra Done Right, Ch. 7 — self-adjoint, normal, positive operators, isometries.
  • [Pre] Preskill, Ph219, Ch. 2–3 — operators and their physical roles.

← Prev: Eigenvalues & the Spectral Theorem · Up: Term 0 · Next: Tensor Products

Ready to measure your state?

5 exercises · 10 checkpoint questions

Start the quiz