|q⟩ Bad Qubits

intermediate · Physics · Operators, Eigenvalues & Spectral Theorem

The Spectral Theorem

The spectral theorem is the centerpiece of this module. It says that a Hermitian operator is, in the right basis, nothing more complicated than a list of real numbers along a diagonal — and it tells you exactly how to read those numbers off as projectors. Almost every computation you do with an observable, from expectation values to time evolution, is an application of this one theorem.

Statement

Spectral theorem (Hermitian case). Let AA be a Hermitian operator on a finite-dimensional complex Hilbert space. Then:

  1. All eigenvalues λk\lambda_k of AA are real.
  2. There exists an orthonormal basis of the whole space consisting entirely of eigenvectors of AA.

Equivalently, AA is diagonalizable by a unitary: there is a unitary UU whose columns are the orthonormal eigenvectors such that

UAU=diag(λ1,,λn).U^\dagger A\, U = \operatorname{diag}(\lambda_1, \dots, \lambda_n).

The collection of eigenvalues {λk}\{\lambda_k\} is called the spectrum of AA — hence "spectral."

The spectral decomposition

The most useful form of the theorem expands AA directly in terms of its eigenvectors. Let {k}\{|k\rangle\} be an orthonormal eigenbasis with Ak=λkkA|k\rangle = \lambda_k|k\rangle. Then

A=kλkkk.A = \sum_k \lambda_k\, |k\rangle\langle k|.

Each term kk|k\rangle\langle k| is the projector onto the kk-th eigenvector (built from the outer product you met earlier). The operator is a weighted sum of projectors, with the eigenvalues as weights. To check the formula, apply it to an eigenvector j|j\rangle:

Aj=kλkkkj=kλkkδkj=λjj,A|j\rangle = \sum_k \lambda_k |k\rangle\langle k|j\rangle = \sum_k \lambda_k |k\rangle\,\delta_{kj} = \lambda_j |j\rangle,

recovering the eigenvalue equation. Setting all λk=1\lambda_k = 1 gives the completeness relation kkk=1\sum_k |k\rangle\langle k| = \mathbb{1}: the eigenprojectors resolve the identity.

Grouping by eigenvalue: projection-valued form

If an eigenvalue λ\lambda is degenerate (shared by several eigenvectors), collect all of them into a single projector Pλ=k:λk=λkkP_\lambda = \sum_{k:\,\lambda_k = \lambda} |k\rangle\langle k| onto that whole eigenspace. The decomposition becomes a sum over distinct eigenvalues:

A=λλPλ,λPλ=1,PλPλ=δλλPλ.A = \sum_{\lambda} \lambda\, P_\lambda, \qquad \sum_\lambda P_\lambda = \mathbb{1}, \qquad P_\lambda P_{\lambda'} = \delta_{\lambda\lambda'}\,P_\lambda.

The projectors are orthogonal (PλPλ=0P_\lambda P_{\lambda'} = 0 for λλ\lambda \neq \lambda'), each is Hermitian and idempotent (Pλ2=PλP_\lambda^2 = P_\lambda), and they sum to the identity. This basis-independent form is the launchpad for the next two lessons.

Beyond Hermitian: normal operators

The theorem extends to the broader class of normal operators — those satisfying AA=AAA^\dagger A = A A^\dagger. A normal operator is unitarily diagonalizable, with an orthonormal eigenbasis, but its eigenvalues may be complex. Hermitian operators (real eigenvalues) and unitary operators (eigenvalues on the unit circle) are both special cases. This is why both observables and gates can be analyzed with the same diagonalization machinery: they are all normal.

Why it matters

The spectral decomposition A=kλkkkA = \sum_k \lambda_k |k\rangle\langle k| converts hard operator problems into easy number problems. Want the expectation value? It is kλkkψ2\sum_k \lambda_k |\langle k|\psi\rangle|^2 — an average of eigenvalues weighted by probabilities. Want a function of the operator, like eiAte^{-iAt}? Apply the function to each eigenvalue. Want to know the measurement statistics? Read them off the projectors. The next three lessons turn each of these uses into a concrete skill.

Sign in on the full site to ask questions and join the discussion.