betaFeedback

WorksPhysics and Astronomy

Machine Learning Electronic Hamiltonian with Long-Range Effects and External Fields

Abstract

Conventional machine-learning electronic Hamiltonian (MLEH) models rely on a local-environment approximation and can miss the effects of long-range (LR) interactions and external fields. Here, we introduce MLEH-LR, a framework that incorporates these effects into Hamiltonian prediction. Benchmarks across materials with different polarizations and dimensionalities demonstrate substantial improvements in the accuracy of the predicted Hamiltonians and resulting electronic structures. MLEH-LR enables accurate, large-scale, high-throughput electronic-structure calculations, as demonstrated for zigzag boron nitride ribbons under transverse electric fields. These calculations allow us to formulate a quantitative relation describing the joint width and field dependence of the band gap and to reveal the electronic mechanisms underlying its field response. Our work provides an efficient method and tool for studying electronic structure in materials where long-range electrostatics and external fields play an important role.

Introduction

Machine-learning electronic Hamiltonian (MLEH) models provide a powerful approach to studying the electronic properties of molecules and materials[1, 2, 3, 4, 5, 6, 7]. By predicting Hamiltonian matrix elements from atomic structures, they enable calculations of electronic bands, orbitals, and related properties without repeating costly electronic-structure calculations. Representative models, including DeepH and DeepH-E3[3, 4], HamGNN[5], DeePTB-E3[6], and MACE-H[7], preserve rotational covariance through local coordinate frames or equivariant representations, enabling efficient electronic-structure calculations across diverse atomic configurations.

However, conventional MLEH models often rely on a local-environment approximation. Their Hamiltonian matrix elements between localized orbitals are predicted from finite atomic neighborhoods, which can miss long-range electrostatic effects from distant charges or polarization. Such effects are particularly important in electrically polar systems[8, 9]. Moreover, even at fixed atomic geometry, an applied electric field changes the Hamiltonian through both the external potential and the induced electronic density. Capturing these effects requires information beyond local geometry.

Similar limitations also arise in machine-learning interatomic potentials and force fields, and several solutions have been developed. For example, charge-equilibration models capture nonlocal charge redistribution by determining atomic charges collectively across the system[10]. MACE-POLAR-1[11] further describes polarization through learned atomic multipoles that are updated in response to the electrostatic potential, while enforcing a global charge constraint. These approaches primarily target energies and forces.

Long-range treatments are less developed for machine-learning electronic Hamiltonians. Recently, HamGNN-LR was introduced to combine reciprocal-space Ewald attention with an analytic long-range Coulomb correction[12]. Although its source predictions include nonlocal information, the electrostatic sources are represented by atomic monopoles while neglecting higher-order moments, and it does not explicitly update these sources in response to their computed potential. Furthermore, it lacks an explicit applied-field input, so it cannot directly describe field-induced changes to the Hamiltonian at fixed atomic geometry.

Other learned-Hamiltonian approaches have addressed the response to applied electric fields.

For example, Bhat et al.[13] combine a learned density-matrix-dependent Hamiltonian with a prescribed time-dependent potential to simulate electron dynamics. DeePTB-NEGF couples learned Hamiltonians with NEGF–Poisson calculations to describe gate and bias effects[14]. However, these approaches still require time propagation or electronic self-consistency to obtain the induced electronic response. Neither directly predicts the converged static Hamiltonian from atomic geometry and a prescribed field. This motivates a framework that directly predicts field-dependent static Hamiltonians, including the induced electronic redistribution, for efficient large-scale exploration of structures and fields.

Here, we introduce a framework for machine-learning electronic Hamiltonians with both long-range effects and external fields (MLEH-LR). Learned atomic monopoles, dipoles, and quadrupoles define a smooth charge density, and solving the Poisson equation provides the long-range potential. This potential feeds back into learned nonlinear multipole updates, explicitly connecting the long-range electrostatic environment to changes in the source distribution. To incorporate an external field, we include its prescribed potential in both the learned multipole updates and the prediction of Hamiltonian matrix elements. This allows the model to account for both the induced electronic redistribution and the direct contribution of the external potential. We compare different implementations of this framework by benchmarking across one-dimensional h-BN ribbons, two-dimensional ZnO slabs, and three-dimensional GaN/AlN and CdSe/ZnS superlattices. We find substantial improvements in Hamiltonian and band predictions over the conventional local MLEH model. Applying MLEH-LR to h-BN ribbons under transverse electric fields, we exploit its transferability across fields and ribbon widths to map electronic structure over a broad field–width space without repeating costly self-consistent calculations for each combination. This capability allows us to establish a quantitative relation for the joint width and field dependence of the band gap and reveal the microscopic origin of the band-gap maximum.

Method

Architecture Overview

Our implementation is based on an existing short-range machine-learning electronic Hamiltonian (MLEH) model. In this work, we implement our MLEH-LR framework using MACE-H, but it could also be implemented in other MLEH models, such as DeepH and HamGNN.

