What is CASINO?

CASINO is a program for quantum Monte Carlo calculations of the electronic structure of atoms, molecules, surfaces and solids. It computes the properties of interacting electrons by solving the many-electron Schrödinger equation with stochastic methods, working with the many-electron wave function itself, as a function of the coordinates of every electron, rather than through an approximate functional of the density. Its results carry a statistical error bar, which is estimated with them, and a short list of systematic errors that can be named, tested and reduced.

A CASINO calculation in four steps: orbitals from another program, grouped by basis; the trial wave function, a Jastrow factor times a sum of determinants with backflow, with a picture of a determinant's nodes; variational Monte Carlo optimising it and diffusion Monte Carlo projecting out the lowest state with its nodes; and the results, energies, densities and other properties, with error bars
A CASINO calculation. Orbitals from another program (1) make the determinants of a trial wave function (2), which variational Monte Carlo optimises and diffusion Monte Carlo then improves on, keeping its nodes (3), to give energies and other properties with their error bars (4). The picture in (2) is the sign of a determinant of nine plane-wave orbitals as one electron moves through a periodic cell with the other eight held still: its nodes pass through every one of them.

What it computes

Two methods do most of the work. Variational Monte Carlo evaluates the energy, and other properties, of an explicitly correlated trial wave function and optimises its parameters; its accuracy is that of the trial function. Diffusion Monte Carlo then improves on it, projecting out the lowest-energy state that shares the nodal surface of the trial function, by a random walk of a population of electron configurations in imaginary time. CASINO also implements reptation Monte Carlo, which samples pure rather than mixed expectation values; since 2026 it accepts or rejects each move as DMC does, which cuts its time-step error to DMC’s size, and its runs can be stopped and continued like the others.

What these methods compute best is the total energy, and from it energy differences: binding, cohesive, formation and excitation energies, reaction barriers and equations of state. Densities and spin densities, with an error bar at every point, pair-correlation functions, structure factors, momentum densities, density matrices, the exchange-correlation hole and on-top pair density of a molecule, the probability of finding a given number of electrons in a region, dipole moments and, from runs in an applied electric field, polarisabilities, the localisation tensor of a periodic system and, for molecules in Gaussian basis sets, the forces on the atoms can be computed too, at more cost or with biases of their own. The systematic errors of DMC are the fixed-node approximation, by which the nodes of the trial function are imposed on the answer; the finite time step; the finite population of walkers; finite-size effects in periodic systems; and, where they are used, pseudopotentials. The last four can be measured and extrapolated away, and the population-control bias can now be estimated from the history of a single run. The fixed-node error can only be reduced, by a better trial function, and running quantum Monte Carlo well is largely a matter of attending to all five.

The method is expensive: the cost of a given error bar on the total energy rises as the third power of the number of electrons, the fourth with backflow, and steeply with atomic number in all-electron work. In exchange, the calculations parallelise almost perfectly, and CASINO has run efficiently on several hundred thousand processor cores.

Parallel efficiency of CASINO on JaguarPF: speed against number of cores up to 124,000, with CASINO 2.8 on the ideal line
The speed of a DMC calculation against the number of cores on JaguarPF at Oak Ridge, up to 124,000 cores, with the population of walkers fixed per core: CASINO 2.8 lies on the line of perfect scaling where 2.6 had fallen away from it. On the K computer at RIKEN the time for a fixed number of DMC samples fell by a factor of 121 between 4,096 and 524,288 cores, where perfect scaling would give 128.

What it is good for

Quantum Monte Carlo is most useful where electron correlation decides the answer and cheaper methods give a spread of answers depending on the approximation chosen: binding, cohesive and adsorption energies, the relative stability of structures and defects, weakly bound systems, and reference values against which faster methods can be tested. It also suits systems that other methods find awkward: the electron gas in one, two and three dimensions, whose quantum Monte Carlo energies, for the three-dimensional gas, are what the local density approximation of density functional theory was fitted to; electrons and holes in semiconductors; excitons and their complexes; positrons; and particles of arbitrary mass and charge.

What the program offers

CASINO treats finite systems and systems periodic in one, two or three dimensions, with real or complex wave functions, spin-polarised, with non-collinear spins in VMC, and with spin-orbit coupling in VMC and DMC, through two-component spinor orbitals and the spin-orbit parts of relativistic pseudopotentials. Its trial wave functions are of Slater-Jastrow form, with optional multiple determinants, backflow, and geminal and pairing functions, built from orbitals expanded in Gaussians, plane waves, blip functions, Slater-type functions, numeric atom-centred functions, the augmented plane waves of all-electron LAPW programs, or numerical grids. The orbitals come from other programs: in Gaussian basis sets from CRYSTAL, GAUSSIAN, GAMESS-US, MOLPRO, CFOUR, DALTON, NWCHEM, OpenMolcas, ORCA, PSI4, PySCF, Q-Chem and TURBOMOLE, through TREXIO files from PySCF and Quantum Package, and as two-component spinors from DIRAC; in plane waves from PWSCF (Quantum ESPRESSO), ABINIT, CASTEP, QBOX, MCEXX, GP/JEEP and K207; as LAPW orbitals from WIEN2k and Elk, and from exciting and FLEUR through writers had from the CASINO developers on request; as numeric atom-centred orbitals from FHI-aims and BAND; as Slater functions from ADF; and as numerical orbitals of atoms from ATSP2K and of diatomic molecules from 2DHF. The interfaces page describes each. Periodic Coulomb interactions are computed by Ewald sums or by the model periodic Coulomb interaction, which is faster and has smaller finite-size errors; non-local pseudopotentials are treated by the locality approximation or by Casula’s T-move scheme, and a library of pseudopotentials made for quantum Monte Carlo is provided.

