Skip to main content

photonoxide: validated photonics for Rust

photonoxide for Python

photonoxide is a photonics library in Rust whose every method is checked against an analytic solution or a published result, in a validation report. This package brings a part of it to Python, and through Python to MATLAB:

  • the materials catalogue: indices with their source, validity range and conditions;
  • waveguide modes: the exact slab, and full-vector modes of a cross-section with their fields;
  • jobs (TOML, JSON or YAML, or a dict), run as the photonoxide program runs them, and an FDFD job's S-parameters;
  • circuits from a netlist given as data, and Touchstone files.
pip install photonoxide

Wheels for CPython 3.10 and later on Linux, macOS and Windows; nothing else to install.

import photonoxide as po

si = po.refractive_index("si", wavelength_um=1.55).real    # Li 1980
ox = po.refractive_index("sio2", wavelength_um=1.55).real  # Malitson 1965
for polarization in ("te", "tm"):
    for mode in po.slab_modes(below=ox, core=si, above=ox, thickness_um=0.22,
                              polarization=polarization, wavelength_um=1.55):
        print(f"{polarization.upper()}{mode.order}: n_eff = {mode.effective_index:.4f}")

It prints TE0: n_eff = 2.8475 and TM0: n_eff = 2.0531.

Units are in the names (wavelength_um, thickness_um), as photonoxide's job files have them; arrays are NumPy's, in C order, with their coordinates; errors are photonoxide's, with its messages. The package's version is the Rust crate's it was built from. The guide, with MATLAB's use: docs/python.md.

License

MIT or Apache-2.0, at your option.

Metadata

Release files for photonoxide 0.5.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 photonoxide 0.5.2
File Size Uploaded
photonoxide-0.5.2.tar.gz 1.6 MB Details

Built distributions (wheels)

Table of built distributions (wheels) for photonoxide 0.5.2
File
photonoxide-0.5.2-cp314-cp314t-win_amd64.whl CPython 3.14 CPython 3.14 free-threading Windows x86-64 Details
photonoxide-0.5.2-cp314-cp314t-musllinux_1_2_x86_64.whl CPython 3.14 CPython 3.14 free-threading Linux musl 1.2+ x86-64 Details
photonoxide-0.5.2-cp314-cp314t-musllinux_1_2_aarch64.whl CPython 3.14 CPython 3.14 free-threading Linux musl 1.2+ ARM64 Details
photonoxide-0.5.2-cp314-cp314t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.14 CPython 3.14 free-threading Linux glibc 2.17+ x86-64 Details
photonoxide-0.5.2-cp314-cp314t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl CPython 3.14 CPython 3.14 free-threading Linux glibc 2.17+ ARM64 Details
photonoxide-0.5.2-cp314-cp314t-macosx_11_0_arm64.whl CPython 3.14 CPython 3.14 free-threading macOS 11.0+ ARM64 Details
photonoxide-0.5.2-cp314-cp314t-macosx_10_12_x86_64.whl CPython 3.14 CPython 3.14 free-threading macOS 10.12+ x86-64 Details
photonoxide-0.5.2-cp310-abi3-win_amd64.whl CPython 3.10 abi3 Windows x86-64 Details
photonoxide-0.5.2-cp310-abi3-musllinux_1_2_x86_64.whl CPython 3.10 abi3 Linux musl 1.2+ x86-64 Details
photonoxide-0.5.2-cp310-abi3-musllinux_1_2_aarch64.whl CPython 3.10 abi3 Linux musl 1.2+ ARM64 Details
photonoxide-0.5.2-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.10 abi3 Linux glibc 2.17+ x86-64 Details
photonoxide-0.5.2-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl CPython 3.10 abi3 Linux glibc 2.17+ ARM64 Details
photonoxide-0.5.2-cp310-abi3-macosx_11_0_arm64.whl CPython 3.10 abi3 macOS 11.0+ ARM64 Details
photonoxide-0.5.2-cp310-abi3-macosx_10_12_x86_64.whl CPython 3.10 abi3 macOS 10.12+ x86-64 Details

Total release size: 49.3 MB

Release files / photonoxide-0.5.2.tar.gz

