Atomic Many-body Perturbation theory in the Screened Coulomb Interaction
ampsci is a c++ program for high-precision atomic structure calculations of one and two valence atomic systems, developed and maintained by Benjamin M. Roberts, University of Queensland, Australia
Designed to be fast, accurate, and easy to use.
- Solves the correlated Dirac equation using the Hartree-Fock + correlation potential method (based on Dzuba-Flambaum-Sushkov method) to produce a set of atomic wavefunctions and energies.
- For two-valence systems, uses the CI+MBPT (Configuration Interaction with many-body perturbation theory) method.
- Fully relativistic, includes electron correlations, all-orders screening and hole-particle interaction, finite-nuclear size, Breit interaction, radiative QED effects, RPA for matrix elements, and structure radiation/renormalisation.
- QED is included via the Flambaum-Ginges radiative potential method.
- Can solve for continuum states with high energy, and calculate ionisation cross sections with large energy/momentum transfer.
- Can solve for exotic atoms (e.g., muonic atoms), including electron screening.
- The "modules" system see ampsci.dev/modules) makes it relatively simple to add your own routines to use the atomic wavefunctions to calculate whatever properties you may be interested in.
- You can also write wavefunction output to disk in a JSON format, which can be read in to python, for example
The code is on GitHub: github.com/benroberts999/ampsci
- See ampsci.dev/ for full documentation
- A full description of the physics methods and approximations, including references, is given in the physics documentation: ampsci.pdf.
Important: this is a pre-release version of the code: not fully tested or documented, and should not be used for publishable calculations (without consultation)


Compilation and usage
Quick start
./install-dependencies.sh
./configure.sh -y
make
- The
configure.sh bash script should automatically set up a Makefile, and then make will compile ampsci
- This should work on nearly all systems, but may not work on all
- It assumes dependencies have already been installed. Requires:
- C++ compiler (e.g., g++)
- lapack, blas, and GSL libraries
- make (to compile)
- [optionally] OpenMP
- The
install-dependencies.sh bash script should install all required dependencies.
- It should work on most systems, but may not work on all
- If there are any issues, see full compilation instructions at ampsci.dev/compilation.html
Tutorials/examples
Much of ampsci documentation can be seen from the command line:
- See which ampsci input options are available:
./ampsci -i
- See available input options for each input block by following with its name
- e.g.,
./ampsci -i HartreeFock
- Check which Modules are aviable:
./ampsci -m
- See available input options for each module by following with its name
- e.g.,
./ampsci -m MatrixElements
- Check which operators are aviable:
./ampsci -o
- See available input options for each operator by following with its name
- e.g.,
./ampsci -o hfs
Also check out the example input files to get running:
doc/examples/ampsci.in – an example/template input file
- More: in
doc/examples/
- There are several other example input files, along with the expected output; use these to test if everything is working
Looking for atomic ionisation form-factors for dark-matter-electron scattering?
- See
Kionisation module (./ampsci -m Kionisation)
Publications
The ampsci code and methods have been described in the following papers
- A. R. Caddell, V. V. Flambaum, B. M. Roberts, Accurate electron-recoil ionization factors for dark matter direct detection in xenon, krypton and argon, Physical Review D 108, 083030 (2023), [arXiv:2305.05125]
- B. M. Roberts, C. J. Fairhall, J. S. M. Ginges, Electric dipole transition amplitudes for atoms and ions with one valence electron, Physical Review A 107, 052812 (2023), [arXiv:2211.11134]
A selection of publications resulting from ampsci
- R. B. Cserveny, B. M. Roberts, Theoretical characterization of the barium II and radium II ions, Physical Review A 112, 032816 (2025), [arXiv:2505.05230]
- B. Carew, A. R. Caddell, T. N. Maity, C. A. J. O'Hare, The neutrino fog for dark matter-electron scattering experiments, arXiv:2312.04303
- R. Hamilton et al., Experimental and Theoretical Study of Dynamic Polarizabilities in the \( 5S - 5D_{5/2} \) Clock Transition in Rubidium-87 and Determination of Electric Dipole Matrix Elements, Physical Review Applied 19, 054059 (2023), [arXiv:2212.10743]
- C. J. Fairhall, B. M. Roberts, J. S. M. Ginges, QED radiative corrections to electric dipole amplitudes in heavy atoms, Physical Review A 107, 022813 (2023), [arXiv:2212.11490]
- The COSINE-100 Collaboration, Constraints on sub-GeV dark matter scattering on electrons with COSINE-100, Physical Review D 113, 072012 (2026).
- The NEON Collaboration, First Direct Search for Light Dark Matter Using the NEON Experiment at a Nuclear Reactor, Physical Review Letters 134, 021802 (2025)
- J. M. Cline, M. Puel, and T. Toma, Boosted dark matter from a phantom fluid, Physics Letters B 848, 138377 (2024)
- The XENON Collaboration, Search for Electronic Recoil Event Rate Modulation with 4 Years of XENON100 Data, Physical Review Letters 118, 101101 (2017)