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

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.2-cp310-abi3-win_amd64.whl (3.0 MB view details)

Uploaded CPython 3.10+Windows x86-64

guppyft-0.1.2-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.2-cp310-abi3-manylinux_2_28_aarch64.whl (3.2 MB view details)

Uploaded CPython 3.10+manylinux: glibc 2.28+ ARM64

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

Uploaded CPython 3.10+macOS 11.0+ ARM64

guppyft-0.1.2-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.2-cp310-abi3-win_amd64.whl.

File metadata

  • Download URL: guppyft-0.1.2-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.2-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 1415733eceb12cbc82dc8f5305711e80b96cb9ba607a2c4da931acad870b4db5
MD5 1e3bd8e668b1612634eeecc5462fd6ad
BLAKE2b-256 dd7dd8f67061f91c6790991aa55c60956600add43e0feb6353210151d16441f3

See more details on using hashes here.

Provenance

The following attestation bundles were made for guppyft-0.1.2-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.2-cp310-abi3-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for guppyft-0.1.2-cp310-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 c3d90900edf6ff5292e999dc93f4be13edde689e7de4fb9d89308f07f48147e5
MD5 665cf57358c86904133d892051cc91ee
BLAKE2b-256 7335d61c09f7727782311fbc5f7e234694d39cb84f352107ce93f51995ef9774

See more details on using hashes here.

Provenance

The following attestation bundles were made for guppyft-0.1.2-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.2-cp310-abi3-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for guppyft-0.1.2-cp310-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 9a31de239586af7edf83e8a180c9455e6f85369d03bf294f2487ce15de2bae45
MD5 7b83eb18aa667db12ec657c5bca5a347
BLAKE2b-256 6e1656f7f3c894f66a589254711f5aa3899a767be089c191799820f60bf41801

See more details on using hashes here.

Provenance

The following attestation bundles were made for guppyft-0.1.2-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.2-cp310-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for guppyft-0.1.2-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3ac2abc5db94698c010f912a921721b1a837207371dc83fb95e9e0af8257e351
MD5 4a650e2a995d791df37aea4438c6de9e
BLAKE2b-256 9399eecca7fa5a3eb885a05e497ed0c9274abe440d4ac1b7dae636a07b9e5ce5

See more details on using hashes here.

Provenance

The following attestation bundles were made for guppyft-0.1.2-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.2-cp310-abi3-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for guppyft-0.1.2-cp310-abi3-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 3c012df9473ed5a6364044ab104dcc0f77beb9f9b2c42d8234c76570dc9b6fb3
MD5 be8277e297ea34ea04c20c2aba85d619
BLAKE2b-256 1c56df2193ff996d3ad413e8f9227de4ab31b8a3ae8566b0546bdc769e727d8e

See more details on using hashes here.

Provenance

The following attestation bundles were made for guppyft-0.1.2-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

This release

0.1.2 This release

5 files

0.1.1

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