Also there: optimisation of the trial wave function by variance or energy minimisation, followed by DMC in the same run if wished; compressed multideterminant expansions; twisted boundary conditions and twist averaging; the fixed-phase approximation for systems in a magnetic field; core-polarisation potentials; localised orbitals, with which the time to move every electron grows only in proportion to their number; runs that stop when they reach a target error bar, or at the smallest error bar a given time allows; a diagnosis of incomplete DMC equilibration; and coupled DFT and DMC molecular dynamics by the Grossman-Mitas method. The manual’s first chapter lists every facility and how far each is developed.

And there are tools for seeing what a calculation is doing: pictures of a wave function’s nodal surface in a web page, films of the walkers of a run for OVITO or Blender, de Broglie-Bohm trajectories in a superposition of CASINO wave functions, and CASINO’s own VMC and DMC running in a web browser, with nothing installed.

The program is written in Fortran and runs in parallel with MPI, with OpenMP threads, shared memory and, experimentally, graphics processors through OpenACC as further options; it runs equally on a laptop and on the largest machines. It comes with a manual, rewritten in 2026 as a narrative for new users with a reference part generated from the code where it can be, which explains the methods as well as the options, maps what works with each kind of orbital and each route from another program, and lists the faults of earlier versions with the versions that fixed them; worked examples; a help system that describes every keyword; a set of test calculations with their reference results; and a large set of utilities for preparing input, running calculations and analysing their output.

Who made it

The research programme that led to CASINO was begun in the early 1990s by Richard Needs in the Theory of Condensed Matter group at the Cavendish Laboratory, Cambridge, with Guna Rajagopal, Matthew Foulkes and a number of students and postdoctoral researchers. Mike Towler, who joined the group late in 1996, gathered their test programs into a single program for atoms, molecules and periodic systems, and the first public version of CASINO appeared in 1999. Neil Drummond, from 2002, and Pablo López Ríos, from 2004, made fundamental improvements and extensions to it, and these four are its principal authors; many others have contributed over the years, and are named in the manual. The program is maintained by Mike Towler, with Neil Drummond and Pablo López Ríos.

CASINO 3.0 was released on 15 August 2026, the first release since 2013, and CASINO 3.2 on Halloween, 31 October 2026. Development is continuous: the beta offered at download is rebuilt each time a change is published, every change is described in the public DIARY, and the things-to-do page says what has been done and what is planned.

CASINO is free for academic and other non-profit use: request a copy, and please cite it in work that uses it. Questions go to the discussion forum, and the reading list is the place to start learning the method.

Charge migration: chloroacetylene

Full screen: the button among the film’s controls, at its lower right in most browsers, or in Firefox, Chrome and Edge a double-click on the film; on a phone, tap the film, then that button, and turn the phone sideways. Or open the film by itself, alone in the browser’s window.

Chloroacetylene, H–C≡C–Cl, after one electron is taken from it suddenly, out of the orbital that lies mostly on the chlorine, computed with CASINO v3.1.1298 on 27 October 2026. The nuclei are held still and the ion kept to the two of its states that make up most of what the removal leaves, whose beat sends the hole the electron left from the chlorine to the triple bond and back every 1.2 femtoseconds: amber where the ion has less electron density than the neutral molecule, blue where it has more. The streaks are the paths of the fifteen remaining outer electrons, each moved by de Broglie–Bohm theory’s guidance law with its spin a fixed label, first in one molecule and then in 296 drawn together, whose electrons sample the ion’s density at the start and at every beat, the approximations letting the sample drift from it between beats; the clock is the calculation’s time, a second of film being about 167 attoseconds. The ion’s states came from configuration interaction and the energy that sets the beat from coupled cluster, both computed with PySCF, and were carried to CASINO by TREXIO and trexio2qmc; CASINO’s pilotdrive integrated the paths, and the film was rendered in Blender. Chlorine’s spin-orbit coupling is left out; in the real molecule the nuclei move, and the beat is expected to fade within a few femtoseconds; and the usual formulation of quantum mechanics gives the electrons no paths. Film by Mike Towler.

One molecule at half a beat, the hole on the triple bond, with the paths of its fifteen outer electrons since the electron was taken; and the 296 molecules at the eighth beat, the hole back on the chlorine and every electron near where it began, with its last 0.1 femtoseconds.

Leave a Reply