DIRAC

Relativistic quantum chemistry with four-component Hamiltonians, for molecules containing heavy elements.

Tool 006 of 100 in the MolForge directory of open-source tools. Every fact below was read from the repository's host on 2026-11-28.

DIRAC, open-source tool for molecular quantum chemistry (ab initio and DFT): Relativistic quantum chemistry with four-component Hamiltonians, for molecules containing heavy elements.

What DIRAC is

DIRAC is a Fortran programme for relativistic quantum chemistry. For atoms beyond the first rows, electrons near the nucleus move fast enough that the non-relativistic Schrödinger equation misbehaves; the Dirac equation, with four-component spinors instead of one-component orbitals, treats this properly and includes spin-orbit coupling from the start. DIRAC implements Hartree-Fock and Kohn-Sham DFT with four-component Dirac-Coulomb and Dirac-Coulomb-Gaunt Hamiltonians, and cheaper exact two-component (X2C) and spin-free variants, so the cost of relativity can be chosen per problem.

A run takes a menu-style .inp file and a molecule file (.mol or .xyz) through the pam launcher, and writes a text output plus coefficient files. Correlated methods include MP2, coupled cluster (RELCCSD), EOM-CC, multireference CI (KR-CI) and MCSCF. Response theory yields excitation energies, polarisabilities and NMR shieldings; electric field gradients, parity-violating energies and other properties relevant to heavy elements are available. Frozen-density and polarisable embedding describe environments. A Docker image avoids compiling.

Four-component calculations are expensive in memory and time; DIRAC is aimed at heavy-element and property questions where that cost is justified.

Features

What it is for

Verified facts

FamilyMolecular quantum chemistry (ab initio and DFT)
Language or basisFortran
Repositoryhttps://gitlab.com/dirac/dirac (GitLab)
Verified2026-11-28 by MolForge's checking script, against the host's API

Where DIRAC fits

Codes built around molecules: Hartree-Fock, density functional theory, correlated post-Hartree-Fock methods and spectroscopy. Proprietary landmarks in the same space are ORCA, Gaussian, Q-Chem, Molpro, Turbomole and ADF.

Our comments on DIRAC

MolForge does not run DIRAC in production. This page is a verified pointer, not a review: the facts above come from the repository on the date shown, the description is ours, and we make no claim about accuracy or speed that we have not measured. If you maintain DIRAC and something here is wrong or out of date, write to hello@molforge.ai and we will correct the source file.

Test status

Not tested by MolForge. To check DIRAC yourself: clone the repository, follow the installation section of its README, and run the test suite the project ships before trusting a result; the last-commit date and the open issue count above tell you how alive the project is.

Questions people ask

When do I need a four-component calculation?
When spin-orbit coupling and relativistic contraction near a heavy nucleus affect the property you want, which is common for elements from the fifth row of the periodic table onward and essential for actinides and for core properties such as electric field gradients or NMR shieldings. For lighter elements, scalar-relativistic corrections or X2C in DIRAC or other codes are usually adequate.
How is DIRAC different from using relativistic ECPs in ORCA or Gaussian?
Effective core potentials fold relativistic effects into a pseudopotential for the core and treat valence electrons non-relativistically, which works well for geometries and many energies. DIRAC treats all electrons explicitly with the Dirac Hamiltonian, so properties that depend on the electron density near the nucleus, and spin-orbit effects on correlated states, are described without that approximation.
What input does DIRAC need?
Two files: a .inp file with hierarchical keywords selecting the Hamiltonian, wavefunction and properties, and a .mol or .xyz file with the geometry and basis sets. The pam Python script launches the calculation and manages scratch directories. Basis sets designed for relativistic calculations, such as the Dyall sets, are included.
Is DIRAC free to use?
Yes. The source is on GitLab under an open-source licence and Docker images are distributed, and the project asks users to cite the programme paper. Compiling from source requires a Fortran compiler and CMake, and the documentation covers common HPC environments.
Where is the DIRAC source code?
At https://gitlab.com/dirac/dirac (GitLab). This is the address the host reported on the day of verification; renamed repositories are followed to their new home.
Does MolForge use DIRAC?
No. MolForge runs nine of the hundred tools in this directory (RDKit, OpenMM, AutoDock Vina, Open Babel, MDTraj, pymbar and NGL, plus PySCF and xTB in MFsig); DIRAC is listed because of its place in molecular quantum chemistry (ab initio and DFT), not because we run it.

Other tools in molecular quantum chemistry (ab initio and DFT)