This repository contains the source code and dataset for the Sequential-tensorial-properties Equivariant Neural Network (StepENN).
The following key dependencies were used in this project:
python==3.11.7
torch==2.0.1+cu117
torch_geometric==2.4.0
torch_scatter==2.1.2+pt20cu117
(plus other torch_geometric dependencies)pymatgen==2025.2.18
e3nn==0.5.5
It is recommended to install torch
first, followed by torch_geometric
and its corresponding dependencies for your CUDA version.
You may also need the following common packages:
pandas
wandb
seaborn
mendeleev
ase
- ...
You can install them using pip:
pip install pandas wandb seaborn mendeleev ase
To ensure all packages are installed, run the notebook at notebook/full_tensor_train_data_prep.ipynb
. Missing packages can be added via pip as needed.
The dataset used in our work is located in the dataset/
directory.
An example of how to load and use it is provided in:
notebook/full_tensor_train_data_prep.ipynb
Each entry in the dataset corresponds to a material and includes:
symmetrized_structure
mp_id
(Materials Project ID)chemical formula
band gap
crystal system
photon energy (omega)
real part of permittivity
imaginary part of permittivity
The permittivity data is stored as a NumPy array of shape (3001, 3, 3)
,
where 3001
corresponds to the number of photon energy points.
Each tensor is a
To train the model, navigate to the scripts folder and run:
cd scripts/
python train_full_im_tensor.py
This will begin training the full-tensor model using the default parameters.
You can explore the pretrained model and visualize its results in the notebook/
directory:
imaginary_part_prediction.ipynb
: demonstrates predictions using the pretrained model on curated datasets.multiple_material_prediction.ipynb
andmaterial_prediction.ipynb
: shows how to query new materials from the Materials Project and make predictions.
Feel free to cite or fork this repository for your own research.
@misc{hsu2025accuratepredictionsequentialtensor,
title={Accurate Prediction of Sequential Tensor Properties Using Equivariant Graph Neural Network},
author={Ting-Wei Hsu and Zhenyao Fang and Arun Bansil and Qimin Yan},
year={2025},
eprint={2505.04862},
archivePrefix={arXiv},
primaryClass={cond-mat.mtrl-sci},
url={https://arxiv.org/abs/2505.04862},
}