Skip to main content
BeamZ logo

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.

Homepage / Documentation / Example Library

License: Apache-2.0 Tests Coverage DOI

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.
  • 2D and 3D topology inverse design with autodiff or adjoint method.

Examples

Try out notebooks from our growing example library. It includes:

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

BeamZ requires Python 3.11–3.14. Python 3.10 is no longer supported because the patched Pillow image backend requires Python 3.11 or newer. Upgrade your Python environment before installing this version.

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.6.0). Zenodo. https://doi.org/10.5281/zenodo.23641945

@software{wach_beamz,
  author = {Wach, Quentin},
  title = {{BeamZ}: {CUDA}-accelerated Differentiable {FDTD} for Photonics},
  year = {2026},
  version = {v0.6.0},
  publisher = {Zenodo},
  doi = {10.5281/zenodo.23641945},
  url = {https://doi.org/10.5281/zenodo.23641945}
}

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.6.0. 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.6.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for beamz 0.6.2
File Size Uploaded Provenance Actions
beamz-0.6.2.tar.gz 679.8 kB Without provenance Details for beamz-0.6.2.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for beamz 0.6.2
File Actions
beamz-0.6.2-cp311-abi3-win_amd64.whl CPython 3.11 abi3 Windows x86-64 Details for beamz-0.6.2-cp311-abi3-win_amd64.whl
beamz-0.6.2-cp311-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl CPython 3.11 abi3 Linux glibc 2.17+ x86-64 Details for beamz-0.6.2-cp311-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
beamz-0.6.2-cp311-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl CPython 3.11 abi3 Linux glibc 2.17+ ARM64 Details for beamz-0.6.2-cp311-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
beamz-0.6.2-cp311-abi3-macosx_11_0_arm64.whl CPython 3.11 abi3 macOS 11.0+ ARM64 Details for beamz-0.6.2-cp311-abi3-macosx_11_0_arm64.whl
beamz-0.6.2-cp311-abi3-macosx_10_12_x86_64.whl CPython 3.11 abi3 macOS 10.12+ x86-64 Details for beamz-0.6.2-cp311-abi3-macosx_10_12_x86_64.whl

Total release size: 9.3 MB

Release files / beamz-0.6.2.tar.gz

Download URL beamz-0.6.2.tar.gz
Size 679.8 kB
Tags Source
SHA-256 checksum
How to use checksums
94b93afe551f7e134311139694ea4d368ccd115e412503808a115432cbbae287
BLAKE2b-256 checksum
How to use checksums
54cbb059f4ca9c03e35e9cad382949ac9656a3b93be88b01cb09aa0fb16d0e9d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / beamz-0.6.2-cp311-abi3-win_amd64.whl

Download URL beamz-0.6.2-cp311-abi3-win_amd64.whl
Size 1.6 MB
Tags CPython 3.11 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
d1d66b668cae55db62a9f4b43c3e3417151b43a6214513436b79512c600d5b5e
BLAKE2b-256 checksum
How to use checksums
a27bf7e67d9f4adc520e0972ab200c7eafcd0e6e76524c1ac5d5bdb9c10243f1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / beamz-0.6.2-cp311-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL beamz-0.6.2-cp311-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 1.8 MB
Tags CPython 3.11 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
092d9e0302b12cb37f71d14a514c465570d71d01282e47af2d1e5ed0ca049b9e
BLAKE2b-256 checksum
How to use checksums
6c597463c5c5ebac919d29f1eb7f308dc044114e2e8b67b0ed677236f0973e47
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / beamz-0.6.2-cp311-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

Download URL beamz-0.6.2-cp311-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Size 1.8 MB
Tags CPython 3.11 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
34765e23eb9e801521544a347e25d862ed3ab19aa6d5467e6abd9baa28b65d6c
BLAKE2b-256 checksum
How to use checksums
60812770957ff1222646215bb1eca11050b99541136bea89cb368e915554d754
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / beamz-0.6.2-cp311-abi3-macosx_11_0_arm64.whl

Download URL beamz-0.6.2-cp311-abi3-macosx_11_0_arm64.whl
Size 1.7 MB
Tags CPython 3.11 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
536b5c5d715fde9b09d42ef0bb1d3ac8aef843520a2bef2c4f315c78bccd63e0
BLAKE2b-256 checksum
How to use checksums
7cc361b88631f11bb408f2cf0b6ae694cec35698170beda64fd72097943471d4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / beamz-0.6.2-cp311-abi3-macosx_10_12_x86_64.whl

Download URL beamz-0.6.2-cp311-abi3-macosx_10_12_x86_64.whl
Size 1.7 MB
Tags CPython 3.11 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
82f370f5d85d42033c0ac377b4fcadecf3fbc7b8043f42882690b67989ae1ced
BLAKE2b-256 checksum
How to use checksums
09ca9936704c1471f2fc8a195db26e31e3999fd61fc59e0dfb3a9fdfb9aa7fed
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Security for beamz 0.6.2

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.

Release history Release notifications | RSS feed

This release

0.6.2 This release

6 release files No provenance

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