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.

HUGR guides

This is a collection of informal, conceptual guides to HUGR aimed at those who wish to work directly with this structure and understand the motivations behind it.

Python API v0.18.8 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.31.0 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