Download URL photonoxide-0.5.2.tar.gz
Size 1.6 MB
Tags Source
SHA-256 checksum
How to use checksums
c006f5ac55beaae5aee3a17ef4084bd1073d92a8cf08b54969dde129f084c4e7
BLAKE2b-256 checksum
How to use checksums
b1ad616ab067be7eeabd90d7253ae0797ea6f446ae181201543b6ea094f64c37
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 10, 2026.

Transparency log

Release files / photonoxide-0.5.2-cp314-cp314t-win_amd64.whl

Download URL photonoxide-0.5.2-cp314-cp314t-win_amd64.whl
Size 3.3 MB
Tags CPython 3.14 CPython 3.14 free-threading Windows x86-64
SHA-256 checksum
How to use checksums
752c66f48996329f5b682083817c0ce1597fa99db4475b56443c9dfb684230b1
BLAKE2b-256 checksum
How to use checksums
e3fdd4d9e77fb2d77c2a729e3e062398e9fa9d4413c50c8652fad4f874cb084a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 10, 2026.

Transparency log

Release files / photonoxide-0.5.2-cp314-cp314t-musllinux_1_2_x86_64.whl

Download URL photonoxide-0.5.2-cp314-cp314t-musllinux_1_2_x86_64.whl
Size 4.0 MB
Tags CPython 3.14 CPython 3.14 free-threading Linux musl 1.2+ x86-64
SHA-256 checksum
How to use checksums
cfffb9dc252db076fb09fa0e428a6c9943e9c0f93a34de37779a0fa911fadb77
BLAKE2b-256 checksum
How to use checksums
7a291e905271860a41f57e173cc085fda05b5580d184fe09c3e4ea97dd97f861
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 10, 2026.

Transparency log

Release files / photonoxide-0.5.2-cp314-cp314t-musllinux_1_2_aarch64.whl

Download URL photonoxide-0.5.2-cp314-cp314t-musllinux_1_2_aarch64.whl
Size 3.4 MB
Tags CPython 3.14 CPython 3.14 free-threading Linux musl 1.2+ ARM64
SHA-256 checksum
How to use checksums
9e3fe4cca3337f11de3ab30d16effe836fe950ddaa93d5d50ea82f016095ad28
BLAKE2b-256 checksum
How to use checksums
8dbbcf2c81198f60ce737cb7815ce1ee04edf21e7cc3aa75e6235fd87515854d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 10, 2026.

Transparency log

Release files / photonoxide-0.5.2-cp314-cp314t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL photonoxide-0.5.2-cp314-cp314t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 3.8 MB
Tags CPython 3.14 CPython 3.14 free-threading Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
ebcc73feed1b57ef10baf945379b2bba96cbb86b90421bf347ef9b19a63826d5
BLAKE2b-256 checksum
How to use checksums
09e257d013c9a33f5634004fbd765ca1f49fcf7c2a2d566b5e0521bd06879c56
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 10, 2026.

Transparency log

Release files / photonoxide-0.5.2-cp314-cp314t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL photonoxide-0.5.2-cp314-cp314t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 3.2 MB
Tags CPython 3.14 CPython 3.14 free-threading Linux glibc 2.17+ ARM64
SHA-256 checksum
How to use checksums
0c7c3ae9c562a15f84c0ba0e59fee575187945d8dc057e7a26d52cb2572842de
BLAKE2b-256 checksum
How to use checksums
ee245330c646913707658dd99e34c3a7accb65540ec4aa8143d0ca6ff3b03ab5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 10, 2026.

Transparency log

Release files / photonoxide-0.5.2-cp314-cp314t-macosx_11_0_arm64.whl

Download URL photonoxide-0.5.2-cp314-cp314t-macosx_11_0_arm64.whl
Size 2.8 MB
Tags CPython 3.14 CPython 3.14 free-threading macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
3fb292efb12e6a3cf56dcc1b66d1a7fcace9813733979db584fcf1903af15d71
BLAKE2b-256 checksum
How to use checksums
5df4f85c9e84d04b92f47d4dc794ff729c76eae9af003ab5b9ae4b29c1176f19
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 10, 2026.

Transparency log

Release files / photonoxide-0.5.2-cp314-cp314t-macosx_10_12_x86_64.whl

