Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Guppy

pypi codecov py-version

Guppy is a quantum programming language that is fully embedded into Python. It allows you to write high-level hybrid quantum programs with classical control flow and mid-circuit measurements using Pythonic syntax:

from guppylang import guppy
from guppylang.std.builtins import owned
from guppylang.std.quantum import cx, h, measure, qubit, x, z


@guppy
def teleport(src: qubit @ owned, tgt: qubit) -> None:
    """Teleports the state in `src` to `tgt`."""
    # Create ancilla and entangle it with src and tgt
    tmp = qubit()
    h(tmp)
    cx(tmp, tgt)
    cx(src, tmp)

    # Apply classical corrections
    h(src)
    if measure(src):
        z(tgt)
    if measure(tmp):
        x(tgt)

teleport.check()

Documentation

🌐 Guppy website

📖 Language guide

📒 Example notebooks

Install

Guppy can be installed via pip. Requires Python >= 3.10.

pip install guppylang

Development

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

Attribution

If you use this software, please cite it using CITATIONS.bib or CITATION.cff (click "Cite this repository" in the About section of the repository landing page).

License

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 Distribution

guppylang-1.0.0rc1.tar.gz (84.9 kB view details)

Uploaded Source

Built Distribution

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

guppylang-1.0.0rc1-py3-none-any.whl (84.9 kB view details)

Uploaded Python 3

File details

Details for the file guppylang-1.0.0rc1.tar.gz.

File metadata

  • Download URL: guppylang-1.0.0rc1.tar.gz
  • Upload date:
  • Size: 84.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for guppylang-1.0.0rc1.tar.gz
Algorithm Hash digest
SHA256 91a1d0d98ce196b11789746e6f4167fde939114f32b92d0cc95755cc5182fb5a
MD5 b2568ab8c1cd209f813ef30a2c414bb4
BLAKE2b-256 94a89819e9d5a2d2ae5cbe040aae629c32baee73cd0bd50e267f66f24d7ee94a

See more details on using hashes here.

Provenance

The following attestation bundles were made for guppylang-1.0.0rc1.tar.gz:

Publisher: python-wheels.yml on Quantinuum/guppylang

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

File details

Details for the file guppylang-1.0.0rc1-py3-none-any.whl.

File metadata

  • Download URL: guppylang-1.0.0rc1-py3-none-any.whl
  • Upload date:
  • Size: 84.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for guppylang-1.0.0rc1-py3-none-any.whl
Algorithm Hash digest
SHA256 f4f375de6e40933f79cefb0dc759d3dec775ddcba26c98e595bdb1594172995f
MD5 54b881a92b42528f22d72ac6027267b0
BLAKE2b-256 dd3c4920b96eecb2acf94c11a8d1dd191c69407d35fcb584b0ac8a4e7a5802a1

See more details on using hashes here.

Provenance

The following attestation bundles were made for guppylang-1.0.0rc1-py3-none-any.whl:

Publisher: python-wheels.yml on Quantinuum/guppylang

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

Release history Release notifications | RSS feed

1.0.1

2 files

1.0.0

2 files

This release

1.0.0rc1 This release

2 files

0.21.16

2 files

0.21.15

2 files

0.21.14

2 files

0.21.13

2 files

0.21.12

2 files

0.21.11

2 files

0.21.10

2 files

0.21.9

2 files

0.21.8

2 files

0.21.7

2 files

0.21.6

2 files

0.21.5

2 files

0.21.4

2 files

0.21.3

2 files

0.21.2

2 files

0.21.1

2 files

0.21.0

2 files

0.20.0

2 files

0.19.1

2 files

0.19.0

2 files

0.18.2

2 files

0.18.1

2 files

0.18.0

2 files

0.17.1

2 files

0.17.0

2 files

0.16.0

2 files

0.15.0

2 files

0.14.0

2 files

0.13.1

2 files

0.13.0

2 files

0.12.2

2 files

0.12.1

2 files

0.12.0

2 files

0.11.0

2 files

0.10.0

2 files

0.9.0

2 files

0.8.1

2 files

0.8.0

2 files

0.7.0

2 files

0.6.2

2 files

0.6.1

2 files

0.6.0

2 files

0.5.2

2 files

0.5.1

2 files

0.5.0

2 files

0.4.0

2 files

0.3.0

2 files

0.2.0

2 files

0.1.0

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page