Guppy FT
Guppy FT is an extension of the Guppy quantum programming language to aid with writing, compiling and running fault-tolerant quantum programs. As a toolkit, it provides:
- a framework to define QEC architectures;
- transformations through quantum program abstraction layers, from computational to logical to physical;
- verification tools to validate QEC primitive implementations.
Together, these enable automatic encoding of arbitrary Guppy programs, including measurement dependent control flow.
from guppylang import guppy
from guppylang.std.builtins import owned, output
from guppylang.std.quantum import cx, h, measure, qubit, x, z
from guppyft.code.steane.encode import SteaneBuilder
@guppy
def teleport() -> None:
"""Teleports the state in `src` to `tgt`."""
src = qubit()
tmp = qubit()
tgt = qubit()
h(tmp)
cx(tmp, tgt)
cx(src, tmp)
h(src)
if measure(src).read():
z(tgt)
if measure(tmp).read():
x(tgt)
output("tgt", measure(tgt).read())
# Use Steane architecture to encode the program
steane = SteaneBuilder().build(n_blocks=3)
teleport_encoded = steane.encode(teleport.compile())
Documentation
Installation
Guppy FT can be installed from PyPI using pip. Requires Python>=3.12.
pip install guppyft
Licence
This project is licensed under Apache License, Version 2.0 (LICENCE or http://www.apache.org/licenses/LICENSE-2.0).
Metadata
Release files for guppyft 0.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
| File | Actions Reset | |||
|---|---|---|---|---|
| guppyft-0.4.0-cp310-abi3-win_amd64.whl | CPython 3.10 | abi3 | Windows x86-64 | Details for guppyft-0.4.0-cp310-abi3-win_amd64.whl |
| guppyft-0.4.0-cp310-abi3-manylinux_2_28_x86_64.whl | CPython 3.10 | abi3 | Linux glibc 2.28+ x86-64 | Details for guppyft-0.4.0-cp310-abi3-manylinux_2_28_x86_64.whl |
| guppyft-0.4.0-cp310-abi3-manylinux_2_28_aarch64.whl | CPython 3.10 | abi3 | Linux glibc 2.28+ ARM64 | Details for guppyft-0.4.0-cp310-abi3-manylinux_2_28_aarch64.whl |
| guppyft-0.4.0-cp310-abi3-macosx_11_0_arm64.whl | CPython 3.10 | abi3 | macOS 11.0+ ARM64 | Details for guppyft-0.4.0-cp310-abi3-macosx_11_0_arm64.whl |
| guppyft-0.4.0-cp310-abi3-macosx_10_9_x86_64.whl | CPython 3.10 | abi3 | macOS 10.9+ x86-64 | Details for guppyft-0.4.0-cp310-abi3-macosx_10_9_x86_64.whl |
Total release size: 16.0 MB
Release files / guppyft-0.4.0-cp310-abi3-win_amd64.whl
| Download URL | guppyft-0.4.0-cp310-abi3-win_amd64.whl |
|---|---|
| Size | 3.1 MB |
| Tags | CPython 3.10 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
75eb321b453b0d5e41a14db9d354637b703641d1d774c67f1ec912e7979ee25e
|
|
BLAKE2b-256 checksum How to use checksums |
641293da9c6efd7fb096647397cb95aac7b8c69c1bb50d294327567c8364d459
|
| 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 20, 2026.
Transparency logRelease files / guppyft-0.4.0-cp310-abi3-manylinux_2_28_x86_64.whl
| Download URL | guppyft-0.4.0-cp310-abi3-manylinux_2_28_x86_64.whl |
|---|---|
| Size | 3.5 MB |
| Tags | CPython 3.10 Linux glibc 2.28+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
5158104d96b822716ab8347459994382083505761f344bfc502f1634c9724216
|
|
BLAKE2b-256 checksum How to use checksums |
f8b4ed5fecd62228230e9c565f10a3c44767b5859aa1eedaa0271332d953a53b
|
| 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 20, 2026.
Transparency logRelease files / guppyft-0.4.0-cp310-abi3-manylinux_2_28_aarch64.whl
| Download URL | guppyft-0.4.0-cp310-abi3-manylinux_2_28_aarch64.whl |
|---|---|
| Size | 3.3 MB |
| Tags | CPython 3.10 Linux glibc 2.28+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
0619dc2b57fcde1fb54da586aa8275e43fef4d5c5776b7477ec9140a6603196a
|
|
BLAKE2b-256 checksum How to use checksums |
7b1be41151bdc965ea0dc488dfde20551ad6c34eacdb30b6417c6762206a566e
|
| 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 20, 2026.
Transparency logRelease files / guppyft-0.4.0-cp310-abi3-macosx_11_0_arm64.whl
| Download URL | guppyft-0.4.0-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 |
8c2ae23354db9407284943861b28868ccb30e6c06bce256127b3b67651e7d436
|
|
BLAKE2b-256 checksum How to use checksums |
9bdc2cff8f65e70e83963372233aec25adb8e83e5cceb841eefef97e74be1456
|
| 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 20, 2026.
Transparency logRelease files / guppyft-0.4.0-cp310-abi3-macosx_10_9_x86_64.whl
| Download URL | guppyft-0.4.0-cp310-abi3-macosx_10_9_x86_64.whl |
|---|---|
| Size | 3.2 MB |
| Tags | CPython 3.10 abi3 macOS 10.9+ x86-64 |
|
SHA-256 checksum How to use checksums |
72bc375fb3435cdba92bb969ccbc6f2db8c7baf6447d31435d7979487593c902
|
|
BLAKE2b-256 checksum How to use checksums |
97582b2dfd9e618ce24ac51fb8f44367d85d8b6e7d26da0b0f686fffead84b4c
|
| 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 20, 2026.
Transparency logSecurity for guppyft 0.4.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.
Full provenance
All 5 files in this release have been uploaded with provenance metadata.
Attestation for guppyft-0.4.0-cp310-abi3-win_amd64.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 Oct 20, 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.