As shown in Figure 1, we first use MACE[15] to convert atomic positions Ri\mathbf{R}_i and species ZiZ_i into node features hi(t)\mathbf{h}_i^{(t)}, where tt labels the message-passing layer and ii the atomic site. The short-range parts of HH are predicted from local edge features (eij\mathbf{e}_{ij}) derived from the node features as implemented in MACE-H. Meanwhile, a long-range branch converts the node features into an electrostatic potential ϕi\phi_i on each atom. These potentials, together with the applied potential from the external field, contribute to the prediction of the final Hamiltonian HH in different ways.

Architecture of the machine-learning electronic Hamiltonian model with long-range effects and external fields

Figure 1. Architecture of the machine-learning electronic Hamiltonian model with long-range effects and external fields (MLEH-LR). (a) Single-stage feature injection (FI) and operator correction (OC) models. They start from equivariant maps of the local node features, followed by a long-range branch that produces learned intermediate and final potentials. FI supplies the final multipoles to node features and atomic-site potentials to edge features while OC adds the overlap-weighted correction of Eq. (8) to a local Hamiltonian from MACE-H. The dashed EE box represents the prescribed external field. Its upward arrow supplies the applied-potential descriptors to each update, and its downward arrow supplies the applied site potential to the total-potential operator. (b) Two-stage potential conditioning (TPC) model. Stage 1 predicts atomic-site Hartree potentials using DFT supervision with the long-range branch in (a). Stage 2 is trained with the DFT Hartree potential plus the known applied potential and uses the predicted Hartree potential from Stage 1 plus the same applied term at inference.

We use three methods to incorporate the electrostatic potentials: (1) feature injection (FI), which incorporates refined multipoles into node features and atomic-site potentials into edge features; (2) operator correction (OC), which adds an explicit orbital-overlap-weighted potential correction to a local Hamiltonian; and (3) two-stage potential conditioning (TPC), which tests whether learning electrostatic potentials separately, rather than jointly with the Hamiltonian, can improve Hamiltonian prediction. In TPC, a potential predictor is first trained on atomic-site Hartree potentials, followed by a separate Hamiltonian model conditioned on these potentials.

Below, we describe the key components of the MLEH-LR models.

Long-range branch

The local node features generated by MACE-H are first converted to atomic multipole coefficients,

pi,lmraw=∑t[W(t)hi(t)]lm(1)p_{i,lm}^{\mathrm{raw}} = \sum_t \left[ W^{(t)} \mathbf{h}_i^{(t)} \right]_{lm} \tag*{(1)}

where W(t)\mathbf{W}^{(t)} are equivariant linear maps[16]. To ensure charge conservation (the sum of monopoles equals the predefined total charge QQ of the system), we renormalize the monopoles over the atoms using learned Fukui-type weights fif_i[11]:

pi,00←pi,00raw+fi∑jfj(Q−∑jpj,00raw)(2)p_{i,00} \leftarrow p_{i,00}^{\mathrm{raw}} + \frac{f_i}{\sum_j f_j} \left(Q - \sum_j p_{j,00}^{\mathrm{raw}}\right) \tag*{(2)}

where the sum runs over the atoms in one structure. The multipoles then define a smooth charge density:

ρ(r)=∑i∑l=0lmax⁡∑m=−llpi,lm gi,l(∣r−Ri∣)Ylm(r−Ri^)(3)\rho(\mathbf{r}) = \sum_i \sum_{l=0}^{l_{\max}} \sum_{m=-l}^{l} p_{i,lm}\,g_{i,l}(\lvert\mathbf{r} - \mathbf{R}_i \rvert)Y_{lm}\left(\widehat{\mathbf{r}-\mathbf{R}_i}\right) \tag*{(3)}

Here gi,l(∣r−Ri∣)g_{i,l}(\lvert\mathbf{r} - \mathbf{R}_i \rvert) are radial functions, and YlmY_{lm} are real orthonormal spherical harmonics. Ri\mathbf{R}_i is the position of atom ii, and r−Ri^\widehat{\mathbf{r}-\mathbf{R}_i} denotes the direction from that atom. We consider two types of radial functions: a Gaussian radial function with a fixed width shared by all atoms, and a learned, atom-dependent radial function constructed using a neural network. Their construction is detailed in SI Section S1. In principle, other radial functions, including the fully learned radial function in EdenGNN[17], numerical auxiliary functions in SALTED[18], and Slater-type multipole functions[19], could also be incorporated into our framework.

Once the charge density is determined, the electrostatic potential is obtained by solving the Poisson equation,

−ε0∇2ϕ(r)=ρ(r)(4)-\varepsilon_0 \nabla^2 \phi(\mathbf{r}) = \rho(\mathbf{r}) \tag*{(4)}

with boundary conditions appropriate to the target system. The reciprocal-space solution and boundary treatment used here are given in SI Section S2.

