{"categories":[{"label":"Scientific/Engineering","url":"https://skillfed.io/packages/category/scientific-engineering/8"}],"enrichment":{"capability":"hugr provides a pure-Python implementation of the Hierarchical Unified Graph Representation (HUGR) data model for constructing and manipulating quantum programs and operations in the Quantinuum ecosystem.","skillfed_tags":["quantum-computing","intermediate-representation"],"use_cases":["Building intermediate representations of quantum programs for compilation and optimization pipelines","Implementing quantum language frontends that need a common graph-based representation","Analyzing and transforming quantum operations within the Quantinuum ecosystem","Constructing quantum circuit graphs programmatically with type-safe validation"],"what_it_does":"hugr is a Python library that implements the Hierarchical Unified Graph Representation, a common intermediate representation for quantum programs used across the Quantinuum ecosystem. It provides a pure-Python data model and low-level API for constructing and manipulating HUGR objects, which represent quantum operations and programs as hierarchical graphs.\n\nThe library is designed as a foundational dependency for higher-level quantum tools like guppylang and tket, rather than as a direct end-user tool. It depends on pydantic for data validation, graphviz for visualization, semver for version handling, and typing-extensions for type support. The package is actively maintained and supports Python 3.10 through 3.14 with prebuilt wheels for most common platforms.","worth_installing":"Yes, if you are building quantum tools or languages within the Quantinuum ecosystem or need a low-level quantum program representation. The library is actively maintained, has no known vulnerabilities, and uses a permissive license. Install friction is moderate due to compiled dependencies, but prebuilt wheels are available for most platforms. Not relevant for general-purpose Python development."},"id":"hugr","links":{"html":"https://skillfed.io/packages/hugr","md":"https://skillfed.io/packages/hugr.md","pypi":"https://pypi.org/project/hugr/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-08-12","license_spdx":null,"license_treatment":"permissive","name":"hugr","python_support":"supports_current","summary":"Quantinuum's common representation for quantum programs"},"popularity":{"monthly_downloads":92770,"position":13428,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"0.18.4"}
