|q⟩ Bad Qubits

beginner · Physics · Observables, Operators & Measurement

Hermitian Operators

Every physical quantity you can measure — position, momentum, energy, spin — is represented in quantum mechanics by a linear operator acting on the state space. Not every operator is acceptable, however. The special requirement is Hermiticity.

The adjoint of an operator

Given an operator A^\hat{A} on a complex vector space, its adjoint (also called the Hermitian conjugate) A^†\hat{A}^\dagger is defined by the condition

⟨ψ∣A^ϕ⟩=⟨A^†ψ∣ϕ⟩\langle \psi | \hat{A} \phi \rangle = \langle \hat{A}^\dagger \psi | \phi \rangle

for all states ∣ψ⟩|\psi\rangle and ∣ϕ⟩|\phi\rangle. For a finite-dimensional matrix, taking the adjoint means transposing and complex-conjugating every entry:

(A†)ij=Aji∗.(A^\dagger)_{ij} = A_{ji}^*.

An operator is Hermitian (or self-adjoint) when A^†=A^\hat{A}^\dagger = \hat{A}, meaning the matrix is unchanged by this operation.

Why observables must be Hermitian

There are two complementary reasons, and together they make Hermiticity unavoidable.

Reason 1 — real expectation values. A measurement result is a real number. The expectation value of A^\hat{A} in state ∣ψ⟩|\psi\rangle is

⟨A^⟩=⟨ψ∣A^∣ψ⟩.\langle \hat{A} \rangle = \langle \psi | \hat{A} | \psi \rangle.

For this to be real we need ⟨A^⟩=⟨A^⟩∗\langle \hat{A} \rangle = \langle \hat{A} \rangle^*. Working out the complex conjugate of a matrix element:

⟨ψ∣A^∣ψ⟩∗=⟨ψ∣A^†∣ψ⟩.\langle \psi | \hat{A} | \psi \rangle^* = \langle \psi | \hat{A}^\dagger | \psi \rangle.

Reality therefore demands A^=A^†\hat{A} = \hat{A}^\dagger, i.e. Hermiticity.

Reason 2 — real eigenvalues. The eigenvalues of A^\hat{A} are the only outcomes a measurement can return (the spectral postulate). If A^∣a⟩=a∣a⟩\hat{A} | a \rangle = a | a \rangle, then taking the adjoint of both sides gives

⟨a∣A^†=a∗⟨a∣.\langle a | \hat{A}^\dagger = a^* \langle a |.

If A^\hat{A} is Hermitian, A^†=A^\hat{A}^\dagger = \hat{A}, so we can sandwich the eigenvalue equation between ⟨a∣\langle a | and ∣a⟩|a\rangle:

⟨a∣A^∣a⟩=a⟨a∣a⟩=a,⟨a∣A^†∣a⟩=a∗⟨a∣a⟩=a∗.\langle a | \hat{A} | a \rangle = a \langle a | a \rangle = a, \quad \langle a | \hat{A}^\dagger | a \rangle = a^* \langle a | a \rangle = a^*.

Since both expressions equal the same inner product, a=a∗a = a^*, which means aa is real.

Orthogonal eigenstates

A further key property: eigenstates of a Hermitian operator belonging to different eigenvalues are orthogonal. If A^∣a⟩=a∣a⟩\hat{A}|a\rangle = a|a\rangle and A^∣b⟩=b∣b⟩\hat{A}|b\rangle = b|b\rangle with a≠ba \neq b, then

(a−b)⟨a∣b⟩=0  ⟹  ⟨a∣b⟩=0.(a - b)\langle a | b \rangle = 0 \implies \langle a | b \rangle = 0.

This means the eigenstates form an orthonormal basis — exactly the kind of basis needed to expand an arbitrary state and read off measurement probabilities via the Born rule.

A concrete example: the Pauli-Z operator

The Pauli-Z operator, written as a matrix in the {∣0⟩,∣1⟩}\{|0\rangle, |1\rangle\} basis, is

Z=(100−1).Z = \begin{pmatrix} 1 & 0 \\ 0 & -1 \end{pmatrix}.

Because ZZ is already real and symmetric (equal to its own transpose), Z†=ZZ^\dagger = Z: it is Hermitian. Its eigenvalues are +1+1 and −1-1, both real, as required. The corresponding eigenstates are ∣0⟩|0\rangle and ∣1⟩|1\rangle, which are orthogonal.

Expectation value in the state ∣+⟩|{+}\rangle

The state ∣+⟩=12(∣0⟩+∣1⟩)|{+}\rangle = \frac{1}{\sqrt{2}}(|0\rangle + |1\rangle) has equal probability 12\tfrac{1}{2} for each of the two eigenvalues. Using the Born rule the expectation value of ZZ is

⟨Z⟩∣+⟩=12(+1)+12(−1)=0.\langle Z \rangle_{|+\rangle} = \tfrac{1}{2}(+1) + \tfrac{1}{2}(-1) = 0.

This result reflects the fact that ∣+⟩|{+}\rangle is an eigenstate of XX (not ZZ), so the spin has no preferred zz-component.

Try it

This is a numerical exercise — your code should return a number. Compute the expectation value of the Pauli-Z operator in the state ∣+⟩|{+}\rangle.

Run your code to see the quantum state.

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