The electrostatic potential at each atom is then fed back to update its multipoles, incorporating the LR effects of distant environments:

(Δpi,fi)=U(hi,mix,vi,pi,lm;Zi),pi←pi+Δpi,(5)(\Delta p_i, f_i) = \mathcal{U}(h_{i,\mathit{mix}}, v_i, p_{i,lm}; Z_i), \qquad p_i \leftarrow p_i + \Delta p_i, \tag*{(5)}

Here pip_i collects the multipole coefficients at site ii. The update network U\mathcal{U} uses equivariant tensor products and nonlinear scalar coefficients. hi,mixh_{i,\mathit{mix}} is a learned equivariant linear combination of node features from all backbone layers. The potential descriptor viv_i contains potential information from ϕi\phi_i as node features.

External potential.

An external field E\mathbf{E} can be included through its atomic-site potential values and the corresponding update descriptors. These enter as

vitot=viρ+viapp,ϕitot=ϕi+ϕiapp,(6)v_i^{\mathit{tot}} = v_i^\rho+ v_i^{\mathit{app}}, \qquad\phi_i^{\mathit{tot}} = \phi_i + \phi_i^{\mathit{app}}, \tag*{(6)}

where ϕiapp=ϕapp(Ri)\phi_i^{\mathit{app}} = \phi_{\mathit{app}}(\mathbf{R}_i). Here, viρv_i^\rho is the descriptor of the Poisson potential ϕi\phi_i generated by the learned charge density, and viappv_i^{\mathit{app}} is that of the applied external potential. The total descriptor conditions the learned multipole updates in Eq. (5), and the total scalar potential enters the Hamiltonian coupling. In the finite-field benchmark, the external potential is the linear part of a sawtooth potential, ϕapp(r)=−E⋅(r−rˉ)\phi_{\mathit{app}}(\mathbf{r}) = -\mathbf{E} \cdot(\mathbf{r} - \bar{\mathbf{r}}), referenced to the mean atomic position rˉ\bar{\mathbf{r}}. Implementation details of the multipole updates with and without an external field are given in SI Section S3.

Hamiltonian prediction with long-range effects

After the last learned update, the long-range branch supplies refined multipoles and the scalar atomic-site potential ϕi\phi_i. Depending on how this final electrostatic information is used, we consider three MLEH-LR models:

  1. Feature injection (FI). We use the refined multipoles to correct the node features through an equivariant map, hi′=f(hi(T−1),pifinal)\mathbf{h}'_i = f\left(\mathbf{h}^{(T-1)}_i, p^{final}_i\right). In addition, atomic-site potential differences ϕj−ϕi\phi_j - \phi_i and averages 12(ϕi+ϕj)\frac{1}{2}(\phi_i + \phi_j) modulate the existing edge features through a residual map, eij′=g(eij,ϕi,ϕj)\mathbf{e}'_{ij} = g(\mathbf{e}_{ij},\phi_i,\phi_j). The modified node and edge features then enter a final MACE-H edge-update block to predict the Hamiltonian.

  1. Operator correction (OC). This route instead adds an explicit long-range Hamiltonian correction HlrH_{lr} to a short-range Hamiltonian HsrH_{sr} provided by MACE-H,

H=Hsr+Hlr,(7)H = H_{sr} + H_{lr}, \tag*{(7)}

using the overlap-weighted form

Hlr,μν=α2(ϕi+ϕj)Sμν(μ∈i, ν∈j),(8)H_{lr,\mu\nu} = \frac{\alpha}{2}(\phi_i + \phi_j)S_{\mu\nu} \qquad(\mu\in i,\ \nu\in j), \tag*{(8)}

Here μ\mu and ν\nu label atomic orbitals centered at sites ii and jj, and Sμν=⟨μ∣ν⟩S_{\mu\nu} = \langle\mu\mid\nu\rangle is their overlap matrix element, and α\alpha is a fixed or learned global coefficient. Under an external potential, the site potential is replaced by the total potential from Eq. (6). This construction follows the form of the self-consistent-charge density-functional tight-binding (SCC-DFTB) correction.[20]

  1. Two-stage potential conditioning (TPC). TPC separates potential prediction (Stage 1) from Hamiltonian prediction (Stage 2). In Stage 1, a model is trained to predict the DFT Hartree

potential at each atom. It combines the Poisson-derived site potential ϕi\phi_i with a learned local residual:

ϕiML=ϕi+sigmoid⁡(η(di))δϕires(di),(9)\phi_i^{\mathrm{ML}} = \phi_i + \operatorname{sigmoid}\left(\eta(\mathbf{d}_i)\right)\delta\phi_i^{\mathrm{res}}(\mathbf{d}_i), \tag*{(9)}

