https://github.com/beamzorg/beamz
GPU-accelerated electromagnetic FDTD simulations for compact modeling and inverse design / gradient-based optimization of nanophotonic devices with Python.
https://github.com/beamzorg/beamz
compact-model electromagnetics fdtd gdsfactory gpu-acceleration inverse-design jax nanophotonics photonics physics s-matrix sax simulation
Last synced: 28 days ago
JSON representation
GPU-accelerated electromagnetic FDTD simulations for compact modeling and inverse design / gradient-based optimization of nanophotonic devices with Python.
- Host: GitHub
- URL: https://github.com/beamzorg/beamz
- Owner: beamzorg
- License: mit
- Created: 2025-05-08T02:17:32.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2026-05-23T20:19:21.000Z (29 days ago)
- Last Synced: 2026-05-24T03:34:40.819Z (28 days ago)
- Topics: compact-model, electromagnetics, fdtd, gdsfactory, gpu-acceleration, inverse-design, jax, nanophotonics, photonics, physics, s-matrix, sax, simulation
- Language: Python
- Homepage: https://beamzorg.github.io/beamz-notebooks/
- Size: 51.5 MB
- Stars: 37
- Watchers: 2
- Forks: 6
- Open Issues: 15
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
BEAMZ is an **[electromagnetic](https://en.wikipedia.org/wiki/Electromagnetism) simulation** package for photonic chip designers using the **[FDTD](https://en.wikipedia.org/wiki/Finite-difference_time-domain_method) method** written in Jax. It features a **high-level API** for fast prototyping with just a few lines of code, an **inverse design module** for gradient-based optimization using the adjoint method with **[autodiff](https://en.wikipedia.org/wiki/Automatic_differentiation)**.
```bash
pip install beamz
```


[](https://github.com/QuentinWach/beamz/actions/workflows/tests.yml)
[](https://github.com/QuentinWach/beamz/actions/workflows/full-tests.yml)
## Core Features
- **100% Python**, free (MIT license) & open-source.
- Modular architecture with a high-level API.
- **GPU-accelerated** (but CPU-capable).
- Built-in layout flow (GDSII import/export).
- FDTD simulation in 2D and **3D**.
- Absorbing Layers, CPML (WIP), and PEC boundaries.
- **Sub-pixel smoothing** (using super-sampling).
- Gaussian and **mode sources** with TE and TM polarization.
- Custom source time profiles.
- **DFT monitors** and S-parameter extraction workflow for compact modeling.
- Streamlined parametric design module and interactive 3D web-view.
- Optimization/autodiff utilities for gradient-based **inverse-design** with Jax.
## Examples
Read and try out our **[example notebooks](https://beamzorg.github.io/beamz-notebooks/)** or download and run [`examples/` from this repository](https://github.com/beamzorg/beamz/tree/main/examples).
## About
BEAMZ's goal is to become the **pragmatic** FDTD engine of choice for **photonic chip designers**.
It focuses on **streamlined workflows** to produce **useful results** without tedious setup or configuration files. While currently still experimental, this is _not_ a research project with the goal to demo a novel framework we can publish, nor a costly, closed API that hides how it works and gives you no ownership. A **modular architecture** is chosen over a purely object-oriented architecture to **make the code readable and development easy** so that, if there is something that isn't working or missing, you can quickly add it yourself.
If any of this excites you or if have any questions, please open an issue on GitHub. Feel free to fork this project, to suggest or contribute new features, or simply support the project by **giving this repo a star.** Thank you!