dyberforge (Workbench SDK)
Open-source simulation SDK for H-cat components: cat-state generation from squeezed vacuum, single-mode cat loss curves, and an illustrative resource model. These are component simulations; they make no claim about a full machine.
Install (development)
conda create -n dyber python=3.11 -y && conda activate dyber
pip install numpy scipy qutip matplotlib stim pymatching
pip install -e . # from forge/sdk/
Use
import dyberforge as df
df.generate_cat(s_db=6.0, k=1, N=40) # cat fidelity, parity, Wigner-ready state
df.loss_curves(2.0, [10**-0.32]) # single-mode loss curves (component level)
df.estimate(gamma=0.005, target_logical_err=1e-9) # model values (illustrative), not a device spec
Run the example: python examples/quickstart.py.
Notes
- The physics modules are vendored into
dyberforge/, so the package is fully self-contained:pip install dyberforgeworks standalone with no path injection. - Public science only.
estimate()returns model values. Model value: abstract circuit model with assumed loss heralds. Not a hardware operating point.generate_cat()andloss_curves()are component simulations of single cat modes. The k=1 fits at 3.5 to 8 dB land at or near the alpha = 1 floor: small cats.- In the H-cat encoding (J. Lee et al., PRX Quantum 5, 030322 (2024)) both logical states
carry even cats. The
paritythese functions report is a loss flag, not the logical value. - Optional extras:
pip install .[devices](Meep),.[crosscheck](Strawberry Fields),.[dev](pytest). The extras install those tools only; this package contains no Meep or Strawberry Fields code.
Changelog
0.1.1
- Labels and documentation only: resource-model thresholds, distances and cat counts are
labeled as model values; the H-cat encoding and parity are described as in the published
paper; the paper citation is corrected;
estimate()results carry abasisfield. No numerical change. The quickstart example also prints the fitted cat amplitude.
Metadata
Release files for dyberforge 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| dyberforge-0.1.1.tar.gz | 17.5 kB | With provenance | Details for dyberforge-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| dyberforge-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for dyberforge-0.1.1-py3-none-any.whl |
Total release size: 35.7 kB
Release files / dyberforge-0.1.1.tar.gz
| Download URL | dyberforge-0.1.1.tar.gz |
|---|---|
| Size | 17.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6fbd9ceeec264b285fe964afedf3846e860133b0185344a2edd405daa0b27f57
|
|
BLAKE2b-256 checksum How to use checksums |
175b0dc5f5f7513505915243f6e9d9592029350273251061b4f6b5ca78ed7f2c
|
| 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 7, 2026.
Transparency logRelease files / dyberforge-0.1.1-py3-none-any.whl
| Download URL | dyberforge-0.1.1-py3-none-any.whl |
|---|---|
| Size | 18.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fb781ee67539ee3bd98709f1808f93bcd4eb527d60f2edd7c846432343a71b17
|
|
BLAKE2b-256 checksum How to use checksums |
54023964dc55ec8e305f054c9a66505c5f919ee3d9e930231a1e6db3dca9b90e
|
| 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 7, 2026.
Transparency logSecurity for dyberforge 0.1.1
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
Both files in this release have been uploaded with provenance metadata.
Attestation for dyberforge-0.1.1.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 7, 2026.
Transparency logA 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.