Here, ϕiML\phi_i^{\mathrm{ML}} is the machine-learned atomic-site potential, δϕires\delta\phi_i^{\mathrm{res}} is a learned local residual potential term, and η\eta is its gate network. The optional local residual term compensates for errors in the long-range Hartree potential from the LR branch, in which higher-order multipoles beyond the quadrupole are neglected in the charge-density construction. Then ϕiML\phi_i^{\mathrm{ML}} is used in Stage 2, which adds the total potential ϕitot\phi_i^{\mathrm{tot}} to the node features of MACE-H:

hi(0)=WZeZi+Wϕϕitot,(10)\mathbf{h}_i^{(0)} = W_Z e_{Z_i} + W_\phi\phi_i^{\mathrm{tot}}, \tag*{(10)}

where hi(0)\mathbf{h}_i^{(0)} is the initial node feature, eZie_{Z_i} is the one-hot species vector, and WZW_Z and WϕW_\phi are learned weights. In Stage 2, we first train the MLEH-LR model with the scalar potential ϕitot=ϕiDFT+ϕiapp\phi_i^{\mathrm{tot}} = \phi_i^{\mathrm{DFT}} + \phi_i^{\mathrm{app}} in the node features of MACE-H. Once we obtain ϕiML\phi_i^{\mathrm{ML}} from Stage 1, we can predict the Hamiltonian using the trained MLEH-LR model supplied with ϕiML+ϕiapp\phi_i^{\mathrm{ML}} + \phi_i^{\mathrm{app}}. Further implementation details of FI, OC, and TPC are given in SI Section S4.

Results

Hamiltonian accuracy

We evaluate four polar systems spanning three physical dimensionalities as shown in Figure 2: hexagonal BN ribbons (1D), ZnO slabs (2D), and GaN/AlN and CdSe/ZnS superlattices (3D). Training and validation datasets used randomly perturbed structures at a range of widths or thicknesses, while the test dataset used the unperturbed structures over the same width/thickness ranges. Reference Hamiltonians are obtained from self-consistent, spin-unpolarized PBE calculations with OpenMX and localized pseudo-atomic orbitals.[21] Dataset construction, DFT settings, and training parameters are given in SI Section S5.

Representative test structures spanning three physical dimensionalities

Figure 2. Representative test structures spanning three physical dimensionalities: (a) 1D h-BN ribbon with polar edges, (b) 2D ZnO slab with polar surfaces, and (c) 3D GaN/AlN and CdSe/ZnS superlattices with polar interfaces. Blue arrows indicate the periodic lattice directions: a in (a), a and b in (b), and a, b, and c in (c). Gray arrows mark the finite ribbon width W in (a) and slab thickness d in (b).

Table 1 compares the Hamiltonian errors of the short-range MACE-H with those of the FI, OC, and TPC long-range models introduced in the previous section. These long-range models use the learned radial function. All models use three message-passing blocks. All the long-range models have lower errors than the short-range model, and the best model (highlighted in bold) reduces the error by factors of 2.1–7.0 across the four systems. The preferred iteration depth UU depends on the route. U=2U = 2 improves FI in three of the four systems, whereas OC favors U=1U = 1 except for ZnO. TPC favors U=2U = 2 in all four systems. In the subsequent zero-field analyses, we use the UU that gives the lowest mean test Hamiltonian MAE in Table 1 for each method and material system.

SystemShort rangeFIOCTPC
MACE-HU=2U = 2U=1U = 1U=2U = 2U=1U = 1U=2U = 2U=1U = 1
GaN/AlN3.1121.3781.5390.8700.8100.7592.186
h-BN2.6350.5011.0500.6140.3740.8061.172
ZnO3.3692.1962.2281.6172.3632.2663.087
CdSe/ZnS1.3290.4020.3930.5620.4260.3290.556

Table 1. Test Hamiltonian MAEs (meV) for the short-range MACE-H model and MLEH-LR models. FI, OC, and TPC denote feature injection, operator correction, and two-stage potential conditioning models with the same learned radial-function backend. Separate columns give U=2U = 2 and U=1U = 1 learned multipole updates; for TPC, UU refers to Stage 1. Bold identifies the lowest long-range error in each row.

TPC introduces an additional dependence on the accuracy of its intermediate potential. For example, replacing the learned radial function in Stage 1 with the fixed radial function increases the potential error on the two 3D superlattices, which raises the corresponding Hamiltonian MAEs from 0.76 to 37.5 meV on GaN/AlN and from 0.33 to 4.2 meV on CdSe/ZnS. Among the models in Table 1, OC has the lowest cross-system mean Hamiltonian MAE: 0.81 meV, compared with 1.04 meV for TPC and 1.12 meV for FI. Across the four systems, the operator reduces the error by a factor of about 3.7 relative to the local three-block baseline, compared with 2.8–3.0 for the other long-range routes. The performance of OC also motivates its use for finite-field prediction in § 3.3. Results for FI, OC, and TPC with the fixed radial function are given in SI Section S6.

Size dependence and electronic structure

Figure 3 shows the Hamiltonian errors for individual structures. The accuracy of the short-range MACE-H model generally decreases as the polar structure grows. The long-range models have lower errors throughout the tested size ranges, indicating that the explicit electrostatic representation reduces the size-dependent degradation of the local model.

