Searcharxiv⌕ Search

arXiv · 2610.01727

PyCDFT: A Python-scriptable library for analytical evaluation of orbital conceptual density (matrix) functional theory

Abstract

Conceptual density functional theory (CDFT) defines chemical reactivity descriptors as derivatives of the electronic energy with respect to the number of electrons and the external potential, or combinations thereof; in practice, however, researchers almost always replace these derivatives with finite-difference and frontier-orbital approximations, and no common software exists for their analytical evaluation. We present PyCDFT, to our knowledge, the first standardized, open-source, and scriptable code that analytically computes the descriptors of conceptual density (matrix) functional theory for ground and excited states up to second order, including the orbital hardness, the Fukui function and Fukui matrix, and the linear response function, from a single converged mean-field wavefunction imported from virtually any electronic-structure package. The descriptors are obtained from matrix-free, preconditioned Krylov-subspace solutions of the coupled-perturbed self-consistent-field equations for both spin-unpolarized and spin-polarized references, with the work distributed over MPI ranks and all data flowing through a single HDF5 checkpoint file that supports restart, post-processing, and the export of real-space descriptors as cube files for visualization. The design delegates integrals, grids, and exchange-correlation kernels to PySCF and Libxc, keeping the library compact, user-friendly, and interoperable. Worked examples on the ground state of H$_2$O and a broken-symmetry $Δ$SCF excited state of NH$_3$ show that a complete second-order CDFT analysis requires only a few lines of user code.

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Bin Wang, Paul Geerlings, Paul W. Ayers, Frank De Proft. 2026-10-01. PyCDFT: A Python-scriptable library for analytical evaluation of orbital conceptual density (matrix) functional theory. https://arxiv.org/abs/2610.01727

Cite the original work for its findings. Save a collection to share your selection of sources.

KEEP EXPLORING

Related papers

Vibrational strong coupling influences product selectivity in a model for post transition state bifurcation reactions

In this study we explore the possibility of modulating product selectivity (branching ratios) in post transition state bifurcation (PTSB) reactions via vibrational strong coupling (VSC) to an optical cavity. Detailed classical and quantum dynamical calculations on a model potential reveal that the branching ratio can be enhanced by nearly a factor of two under VSC conditions. Interestingly, upon altering the shape of the potential, we find a switch in the cavity frequency at which maximum enhancement in selectivity is observed. Apart from emphasizing the role of both cavity-system and intramolecular energy transfer to the observed enhancements, we highlight the complexity of the VSC mechanism in terms of the choice of the cavity frequency vis--à--vis the various molecular mode frequencies. Our work shows that, in principle, cavity quantum electrodynamics can reshape dynamical outcomes in reactions with complex potential energy landscapes.

physics.chem-ph↗

Coupled-cluster molecular properties across the main group that extrapolate beyond training size

Coupled-cluster theory defines the accuracy standard for molecular electronic-structure properties but scales too steeply for routine application, whereas density-functional theory is affordable yet systematically biased. We resolve this trade-off with a single equivariant network, HARP (Hamiltonian Read-out for Properties), that predicts an effective one-electron Hamiltonian from one inexpensive B3LYP/def2-SVP calculation and derives a broad suite of properties from it (energy, optical gap, dipole, quadrupole, polarizability, Mulliken atomic charges, and Mayer bond orders) at coupled-cluster accuracy across nine main-group elements, including the under-served phosphorus, sulfur, and chlorine chemistries. The model is trained on a new in-house dataset of multi-property labels computed at the CCSD(T) level for all nine elements. On a held-out test set, it reduces the error of every property by a factor of 3.8 to 270 relative to semi-local, hybrid, and double-hybrid DFT (referenced to composite CCSD(T)/cc-pVTZ), while adding only ~0.1 s wall time per molecule, delivering coupled-cluster-quality predictions at the cost of a single DFT calculation. Critically, deriving every property from a predicted Hamiltonian rather than pooling per-atom features builds the correct size-scaling into the model architecture: on pi-conjugated oligothiophenes it matches finite-field CCSD polarizability to ~1% and the EOM-CCSD optical gap to ~3% at the largest sizes where those references remain affordable (44 and 37 atoms, where a single CCSD field point already costs ~500x the model's entire inference) and extrapolates the corrected trends to 58-atom chains, a regime where pooling-based architectures fail by construction. Accurate extrapolation is therefore set by the model's inductive bias rather than by the training data.

physics.chem-ph↗

Toward Long-Range Correlation Energies from Charge Fluctuations: Incorporating Exact Exchange into ACKS2$ω$

Long-range electronic correlation can be represented in terms of coupled fluctuations of atomic charges and higher multipoles, motivating a density-response description beyond local dipolar polarization, particularly in low-dimensional, conducting, and small-gap systems where collective electronic fluctuations become important. We extend the frequency-dependent polarizable force field ACKS2$ω$ to electronic-structure references containing exact exchange by deriving both the static and additional frequency-dependent exchange contributions, with particular attention to HFsrPBE, which combines long-range Hartree--Fock exchange with short-range PBE exchange and correlation. Numerical validation of ACKS2$ω$ using dipole polarizabilities and $C_6$ dispersion coefficients for the 27 molecules of the TS27 set, with HF, PBE, B3LYP, and HFsrPBE as the underlying electronic-structure references, shows that including the exchange contributions and enriching the response basis improve agreement with the corresponding orbital-space linear-response calculations, although finite-response-basis errors remain molecule dependent. Long-range correlation energies evaluated through the adiabatic-connection fluctuation-dissipation theorem using the ACKS2$ω$ parameters reproduce the corresponding HFsrPBE orbital-space results for small test molecules when the response basis is made complete within the chosen orbital basis, while a local multipole decomposition resolves the finite-basis energies into monopole--monopole, mixed, dipole--dipole, and remaining higher-multipole contributions, providing a route to evaluating long-range correlation energies in terms of charge fluctuations within atom-condensed models.

physics.chem-ph↗