Skip to main content

bamsolve

Predict photonic circuits with AI. The API is free during the public alpha. Get a key at https://bamsolve.netlify.app/#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.89.167.60.208.nip.io.

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.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 bamsolve 0.1.0
File Size Uploaded
bamsolve-0.1.0.tar.gz 2.9 kB Details

Built distribution (wheel)

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

Total release size: 6.2 kB

Release files / bamsolve-0.1.0.tar.gz

Download URL bamsolve-0.1.0.tar.gz
Size 2.9 kB
Tags Source
SHA-256 checksum
How to use checksums
fc54973b9c485699315e3ac6520f484b6fb117c956b53ebd66638389c04fb622
BLAKE2b-256 checksum
How to use checksums
7f58444d90cde7fdbd2c8e0e2d9c97257d31b7e5f523cb0b4050c327638b6e61
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.0-py3-none-any.whl

Download URL bamsolve-0.1.0-py3-none-any.whl
Size 3.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
acff868352144859466726511ac7c08153252be1685a806a05f763f0b99d49f1
BLAKE2b-256 checksum
How to use checksums
2ac2e126c05b350b23989aeac47e19c43d2d3237a03d6daeb74fd40a3fdf2dbb
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

0.1.1

2 release files

This release

0.1.0 This release

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