Download URL photonoxide-0.5.2-cp314-cp314t-macosx_10_12_x86_64.whl
Size 3.3 MB
Tags CPython 3.14 CPython 3.14 free-threading macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
52b5f455ecb2545a19155347bb50c29ec3ab83c7423217b1ba6579fb09578dda
BLAKE2b-256 checksum
How to use checksums
0e822155744c0b76f51b238d6cac4b71d440312b65c1c3204d4287169c484f02
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 10, 2026.

Transparency log

Release files / photonoxide-0.5.2-cp310-abi3-win_amd64.whl

Download URL photonoxide-0.5.2-cp310-abi3-win_amd64.whl
Size 3.3 MB
Tags CPython 3.10 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
935bb0a2ed2bafa843cf25c016615255927477312773322caae8591288ee10ef
BLAKE2b-256 checksum
How to use checksums
58d3c30a9057cdbdd3e93cf4b66ff762d25f6261c80da1c36335fafc5388f8bb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 10, 2026.

Transparency log

Release files / photonoxide-0.5.2-cp310-abi3-musllinux_1_2_x86_64.whl

Download URL photonoxide-0.5.2-cp310-abi3-musllinux_1_2_x86_64.whl
Size 4.0 MB
Tags CPython 3.10 Linux musl 1.2+ x86-64 abi3
SHA-256 checksum
How to use checksums
46b98f0587335fe292f17b96aa7b858c7fc5c5c287112e76df1cfbbc49b4a86b
BLAKE2b-256 checksum
How to use checksums
f6d502952053954fdeb8596bde0a5f2c68bcb5fae7122783bcec5ae2bbc8d0aa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 10, 2026.

Transparency log

Release files / photonoxide-0.5.2-cp310-abi3-musllinux_1_2_aarch64.whl

Download URL photonoxide-0.5.2-cp310-abi3-musllinux_1_2_aarch64.whl
Size 3.4 MB
Tags CPython 3.10 Linux musl 1.2+ ARM64 abi3
SHA-256 checksum
How to use checksums
1c57bf4ea12fc0165e9a4638e4a6d29126c8a65535cc56eb9221beae91fda7da
BLAKE2b-256 checksum
How to use checksums
44a429f2f3ff2e3085ed1bf1fe6cc86d2b8b68f15bfcf0bb49490a4939c799e3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 10, 2026.

Transparency log

Release files / photonoxide-0.5.2-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL photonoxide-0.5.2-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 3.8 MB
Tags CPython 3.10 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
e1d0124c0730448c86162d6186db1c006e202a40e372bdbf042e919483044037
BLAKE2b-256 checksum
How to use checksums
91259d146e8b60206875a526b535ceafe49584bd5d05115637616475a156e153
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 10, 2026.

Transparency log

Release files / photonoxide-0.5.2-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL photonoxide-0.5.2-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 3.2 MB
Tags CPython 3.10 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
bdcba60ef6ae8de9ea0994c29b2553fb8bb2eb08bb642b309ccea89c437ff2af
BLAKE2b-256 checksum
How to use checksums
26d88961a68f68e719f3dd969b8b33a7b651c6e4bfde0fd67eb9a33da8fcdcb8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 10, 2026.

Transparency log

Release files / photonoxide-0.5.2-cp310-abi3-macosx_11_0_arm64.whl

Download URL photonoxide-0.5.2-cp310-abi3-macosx_11_0_arm64.whl
Size 2.9 MB
Tags CPython 3.10 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
91f0b62f848bed735b06688f3396ae884d4b1c6b80ba142483331d0675a30653
BLAKE2b-256 checksum
How to use checksums
401ce10323ce20a76cacded1fd4e7e5c2a1eb489b2c131e0d01e444baf21046f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 10, 2026.

Transparency log

Release files / photonoxide-0.5.2-cp310-abi3-macosx_10_12_x86_64.whl

Download URL photonoxide-0.5.2-cp310-abi3-macosx_10_12_x86_64.whl
Size 3.3 MB
Tags CPython 3.10 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
042aa85160a2429af45c7b10982eadd4eaaf05c63ec623dec731336442141dc2
BLAKE2b-256 checksum
How to use checksums
b027547e8b9305445618c29fa5be15764d9563b56efe95f93ed48449feabb739
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 10, 2026.

Transparency log

Release history Release notifications | RSS feed

0.5.3

15 release files

This release

0.5.2 This release

15 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