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, this enables 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

Development

See DEVELOPMENT.md for instructions on setting up the development environment.

Licence

This project is licensed under Apache License, Version 2.0 (LICENCE or http://www.apache.org/licenses/LICENSE-2.0).

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

guppyft-0.1.1-cp310-abi3-win_amd64.whl (3.0 MB view details)

Uploaded CPython 3.10+Windows x86-64

guppyft-0.1.1-cp310-abi3-manylinux_2_28_x86_64.whl (3.4 MB view details)

Uploaded CPython 3.10+manylinux: glibc 2.28+ x86-64

guppyft-0.1.1-cp310-abi3-manylinux_2_28_aarch64.whl (3.2 MB view details)

Uploaded CPython 3.10+manylinux: glibc 2.28+ ARM64

guppyft-0.1.1-cp310-abi3-macosx_11_0_arm64.whl (2.8 MB view details)

Uploaded CPython 3.10+macOS 11.0+ ARM64

guppyft-0.1.1-cp310-abi3-macosx_10_9_x86_64.whl (3.1 MB view details)

Uploaded CPython 3.10+macOS 10.9+ x86-64

File details

Details for the file guppyft-0.1.1-cp310-abi3-win_amd64.whl.

File metadata

  • Download URL: guppyft-0.1.1-cp310-abi3-win_amd64.whl
  • Upload date:
  • Size: 3.0 MB
  • Tags: CPython 3.10+, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for guppyft-0.1.1-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 c032e6c2ef5651db31884da44e829d6f5142087707ebaf6adfae601e871194f6
MD5 7990c08ddd721cca247191cb6e32f68d
BLAKE2b-256 738be00c07c6e067901363b548e31236c565cdd0a16a94e0b48727a6e7bb96c5

See more details on using hashes here.

Provenance

The following attestation bundles were made for guppyft-0.1.1-cp310-abi3-win_amd64.whl:

Publisher: build-wheels.yml on Quantinuum/guppyft

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file guppyft-0.1.1-cp310-abi3-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for guppyft-0.1.1-cp310-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 65221d36f95f0cf989b9a4de6c0e13e08f80bd9767b2756842ed1f2ea80ab6bd
MD5 ef9b9aea579700e4370652ffa7f53c4c
BLAKE2b-256 10194a2f0161f27af44530d3c5bbfbee366da4be6b1ec42bec1c1809617803c9

See more details on using hashes here.

Provenance

The following attestation bundles were made for guppyft-0.1.1-cp310-abi3-manylinux_2_28_x86_64.whl:

Publisher: build-wheels.yml on Quantinuum/guppyft

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file guppyft-0.1.1-cp310-abi3-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for guppyft-0.1.1-cp310-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 efeb8432db4d24d689d50ea2623149663df6b75f9d5ecab56990176036631bbc
MD5 57734beff9d2281b6bcc029e7389f7bc
BLAKE2b-256 28946854b96aa1357786dca1d87b421d6a298049d5aac8ada88291cda53d6397

See more details on using hashes here.

Provenance

The following attestation bundles were made for guppyft-0.1.1-cp310-abi3-manylinux_2_28_aarch64.whl:

Publisher: build-wheels.yml on Quantinuum/guppyft

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file guppyft-0.1.1-cp310-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for guppyft-0.1.1-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f34314cfd411980336a36a0941a8854f95080aef779b18679a3169bed3093ddd
MD5 c91b2c7d969400c8eb4806685ce14de5
BLAKE2b-256 a623a9276f65756a0cea5d2b5b4e6e4147e7e78cacf00bde13b8c8cd4440be20

See more details on using hashes here.

Provenance

The following attestation bundles were made for guppyft-0.1.1-cp310-abi3-macosx_11_0_arm64.whl:

Publisher: build-wheels.yml on Quantinuum/guppyft

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file guppyft-0.1.1-cp310-abi3-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for guppyft-0.1.1-cp310-abi3-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 7241d04e875f202b22f8b953e0b9a27ea146e59d13e3e3e6b8046b3556a4293f
MD5 a751ca0103366749da217291b3baf16f
BLAKE2b-256 3024a452c07e537f4e07883b0da802d2801f8aa33c67d61760e5ab1016ea8ead

See more details on using hashes here.

Provenance

The following attestation bundles were made for guppyft-0.1.1-cp310-abi3-macosx_10_9_x86_64.whl:

Publisher: build-wheels.yml on Quantinuum/guppyft

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

0.1.2

5 files

This release

0.1.1 This release

5 files

0.1.0

2 files

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