BeamZ is a differentiable, GPU-accelerated electromagnetic simulation framework for photonic chip designers using the FDTD method. Its engine enables fast, large-scale simulations and offers a familiar, high-level API for fast prototyping with just a few lines of code as well as an inverse design module for gradient-based optimization.
Core Features
- Python-first with an intuitive and familiar API.
- Free and open-source FDTD simulation in true 2D and 3D.
- GPU-accelerated, achieving high GCUPS performance.
- Multi-GPU runs, handling large-scale simulations with billions of cells.
- CPU-capable for fast prototyping, even on your laptop.
- Dedicated CUDA-backend for acceleration beyond default Jax.
- CPML, absorbing layers and PEC boundaries.
- Unidirectional mode sources (single freq. and broadband, Huygens fields + TFSF, TE/TM).
- 3D Gaussian sources, e.g. for grating coupler simulations.
- DFT monitors and S-parameter extraction workflow for compact modeling.
- Integrated FDFD mode solver and rasterization module.
- Regular and rectilinear meshing.
- Full-tensor and diagonal Farjadpour (polarized averaging) subpixel-smoothing.
- Simple GDS, GMSH and STL import and export.
- Streamlined, integrated parametric design module.
- Projection kernels and utilies for inverse design via auto-diff and adjoint-method workflow.
Examples
Try out notebooks from our growing example library. It includes:
- 1) Mode Sources and Monitors (3D)
- 2) Waveguide Crossing with Cosine Tapers (3D)
- 3) Grating Coupler (3D)
- 4) Microring Resooator (3D)
- 5) 1x4 MMI Powersplitter (3D)
- 6) Topology Optimized 90° Bend (2D)
- 7) GDSFactory PDK 1x2 MMI (3D)
Integration
BeamZ is used by several other OSS packages as an FDTD engine and integrates with workflows across the open-source photonics ecosystem:
- SiEPIC's GDS FDTD, an EDA- and solver-agnostic 3D FDTD compact modeling framework using BeamZ as the default engine.
- Lumix, a research codebase for optical neural networks and matrix inverse design, using BeamZ as the main solver.
- GDSFactory, the most popular open-source layout package for chip design for which BeamZ provides a simple workflow from PDK import to compact modeling.
Installation
Install BeamZ using pip:
pip install beamz
Development uses uv. Clone the repository and sync the package with its contributor dependencies:
git clone https://github.com/beamzorg/beamz
cd beamz
uv sync --extra dev --extra test
For a ready-to-use CUDA and Jupyter development environment, see the Docker and RunPod guide.
Mission
BeamZ aims to become the FDTD engine of choice for photonic simulations in industry and research, including photonic circuits, inverse design, metamaterials, fiber optics, nanophotonics, sensors (planned), active photonic devices (planned), and RF (planned), focusing on streamlined workflows and bringing multi-physics GPU-acceleration for maximum performance in large-scale simulations to everyone. - Detailed roadmap coming soon.
Contributing
We appreciate all contributions. If you are planning to contribute bug-fixes, please do so without any further discussion. If you would like to add new features, please first open an issue and discuss the feature with us. There may be ongoing work that could conflict with your changes, or we may be heading in a different direction and we don't want to waste your time working on something that might be rejected. - You can find more information here.
The simplest way to support the project of course is by giving this repo a star. Thank you!
Citation
If you use BeamZ in your research, please cite:
Quentin Wach (2026). BeamZ: CUDA-accelerated Differentiable FDTD for Photonics (v0.5.2). Zenodo. https://doi.org/10.5281/zenodo.23085102
@software{wach_beamz,
author = {Wach, Quentin},
title = {{BeamZ}: {CUDA}-accelerated Differentiable {FDTD} for Photonics},
year = {2026},
version = {v0.5.2},
publisher = {Zenodo},
doi = {10.5281/zenodo.23085102},
url = {https://doi.org/10.5281/zenodo.23085102}
}
Citation metadata is available in CITATION.cff. For reproducible research, cite the DOI of the specific release you used; the citation above is for v0.5.2. If using an unreleased version, also report the commit hash. To reference BeamZ across all versions, use the all-versions DOI.
Copyright © 2026 Quentin Wach — Apache-2.0
Metadata
Release files for beamz 0.5.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| beamz-0.5.3.tar.gz | 486.9 kB | Details |
Built distributions (wheels)
| File | Reset | |||
|---|---|---|---|---|
| beamz-0.5.3-cp310-abi3-win_amd64.whl | CPython 3.10 | abi3 | Windows x86-64 | Details |
| beamz-0.5.3-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl | CPython 3.10 | abi3 | Linux glibc 2.17+ x86-64 | Details |
| beamz-0.5.3-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl | CPython 3.10 | abi3 | Linux glibc 2.17+ ARM64 | Details |
| beamz-0.5.3-cp310-abi3-macosx_11_0_arm64.whl | CPython 3.10 | abi3 | macOS 11.0+ ARM64 | Details |
| beamz-0.5.3-cp310-abi3-macosx_10_12_x86_64.whl | CPython 3.10 | abi3 | macOS 10.12+ x86-64 | Details |
Total release size: 8.0 MB
Release files / beamz-0.5.3.tar.gz
| Download URL | beamz-0.5.3.tar.gz |
|---|---|
| Size | 486.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
eb65518f04fef73545dc8b432c896f9e3bea159a2aa58321ac860f942be5b3ae
|
|
BLAKE2b-256 checksum How to use checksums |
4677d4eb179705b96d29f46450298e84c0455de753481dc9877bdb1a2ca9558c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / beamz-0.5.3-cp310-abi3-win_amd64.whl
| Download URL | beamz-0.5.3-cp310-abi3-win_amd64.whl |
|---|---|
| Size | 1.4 MB |
| Tags | CPython 3.10 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
66d144b5224611bd659f85e6d8a3a8db77ed9eeb247dd08b7b230a9ccd896680
|
|
BLAKE2b-256 checksum How to use checksums |
d365684414bbc0d6fcfe706913704450580142bea61ca8a007f878971b31a231
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / beamz-0.5.3-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | beamz-0.5.3-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 1.6 MB |
| Tags | CPython 3.10 Linux glibc 2.17+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
eaba19af73aef1d9a9b3f7fd9875620895b6797f14b726f598469f8666ea09d4
|
|
BLAKE2b-256 checksum How to use checksums |
62359878e2421666fa7908bdaf50d6cd692590368af897c2ff2608371c6fbe08
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / beamz-0.5.3-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
| Download URL | beamz-0.5.3-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl |
|---|---|
| Size | 1.6 MB |
| Tags | CPython 3.10 Linux glibc 2.17+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
8b5c4dbaa395abee360dd8232b02d15382070928cf29a866c6aa9e81af6974a2
|
|
BLAKE2b-256 checksum How to use checksums |
0d0145bec1b9ab0b67361b9092d66bff54688f34118ae6b50678f399ae6d7a42
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / beamz-0.5.3-cp310-abi3-macosx_11_0_arm64.whl
| Download URL | beamz-0.5.3-cp310-abi3-macosx_11_0_arm64.whl |
|---|---|
| Size | 1.4 MB |
| Tags | CPython 3.10 abi3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
130d39c0824b785358e1391b1df80791747a7b1337861185ee47815fff520789
|
|
BLAKE2b-256 checksum How to use checksums |
8611bf2fbdd23755c2da8d3c695e82dd955ae0f9504345175b2b3f1f8c6297b8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / beamz-0.5.3-cp310-abi3-macosx_10_12_x86_64.whl
| Download URL | beamz-0.5.3-cp310-abi3-macosx_10_12_x86_64.whl |
|---|---|
| Size | 1.5 MB |
| Tags | CPython 3.10 abi3 macOS 10.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
608950269c9a9efd3f49bddcc6b331fda7a4a5f907b69033eee918900276e222
|
|
BLAKE2b-256 checksum How to use checksums |
2954c1afffdc843b5e445992c01c2bda4662b9f168f2da20c97d6b91bd9824ce
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|