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;
  • the devices of the photonoxide studio's component pages (waveguides, bends, couplers, rings, MMIs, Y-branches, MZIs): their S-parameters, figures, geometry and jobs, the same numbers as the studio's for the same design.
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.4

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.4
File Size Uploaded Provenance Actions
photonoxide-0.5.4.tar.gz 2.4 MB With provenance Details for photonoxide-0.5.4.tar.gz

Built distributions (wheels)

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

Total release size: 80.5 MB

Release files / photonoxide-0.5.4.tar.gz

Download URL photonoxide-0.5.4.tar.gz
Size 2.4 MB
Tags Source
SHA-256 checksum
How to use checksums
bdd3f98b08724e35dab4af5565aab8bc2348d1f10b4579b2d4a36c89ce8d111c
BLAKE2b-256 checksum
How to use checksums
4c765a57684c49f0902b3dc47f8758f9cdd42c9ff7f7dfcf329d905078114625
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 16, 2026.

Transparency log

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

Download URL photonoxide-0.5.4-cp314-cp314t-win_amd64.whl
Size 5.5 MB
Tags CPython 3.14 CPython 3.14 free-threading Windows x86-64
SHA-256 checksum
How to use checksums
f926deed3b2c82498bf2b17e3d24440b52feebedb09897a32d8799aca892e8ba
BLAKE2b-256 checksum
How to use checksums
d8a43006b4daf494c77ee5f4b6e69499e6d14edfb00c56267e7138ccc02fd46d
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 16, 2026.

Transparency log

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

Download URL photonoxide-0.5.4-cp314-cp314t-musllinux_1_2_x86_64.whl
Size 6.3 MB
Tags CPython 3.14 CPython 3.14 free-threading Linux musl 1.2+ x86-64
SHA-256 checksum
How to use checksums
a89bd7b4bd7a3375a3df54b1ce0f6b19c1221c4414603e65c75ad1c3f6f20983
BLAKE2b-256 checksum
How to use checksums
a7ff6e3ae329d726767b36b15ec762d22ad71bea45d61de82b95638b43001b0a
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 16, 2026.

Transparency log

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

Download URL photonoxide-0.5.4-cp314-cp314t-musllinux_1_2_aarch64.whl
Size 5.5 MB
Tags CPython 3.14 CPython 3.14 free-threading Linux musl 1.2+ ARM64
SHA-256 checksum
How to use checksums
93e4404ea0cd93b0cdeb772ed2bfc416009505ab0ccc2f6042e21c2965c0bc4c
BLAKE2b-256 checksum
How to use checksums
0abfc9f613f7fb21a9052c25bed9e56bab461fba80014625adba1bf095626289
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 16, 2026.

Transparency log

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

Download URL photonoxide-0.5.4-cp314-cp314t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 6.0 MB
Tags CPython 3.14 CPython 3.14 free-threading Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
8f2b20327cfd438f89329c5599af2a0c140ff45421c5e2e853a731b2b744ded9
BLAKE2b-256 checksum
How to use checksums
9a42f1de674b929086397ca3e9b26bc68b5a6284c3ec043caf4a68f3f9c3ce17
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 16, 2026.

Transparency log

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

Download URL photonoxide-0.5.4-cp314-cp314t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 5.3 MB
Tags CPython 3.14 CPython 3.14 free-threading Linux glibc 2.17+ ARM64
SHA-256 checksum
How to use checksums
28c8db3e02b3428530e0ce14648d0443e44a39bf517b9f2dfd8db3ee70d8d4d3
BLAKE2b-256 checksum
How to use checksums
3f4778c8eaa5c58735427cd027f62c6a6263d5c97cd8475dd03d448c4b51d663
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 16, 2026.

Transparency log

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

Download URL photonoxide-0.5.4-cp314-cp314t-macosx_11_0_arm64.whl
Size 4.9 MB
Tags CPython 3.14 CPython 3.14 free-threading macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
5c86fceeeb3c8813e65c0e9eee3d4140c267d4e6542b4ddee05d416994fcc5e7
BLAKE2b-256 checksum
How to use checksums
47a446ad6ab5f6f42e4134e1d81a4d2adfed4b6526267e93b7ff5b38dece1258
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 16, 2026.

