Hybrid DFT: PBE0 exact exchange
The v2.x electronic-structure prototype adds PBE0 to the gated KS-DFT engine. PBE0 is PBE exchange-correlation plus 25 % exact Hartree–Fock exchange. The exact-exchange path is currently restricted to closed-shell systems.
Status. Implemented behind
alpha-dft-hybridand exposed on the Rust, Python, WASM and CLI surfaces. Range-separated hybrids, unrestricted exact exchange and the ORCA/PySCF parity gate are still pending. See the v2.x roadmap.Feature.
alpha-dft-hybrid(included inalpha-v2).
Theory
The hybrid exchange-correlation energy is
with
The corresponding Fock matrix is
where
The implementation reuses the existing DFT ERI tensor and adds the exchange matrix once per SCF iteration. The semilocal PBE exchange is scaled by
API
use sci_form::dft::ks_fock::{solve_ks_dft, DftConfig, DftMethod};
let config = DftConfig {
method: DftMethod::Pbe0,
..DftConfig::default()
};
let result = solve_ks_dft(&elements, &positions, &config)?;
println!("E = {} Hartree", result.total_energy);PBE0 is available through DftMethod::Pbe0; pbe0, pbe-0 and hybrid are accepted aliases. The variant and its aliases exist only with the alpha-dft-hybrid feature, which also enables alpha-dft.
The standalone Rust/Python/WASM/CLI entry points use DftConfig::default(), i.e. the Minimal/STO-3G Kohn–Sham basis. The pKa workflow in redox and pKa is a separate path that explicitly selects the split-valence 3-21G basis.
For water at [0,0,0, 0.9572,0,0, -0.239987,0.927297,0] with max_iterations=50:
total_energy = -75.2454830117255 Ha
gap = 14.522742631047386 eV
n_basis = 7
n_electrons = 10
scf_iterations = 6
converged = trueThe SCF result is only returned when it converged. A smaller iteration cap is an error (NotConvergedError in Python, {error} in WASM, exit code 1 in the CLI), and max_iterations must be an integer ≥ 1.
Scope
| Capability | Status |
|---|---|
| Restricted closed-shell PBE0 | implemented |
| Unrestricted/open-shell PBE0 | returns Unsupported |
| Range-separated hybrids | not implemented |
| B3LYP | not implemented |
| Analytical hybrid gradient | not implemented |
The current gradient path is for the pure DFT functional; PBE0 gradients are a follow-up.
Validation
| Gate | Observable | Result |
|---|---|---|
| Water PBE0 SCF | Convergence | passes |
| Water PBE0 energy | Finite and negative | passes |
| Electron count | 10 electrons | passes |
| Unrestricted PBE0 | Explicit error | guarded |
The important missing gate is method parity against PySCF/ORCA for the same PBE0/basis. Until that exists, the implementation is a prototype.
Bindings
| Surface | Entry point |
|---|---|
| CLI | sci-form pbe0 <elements> <coords> [--max-iterations N] |
| WASM | compute_pbe0_energy(elements, coords, max_iterations), or alpha_compute_dft(elements, coords, "pbe0") |
| Python | compute_pbe0_energy(elements, coords, max_iterations=100) |
All three are built only with alpha-dft-hybrid (or alpha-v2).
Limitations
- The exact-exchange matrix is built with the existing
O(N^4)ERI loop; no RI or Cholesky exchange yet. - Restricted closed-shell only.
- PBE0 uses the existing PBE evaluator with the exchange scaled by 0.75; no B3LYP.
- No range separation, no exact-exchange gradient and no response properties.
- Native builds and bindings need the
alpha-dft-hybridfeature. - No benchmark against PySCF/ORCA yet.
Next steps
- Add an unrestricted exact-exchange path.
- Add RI/Cholesky exact exchange for larger systems.
- Add range-separated hybrids.
- Add the analytical PBE0 gradient.
- Add PySCF/ORCA parity and a 20-molecule reaction-energy set.
- Add a 20-molecule reaction-energy benchmark.