Skip to main content

bamsolve

Predict photonic circuits with AI. The API is free during the public alpha. Get a key at https://bamsolve.com/#get-key.

pip install bamsolve
from bamsolve import Layer, Stack, bamsolve, pred

bamsolve(api_key="bsk_...")

stack = Stack(clad=1.444, layers={(1, 0): Layer(n=3.48, z=(0.0, 0.22), angle=5.0)})
dev = stack("ebeam_y_1550.gds")
res = pred(dev, inputs={((1, 10), "TE", 1.55)})

res.S, res.n_eff, res.E        # S-matrix [wavelength, out, in], effective index, complex field
res.export_s("ebeam_y_1550.s3p")

The default API address is https://api.bamsolve.com.

To use a custom server, set its URL before you call pred:

bamsolve(api_key="bsk_...", url="https://YOUR_API_HOST")

You can also set the BAMSOLVE_URL environment variable before you import the module.

Metadata

Release files for bamsolve 0.1.1

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

Source distribution (sdist)

Source distribution for bamsolve 0.1.1
File Size Uploaded
bamsolve-0.1.1.tar.gz 2.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for bamsolve 0.1.1
File Interpreter ABI Platform
bamsolve-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 5.9 kB

Release files / bamsolve-0.1.1.tar.gz

Download URL bamsolve-0.1.1.tar.gz
Size 2.6 kB
Tags Source
SHA-256 checksum
How to use checksums
3c626cbf8e9072ed969b5a00f1cf357327dd1e666c2a8c22dc194e745615782e
BLAKE2b-256 checksum
How to use checksums
8a39b74fc1cfd913a6913c4cbf57a00edd652441db866036cae499e26dbdba24
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.9 {"installer":{"name":"uv","version":"0.11.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / bamsolve-0.1.1-py3-none-any.whl

Download URL bamsolve-0.1.1-py3-none-any.whl
Size 3.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7c380e99f3694f142a640071597ee4d4673062fd0447fb2cb336760d4e48eee3
BLAKE2b-256 checksum
How to use checksums
c6af7db37e798bdeab2304793faee8a77154159269c0bf5ffdaa323a18ff5c63
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.9 {"installer":{"name":"uv","version":"0.11.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release history Release notifications | RSS feed

0.1.3

2 release files

0.1.2

2 release files

This release

0.1.1 This release

2 release files

0.1.0

2 release files

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