Machine-learned potentials
for molecular chemistry

Hands-on AIMNet2 tutorial · 90 minutes · AiMat Summer School 2026, Machine Learning for Molecules

Almost everything you want to know about a molecule follows from one function: its potential energy as a function of where the atoms are. This tutorial computes seven different things from that one function, in ninety minutes, on a laptop.

energy → geometry → conformers → dynamics → reactions → spectra → reactivity

Nine notebooks, in one direction. Every concept is defined where it is first needed. You need to be able to read Python; you do not need to have run a quantum chemistry calculation before. Molecules are shown in an interactive 3D viewer wherever the structure itself is the point.

Start here → Google Colab in one click, or a local install on macOS, Windows or Linux Slides → 33 slides. Arrow keys to advance, O for an overview, P to print to PDF Repository → Notebooks, worked solutions and these pages. MIT licensed

The nine notebooks

Each one installs its own dependencies and stands alone, so arriving late or losing a kernel costs you nothing.

  1. OrientationThe potential energy surface, and what a machine-learned potential replacesopen in colab
  2. Energy, forces and chargeTotal charge is an input to the network, not a correction applied afterwardsopen in colab
  3. Geometry optimisationWater to within 0.01 Å and 0.5° of experiment; an optimisation finds the nearest minimum, not the best oneopen in colab
  4. Conformational analysisWhich form is populated at room temperature, and by how much. Eight systems, one per seatopen in colab
  5. Molecular dynamicsWatching a molecule move, why a short trajectory resolves less than it seems to, and energy conservation as a testopen in colab
  6. Reactions and transition statesAn SN2 saddle point, confirmed by exactly one imaginary frequencyopen in colab
  7. Infrared spectraFrom the curvature of the surface to a predicted spectrum. Eight molecules, one per seatopen in colab
  8. Chemical reactivityElectrophilicity and Fukui functions from three charge states. Eight molecules, one per seatopen in colab
  9. Further directionsPeriodic systems, bond dissociation energies, palladium, OpenMM, pysisyphusopen in colab

The three exercises

About thirteen minutes each. Systems are handed out by seat number, so no two neighbours compute the same thing and the room pools its results into one table. Worked answers for all eight seats are in solutions/.

Question the student answersThe eight systems
Which conformer is populated at room temperature, and by how much? butane, methylcyclohexane, ethylene glycol, glycine, 1,2-dichloroethane, 1,4-butanediol, ibuprofen, alanine dipeptide
Which vibration gives the strongest infrared band, and where is it? water, formaldehyde, methanol, acetone, acetonitrile, chloroform, benzene, ethanol
Where does a nucleophile attack, and how electrophilic is the molecule? methyl vinyl ketone, acrolein, acrylonitrile, acetone, phenol, aniline, anisole, nitrobenzene

What gets computed

QuantityObtained from
1energies, forces, partial charges, dipole moments a single evaluation of the surface
2equilibrium structures following the forces downhill
3conformer populations at 298 K many minima plus the Boltzmann distribution
4thermal motion, and what a trajectory can resolve integrating the equations of motion
5a transition state and its reaction coordinate the Hessian at a saddle point
6an infrared spectrum with assigned bands the Hessian at a minimum, plus dipole derivatives
7electrophilicity and the site of attack energies and charges at N and N ± 1 electrons

Every one of these is a property of the same function, E(R), evaluated in a different way.