- Mathematics
Eigenvalue and Eigenvector
For a linear operator A, an eigenvector |v⟩ satisfies A|v⟩ = λ|v⟩ where λ is the eigenvalue, representing states that are unchanged in direction by the operator, crucial in quantum mechanics where observables are Hermitian operators whose eigenvalues are measurement outcomes.
Eigenvalues and eigenvectors are the backbone of quantum measurement theory. Every physical quantity that can be measured (position, momentum, energy, spin) corresponds to a Hermitian operator, and the only values that can appear as measurement results are the eigenvalues of that operator.
Definition
For a square matrix (or linear operator) , a nonzero vector is an eigenvector with eigenvalue if:
Applying to stretches or shrinks it by but does not rotate it. The set of all eigenvalues is the spectrum of .
Hermitian operators and real eigenvalues
Observables are represented by Hermitian operators: . Their eigenvalues are always real (since forces ). Eigenvectors of distinct eigenvalues are orthogonal, and the full set forms an orthonormal basis (the spectral theorem).
The measurement postulate
When measuring observable on state :
- Express in the eigenbasis of : where .
- The probability of obtaining outcome is .
- After the measurement, the state collapses to .
The expected value of the measurement is:
Examples from quantum gates
Pauli Z gate: eigenvalues and with eigenvectors and :
Measuring in the basis is the standard computational-basis measurement.
Pauli X gate: eigenvalues (eigenvector ) and (eigenvector ), where . To measure in the basis, apply before measuring in the basis.
Eigenvalues in quantum algorithms
Variational Quantum Eigensolver (VQE): finds the ground-state energy of a molecule by minimizing over circuit parameters . The ground state energy is the lowest eigenvalue of the molecular Hamiltonian .
Quantum Phase Estimation (QPE): given a unitary and eigenvector with , QPE estimates the phase in the eigenvalue. Shor’s algorithm uses QPE as a subroutine to find the period of modular exponentiation.
Quantum Fourier Transform: the QFT diagonalizes the shift operator, exposing its eigenstructure. The speedup in many quantum algorithms comes from efficient access to spectral information.
Code example
import numpy as np
# Pauli Z matrix
Z = np.array([[1, 0], [0, -1]], dtype=complex)
eigenvalues, eigenvectors = np.linalg.eigh(Z)
print("Z eigenvalues:", eigenvalues) # [-1., 1.]
print("Z eigenvectors (columns):\n", eigenvectors)
# Simple 2-qubit Hamiltonian H = Z tensor Z
Z_tensor_Z = np.kron(Z, Z)
evals, evecs = np.linalg.eigh(Z_tensor_Z)
print("\nZ⊗Z eigenvalues:", evals) # [-1, -1, -1, 1] -- check ordering
print("Ground state energy:", evals[0])
# Verify: A|v> = lambda|v> for the lowest eigenvalue
v0 = evecs[:, 0]
residual = np.linalg.norm(Z_tensor_Z @ v0 - evals[0] * v0)
print("Residual ||A|v> - lambda|v>||:", residual) # should be ~0