Skip to main content

Quantinuum's common representation for quantum programs

Project description


build_status codecov

The Hierarchical Unified Graph Representation (HUGR, pronounced hugger) is the common representation of quantum circuits and operations in the Quantinuum ecosystem.

This library provides a pure-python implementation of the HUGR data model, and a low-level API for constructing HUGR objects.

This library is intended to be used as a dependency for other high-level tools. See guppylang and tket2 for examples of such tools.

The HUGR specification is here.


The package name is hugr. It can be installed from PyPI:

pip install hugr

The current releases are in alpha stage, and the API is subject to change.



Recent Changes





This project is licensed under Apache License, Version 2.0 (LICENSE or

Project details

Download files

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

Source Distribution

hugr-0.2.1.tar.gz (9.1 kB view hashes)

Uploaded Source

Built Distribution

hugr-0.2.1-py3-none-any.whl (10.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page