Quantum Algorithms for Chemistry
Quantum Chemistry for Quantum Computing
The Chemical Hamiltonian and the Born-Oppenheimer Approximation
The starting point for quantum chemistry simulations is a model where nuclei are treated as classical point charges fixed in space, surrounded by a cloud of quantum electrons. This separation is justified because nuclei are much more massive than electrons, so their quantum behavior can be neglected to a very good approximation. This assumption is called the Born-Oppenheimer approximation.
The model neglects relativistic effects, but for predicting chemical reactions it serves as the fundamental starting point. For a given fixed set of nuclear positions, the electrons rearrange themselves into some quantum state, yielding an effective energy. The nuclei exert forces on the electrons, and the electrons' quantum mechanical state determines the electronic contribution to the total energy.
Energy Landscapes and the Goal of Quantum Chemistry
If we compute the energy for every possible arrangement of nuclei, we obtain an energy landscape — a function of the nuclear coordinates that returns the total energy. In this landscape:
Molecules are simply local minima of the energy landscape.
Chemical reactions are pathways from one local minimum to another, following the landscape.
The primary computational challenge addressed in quantum computing is not exploring this landscape (which is a separate hard problem), but rather evaluating the energy function for a fixed nuclear configuration. More precisely, the central goal is:
Finding the ground state of the electronic Hamiltonian for a given nuclear geometry.
This involves computing the electronic contribution to the energy, which is the difficult part because electrons are quantum mechanical. The nuclear-nuclear Coulomb interaction is classical and trivial to compute.
Discretization: Basis Sets and Orbitals
Electrons live in an infinite-dimensional space (their wave function is a function of continuous position in R3). To simulate them on a computer, we must discretize by introducing a finite set of one-electron basis functions called orbitals. An orbital is simply a basis function for a single electron.
Given a set of N orbitals, any single-electron wave function can be approximated as a linear combination of these orbitals. For two electrons, the wave function lives in a space spanned by tensor products of orbitals. The error introduced by using a finite basis instead of the full infinite-dimensional space is called the basis set error.
The choice of basis matters enormously: good basis functions capture the ground state with as few orbitals as possible. A large part of classical computational chemistry is devoted to developing efficient basis sets.
Fermions and Antisymmetry
Electrons are fermions: identical particles whose wave function must be antisymmetric under exchange of any two particles. Mathematically, swapping two electrons multiplies the wave function by −1.
For two electrons occupying orbitals i and j, the antisymmetric state is
This property implies the Pauli exclusion principle: no two electrons can occupy the same orbital (because if i=j, the state would be zero).
The antisymmetry constraint means we cannot treat electrons as labeled particles. Instead, we use an occupation representation (second quantization), where states are indexed by bitstrings indicating which orbitals are occupied by electrons. For N orbitals and η electrons, the Hilbert space dimension is (ηN), not Nη.
Second Quantization: Occupation Representation and Creation/Annihilation Operators
In second quantization, the basis states are occupation-number vectors:
We define annihilation operators ap and creation operators ap† for each orbital p. Their action is:
ap∣n1,…,1p,…⟩=(−1)∑q<pnq∣n1,…,0p,…⟩ (removes an electron from orbital p)
ap∣n1,…,0p,…⟩=0 (cannot annihilate a hole)
ap†∣n1,…,0p,…⟩=(−1)∑q<pnq∣n1,…,1p,…⟩ (creates an electron)
ap†∣n1,…,1p,…⟩=0 (cannot create two electrons in the same orbital)
The sign factor (−1)∑q<pnq enforces antisymmetry. It arises from the parity of the permutation needed to bring the creation/annihilation operator past other occupied orbitals.
The operators satisfy the fermionic anticommutation relations:
where {A,B}=AB+BA.
The number operator n^p=ap†ap counts the occupation of orbital p, yielding eigenvalues 0 or 1.
The Electronic Hamiltonian in Second Quantization
In the occupation basis, the electronic Hamiltonian takes the form:
where the coefficients hpq (one-body integrals) capture kinetic energy and electron-nuclei attraction, and gpqrs (two-body integrals) capture the electron-electron Coulomb repulsion. These coefficients are computed from integrals over the chosen orbital basis functions.
Despite this compact form, the Hamiltonian is QMA-complete — no easier than generic local Hamiltonians in the worst case. However, the coefficients come from physical integrals, giving the Hamiltonian special structure that heuristics can exploit.
A key difference from typical local Hamiltonian problems: in quantum chemistry, the number of electrons η is usually small (tens), while the number of orbitals N is much larger (hundreds or thousands). The local dimension is large, not the number of particles.
Classical Computational Methods
Hartree-Fock
Hartree-Fock is the starting point for almost all classical and quantum methods. It finds the best single Slater determinant (i.e., a single occupation bitstring in some rotated basis) by varying the orbitals to minimize the energy. This is a mean-field approximation: each electron moves in the average field of all others.
The Hartree-Fock procedure yields a Hartree-Fock basis in which the Hartree-Fock state is simply ∣1,1,…,1,0,…,0⟩ (the η lowest-energy orbitals filled). The energy is typically within a few percent of the true ground state energy.
Configuration Interaction and Adaptive Sampling
Beyond Hartree-Fock, configuration interaction (CI) includes states that differ from the Hartree-Fock reference by exciting electrons from occupied to unoccupied orbitals:
Singles: one electron moved.
Doubles: two electrons moved.
Triples, etc.
Including more excitations improves accuracy but increases cost exponentially. Full configuration interaction (FCI) includes all possible excitations, effectively diagonalizing the Hamiltonian in the full Hilbert space (up to basis set error). FCI is the gold standard but only feasible for tiny systems.
Adaptive sampling methods start with a small set of determinants, expand the set by considering states connected via the Hamiltonian, diagonalize in the larger space, then truncate back to the most important determinants. This iterative process converges empirically. Similar ideas appear in tensor-network methods like matrix product states.
These classical methods are enormously successful for many systems, but they fail when the ground state is strongly correlated — requiring many determinants for an accurate description. This is precisely where quantum computers may help.
Quantum Computing for Quantum Chemistry
The core idea: prepare the ground state of the electronic Hamiltonian directly on a quantum computer, avoiding the need to write down exponentially many amplitudes.
Mapping Fermions to Qubits
Occupation states are naturally indexed by bitstrings, so it is tempting to map ∣n1,…,nN⟩ directly to ∣n1,…,nN⟩ on N qubits. However, the fermionic creation/annihilation operators are non-local in this representation because of the antisymmetry sign factor.
Jordan-Wigner encoding: maps ap to a product of Pauli Z operators on lower-indexed qubits times a local operator (Xp+iYp)/2. The resulting qubit Hamiltonians are N-local (tensor products of Paulis), which is manageable for energy measurement but complicating for time evolution.
Parity encoding: encodes the parity of occupations locally, but makes occupations non-local — similar N-locality.
Bravyi-Kitaev encoding: uses a binary tree structure to achieve log-local Hamiltonians, where each term acts on O(logN) qubits. This is the most practical for many algorithms.
More recent locality-preserving encodings exist, especially for fermions on lattices. Some encodings (e.g., Majorana loop stabilizer codes) have error-correcting properties.
In practice, we express the Hamiltonian in the concise fermionic representation and then transform it to a qubit representation as needed.
Ground State Preparation Methods
Several approaches are used, often combined.
Variational Quantum Eigensolver (VQE)
A parameterized quantum circuit U(θ) produces a trial state ∣ψ(θ)⟩. The energy E(θ)=⟨ψ(θ)∣H∣ψ(θ)⟩ is measured on the quantum computer, and a classical optimizer adjusts θ to minimize it. Because H is Hermitian, the variational principle guarantees E(θ)≥E0.
A powerful chemistry-inspired ansatz is Unitary Coupled Cluster (UCC), which exponentiates a sum of one-body and two-body excitation operators (similar to the Hamiltonian terms but with variational parameters). The UCC ansatz starts from the Hartree-Fock state and systematically adds correlations.
Quantum Phase Estimation (QPE)
Given an initial state ∣ψ⟩ with overlap ⟨ψ∣E0⟩, QPE projects into an eigenstate and reads off its energy. With probability ∣⟨ψ∣E0⟩∣2, it yields the ground state energy. Classical methods can produce approximate ground states with high overlap, making QPE feasible for quantum advantage.
Adiabatic State Preparation
Start in the ground state of an easy Hamiltonian (e.g., whose ground state is Hartree-Fock), then slowly interpolate to the target Hamiltonian H. If the evolution is slow enough (according to the minimum gap), the state remains in the instantaneous ground state, ending in the target ground state. This is a heuristic — the required time may be long, but for chemical systems it might be practical.
Hamiltonian Simulation
All these methods require implementing time evolution e−iHt for some t. Standard approaches include:
Product formulas (Trotterization): approximate e−iHt by a product of exponentials of individual terms, repeated many times. Recent analytic improvements make this competitive with more sophisticated methods.
Quantum singular value transformation: a general framework that efficiently implements functions of Hamiltonians, including time evolution.
Summary and Outlook
Quantum chemistry is primarily about finding ground states of a specific class of Hamiltonians.
Classical methods (Hartree-Fock, CI, adaptive sampling) are extremely successful for weakly correlated systems but struggle with strong correlation.
Quantum computers can help by directly preparing highly entangled ground states.
The path to quantum advantage involves careful choices of basis sets, fermion-to-qubit mappings, state preparation algorithms, and simulation primitives — all interacting in subtle ways.
Progress requires understanding trade-offs and exploiting the structure of chemical Hamiltonians.

Ask anything
We've read this whole study set, so questions about it get the best answers.