Test Hamiltonian MAE versus size for 1D h-BN, 2D ZnO, 3D GaN/AlN, and 3D CdSe/ZnS

Figure 3. Test Hamiltonian MAE versus size for (a) 1D h-BN, (b) 2D ZnO, (c) 3D GaN/AlN and (d) 3D CdSe/ZnS. The short-range model is compared with FI, OC, and TPC from Table 1.

The improved MLEH-LR Hamiltonians also yield more accurate bands (Figure 4). For the thickest GaN/AlN superlattice, the TPC lowers the near-Fermi band-energy MAE from 1.37 eV to 88.5 meV. For the h-BN, ZnO, and CdSe/ZnS systems shown in Figure 4, the band MAEs decrease from 158.2, 170.5, and 107.2 meV to 9.7, 109.6, and 9.6 meV, respectively. Definitions of the Hamiltonian and band errors are given in SI Section S7.

Band-structure comparison for 1D h-BN, 2D ZnO, 3D GaN/AlN, and 3D CdSe/ZnS

Figure 4. Band-structure comparison: (a) 1D h-BN, width 72.3 Å; (b) 2D ZnO, nominal thickness 137 Å; (c) 3D GaN/AlN, c=163c = 163 Å and (d) 3D CdSe/ZnS, c=159c = 159 Å. DFT bands are gray, and predicted bands are dashed. Each spectrum is referenced to its own Fermi level. Upper panels use the short-range model with three message-passing blocks. Lower panels use the long-range models with the lowest Hamiltonian MAEs bolded in Table 1. The band colors follow the color scheme in Figure 3.

To further examine how the model improves the Hamiltonian and band predictions, we compare the onsite Hamiltonian profiles in Figure 5, where the long-range models perform much better than the short-range model. The DFT onsite values vary across the polar structures, whereas the short-range predictions show nearly flat interiors or staircase-like transitions. The long-range models reproduce these spatial profiles more closely.

Orbital-averaged onsite energies versus position along the long axis for h-BN, ZnO, GaN/AlN, and CdSe/ZnS

Figure 5. Orbital-averaged onsite energies versus position along the long axis. (a) h-BN (width 72.3 Å, N sites), (b) ZnO (nominal thickness 137 Å, O sites), (c) GaN/AlN (c=163c = 163 Å, N sites) and (d) CdSe/ZnS (c=159c = 159 Å, Se sites). Open circles show DFT results, black squares show the short-range model, and diamonds show the long-range model with the lowest Hamiltonian MAE in Table 1 for each system.

Hamiltonians under an applied field

We next examine electronic Hamiltonians under applied electric fields. Previous DFT studies investigated the Stark effect in h-BN ribbons under transverse electric fields EE and at different ribbon widths WW[22, 23, 24]. However, the computational cost restricted the widths and fields explored, making dense sampling of the EE-WW space challenging, particularly for large WW. MLEH-LR enables such high-throughput calculations, allowing us to quantify the joint width and field dependence of the band gap and examine the underlying electronic mechanisms.

Here, we choose H-passivated zigzag h-BN ribbons, which have inequivalent B–H and N–H edges and a built-in transverse potential [Figure 6(a)]. The finite-field OC model was employed with one message-passing block and one multipole update (U=1U = 1). Training covers widths of 79–114 Å and fields ∣E∣≤0.02|E| \le0.02 V/Å in either direction. We then test the model at new combinations of widths and field strengths, including a test field magnitude 2.5 times the training limit and a wider 131-Å ribbon, as shown in Figure 6(b). This model yields Hamiltonian MAEs below 0.76 meV over these test sets. The exact field and width ranges, together with TPC results, are given in SI Section S8.

External-field benchmark of the OC model on h-BN

Figure 6. External-field benchmark of the OC model on h-BN. (a) Top view of a 131-Å ribbon, in which the positive applied field points in the direction of the indicated intrinsic field. (b) DFT (filled circles) and predicted gaps (open squares) for two widths. Shading marks the training-field range. The 131-Å ribbon tests the model at a width beyond the training range. (c) Predicted gaps over 22 widths. The solid line connects the fields Ep(W)E_p(W) of gap maxima on the computed field grid at each width WW. Region I, E<Ep(W)E < E_p(W) and II, E>0E > 0 are the regions used to describe the relationship among band gap, width, and electric field in Eq. (11). (d) Field Ep(W)E_p(W) at the gap maximum versus inverse ribbon width 1/W1/W. Circles show all 22 widths, with EpE_p determined on the computed field grid. The dashed line shows Ep=(−1.358 V)/WE_p = (-1.358\ \mathrm{V})/W, using the mean EpWE_pW of these points.

