Skip to main content

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

📖 Getting started

📒 Example notebooks

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.6.2

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

Built distributions (wheels)

Table of built distributions (wheels) for guppyft 0.6.2
File Actions
guppyft-0.6.2-cp310-abi3-win_amd64.whl CPython 3.10 abi3 Windows x86-64 Details for guppyft-0.6.2-cp310-abi3-win_amd64.whl
guppyft-0.6.2-cp310-abi3-manylinux_2_28_x86_64.whl CPython 3.10 abi3 Linux glibc 2.28+ x86-64 Details for guppyft-0.6.2-cp310-abi3-manylinux_2_28_x86_64.whl
guppyft-0.6.2-cp310-abi3-manylinux_2_28_aarch64.whl CPython 3.10 abi3 Linux glibc 2.28+ ARM64 Details for guppyft-0.6.2-cp310-abi3-manylinux_2_28_aarch64.whl
guppyft-0.6.2-cp310-abi3-macosx_11_0_arm64.whl CPython 3.10 abi3 macOS 11.0+ ARM64 Details for guppyft-0.6.2-cp310-abi3-macosx_11_0_arm64.whl
guppyft-0.6.2-cp310-abi3-macosx_10_9_x86_64.whl CPython 3.10 abi3 macOS 10.9+ x86-64 Details for guppyft-0.6.2-cp310-abi3-macosx_10_9_x86_64.whl

Total release size: 16.2 MB

Release files / guppyft-0.6.2-cp310-abi3-win_amd64.whl

Download URL guppyft-0.6.2-cp310-abi3-win_amd64.whl
Size 3.1 MB
Tags CPython 3.10 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
d9bfc0773f8e0af272159d1da67063e71032d238ef50890f47beaa978d33552f
BLAKE2b-256 checksum
How to use checksums
f5c8cd0d6fdce2aacbbb485b62fd27f9110d7e601633482e79266e32aa880061
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 17, 2026.

Transparency log

Release files / guppyft-0.6.2-cp310-abi3-manylinux_2_28_x86_64.whl

Download URL guppyft-0.6.2-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
40880f9bb8f5fc65e9447c1ca615fae9ed3afb8c61463440e41aea79eaad77d1
BLAKE2b-256 checksum
How to use checksums
9768a2cabc02891e99bb7f5a2aef9df9b3e15ac229341b62ad95f9acc81ec2fd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 17, 2026.

Transparency log

Release files / guppyft-0.6.2-cp310-abi3-manylinux_2_28_aarch64.whl

Download URL guppyft-0.6.2-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
cb5909dd7a46b6b874351a6edfde035472d433b231f73bfc0eaf046d622d9bee
BLAKE2b-256 checksum
How to use checksums
959ff9f3c20a109a9b78b030a3d0a7276a40ec6becc88dea4328082bbeeaa210
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 17, 2026.

Transparency log

Release files / guppyft-0.6.2-cp310-abi3-macosx_11_0_arm64.whl

Download URL guppyft-0.6.2-cp310-abi3-macosx_11_0_arm64.whl
Size 3.0 MB
Tags CPython 3.10 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
46e25d80875cb680ab057d7ae6e835833dfd6661e41525df2574712e104a87f9
BLAKE2b-256 checksum
How to use checksums
e2c64b5d823f733349fa0c63f395c865c6bbc5ea4b493b2b66e9165da1892626
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 17, 2026.

Transparency log

Release files / guppyft-0.6.2-cp310-abi3-macosx_10_9_x86_64.whl

Download URL guppyft-0.6.2-cp310-abi3-macosx_10_9_x86_64.whl
Size 3.3 MB
Tags CPython 3.10 abi3 macOS 10.9+ x86-64
SHA-256 checksum
How to use checksums
d4d162ece53104f9b2ce61fef4842dff893bf3233e321b2a4d91102efda353cb
BLAKE2b-256 checksum
How to use checksums
fb81e44fead65f7e054d5ad952611f23c4fa56aa7237f8d9d90ed5d9e1986bc1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 17, 2026.

Transparency log

Security for guppyft 0.6.2

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.

Select from 5 files

Attestation for guppyft-0.6.2-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 Nov 17, 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