For the last few years (yes, since before AI!) I've been working on a Python quantum chemistry program mostly to develop my own understanding, but also to try a new take on a quantum chemistry program — one that has as seamless a user experience as possible.
Unlike general purpose programs like ORCA, the humble TUNA code is specifically designed with diatomic molecules in mind. These molecules are complex enough to expose many challenges for electronic structure methods, but have simplicity that brings many benefits.
Due to the one-dimensional geometry of diatomics, unlike all (?) other quantum chemistry programs, TUNA does not use input files and is run directly from the command line, by:
TUNA [Calculation Type] : [Atom 1] [Atom 2] [Distance] : [Method] [Basis Set]
For example, a single point calculation with Hartree–Fock theory on the hydrogen molecule is:
TUNA SPE : H H 1.0 : HF cc-pVDZ
And an optimisation of carbon monoxide with CCSD is:
TUNA OPT : C O 1.1 : CCSD cc-pVDZ
The output is then printed directly to the terminal, in what I believe to be an attractive and clear way! With this approach, you can easily compare different quantum chemical methods and basis sets, of which TUNA contains many. We have various exchange–correlation functionals for DFT, perturbation theory methods up to MP4, coupled cluster up to CCSDTQ, and recently configuration interaction methods like CASSCF.
While TUNA is not primarily designed for speed, its slow steps use NumPy, so it can be surprisingly swift. Since diatomics are small enough to avoid writing to disk, and lots of symmetry can be exploited, TUNA calculations are often faster than other programs, sometimes much faster.
Another unique benefit of TUNA is that diatomics mean that numerical differentiation of the energy is viable as a general strategy for property calculations, rather than a fallback. This means that any of the implemented electronic structure methods automatically works with the whole program to calculate any implemented energy-derivative property.
Basis set extrapolation enables these derivatives to be taken at the complete basis set level for all methods and properties. For example, an approximate complete basis set polarisability calculation via fourth-order perturbation theory is:
TUNA SPE : Li H 1.6 : MP4 cc-pVTZ : POLAR EXTRAPOLATE
Without rambling on too much further, available calculation types in TUNA include single point energies (SPE), coordinate scans (SCAN), optimisations (OPT), harmonic frequency (FREQ), molecular dynamics* (MD), and full (or perturbative) anharmonic frequencies (ANHARM) through solving the nuclear Schrödinger equation on the whole potential energy surface. Lots of methods and basis sets are implemented.
If TUNA sounds interesting, please try it out with pip install quantumtuna, check out the GitHub repository, which contains a detailed manual with tons of copy-and-pasteable command line examples, or read the ArXiv paper, which gets into more of the technical aspects of the program!
Please give the GitHub page a star if you think it's warranted! I hope TUNA can be useful for quantum chemical education going forwards, and provide a low friction environment for students to experiment with methods and code as I have done while developing it.
By this point, TUNA has become quite a feature-rich program, despite its narrow molecular scope. I'd be really grateful for any feedback, whether about the program itself, the installation, documentation or my attempt at marketing it!
* Because why not!
Edit: Not any molecular property.