MaxwellLink is a free and open-source framework for self-consistent light–matter simulations. It connects electromagnetic solvers, such as MEEP FDTD or the built-in normal-mode cavity and laser driven dynamics, to a wide range of molecular drivers, from multilevel open quantum systems to (nonadiabatic) first-principles molecular dynamics.
This code supports both exploratory demonstrations and production-scale calculations. In particular, its socket-based architecture allows large-scale self-consistent light–matter simulations to run efficiently across multiple HPC nodes.
Key Features
- Embracing state-of-the-art ecosystems in both computational electrodynamics and quantum chemistry, extending the boundary of light-matter simulations.
- Unified Python interfaces for socket-connected and embedded molecular drivers in light-matter simulations.
- EM dynamics from simple to complex systems.
- Heterogeneous molecular theories in one simulation.
- Extensible code structure to add custom EM solvers or molecular drivers with minimal effort.
Supported light-matter simulation schemes
The most appealing feature of MaxwellLink is that it enables the self-consistent coupling of one EM solver plus N different molecular drivers concurrently.
The socket communication technique further allows distributed light-matter simulations on different machines and HPC nodes, i.e., both the EM solver and molecular drivers can have their own MPI parallel processes.
As of today, the following EM solvers and molecular drivers are supported.
Supported EM solvers
- Full-feature MEEP FDTD in 1D, 2D, 3D, and cylindrical coordinates (3D simulations at 2D cost),
- Single-mode cavity,
- Multimode Fabry-Perot cavity, and
- Arbitrary laser driven dynamics.
Supported molecular drivers
- Two-level systems and simple harmonic oscillators,
- QuTiP model Hamiltonians,
- In-house RT-TDDFT/Ehrenfest dynamics using Psi4 integrals,
- ASE classical dynamics,
- Direct socket connection to modified LAMMPS for classical MD via
fix mxl, - Lorentz-Bath model for studying energy transfer between polaritons and dark modes,
- Direct socket connection to modified DFTB+ for tight-binding BOMD/real-time Ehrenfest dynamics.
- Direct socket connection to modified CP2K for real-time TDDFT/Ehrenfest dynamcis in both non-periodic and periodic systems.
- Embedded GPU MD drivers for fast, large-scale simulations.
Quick Start
Create a fresh conda environment and install using pip:
pip install maxwelllink
Optional drivers (MEEP FDTD, QuTiP, Psi4, ASE, LAMMPS) can be added by following the instructions in the documentation.
Documentation
Visit the documentation for installation details, tutorials, API reference, and guidelines on extending MaxwellLink.
Tutorials
The jupyter notebook tutorials are located at tutorials/. Users may also view the tutorials rendered at the documentation website.
Citation
If you find MaxwellLink helpful for your research, please cite the following reference:
- X Ji †, AF Bocanegra Vargas †, G Meng, and TE Li. MaxwellLink: A Unified Framework for Self-Consistent Light-Matter Simulations. J. Chem. Theory Comput. 22, 2725–2738 (2026). [data] [arXiv:2512.06173]
Publications using MaxwellLink
-
X Ji, and TE Li. Nonlinear Freezing of Vibrational Polariton Transport via Mesoscale Simulations. Nano Lett. acs.nanolett.6c03367 (2026). [data]
-
G Meng, and TE Li. Molecular Electrodynamic Relaxation in Dielectric and Plasmonic Cavities. arXiv:2610.38992.
-
X Ji, and TE Li. Atomistic Emergence of Vibrational Polariton Condensation arXiv:2610.41133.
Metadata
Release files for maxwelllink 0.6.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| maxwelllink-0.6.0.tar.gz | 18.5 MB | Without provenance | Details for maxwelllink-0.6.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| maxwelllink-0.6.0-py3-none-any.whl | Python 3 | none | any | Details for maxwelllink-0.6.0-py3-none-any.whl |
Total release size: 37.7 MB
Release files / maxwelllink-0.6.0.tar.gz
| Download URL | maxwelllink-0.6.0.tar.gz |
|---|---|
| Size | 18.5 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
765204c77a609e49af618b35f010f19c8cc18e77b07daa7faa8dc2f4fffa4071
|
|
BLAKE2b-256 checksum How to use checksums |
7b010f0f621b33cdafdcc942ca866f28fb9e12932dcab7f8928002bd3b77ecfc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / maxwelllink-0.6.0-py3-none-any.whl
| Download URL | maxwelllink-0.6.0-py3-none-any.whl |
|---|---|
| Size | 19.2 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a5ad2d9cd408da17e6817576598109c7b8ba6f9cbd3523adc297698303903bc3
|
|
BLAKE2b-256 checksum How to use checksums |
8e6b1b73f9b4b4b2ceae47588c885b3d03b11f60d1a4550bb2009142fa0b5832
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Security for maxwelllink 0.6.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.