Transparency log

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

Download URL photonoxide-0.5.4-cp314-cp314t-macosx_10_12_x86_64.whl
Size 5.5 MB
Tags CPython 3.14 CPython 3.14 free-threading macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
39883f662798784fb4d700a95dc54f7c4f378f1de19fbe7c18b7de3eab7491fc
BLAKE2b-256 checksum
How to use checksums
568d30ebb4e780e67562f710f5c36f8ec76100441ef1b7fb514c1ca6ceb99488
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 16, 2026.

Transparency log

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

Download URL photonoxide-0.5.4-cp310-abi3-win_amd64.whl
Size 5.5 MB
Tags CPython 3.10 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
02c989347f891c41fd9b1dbf685f5afb301c64b0f5328dd33d56ea56dea92bbf
BLAKE2b-256 checksum
How to use checksums
36cef465ca308584cec4334f6008a18390259c7b7b4c726543a72787c91bb1f6
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 16, 2026.

Transparency log

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

Download URL photonoxide-0.5.4-cp310-abi3-musllinux_1_2_x86_64.whl
Size 6.3 MB
Tags CPython 3.10 Linux musl 1.2+ x86-64 abi3
SHA-256 checksum
How to use checksums
49f73ca809183883ae2c8fc220ceee8aecc45602128da8009f9f2699c398aca5
BLAKE2b-256 checksum
How to use checksums
68d027f862d038734a03073b0250ea3795c080f5bc9eda00a87093a244403300
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 16, 2026.

Transparency log

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

Download URL photonoxide-0.5.4-cp310-abi3-musllinux_1_2_aarch64.whl
Size 5.5 MB
Tags CPython 3.10 Linux musl 1.2+ ARM64 abi3
SHA-256 checksum
How to use checksums
0f5a921fdf8c7a20e75df2834421a8e52a4893b4fe3be294ac907770333ac02f
BLAKE2b-256 checksum
How to use checksums
6c9d6d16a63a6deda9c19302ae329c1a608458d85f8b754abd9e272c70ce0f42
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 16, 2026.

Transparency log

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

Download URL photonoxide-0.5.4-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 6.1 MB
Tags CPython 3.10 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
0065f1ace1a93c5b3e511f191f29b4c9dab180a7ddad05c51c5e6d71d5f18306
BLAKE2b-256 checksum
How to use checksums
7a990d2d3ee054ea6fba2bf7784c4ec1d2d278915b3077e2a0765bc4f3d888cf
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 16, 2026.

Transparency log

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

Download URL photonoxide-0.5.4-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 5.3 MB
Tags CPython 3.10 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
d80aaeb367c0b1e1d960e0d0629382e09242ee4c3801cf1e090d028e285d199c
BLAKE2b-256 checksum
How to use checksums
cd6a2c88d3362bcea873a5b089bf7f5cdcac9294fee916aa0a2188915375b9d9
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 16, 2026.

Transparency log

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

Download URL photonoxide-0.5.4-cp310-abi3-macosx_11_0_arm64.whl
Size 4.9 MB
Tags CPython 3.10 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
883a53ed7fdaef8ef20cd88368bafbc2931032a0b72d9bc65ed59fb91df9b960
BLAKE2b-256 checksum
How to use checksums
9453fd576ab149069bbed24495fc93270e047a83406986ca01a94464afef7bf4
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 16, 2026.

Transparency log

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

Download URL photonoxide-0.5.4-cp310-abi3-macosx_10_12_x86_64.whl
Size 5.5 MB
Tags CPython 3.10 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
9d87f64d01b6de9a93b0021b53213853f4e86cfcd13daccb80e2635a9b821af4
BLAKE2b-256 checksum
How to use checksums
4c7ed7d6c26397f3d95fe0676e3084e837b3f297eb3d99092bc23cffb12f1e4f
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 16, 2026.

Transparency log

Security for photonoxide 0.5.4

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.

Full provenance

All 15 files in this release have been uploaded with provenance metadata.

Select from 15 files

Attestation for photonoxide-0.5.4.tar.gz

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 16, 2026.

Transparency log

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.

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