PySlice: Routine Vibrational Electron Energy Loss Spectroscopy Prediction with Universal Interatomic Potentials
Harrison A. Walker, Thomas W. Pfeifer, Paul M. Zeiger, Jordan A. Hachtel, Sokrates T. Pantelides, Eric R. Hoglund
TL;DR
PySlice addresses the challenge of routine vibrational EELS prediction by unifying MD with universal machine learning interatomic potentials, GPU-accelerated multislice electron scattering, and the TACAW frequency-domain framework. The approach delivers automated, end-to-end predictions of momentum- and energy-resolved spectra, enabling phonon dispersions, spectral diffraction patterns, and spectrum images from atomic structures; a key equation is $I(\mathbf{k},\omega)=|\tilde{\psi}(\mathbf{k},\omega)|^2$ with $\tilde{\psi}(\mathbf{k},\omega)=\mathcal{F}_t[\psi(\mathbf{k},t)-\langle\psi(\mathbf{k},t)\rangle_t]$. The authors demonstrate the workflow on TMDCs (MoS$_2$, WS$_2$, MoSe$_2$, WSe$_2$) and show spatially-resolved phonon signals at interfaces and point defects, highlighting the system-wide applicability of the method. PySlice thus enables high-throughput spectroscopy predictions, training-data generation for ML models, and prediction-driven experimental design, all within a modular, reproducible Python framework that also supports conventional TEM/STEM simulations.
Abstract
Vibrational spectroscopy in the electron microscope can reveal phonon excitations with nanometer spatial resolution, yet routine prediction remains out of reach due to fragmented workflows requiring specialized expertise. Here we introduce PySlice, the first publicly available implementation of the Time Autocorrelation of Auxiliary Wavefunction (TACAW) method, providing an automated framework that produces momentum- and energy-resolved vibrational electron energy-loss spectra directly from atomic structures. By integrating universal machine learning interatomic potentials with TACAW, PySlice eliminates the bottleneck of per-system potential development. Users input atomic structures and obtain phonon dispersions, spectral diffraction patterns, and spectrum images through a unified workflow spanning molecular dynamics, GPU-accelerated electron scattering, and frequency-domain analysis. We outline the formulation behind the code, demonstrate its application to canonical systems in materials science, and discuss its use for advanced analysis and materials exploration. The modular Python architecture additionally supports conventional electron microscopy simulations, providing a general-purpose platform for imaging and diffraction calculations. PySlice makes vibrational spectroscopy prediction routine rather than specialized, enabling computational screening for experimental design, systematic exploration of phonon physics across materials families, and high-throughput generation of simulated data for training of future machine learning models.
