Potential energy surfaces
In the statistical mechanics chapter we saw that the potential energy function
Understanding the topology of the PES — its minima, barriers, and symmetries — is essential for designing efficient sampling strategies and interpreting simulation results.
What is a potential energy surface?
A potential energy surface maps every configuration
Key features of a PES include:
- Minima — stable configurations where the system tends to reside at low temperature
- Saddle points — transition states connecting different minima
- Barriers — energy differences that separate minima, determining transition rates
- Basins of attraction — regions of configuration space that drain toward a particular minimum
In practice, the PES can have an astronomically large number of minima and saddle points, especially for many-particle systems. This is what makes sampling so challenging.
A gallery of 2D energy landscapes
To build intuition, let's explore a collection of 2D energy functions. Each surface has a different character — from simple unimodal to highly multimodal — and poses different challenges for sampling algorithms.
Some observations:
- Hosaki has a local and a global minimum — a common situation where sampling can get trapped in the wrong basin
- Himmelblau has four equivalent minima, testing the algorithm's ability to explore symmetric landscapes
- Rastrigin and Ackley are highly multimodal with many local minima — a worst-case scenario for local search methods
- Rosenbrock has a narrow curved valley — easy to find the minimum, hard to sample the distribution
- Double well has two equivalent minima separated by a barrier — a minimal model for phase transitions
Non-periodic systems: molecules
For an isolated molecule with
For a diatomic molecule, the PES reduces to a simple 1D curve
The Ramachandran plot
A classic example from structural biology is the Ramachandran plot. A protein backbone is a repeating chain of N–C
The energy surface is computed from steric repulsion between non-bonded atoms in the peptide fragment: when atoms overlap (high
Periodic systems: crystals and the toy model
In condensed matter, systems are typically described using periodic boundary conditions (PBC). Instead of tracking isolated molecules, we define a repeating unit cell and tile space periodically. The configuration is then specified by:
- The cell parameters — shape and size of the unit cell (related to volume)
- The atomic positions within the cell — usually given as fractional coordinates
This introduces a new degree of freedom compared to isolated systems: the volume (or more generally, the cell shape). The PES now depends on both atomic positions and cell parameters, and the volume becomes a thermodynamic variable that can fluctuate in the NPT ensemble.
A toy model for periodic systems
To illustrate these ideas concretely, we use a toy model: two particles in a one-dimensional periodic box, interacting via a pair potential with a repulsive core and an attractive well. The system has just two degrees of freedom:
— the interparticle distance — the lattice parameter (box length), playing the role of volume
Due to periodic boundary conditions, particles that move beyond the box are wrapped back. This means that configurations with
The interactive visualization above shows the PES alongside a schematic of the simulation box. The red dot on the PES marks the current configuration. Try varying:
- Lattice parameter
— changes the box size (volume). At small , the particles are forced close together, hitting the repulsive wall. - Distance
— moves the particles within the box. The attractive well creates a preferred separation. - Pressure
— adds a term, tilting the surface to penalize large volumes. This turns the energy surface into an enthalpy surface.
The effect of pressure
At zero pressure, the PES has an extended minimum valley at the preferred interparticle distance, and the system is free to expand to any box size. Applying pressure adds a linear term
This is exactly the physics that nested sampling explores in real materials: by systematically lowering the energy threshold, NS maps out how the system transitions between expanded and compact phases as a function of pressure and temperature — as we saw in the statistical mechanics chapter.
The challenge of high-dimensional PES
The 2D examples above are useful for building intuition, but real systems have
- Exponential growth of local minima — the number of distinct minima grows exponentially with system size
- Entropy matters — wide, shallow basins can dominate over narrow, deep ones at finite temperature (the free-energy landscape differs from the energy landscape)
- Barriers scale with system size — making transitions between basins rare events in conventional sampling
- The curse of dimensionality — uniform sampling becomes exponentially inefficient
These challenges motivate the development of advanced sampling methods. Nested sampling addresses them by systematically compressing the accessible volume, avoiding the need to cross barriers directly. The MCMC methods used within NS — Metropolis-Hastings, Hamiltonian Monte Carlo, and Galilean Monte Carlo — each have different strengths for navigating complex landscapes.