Skip to main content

PHOXLA

PHOXLA ("FOX-luh") - Differentiable photonics, hardware-agnostic by design.

PHOXLA = PHOtonic Hardware-agnostic Optimization for eXtensible Layout Automation

PHOXLA is a differentiable photonics framework for hardware-agnostic inverse design and extensible layout automation. The goal is to treat differentiable physics as a first-class deep learning component, so photonic modules can be plugged into end-to-end trainable workflows.

Vision

  • Fast differentiable exploration with physics-grounded validation workflows.
  • ASM-first optimization, FDTD-assisted verification/refinement, fabrication-aware export.
  • Differentiable physics modules usable as model layers/loss terms.
  • Hardware-agnostic execution via backend adapters (e.g., JAX or PyTorch on CPU/GPU/TPU).
  • Extensible interoperability with external solvers (including FDTDX-style workflows).

Current Status

This repository is an initial blueprint and governance scaffold. Core simulation and training modules will be added incrementally.

Planned Package Layout

  • src/phoxla/sim: differentiable photonic simulation core (ASM-first operators and propagation)
  • src/phoxla/nn: NN-facing modules and differentiable operators
  • src/phoxla/inv: inverse-design workflows, optimization loops, and layout-automation hooks
  • src/phoxla/integrations/fdtdx: verification/refinement interoperability layer

Repository Bootstrap

See:

  • docs/REPO_LAUNCH_GUIDE.md
  • docs/REPO_ABOUT_AND_TOPICS.md
  • docs/PACKAGE_NAMESPACE_PLAN.md
  • docs/PYPI_CLAIM_PLAYBOOK.md
  • docs/NAMESPACE_PRIORITY.md
  • docs/AUTOMATION_FLOW.md
  • docs/SEMVER_POLICY.md
  • docs/ARCHITECTURE_BLUEPRINT.md
  • docs/BINARY_DISTRIBUTION_NUITKA.md
  • docs/COMMIT_MESSAGE_GUIDE.md
  • ROADMAP.md

Quick Release Commands

make venv
make qa
make next-tag
make release-check

# then with PyPI token in env:
make publish-pypi

Binary Wheel Commands (Nuitka module mode)

make binary-wheel

# upload binary wheel only (no sdist)
make publish-pypi-binary

Modern Tooling Stack

  • Ruff: lint + format
  • Pytest: test runner
  • Mypy: static type checks
  • pre-commit: local hook runner
  • GitHub Actions: CI (ci.yml) + auto-tag (auto-tag.yml) + release publish (release.yml)

Local setup

make venv
. .venv/bin/activate
pre-commit install

Daily checks

make qa

Conventional commit -> version bump

  • 0.y.z lane (conservative):
    • feat:, fix:, perf:, refactor: -> PATCH bump
    • feat!: / fix!: / BREAKING CHANGE -> MINOR bump
  • >=1.0.0 lane (standard SemVer):
    • feat: -> MINOR bump
    • fix:, perf:, refactor: -> PATCH bump
    • feat!: / fix!: / BREAKING CHANGE -> MAJOR bump
  • docs:, chore:, test:, ci:, style: only -> no release

End-to-end Automation Flow

  1. Push to main
  2. ci.yml runs Ruff/Mypy/Pytest/build checks
  3. auto-tag.yml computes next SemVer tag and pushes vX.Y.Z
  4. release.yml runs full quality/build checks on that tag
  5. release.yml publishes GitHub Release notes + uploads binary wheel to PyPI (Trusted Publishing)

auto-tag.yml writes the new version (e.g., 0.1.5) into pyproject.toml and src/phoxla/__init__.py, so manual version edits are not needed.

Versioning Policy

PHOXLA uses Semantic Versioning 2.0.0. See docs/SEMVER_POLICY.md for the normative policy, migration notes, and commit-to-version mapping.

Push To GitHub

git add .
git commit -m "feat(core): add initial phoxla module scaffold"
git remote add origin git@github.com:phoxla/phoxla.git
git push -u origin main

Publish To PyPI (name claim)

. .venv/bin/activate
python -m build --sdist --wheel --no-isolation
python -m twine check dist/*
read -s -p "PyPI token: " PYPI_TOKEN; echo
TWINE_USERNAME=__token__ TWINE_PASSWORD="$PYPI_TOKEN" python -m twine upload dist/*
unset PYPI_TOKEN

For obfuscated distribution, use make publish-pypi-binary to avoid source sdist upload.

License

Apache-2.0 (LICENSE)

Metadata

Release files for phoxla 0.2.3

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

Built distribution (wheel)

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

Release files / phoxla-0.2.3-py3-none-any.whl

Download URL phoxla-0.2.3-py3-none-any.whl
Size 7.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
37d78eabec32575b0da1f3ef1f6fb0188a002ab294b2dde67bb3ed1708560be9
BLAKE2b-256 checksum
How to use checksums
c5a23b6996b04abab8ec249070deb508fb11305523c242bff1fed99e4ea7e220
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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 Feb 18, 2026.

Transparency log

Security for phoxla 0.2.3

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

1 file in this release has been uploaded with provenance metadata.

Attestation for phoxla-0.2.3-py3-none-any.whl

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 Feb 18, 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