Skip to main content

MaxwellLink icon

Docs badge PyPI version License: GPLv2 Python versions arXiv:2512.06173 10.1021/acs.jctc.5c02028

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.

MaxwellLink workflow

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, 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)

Source distribution for maxwelllink 0.6.0
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)

Table of built distributions (wheels) for maxwelllink 0.6.0
File Interpreter ABI Platform Actions
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

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page