Quantinuum's common representation for quantum programs
Actively maintained. Last release 8 weeks ago, commits in 26 of the last 26 weeks. A safe choice.
pip install hugrhugr
The Hierarchical Unified Graph Representation (HUGR, pronounced hugger) is the common representation of quantum programs 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.
The API documentation for this package is here.
This library is intended to be used as a dependency for other high-level tools.
See guppylang and tket for examples of such tools.
The HUGR specification is here.