Density Functional Theory (DFT)

OpenQuantum solves the Kohn–Sham equations on an atom-centered numerical grid. The Kohn–Sham Fock operator replaces the wavefunction-theory exchange operator with a density-dependent exchange–correlation (XC) potential, and the total electronic energy is

where is the non-interacting kinetic energy, the classical Coulomb energy, the electron–nuclear attraction, the nuclear repulsion, and the exchange–correlation contribution evaluated by numerical quadrature.

Functional rungs

OpenQuantum supports four rungs of Jacob's ladder. The semilocal kernels read the spin densities , gradient invariants , and (for meta-GGAs) kinetic-energy densities at every quadrature point.

RungFunctionalTagExact exchangeDispersion
GGABP86bp860
GGAPBEpbe, pbepbe0
meta-GGATPSStpss0
meta-GGAM06-Lm06l0
hybrid GGAB3LYPb3lyp0.20
hybrid GGAPBE0pbe0, pbe1pbe0.25
hybrid meta-GGAM06-2Xm062x0.54
range-separated hybridωB97X-Dwb97xd, w97xd0 (SR), 1.0 (LR), ω = 0.2D2

The exact-exchange fraction is wired through the SCF Fock builder. Range-separated exchange splits the Coulomb operator with the error function and contracts short- and long-range fractions independently against the same density.

M06-family correlation

M06-L and M06-2X correlation use the Voorhis–Scuseria (VS98) reduced-gradient working factor combined with a polynomial baseline:

with reduced gradients , , , self-interaction screen , and PW92 spin-resolved correlation . The polynomial baseline keeps the working factor positive at high reduced gradient, so M06 correlation integrates physically without any pointwise guard.

The working function is

The polynomial baseline has the form with (same-spin) and (opposite-spin).

Atom-centered grid

The molecular grid is a Becke-style sum of atom-local quadratures, each a direct product of a Mura–Knowles radial scheme and a Lebedev angular grid.

  • Radial. Mura–Knowles maps the unit interval to via , with for the alkali/hydrogen column and elsewhere.
  • Angular. Genuine Lebedev–Laikov grids of degree 3, 5, 7, 11, 17, 23, and 29 (point counts 6, 14, 26, 50, 110, 194, 302). The dispatcher routes any requested order to the largest exact Lebedev set that does not exceed the request; orders above 302 fall back to a Fibonacci-sphere distribution. Each Lebedev order is gated by an explicit spherical-moment exactness test.
  • Pruning. Below the SuperFine level, near-nucleus and tail radial shells drop to lower angular orders, with denser tails kept for heavy atoms.
  • Partition. A compact Stratmann–Scuseria-style cell function , built from a sixth-degree polynomial scaled by with a normalization, replaces Becke's iterated step. The cell weight is identically zero outside and goes smoothly to zero at the partition tail, which removes spurious tail points without further screening.

The integration loop screens AO shells whose product bound falls below and accumulates the XC potential matrix only over active AO pairs whose pointwise product (or gradient bound) exceeds .

Empirical dispersion

Dispersion-bearing functionals add an empirical pair correction to the total energy. OpenQuantum exposes three models with the same element coverage (Z = 1–54, including transition metals).

  • D2. with a Fermi-type damping function. Used by ωB97X-D.
  • D3 zero-damping. Adds an estimated term and uses the standard zero-damping factor for both and contributions.
  • D4 charge-/coordination-scaled. Estimates per-atom partial charges from Pauling electronegativities, scales pair coefficients by local coordination numbers, and applies a rational damping form to and terms.

The model is selected via the functional metadata tag (D2, D3, D4) or called explicitly through the dispersion API.

Restricted, unrestricted, and open-shell DFT

Closed-shell systems use a restricted Kohn–Sham (RKS) Fock build that contracts the spin-summed XC potential , , and against the AO basis. Open-shell systems use an unrestricted Kohn–Sham (UKS) Fock build with spin-resolved XC matrices for α and β. Both share the same grid construction and screening pipeline.

Solvent-coupled DFT

Kohn–Sham calculations with implicit solvation combine the XC potential and the reaction-field contribution in the same effective Fock matrix. OpenQuantum provides dedicated SCF entry points:

  • rks_scf_with_reaction_field — RKS with PCM/ddCOSMO/SMD solvent.
  • uks_scf_with_reaction_field — UKS with PCM/ddCOSMO/SMD solvent.

At each SCF iteration the XC potential matrix (from grid quadrature) and the reaction-field contribution (from the cavity surface charges) are added to the core Hamiltonian alongside the Coulomb and exchange terms. The solvent-coupled SCF supports all functional rungs including range-separated hybrids.

Analytical gradients and Hessians with DFT

The analytic nuclear gradient for Kohn–Sham DFT includes the XC contribution from grid differentiation alongside the HF-like terms (nuclear, Coulomb, exchange). When solvent is active, the analytical gradient additionally includes the PCM contributions (grad_nuc + grad_solver + grad_qv).

The analytical Hessian for DFT extends the CPHF formalism to include XC response terms from grid differentiation. The XC contribution to the Hessian contains both the first-order XC potential response (through the CPHF equations) and the second-order XC kernel evaluated on the grid. With solvent, the full PCM Hessian (hess_nuc + hess_solver + hess_qv) is added, including the CPHF solvent response (AXPCM kernel).