1. Home
  2. Explore
  3. Physics
  4. Quantum Algorithms for Chemistry

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

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\mathbb{R}^3R3). 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 NNN 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-1−1.

For two electrons occupying orbitals iii and jjj, the antisymmetric state is

12(∣i⟩∣j⟩−∣j⟩∣i⟩).\frac{1}{\sqrt{2}} \left( |i\rangle|j\rangle - |j\rangle|i\rangle \right).2​1​(∣i⟩∣j⟩−∣j⟩∣i⟩).

This property implies the Pauli exclusion principle: no two electrons can occupy the same orbital (because if i=ji = ji=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 NNN orbitals and η\etaη electrons, the Hilbert space dimension is (Nη)\binom{N}{\eta}(ηN​), not NηN^\etaNη.

Second Quantization: Occupation Representation and Creation/Annihilation Operators

In second quantization, the basis states are occupation-number vectors:

∣n1,n2,…,nN⟩,np∈{0,1}, ∑pnp=η.|n_1, n_2, \dots, n_N\rangle, \quad n_p \in \{0,1\},\ \sum_p n_p = \eta.∣n1​,n2​,…,nN​⟩,np​∈{0,1}, ∑p​np​=η.

We define annihilation operators apa_pap​ and creation operators ap†a_p^\daggerap†​ for each orbital ppp. Their action is:

  • ap∣n1,…,1p,… ⟩=(−1)∑q<pnq∣n1,…,0p,… ⟩a_p |n_1,\dots,1_p,\dots\rangle = (-1)^{\sum_{q<p} n_q} |n_1,\dots,0_p,\dots\rangleap​∣n1​,…,1p​,…⟩=(−1)∑q<p​nq​∣n1​,…,0p​,…⟩ (removes an electron from orbital ppp)

  • ap∣n1,…,0p,… ⟩=0a_p |n_1,\dots,0_p,\dots\rangle = 0ap​∣n1​,…,0p​,…⟩=0 (cannot annihilate a hole)

  • ap†∣n1,…,0p,… ⟩=(−1)∑q<pnq∣n1,…,1p,… ⟩a_p^\dagger |n_1,\dots,0_p,\dots\rangle = (-1)^{\sum_{q<p} n_q} |n_1,\dots,1_p,\dots\rangleap†​∣n1​,…,0p​,…⟩=(−1)∑q<p​nq​∣n1​,…,1p​,…⟩ (creates an electron)

  • ap†∣n1,…,1p,… ⟩=0a_p^\dagger |n_1,\dots,1_p,\dots\rangle = 0ap†​∣n1​,…,1p​,…⟩=0 (cannot create two electrons in the same orbital)

The sign factor (−1)∑q<pnq(-1)^{\sum_{q<p} n_q}(−1)∑q<p​nq​ 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:

{ap,aq†}=δpq,{ap,aq}=0,{ap†,aq†}=0,\{a_p, a_q^\dagger\} = \delta_{pq}, \quad \{a_p, a_q\} = 0, \quad \{a_p^\dagger, a_q^\dagger\} = 0,{ap​,aq†​}=δpq​,{ap​,aq​}=0,{ap†​,aq†​}=0,

where {A,B}=AB+BA\{A,B\} = AB + BA{A,B}=AB+BA.

The number operator n^p=ap†ap\hat{n}_p = a_p^\dagger a_pn^p​=ap†​ap​ counts the occupation of orbital ppp, yielding eigenvalues 0 or 1.

The Electronic Hamiltonian in Second Quantization

In the occupation basis, the electronic Hamiltonian takes the form:

H=∑p,qhpq ap†aq+12∑p,q,r,sgpqrs ap†aq†aras,H = \sum_{p,q} h_{pq}\, a_p^\dagger a_q + \frac12 \sum_{p,q,r,s} g_{pqrs}\, a_p^\dagger a_q^\dagger a_r a_s,H=∑p,q​hpq​ap†​aq​+21​∑p,q,r,s​gpqrs​ap†​aq†​ar​as​,

where the coefficients hpqh_{pq}hpq​ (one-body integrals) capture kinetic energy and electron-nuclei attraction, and gpqrsg_{pqrs}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 η\etaη is usually small (tens), while the number of orbitals NNN 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⟩|1,1,\dots,1,0,\dots,0\rangle∣1,1,…,1,0,…,0⟩ (the η\etaη 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⟩|n_1,\dots,n_N\rangle∣n1​,…,nN​⟩ directly to ∣n1,…,nN⟩|n_1,\dots,n_N\rangle∣n1​,…,nN​⟩ on NNN qubits. However, the fermionic creation/annihilation operators are non-local in this representation because of the antisymmetry sign factor.

  • Jordan-Wigner encoding: maps apa_pap​ to a product of Pauli ZZZ operators on lower-indexed qubits times a local operator (Xp+iYp)/2(X_p + iY_p)/2(Xp​+iYp​)/2. The resulting qubit Hamiltonians are NNN-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 NNN-locality.

  • Bravyi-Kitaev encoding: uses a binary tree structure to achieve log-local Hamiltonians, where each term acts on O(log⁡N)O(\log N)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(θ)U(\theta)U(θ) produces a trial state ∣ψ(θ)⟩|\psi(\theta)\rangle∣ψ(θ)⟩. The energy E(θ)=⟨ψ(θ)∣H∣ψ(θ)⟩E(\theta) = \langle\psi(\theta)|H|\psi(\theta)\rangleE(θ)=⟨ψ(θ)∣H∣ψ(θ)⟩ is measured on the quantum computer, and a classical optimizer adjusts θ\thetaθ to minimize it. Because HHH is Hermitian, the variational principle guarantees E(θ)≥E0E(\theta) \geq E_0E(θ)≥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 ∣ψ⟩|\psi\rangle∣ψ⟩ with overlap ⟨ψ∣E0⟩\langle\psi|E_0\rangle⟨ψ∣E0​⟩, QPE projects into an eigenstate and reads off its energy. With probability ∣⟨ψ∣E0⟩∣2|\langle\psi|E_0\rangle|^2∣⟨ψ∣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 HHH. 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−iHte^{-iHt}e−iHt for some ttt. Standard approaches include:

  • Product formulas (Trotterization): approximate e−iHte^{-iHt}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.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent