HUGR Documentation

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

It provides a high-fidelity representation of operations, that facilitates compilation and encodes runnable programs.

Python API v0.15.5 reference

The hugr python package provides a high-level API for constructing HUGRs from basic operations, and for serializing and deserializing them.

It is intended to be used as a dependency for other high-level tools, but can also be used directly for simple tasks.

For performance-critical tasks, see the rust API reference.

API documentation

hugr

hugr is a Python package for the Quantinuum HUGR common representation.

Indices and tables

Rust API v0.26.1 reference

The hugr rust crate provides a low-level API for efficient manipulation of HUGRs.

Among other features, the library includes a builder interface, serialization and deserialization support, a pass framework, and lowerings to LLVM IR.

Rust API Reference

HUGR specification

The formal specification of the HUGR data model is available here:

Specification