We then use this model to calculate the band gap for different combinations of EE and WW on a dense EE-WW grid containing 5774 points, producing the map in Figure 6(c). These 5774 Hamiltonian calculations used 774 CPU-core hours, whereas the corresponding DFT calculations would require 2.8 ×104\times10^{4} CPU-core hours according to our estimate, making MLEH-LR a more efficient approach to high-throughput calculations. With this dense map, we can quantitatively identify which field leads to the largest band gap for each WW, a result not obtained in previous DFT calculations. Across the 22 widths, we find the relation EpW=−1.358±0.015E_pW = -1.358 \pm0.015 V (Figure 6(d)), where EpE_p denotes the electric field leading to the band gap maximum.

To understand the origin of the band-gap maximum, we examine the band structures of a 131-Å ribbon at zero field and three negative fields spanning the gap maximum (Figure 7). Color represents the average position of each state, indicating its B–H (orange) or N–H (blue) edge character. The transverse field changes the electrostatic potential differently at the two edges, so states concentrated on opposite sides of the ribbon experience different energy shifts. As the field becomes more negative, B–H-edge states are raised relative to N–H-edge states (dashed arrows in Figure 7(a)). This behavior is clearest in the conduction bands. Initially, the B–H-edge conduction state at X moves upward relative to the VBM, and the gap increases from 3.583 eV at zero field to its maximum sampled value of 4.385 eV at E=−0.0105E = -0.0105 V/Å. At this field, the B–H edge state at X remains the CBM but is nearly degenerate with the N–H edge state at Q (Figure 7(c)). At the more negative field of E=−0.0122E = -0.0122 V/Å, the N–H edge state at Q becomes the CBM, and the gap decreases (Figure 7(d)). The VBM remains near Q, but its character changes from predominantly N–H-edge-like at zero field to B–H-edge-like near the gap maximum. The gap maximum therefore occurs near the crossover between two competing conduction-band minima: the B–H-edge state at X limits the gap before the crossover, whereas the descending N–H-edge state at Q limits it afterward. Across all tested widths, this crossover occurs near the gap-maximum field characterized by EpW=−1.358E_pW = -1.358 V.

Predicted band structures and transverse state distributions of a 131-Å h-BN ribbon at four applied electric fields

Figure 7. Predicted band structures and transverse state distributions of a 131-Å h-BN ribbon at four applied electric fields: (a) E=0E = 0, (b) E=−0.0069E = -0.0069, (c) E=−0.0105E = -0.0105, and (d) E=−0.0122E = -0.0122 V/Å. EVE_{\mathrm{V}} denotes the valence-band maximum (VBM) at each field. Colors encode the normalized position expectation of each eigenstate from the B–H edge (orange) to the N–H edge (blue). Circles and squares mark the conduction-band minimum (CBM) and VBM, respectively. Dashed arrows in (a) illustrate the upward shifts of B–H edge states and downward shifts of N–H edge states as the field becomes more negative. Panel (c) shows the largest gap among the sampled fields, with the CBM at X. The lowest conduction-band energy at Q (4.396 eV) lies close to the CBM energy at X (4.385 eV), marked by the black dashed line.

The dense map of Figure 6(c) also enables us to formulate a quantitative scaling relation for the band gap dependence on EE and WW. We focus on regions I (E<Ep(W)<0E < E_{\mathrm{p}}(W) < 0) and II (E>0E > 0) in Figure 6(c), where the band gap changes linearly with EE for a fixed WW. At E=0E = 0, we expect finite-width effects to diminish as WW increases. We therefore propose a 1/W1/W correction to the large-width limits of the extrapolated branch intercepts. At E≠0E \ne0, the relative electrostatic shift of spatially separated band-edge states scales with EE times their effective separation (W−ℓσW - \ell_{\sigma}), where ℓσ\ell_{\sigma} accounts for the finite spread of band-edge states. These considerations lead us to propose the following expression:

Egσ(E,W)≃G∗−σ(P∞−CW)−κe∣E∣(W−ℓσ).(11)E_g^{\sigma}(E,W) \simeq G_* - \sigma\left(P_{\infty} - \frac{C}{W}\right) - \kappa e \lvert E\rvert\left(W - \ell_{\sigma}\right). \tag*{(11)}

Here, ee is the positive elementary charge, and σ=−1\sigma= -1 and +1+1 in regions I and II, respectively.

G∗G_*, P∞P_{\infty}, CC, κ\kappa, ℓ−\ell_-, and ℓ+\ell_+ are the fitting parameters. We fit all six parameters in Eq. (11) jointly to the calculated gap Egσ(E,W)E_g^{\sigma}(E,W) on the EE-WW grids in regions I and II. Figure 8 shows close agreement between the band gaps calculated with MLEH-LR and those predicted by Eq. (11) across different ribbon widths and electric fields in both regions, demonstrating the accuracy of this relation.

Calculated band gap versus predicted gap for regions I and II

Figure 8. Band gaps calculated with MLEH-LR versus those predicted by Eq. (11) for different ribbon widths and electric fields in regions I and II of Figure 6(c). Blue and orange points denote regions I (negative field) and II (positive field), respectively. The black line indicates perfect agreement. The six fitted parameters are listed in the plot.

