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
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
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c032e6c2ef5651db31884da44e829d6f5142087707ebaf6adfae601e871194f6
|
|
| MD5 |
7990c08ddd721cca247191cb6e32f68d
|
|
| BLAKE2b-256 |
738be00c07c6e067901363b548e31236c565cdd0a16a94e0b48727a6e7bb96c5
|
Provenance
The following attestation bundles were made for guppyft-0.1.1-cp310-abi3-win_amd64.whl:
Publisher:
build-wheels.yml on Quantinuum/guppyft
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
guppyft-0.1.1-cp310-abi3-win_amd64.whl -
Subject digest:
c032e6c2ef5651db31884da44e829d6f5142087707ebaf6adfae601e871194f6 - Sigstore transparency entry: 2771788229
- Sigstore integration time:
-
Permalink:
Quantinuum/guppyft@7d65ebaaa7a4ef0b3663646e315db27f92a6d5f9 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/Quantinuum
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build-wheels.yml@7d65ebaaa7a4ef0b3663646e315db27f92a6d5f9 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file guppyft-0.1.1-cp310-abi3-manylinux_2_28_x86_64.whl.
File metadata
- Download URL: guppyft-0.1.1-cp310-abi3-manylinux_2_28_x86_64.whl
- Upload date:
- Size: 3.4 MB
- Tags: CPython 3.10+, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
65221d36f95f0cf989b9a4de6c0e13e08f80bd9767b2756842ed1f2ea80ab6bd
|
|
| MD5 |
ef9b9aea579700e4370652ffa7f53c4c
|
|
| BLAKE2b-256 |
10194a2f0161f27af44530d3c5bbfbee366da4be6b1ec42bec1c1809617803c9
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
guppyft-0.1.1-cp310-abi3-manylinux_2_28_x86_64.whl -
Subject digest:
65221d36f95f0cf989b9a4de6c0e13e08f80bd9767b2756842ed1f2ea80ab6bd - Sigstore transparency entry: 2771788076
- Sigstore integration time:
-
Permalink:
Quantinuum/guppyft@7d65ebaaa7a4ef0b3663646e315db27f92a6d5f9 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/Quantinuum
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build-wheels.yml@7d65ebaaa7a4ef0b3663646e315db27f92a6d5f9 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file guppyft-0.1.1-cp310-abi3-manylinux_2_28_aarch64.whl.
File metadata
- Download URL: guppyft-0.1.1-cp310-abi3-manylinux_2_28_aarch64.whl
- Upload date:
- Size: 3.2 MB
- Tags: CPython 3.10+, manylinux: glibc 2.28+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
efeb8432db4d24d689d50ea2623149663df6b75f9d5ecab56990176036631bbc
|
|
| MD5 |
57734beff9d2281b6bcc029e7389f7bc
|
|
| BLAKE2b-256 |
28946854b96aa1357786dca1d87b421d6a298049d5aac8ada88291cda53d6397
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
guppyft-0.1.1-cp310-abi3-manylinux_2_28_aarch64.whl -
Subject digest:
efeb8432db4d24d689d50ea2623149663df6b75f9d5ecab56990176036631bbc - Sigstore transparency entry: 2771788261
- Sigstore integration time:
-
Permalink:
Quantinuum/guppyft@7d65ebaaa7a4ef0b3663646e315db27f92a6d5f9 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/Quantinuum
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build-wheels.yml@7d65ebaaa7a4ef0b3663646e315db27f92a6d5f9 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file guppyft-0.1.1-cp310-abi3-macosx_11_0_arm64.whl.
File metadata
- Download URL: guppyft-0.1.1-cp310-abi3-macosx_11_0_arm64.whl
- Upload date:
- Size: 2.8 MB
- Tags: CPython 3.10+, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f34314cfd411980336a36a0941a8854f95080aef779b18679a3169bed3093ddd
|
|
| MD5 |
c91b2c7d969400c8eb4806685ce14de5
|
|
| BLAKE2b-256 |
a623a9276f65756a0cea5d2b5b4e6e4147e7e78cacf00bde13b8c8cd4440be20
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
guppyft-0.1.1-cp310-abi3-macosx_11_0_arm64.whl -
Subject digest:
f34314cfd411980336a36a0941a8854f95080aef779b18679a3169bed3093ddd - Sigstore transparency entry: 2771788128
- Sigstore integration time:
-
Permalink:
Quantinuum/guppyft@7d65ebaaa7a4ef0b3663646e315db27f92a6d5f9 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/Quantinuum
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build-wheels.yml@7d65ebaaa7a4ef0b3663646e315db27f92a6d5f9 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file guppyft-0.1.1-cp310-abi3-macosx_10_9_x86_64.whl.
File metadata
- Download URL: guppyft-0.1.1-cp310-abi3-macosx_10_9_x86_64.whl
- Upload date:
- Size: 3.1 MB
- Tags: CPython 3.10+, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7241d04e875f202b22f8b953e0b9a27ea146e59d13e3e3e6b8046b3556a4293f
|
|
| MD5 |
a751ca0103366749da217291b3baf16f
|
|
| BLAKE2b-256 |
3024a452c07e537f4e07883b0da802d2801f8aa33c67d61760e5ab1016ea8ead
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
guppyft-0.1.1-cp310-abi3-macosx_10_9_x86_64.whl -
Subject digest:
7241d04e875f202b22f8b953e0b9a27ea146e59d13e3e3e6b8046b3556a4293f - Sigstore transparency entry: 2771788187
- Sigstore integration time:
-
Permalink:
Quantinuum/guppyft@7d65ebaaa7a4ef0b3663646e315db27f92a6d5f9 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/Quantinuum
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build-wheels.yml@7d65ebaaa7a4ef0b3663646e315db27f92a6d5f9 -
Trigger Event:
workflow_dispatch
-
Statement type: