Abstract
The marriage of density functional theory (DFT) and deep learning methods has the potential to revolutionize modern research of material science. Here we study the crucial problem of representing DFT Hamiltonian for crystalline materials of arbitrary configurations via deep neural network. A general framework is proposed to deal with the infinite dimensionality and covariance transformation of DFT Hamiltonian matrix in virtue of locality and use message passing neural network together with graph representation for deep learning. Our example study on graphene-based systems demonstrates that high accuracy (~meV) and good transferability can be obtained for DFT Hamiltonian, ensuring accurate predictions of materials properties without DFT. The Deep Hamiltonian method provides a solution to the accuracy-efficiency dilemma of DFT and opens new opportunities to explore large-scale materials and physics.
Introduction
Density Functional Theory (DFT) is the cornerstone of modern materials science, providing a first-principles framework to simulate the electronic behavior of solids. However, researchers have long faced an "accuracy-efficiency dilemma." To achieve high-fidelity results, DFT must solve the Kohn-Sham equations iteratively through a self-consistent field (SCF) process. This process typically scales cubically ($O(N^3)$) with the number of atoms, creating a computational wall that prevents the simulation of large-scale systems such as complex defects, interfaces, or the increasingly popular "twistronics" materials containing thousands of atoms.
While deep learning has been successfully applied to predict interatomic potentials or specific scalar properties like band gaps, predicting the full Hamiltonian matrix remains a significant challenge. The Hamiltonian is the fundamental descriptor of a quantum system; from it, nearly all electronic properties can be derived. However, the Hamiltonian is not a simple scalar; it is a complex matrix that must transform covariantly with the physical rotation of the atomic structure. This paper introduces DeepH (Deep Hamiltonian), a framework designed to predict the converged DFT Hamiltonian directly from atomic coordinates, bypassing the SCF loop entirely.
Methodology
Exploiting Locality and Nearsightedness
DeepH is built upon the principle of "nearsightedness" in electronic matter. This principle suggests that the Hamiltonian elements between two atoms are primarily determined by their immediate local chemical environment. By exploiting this locality, the model can represent the Hamiltonian of an effectively infinite crystal by decomposing it into local neighborhood blocks. This approach allows the neural network to handle arbitrary configurations by focusing on local atomic clusters.
Local Coordinate Message Passing (LCMP)
A primary technical hurdle in predicting the Hamiltonian is ensuring rotational covariance—the requirement that the Hamiltonian matrix transforms correctly when the molecule or crystal is rotated. DeepH addresses this through a specialized Message Passing Neural Network (MPNN) architecture using Local Coordinate Message Passing (LCMP).
For every pair of atoms, the framework defines a unique local coordinate system. The LCMP layer incorporates orientation information using spherical harmonics, ensuring that the predicted Hamiltonian blocks are mathematically consistent regardless of the global orientation of the structure. Furthermore, by using localized atomic-like orbitals as basis sets rather than the plane waves common in standard DFT, DeepH produces a sparse Hamiltonian matrix that is computationally efficient for neural networks to learn.
Experimental Results
The DeepH framework was evaluated across several challenging material systems, including graphene, monolayer $MoS_2$, carbon/MoS2 nanotubes, and twisted bilayer systems.
Accuracy and Efficiency
The model achieved remarkable precision, with a Mean Absolute Error (MAE) of approximately 1–2 meV for Hamiltonian elements. Given that typical Hamiltonian values are measured in electron volts (eV), this level of error is negligible for most physical applications.
More importantly, DeepH demonstrated a massive computational advantage. For a $35 \times 35$ $MoS_2$ supercell, the framework achieved a three-order-of-magnitude speedup compared to traditional DFT. Because the model scales linearly ($O(N)$) with the number of atoms—unlike the cubic scaling of DFT—it enables the study of systems that were previously computationally inaccessible.
Generalization to Twistronics
One of the most impressive demonstrations of DeepH is its transferability. A model trained on small, simple structures was able to accurately predict the physics of "magic-angle" twisted bilayer graphene (TBG). This system, which can contain over 11,000 atoms, exhibits subtle quantum effects like "flat bands." DeepH successfully reproduced these features, proving it can generalize from simple training data to the complex physics of large-scale moiré materials.
Conclusion and Future Outlook
DeepH provides a robust solution to the accuracy-efficiency dilemma by treating the Hamiltonian as a universal descriptor that can be predicted via deep learning. By bypassing the SCF iterations, it "teleports" directly to the converged electronic state, enabling linear-scaling simulations of massive systems with meV-level accuracy.
While current iterations require training data specific to the chemical environment of the target material, future developments aim to automate dataset construction and implement "on-the-fly" optimizations. By integrating DeepH with GPU-accelerated sparse linear algebra solvers, the simulation of micrometer-scale quantum systems is becoming a tangible reality.
Summary updated