Conclusions

We have developed MLEH-LR to extend machine-learning Hamiltonian prediction beyond local environments by incorporating long-range electrostatics and external fields. Across polar materials spanning one, two, and three dimensions, the framework delivers significant improvements over the short-range model in Hamiltonian accuracy and in reproducing electronic bands.

For materials under electric fields as demonstrated by h-BN ribbons, MLEH-LR enables accurate, large-scale exploration without repeated self-consistent DFT calculations. This exploration reveals the electronic origin of the band-gap maximum and establishes a quantitative relation among band gap, field strength, and ribbon width. These results show how MLEH-LR can uncover physical trends that are difficult to resolve through conventional electronic-structure calculation. More broadly, MLEH-LR provides a route to large-scale, high-throughput studies of polar systems and their response to external fields, enabling accurate and efficient predictions of various properties such as band alignment, interfacial charge redistribution, and carrier transport.

Acknowledgement

The code was improved in clarity and consistency with the assistance of Claude and ChatGPT, which also helped in the early stage of manuscript preparation.

Supporting Information Available

The Supporting Information is provided with this manuscript. Construction of fixed Gaussian and learned atom-dependent radial functions (Section S1); reciprocal-space Poisson solution and boundary conditions (Section S2); multipole updates with and without external fields (Section S3); implementation details of feature injection (FI), operator correction (OC), and two-stage potential conditioning (TPC) (Section S4); dataset construction, DFT settings, and training parameters (Section S5); FI, OC, and TPC results with the fixed radial function (Section S6); definitions of Hamiltonian and band errors (Section S7); finite-field dataset coverage and TPC results (Section S8); and analysis of the gap maximum across ribbon widths (Figure S1) (PDF).

Notes

The authors declare no competing financial interest.

Data Availability Statement

The data supporting the conclusions of this study will be made publicly available after acceptance of the manuscript. The MLEH-LR implementation, the trained model checkpoints, and the training and evaluation configurations required to reproduce the reported results are also available from the corresponding author upon reasonable request.

TOC Graphic

TOC graphic

Figure 9.

