NSF DMREF · Northeastern University

Electronic structure of twisted multilayer 2D materials, predicted by machine learning

Twisting stacked atomic layers creates moiré superlattices with new electronic and optical properties. The unit cells are often too large for routine first-principles calculations. We train a neural network on density-functional theory (DFT) data from small cells. It then predicts the electronic Hamiltonian of large twisted cells directly from atomic positions, and band structures follow from that Hamiltonian.

Twisted bilayer: top view of the moiré supercell (left) and its bands near the gap (right), DFT (solid) and ML prediction (dashed).
—
DFT calculations of 2D slabs (OpenMX, PBE) the model is trained on: bilayers, trilayers and distorted cells
—
twisted cells with ML band structures compared against DFT
—
median band error against DFT, for levels within 1 eV of the gap
—
DFT-relaxed monolayers from four public databases, ready to stack in the builder

What you can do here

Three tools, one workflow

Everything runs in the browser against precomputed data. Nothing to install, and no account needed.

Structure builder

Design twisted stacks of 2 to 10 layers: alternating, helical and twisted double stacks, from one material or several.

  • smallest commensurate supercells within a strain tolerance
  • point group, chirality and allowed SHG and optical-activity tensors
  • 3D, top and side views; POSCAR, CIF, XSF and XYZ export
Open the builder →

Band structures

ML-predicted band structures of twisted bilayers, trilayers and double bilayers, each shown against its DFT reference.

  • band, gap and band-edge errors for every cell
  • spin-orbit coupling view (approximate)
  • SVG export of every plot
Browse band structures →

Band library in the builder

The same 130 DFT-checked twisted stacks of 85 materials, ready to load in the builder with their ML band structures.

  • bilayers, alternating trilayers and double bilayers
  • twist angles from 9.4° to 50.6°, up to 222 atoms
  • build a stack and its bands appear next to it
Try a trilayer →

Approach

From small DFT cells to large moiré supercells

The model never sees a large twisted cell during training. It learns how the Hamiltonian depends on each atom's local environment, and a twisted stack is a mosaic of such environments.

1 · BUILDTwisted stacksCommensurate supercellsfrom ~30,000 monolayers;symmetry and opticalselection rules 2 · SAMPLESmall training cellsShifted and strainedbilayers, trilayers anddistorted cells that coverevery local stacking 3 · DFTReference HamiltoniansOpenMX, PBE, localizedorbitals, slab boundaryconditions; H and Smatrices for training 4 · LEARNEquivariant networkPredicts on-site andhopping blocks from eachatom's neighbourhood;respects rotations 5 · PREDICTLarge twisted cellsHamiltonian without aself-consistent DFT run;bands, gaps and bandedges, checked against DFT

Results

Accuracy against DFT

Every cell on the band-structure page has a full DFT calculation in the same orbital basis. Predicted and DFT levels are paired one to one, and only a rigid energy offset is removed. The band error is the mean |ΔE| over the DFT levels within 1 eV of the gap edges.

Median errors by group

GroupCellsBand errorGap error≤ 10 meV

On materials whose stacks were kept out of training, the median band error is 35 meV (64 cells). Janus layers have different atoms on their two faces, so each layer carries a built-in electric field. They are the hardest case so far.

Distribution of band errors

Number of twisted cells in each band-error range (meV). A typical target for production use is ≤ 10 meV.

Methods & data

How the results are made

Structures
Commensurate supercells from a patched copy of supercell-core, with each layer strained to a common lattice. The maximum strain is shown for every structure.
DFT
OpenMX, PBE functional, pseudo-atomic orbital basis, 15 Å vacuum with effective screening medium boundary conditions. Interlayer spacings come from the bulk parent crystal or from an energy scan with a post-hoc D3 dispersion correction.
Model
A rotation-equivariant graph neural network that predicts the Hamiltonian matrix block by block from local atomic environments, using a geometry-only base Hamiltonian as its starting point.
Spin–orbit
Added to the predicted Hamiltonian with a term tabulated from fully relativistic pseudopotentials. It is labelled approximate, and there is no SOC DFT reference for the twisted cells.
Evaluation
Twisted cells at angles and stackings never used in training. They include whole materials kept out of training and Janus layers.
Monolayers
JARVIS-DFT 2D, 2DMatPedia, Materials Cloud MC2D and Alexandria 2D, filtered to within 0.1 eV/atom of the convex hull for training data. Please cite the source database for any structure you use.
Symmetry
Point and space groups from the atomic positions. Allowed SHG χ⁽²⁾ and gyration-tensor components follow from the point-group operations in the electric-dipole approximation.
Status
Research software under active development; results are updated as the training data grows.

Team & support

Yan group, Northeastern University

Department of Physics, Northeastern University, Boston, MA. Principal investigator: Prof. Qimin Yan (qyanlab.net).

This work is supported by the U.S. National Science Foundation through the Designing Materials to Revolutionize and Engineer our Future (DMREF) program, project “DMREF: Deep learning guided twistronics for self-assembled quantum optoelectronics”.