ACBN0 Module#

The ACBN0 module takes care of automatically determining Hubbard U (on-site) and V (intersite) correction parameters for DFT+U calculations. Rather than guessing or fitting U by hand, it computes them self-consistently from the electronic structure.

Key references:

  • Agapito et al. (2015) — the ACBN0 formulas for U and J

  • Lee & Son (2020) — the eACBN0 extension to intersite V parameters

Architecture#

The module runs across two execution contexts to keep things clean:

Driver (rank-0 Python): Orchestrates the workflow, manages file I/O, and launches QE codes. Deliberately kept free of mpi4py dependencies.

Worker (independent MPI process): Handles the heavy lifting — Hartree energy computations via auto-generated stubs.

Driver and worker communicate exclusively through pickle files, so there’s no MPI entanglement in the orchestration layer.

Core Classes#

_HartreeKernel — The base MPI-aware class. Provides Coulomb integral computation via PAOFLOW.defs.pyints.contr_coulomb and scatter/allgather utilities for distributed calculations.

ACBN0_Hartree — Computes on-site U/J numerators using 8-fold symmetry reduction on ERI tensors.

eACBN0_Hartree — Extends the above to intersite V calculations with 4-fold symmetry optimization.

ACBN0 Driver — Manages the self-consistent U loop, coordinating the DFT → PAOFLOW → Hartree evaluation cycle.

eACBN0 — Subclass that adds pair enumeration, pair density-matrix construction, and joint U+V optimization.

How It Works#

Each self-consistent iteration goes through these steps:

  1. QE SCF calculation with the current HUBBARD card, on the full k-grid and with the number of bands the projection needs (an optional <prefix>.nscf.in template is run after the scf when present; the examples do without it)

  2. Projection of the Kohn–Sham states on the atomic orbitals: PAOFLOW’s internal projection (use_local_basis=True, the default in the examples; configuration='minimal' uses the UPF pseudo-atomic wavefunctions and matches the projwfc.x projectors most closely) or, with use_local_basis=False, projwfc.x

  3. PAOFLOW bandstructure computation — H(k) and S(k)

  4. Density-matrix construction and Hartree energy evaluation

  5. Convergence check, with optional mixing

Things Worth Knowing#

Keep U values as real floats. On-site U values must remain real Python float throughout the workflow — passing complex numbers will break the QE input parser. The intersite V path does permit complex values (they carry Bloch phases), but on-site U does not.

Performance optimizations (P1–P6):

  • P6 applies 8-fold symmetry to d-shell U evaluation, giving a 5.9× speedup

  • P5 caches eigendecompositions across V-pair loops

  • P2 vectorizes density-matrix operations

Validation: The module reproduces published benchmarks on Si and ZnO with ortho-atomic projection.

When to Use It (and When Not To)#

ACBN0 works well for FM insulators and half-metals. For itinerant FM metals, metallic screening tends to cause U overestimation. Near Stoner instabilities, fixed-U scanning is a more reliable approach than self-consistent determination.

Using the eACBN0 save downstream#

The final save of the loop (<outdir>/<prefix>.save) holds the charge density and the Hubbard occupations (occup.txt); the last scf.in / nscf.in of the work directory carry the converged HUBBARD (ortho-atomic) card. Any later pw.x run on that density (an nscf on another k list, a bands run) must repeat the card: QE reads U and V from the input and the occupations from the save. PAOFLOW reads a DFT+U+V save like any other; the Hubbard potential enters the PAO Hamiltonian through the Kohn-Sham energies and projections, and PAOFLOW.elphon.pao_electrons.hubbard_info_from_save records the parameters for provenance.

Two consumers in this repository: the direct dielectric function (dielectric_tensor on the eACBN0 save, optics/dielectric.py --savedir of examples/elphon/Si) and the electron-phonon optics / mobility drivers, which take the band energies and eigenvectors from the eACBN0 PAO Hamiltonian while keeping the PBE coupling (--electrons-save; see Electron-phonon coupling, “Beyond-PBE electrons”). examples/elphon/Si/qe/make_hubbard_nscf.py writes the two nscf inputs from the converged card.