References

  1. [1]Schütt, K. T.; Gastegger, M.; Tkatсhenko, A.; Müller, K.-R.; Maurer, R. J. Unifying Machine Learning and Quantum Chemistry with a Deep Neural Network for Molecular Wavefunctions. Nat. Commun. 2019, 10, 5024. https://doi.org/10.1038/s41467-019-12875-2
  2. [2]Unke, O. T.; Bogojeski, M.; Gastegger, M.; Geiger, M.; Smidt, T.; Müller, K.-R. SE(3)-Equivariant Prediction of Molecular Wavefunctions and Electronic Densities. In Advances in neural information processing systems 34 (NeurIPS 2021); 2021. pp 14434–14447.arxiv.org/abs/2106.02347
  3. [3]Li, H.; Wang, Z.; Zou, N.; Ye, M.; Xu, R.; Gong, X.; Duan, W.; Xu, Y. Deep-Learning Density Functional Theory Hamiltonian for Efficient Ab Initio Electronic-Structure Calculation. Nat. Comput. Sci. 2022, 2, 367–377. https://doi.org/10.1038/s43588-022-00265-6
  4. [4]Gong, X.; Li, H.; Zou, N.; Xu, R.; Duan, W.; Xu, Y. General Framework for E(3)-Equivariant Neural Network Representation of Density Functional Theory Hamiltonian. Nat. Commun. 2023, 14, 2848. https://doi.org/10.1038/s41467-023-38468-8
  5. [5]Zhong, Y.; Yu, H.; Su, M.; Gong, X.; Xiang, H. Transferable Equivariant Graph Neural Networks for the Hamiltonians of Molecules and Solids. npj Comput. Mater. 2023, 9, 182. https://doi.org/10.1038/s41524-023-01130-4
  6. [6]Zhouyin, Z.; Gan, Z.; Pandey, S. K.; Zhang, L.; Gu, Q. Learning Local Equivariant Representations for Quantum Operators. In The thirteenth international conference on learning representations (ICLR 2025); 2025.arxiv.org/abs/2407.06053
  7. [7]Qian, C.; Vitartas, V.; Kermode, J. R.; Maurer, R. J. Equivariant Electronic Hamiltonian Prediction with Many-Body Message Passing. npj Comput. Mater. 2026, 12, 169. https://doi.org/10.1038/s41524-026-02020-1
  8. [8]Goniakowski, J.; Finocchi, F.; Noguera, C. Polarity of Oxide Surfaces and Nanostructures. Rep. Prog. Phys. 2008, 71, 016501. https://doi.org/10.1088/0034-4885/71/1/016501
  9. [9]Bernardini, F.; Fiorentini, V.; Vanderbilt, D. Spontaneous Polarization and Piezoelectric Constants of III-V Nitrides. Phys. Rev. B 1997, 56, R10024–R10027. https://doi.org/10.1103/PhysRevB.56.R10024
  10. [10]Ko, T. W.; Finkler, J. A.; Goedecker, S.; Behler, J. A Fourth-Generation High-Dimensional Neural Network Potential with Accurate Electrostatics Including Non-Local Charge Transfer. Nat. Commun. 2021, 12, 398. https://doi.org/10.1038/s41467-020-20427-2
  11. [11]Batatia, I.; Baldwin, W. J.; Kurlyuk, D.; Hart, J.; Kasoar, E.; Elena, A. M.; Moore, H.; Gawköwski, M. J.; Shi, B. X.; Kapil, V.; Kourtis, P.; Magdău, I.-B.; Csányi, G. MACE-POLAR-1: A Polarizable Electrostatic Foundation Model for Molecular Chemistry, 2026. https://doi.org/10.48550/arXiv.2602.19411 arXiv:2602.19411 [Preprint].
  12. [12]Zhong, Y.; Li, X.; Gong, X.; Xiang, H. Physics-Informed Long-Range Coulomb Correction for Machine-Learning Hamiltonians, 2026. https://doi.org/10.48550/arXiv.2603.20007 arXiv:2603.20007 [Preprint].
  13. [13]Bhat, H. S.; Gupta, P.; Isborn, C. M. Scalable Learning of Potentials to Predict Time-Dependent Hartree–Fock Dynamics. APL Mach. Learn. 2024, 2, 046112. https://doi.org/10.1063/5.0232683
  14. [14]Zou, J.; Zhouyin, Z.; Lin, D.; Huang, Y.; Zhang, L.; Hou, S.; Gu, Q. Deep Learning Accelerated Quantum Transport Simulations in Nanoelectronics: From Break Junctions to Field-Effect Transistors. npj Comput. Mater. 2025, 11, 375. https://doi.org/10.1038/s41524-025-01853-6
  15. [15]Batatia, I.; Kovács, D. P.; Simm, G. N. C.; Ortner, C.; Csányi, G. MACE: Higher Order Equivariant Message Passing Neural Networks for Fast and Accurate Force Fields. In Advances in neural information processing systems 35 (NeurIPS 2022); 2022. pp 11423–11436.
  16. [16]Geiger, M.; Smidt, T. e3nn: Euclidean Neural Networks, 2022. https://doi.org/10.48550/arXiv.2207.09453 arXiv:2207.09453 [Preprint].
  17. [17]Li, X.; Xin, Z.; Yu, H.; Zhong, Y.; Hong, L.; Gong, X.; Xiang, H. Efficient Equivariant Framework for Universal Charge Density Prediction. Nat. Mach. Intell. 2026. https://doi.org/10.1038/s42256-026-01326-5
  18. [18]Lewis, A. M.; Grisafi, A.; Ceriotti, M.; Rossi, M. Learning Electron Densities in the Condensed Phase. J. Chem. Theory Comput. 2021, 17 (11), 7203–7214. https://doi.org/10.1021/acs.jctc.1c00576
  19. [19]Hansen, N. K.; Coppens, P. Testing Aspherical Atom Refinements on Small-Molecule Data Sets. Acta Crystallogr., Sect. A 1978, 34 (6), 909–921. https://doi.org/10.1107/S0567739478001886
  20. [20]Elstner, M.; Porezag, D.; Jungnickel, G.; Elsner, J.; Haugk, M.; Frauenheim, Th.; Suhai, S.; Seifert, G. Self-Consistent-Charge Density-Functional Tight-Binding Method for Simulations of Complex Materials Properties. Phys. Rev. B 1998, 58, 7260–7268. https://doi.org/10.1103/PhysRevB.58.7260
  21. [21]Ozaki, T. Variationally Optimized Atomic Orbitals for Large-Scale Electronic Structures. Phys. Rev. B 2003, 67, 155108. https://doi.org/10.1103/PhysRevB.67.155108
  22. [22]Park, C.-H.; Louie, S. G. Energy Gaps and Stark Effect in Boron Nitride Nanoribbons. Nano Lett. 2008, 8, 2200–2203. https://doi.org/10.1021/nl080695i
  23. [23]Zhang, Z.; Guo, W. Energy-Gap Modulation of BN Ribbons by Transverse Electric Fields: First-Principles Calculations. Phys. Rev. B 2008, 77, 075403. https://doi.org/10.1103/PhysRevB.77.075403
  24. [24]Zheng, F.; Liu, Z.; Wu, J.; Duan, W.; Gu, B.-L. Scaling Law of the Giant Stark Effect in Boron Nitride Nanoribbons and Nanotubes. Phys. Rev. B 2008, 78, 085423. https://doi.org/10.1103/PhysRevB.78.085423

Paper details

vlnc:W_9w2w4w28
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 0

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Physics and Astronomy

Claude, ChatGPT

View statement
Looking for related papers…
Contents