Skip to main content

PreFab

PreFab logo

PreFab is a virtual nanofabrication environment that leverages deep learning and computer vision to predict and correct for structural variations in integrated photonic devices during nanofabrication.

Try Rosette: Want a more visual experience? Try Rosette - our new layout tool with PreFab models built in, designed for rapid chip design.

Prediction

PreFab predicts process-induced structural variations, including corner rounding, loss of small lines and islands, filling of narrow holes and channels, sidewall angle deviations, and stochastic effects. This allows designers to rapidly prototype and evaluate expected performance pre-fabrication.

Example of PreFab prediction

Correction

PreFab corrects device designs to ensure that the fabricated outcome closely matches the intended specifications. This minimizes structural variations and reduces performance discrepancies between simulations and actual experiments.

Example of PreFab correction

Models

Each photonic nanofabrication process requires unique models, which are regularly updated with the latest data. The current models include (see the full list in docs/models.md):

Foundry Process Latest Version Latest Dataset Model Name
ANT NanoSOI ANF1 (May 6 2024) d10 (Jun 8 2024) ANT_NanoSOI_ANF1_d10
ANT SiN ANF1 (May 6 2024) d1 (Jan 31 2024) ANT_SiN_ANF1_d1

New models are to be regularly added. Usage may change. For additional foundry and process models, feel free to contact us or raise an issue.

Installation

Install PreFab via pip:

pip install prefab

Or clone the repository and install in development mode:

git clone https://github.com/PreFab-Photonics/PreFab.git
cd PreFab
pip install -e .

Getting Started

Account setup

Before you can make PreFab requests, you will need to create an account.

To link your account, you will need an token. You can do this by running the following command in your terminal. This will open a browser window where you can log in and authenticate your token.

prefab setup

Guides

Visit /docs/examples or our docs to get started with your first predictions.

Performance and Usage

PreFab models are hosted on a serverless cloud platform. Please keep in mind:

  • 🐢 Default CPU inference may be slower.
  • 🥶 The first prediction using optional GPU inference may take longer due to cold start server loading. Subsequent predictions will be faster.
  • 😊 Please be considerate of usage. Start with small tasks and limit usage during the initial stages. Thank you!

License

This project is licensed under the LGPL-2.1 license. © 2025 PreFab Photonics.

Metadata

Release files for prefab 1.2.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 prefab 1.2.0
File Size Uploaded Provenance Actions
prefab-1.2.0.tar.gz 11.9 MB Without provenance Details for prefab-1.2.0.tar.gz

Built distribution (wheel)

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

Total release size: 12.0 MB

Release files / prefab-1.2.0.tar.gz

Download URL prefab-1.2.0.tar.gz
Size 11.9 MB
Tags Source
SHA-256 checksum
How to use checksums
f3d5cac94e9873ea5c96c95c028f914a2164755aacc51e3b888ad520b3ed6e25
BLAKE2b-256 checksum
How to use checksums
c1500601b604fabfcc8fe85d1783e9e4d60e2cdbe7805fbf8f27c97a710ef56d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.9.21

Release files / prefab-1.2.0-py3-none-any.whl

Download URL prefab-1.2.0-py3-none-any.whl
Size 52.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c5ea0f3853bcf5bc38e218e84c4c5bdf9d47648279bdb3aae1453cf38a9c132f
BLAKE2b-256 checksum
How to use checksums
a3a9b33282beaef08598367912ea3a947ea7afdca3f0f592e23eed3301c8fcf6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.9.21

Security for prefab 1.2.0

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.

Release history Release notifications | RSS feed

This release

1.2.0 This release

2 release files No provenance

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