MaxwellLink: A unified framework for self-consistent light-matter simulations
Xinwei Ji, Andres Felipe Bocanegra Vargas, Gang Meng, Tao E. Li
TL;DR
MaxwellLink addresses the challenge of coupling light and matter across disparate time and length scales by providing a modular, open-source framework that unifies classical EM solvers with diverse molecular drivers through a robust socket-based interface. It supports a spectrum of EM propagation methods—from grid-based FDTD to single-mode cavities—and molecular dynamics models, enabling self-consistent simulations on large HPC resources. The authors demonstrate the framework with four applications: superradiance, radiative energy transfer, vibrational strong coupling, and plasmonic heating, illustrating both accuracy and scalability and highlighting the ability to mix levels of theory for light and matter components. This platform has the potential to accelerate exploration across spectroscopy, quantum optics, plasmonics, and polaritonics by providing a flexible, extensible, and scalable tool for self-consistent light-matter simulations.
Abstract
A major challenge in light-matter simulations is bridging the disparate time and length scales of electrodynamics and molecular dynamics. Current computational approaches often rely on heuristic approximations of either the electromagnetic (EM) or material component, hindering the exploration of complex light-matter systems. Herein, MaxwellLink -- a modular, open-source Python framework -- is developed for the massively parallel, self-consistent propagation of classical EM fields interacting with a large heterogeneous molecular ensemble. The package utilizes a robust TCP/UNIX socket interface to couple EM solvers with a wide range of external molecular drivers. This decoupled architecture allows users to seamlessly switch between levels of theory of either the EM solver or molecules without modifying the counterpart. Crucially, MaxwellLink supports EM solvers spanning from single-mode cavities to full-feature three-dimensional finite-difference time-domain (FDTD) engines, and molecules described by multilevel open quantum systems, force-field and first-principles molecular dynamics, and nonadiabatic real-time Ehrenfest dynamics. Benefiting from the socket-based design, the EM engine and molecular drivers scale independently across multiple high-performance computing (HPC) nodes, facilitating large-scale simulations previously inaccessible to existing numerical schemes. The versatility and accuracy of this code are demonstrated through applications including superradiance, radiative energy transfer, vibrational strong coupling in Bragg resonators, and plasmonic heating of molecular gases. By providing a unified, extensible engine, MaxwellLink potentially offers a powerful platform for exploring emerging phenomena across the research fronts of spectroscopy, quantum optics, plasmonics, and polaritonics.
