Skip to main content

Quantinuum's common representation for quantum programs

Project description

hugr

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.

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 tket2 for examples of such tools.

The HUGR specification is here.

Installation

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.

Usage

TODO

Recent Changes

TODO

Development

TODO

License

This project is licensed under Apache License, Version 2.0 (LICENSE or http://www.apache.org/licenses/LICENSE-2.0).

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.12.4.tar.gz (263.6 kB view details)

Uploaded Source

Built Distributions

hugr-0.12.4-cp313-cp313t-musllinux_1_2_x86_64.whl (773.1 kB view details)

Uploaded CPython 3.13tmusllinux: musl 1.2+ x86-64

hugr-0.12.4-cp313-cp313t-musllinux_1_2_i686.whl (796.5 kB view details)

Uploaded CPython 3.13tmusllinux: musl 1.2+ i686

hugr-0.12.4-cp313-cp313t-musllinux_1_2_armv7l.whl (859.0 kB view details)

Uploaded CPython 3.13tmusllinux: musl 1.2+ ARMv7l

hugr-0.12.4-cp313-cp313t-musllinux_1_2_aarch64.whl (768.2 kB view details)

Uploaded CPython 3.13tmusllinux: musl 1.2+ ARM64

hugr-0.12.4-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (602.1 kB view details)

Uploaded CPython 3.13tmanylinux: glibc 2.17+ x86-64

hugr-0.12.4-cp313-cp313t-manylinux_2_17_s390x.manylinux2014_s390x.whl (642.8 kB view details)

Uploaded CPython 3.13tmanylinux: glibc 2.17+ s390x

hugr-0.12.4-cp313-cp313t-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl (642.5 kB view details)

Uploaded CPython 3.13tmanylinux: glibc 2.17+ ppc64le

hugr-0.12.4-cp313-cp313t-manylinux_2_17_armv7l.manylinux2014_armv7l.whl (596.9 kB view details)

Uploaded CPython 3.13tmanylinux: glibc 2.17+ ARMv7l

hugr-0.12.4-cp313-cp313t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (588.2 kB view details)

Uploaded CPython 3.13tmanylinux: glibc 2.17+ ARM64

hugr-0.12.4-cp313-cp313t-manylinux_2_5_i686.manylinux1_i686.whl (627.6 kB view details)

Uploaded CPython 3.13tmanylinux: glibc 2.5+ i686

hugr-0.12.4-cp313-cp313t-macosx_11_0_arm64.whl (551.4 kB view details)

Uploaded CPython 3.13tmacOS 11.0+ ARM64

hugr-0.12.4-cp313-cp313t-macosx_10_12_x86_64.whl (575.1 kB view details)

Uploaded CPython 3.13tmacOS 10.12+ x86-64

hugr-0.12.4-cp310-abi3-win_amd64.whl (479.5 kB view details)

Uploaded CPython 3.10+Windows x86-64

hugr-0.12.4-cp310-abi3-win32.whl (455.9 kB view details)

Uploaded CPython 3.10+Windows x86

hugr-0.12.4-cp310-abi3-musllinux_1_2_x86_64.whl (774.5 kB view details)

Uploaded CPython 3.10+musllinux: musl 1.2+ x86-64

hugr-0.12.4-cp310-abi3-musllinux_1_2_i686.whl (797.3 kB view details)

Uploaded CPython 3.10+musllinux: musl 1.2+ i686

hugr-0.12.4-cp310-abi3-musllinux_1_2_armv7l.whl (858.7 kB view details)

Uploaded CPython 3.10+musllinux: musl 1.2+ ARMv7l

hugr-0.12.4-cp310-abi3-musllinux_1_2_aarch64.whl (768.4 kB view details)

Uploaded CPython 3.10+musllinux: musl 1.2+ ARM64

hugr-0.12.4-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (603.2 kB view details)

Uploaded CPython 3.10+manylinux: glibc 2.17+ x86-64

hugr-0.12.4-cp310-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl (641.7 kB view details)

Uploaded CPython 3.10+manylinux: glibc 2.17+ s390x

hugr-0.12.4-cp310-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl (648.4 kB view details)

Uploaded CPython 3.10+manylinux: glibc 2.17+ ppc64le

hugr-0.12.4-cp310-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl (595.8 kB view details)

Uploaded CPython 3.10+manylinux: glibc 2.17+ ARMv7l

hugr-0.12.4-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (588.9 kB view details)

Uploaded CPython 3.10+manylinux: glibc 2.17+ ARM64

hugr-0.12.4-cp310-abi3-manylinux_2_5_i686.manylinux1_i686.whl (628.3 kB view details)

Uploaded CPython 3.10+manylinux: glibc 2.5+ i686

hugr-0.12.4-cp310-abi3-macosx_11_0_arm64.whl (557.6 kB view details)

Uploaded CPython 3.10+macOS 11.0+ ARM64

hugr-0.12.4-cp310-abi3-macosx_10_12_x86_64.whl (583.5 kB view details)

Uploaded CPython 3.10+macOS 10.12+ x86-64

File details

Details for the file hugr-0.12.4.tar.gz.

File metadata

  • Download URL: hugr-0.12.4.tar.gz
  • Upload date:
  • Size: 263.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.9.0

File hashes

Hashes for hugr-0.12.4.tar.gz
Algorithm Hash digest
SHA256 13ff343a7ce5401fbb1ad46550c4574b396aa02f89d7186c189ddb11eade7b21
MD5 c5c7ce78b7b184a42acaee3f5443da7b
BLAKE2b-256 b003e39878fff41219bbe5c4443ad43fed61132dddce7f5532b27337818d9fb9

See more details on using hashes here.

File details

Details for the file hugr-0.12.4-cp313-cp313t-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for hugr-0.12.4-cp313-cp313t-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 8c544a500ab6548cfd69b0d2f9debdc97e7833ed1e1d058865dd7e7cbd4e23c1
MD5 52af07f4f8d72809cfb2e062ee04edde
BLAKE2b-256 3bddedb25a606c73839bef451ef471ca18eb64d6e43cccf90e9ca5057c9e316e

See more details on using hashes here.

File details

Details for the file hugr-0.12.4-cp313-cp313t-musllinux_1_2_i686.whl.

File metadata

File hashes

Hashes for hugr-0.12.4-cp313-cp313t-musllinux_1_2_i686.whl
Algorithm Hash digest
SHA256 0c5a8beed95784dd96dd87a65972c2d7b9c8bb07ca2f6179ca8e92a7312d361b
MD5 3d84d6d08770bed5027219fe0a60a443
BLAKE2b-256 2ff76dbbd71cf70cba0fc019dab1c063a7ce274afdb0a08814284a2a739830c9

See more details on using hashes here.

File details

Details for the file hugr-0.12.4-cp313-cp313t-musllinux_1_2_armv7l.whl.

File metadata

File hashes

Hashes for hugr-0.12.4-cp313-cp313t-musllinux_1_2_armv7l.whl
Algorithm Hash digest
SHA256 826225f02f77ca1e0894f366226bf41e4f7c43d23086aaccd6f37aba1014cb13
MD5 594dc6e097868cb070b7cfe76dd713c9
BLAKE2b-256 308cdb64b24aa767e5c074b368e163515028011c22017100fb52d3d92d65d99c

See more details on using hashes here.

File details

Details for the file hugr-0.12.4-cp313-cp313t-musllinux_1_2_aarch64.whl.

File metadata

File hashes

Hashes for hugr-0.12.4-cp313-cp313t-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 aa7932fa5e13780ce50d666db5f1d5463328989f479788bd1e5a7ee32a47a7a3
MD5 73db862238da7981052609b1eae7a812
BLAKE2b-256 aa34b175c535a26f25b5d231cc115c48ef4a21dccf39eb8f068f11d116cbe488

See more details on using hashes here.

File details

Details for the file hugr-0.12.4-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for hugr-0.12.4-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 fe573d909b35386b51651543e8fd49c82de3afe10714efa70fef065e095125a5
MD5 44f6bf87300fa98e22293a7679524022
BLAKE2b-256 8b524ea68d80ef69df355999ad39078315e066988482412e026c4830f80112aa

See more details on using hashes here.

File details

Details for the file hugr-0.12.4-cp313-cp313t-manylinux_2_17_s390x.manylinux2014_s390x.whl.

File metadata

File hashes

Hashes for hugr-0.12.4-cp313-cp313t-manylinux_2_17_s390x.manylinux2014_s390x.whl
Algorithm Hash digest
SHA256 63d82501ceb66065b6ef63af52b1bab6c5a36aa7fbae66ca1943b340fb9d3690
MD5 d855a58b27746732ff2c8ec65b026a5d
BLAKE2b-256 38d3de895774547068b92bbefd0c59e1f8f4a5e226da4c87b5c8ed1d354a26b9

See more details on using hashes here.

File details

Details for the file hugr-0.12.4-cp313-cp313t-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl.

File metadata

File hashes

Hashes for hugr-0.12.4-cp313-cp313t-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm Hash digest
SHA256 4e705736518dc5fa2418d353f4756dd39780d83a311a2e51bf557024d580afea
MD5 cd427926aa643e9813b828bcd9a78f27
BLAKE2b-256 bc615e0991988875230dd48e2e1d3df268ba92d4809ceb8fbba1e709211f78fb

See more details on using hashes here.

File details

Details for the file hugr-0.12.4-cp313-cp313t-manylinux_2_17_armv7l.manylinux2014_armv7l.whl.

File metadata

File hashes

Hashes for hugr-0.12.4-cp313-cp313t-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm Hash digest
SHA256 657c12b2bf0ee49c51040b4a82b12ed121615e272e559434a03718d4175495a3
MD5 983a70763ba4ce80fbe92171ef26ab93
BLAKE2b-256 4ae6a0784608bcc34e54aeabfce443850675d773eedf4584ce086cea7cdb6dde

See more details on using hashes here.

File details

Details for the file hugr-0.12.4-cp313-cp313t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for hugr-0.12.4-cp313-cp313t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 daff9b20e1b16bc81f3d5757fcb3d600ba85c9d3c747f9fe2dab4ea0de53884f
MD5 4174cf5bd08e528343c060ddc536b074
BLAKE2b-256 4f908f8597bfb3c640c58c2f960b3ac9a334ecc90c29200a78eeb36dddc01786

See more details on using hashes here.

File details

Details for the file hugr-0.12.4-cp313-cp313t-manylinux_2_5_i686.manylinux1_i686.whl.

File metadata

File hashes

Hashes for hugr-0.12.4-cp313-cp313t-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm Hash digest
SHA256 b2b031d1439816764efee07d3a9c6b9db3648177890c489ae4fab17546be9e32
MD5 efc7826fda4df0c0d25d5376463ce00f
BLAKE2b-256 5abe9135f6f922384a698881a10a165f1fa739dbad5df7f35d672534039ce5fe

See more details on using hashes here.

File details

Details for the file hugr-0.12.4-cp313-cp313t-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for hugr-0.12.4-cp313-cp313t-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4c14acd91ae2185852a0a77516c8566f9cfe459a0a5a5236ca85b4a7aebd7d0a
MD5 5e5e89d80c05498c56ce3635b0e9478a
BLAKE2b-256 a589ee2d21581ad3682d9950f62bde8a0039b21a072ddebd41c968ecce2ebf5b

See more details on using hashes here.

File details

Details for the file hugr-0.12.4-cp313-cp313t-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for hugr-0.12.4-cp313-cp313t-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 177d6f448811b88954b116f94c5683fa5c2764a0c61e3ac696a9d93ae8569e73
MD5 6701a88b8357b7e1c8423f05aa3ebb9e
BLAKE2b-256 6290bd3d1898b27e9b5ee1998b6e06042e113d5ec15745c0b08909857b49f38d

See more details on using hashes here.

File details

Details for the file hugr-0.12.4-cp310-abi3-win_amd64.whl.

File metadata

  • Download URL: hugr-0.12.4-cp310-abi3-win_amd64.whl
  • Upload date:
  • Size: 479.5 kB
  • Tags: CPython 3.10+, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.9.0

File hashes

Hashes for hugr-0.12.4-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 6168fad26c6cf4c8380a779bad0e1c89682de1b2c20a9aa3b514b48245d89ea7
MD5 ad970c1867d7d569bb2942157e6fcc3c
BLAKE2b-256 a0c713230a9af984e49f0cf71e4f26c7b0f8d8ba481569d7cab7eb24faac60d6

See more details on using hashes here.

File details

Details for the file hugr-0.12.4-cp310-abi3-win32.whl.

File metadata

  • Download URL: hugr-0.12.4-cp310-abi3-win32.whl
  • Upload date:
  • Size: 455.9 kB
  • Tags: CPython 3.10+, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.9.0

File hashes

Hashes for hugr-0.12.4-cp310-abi3-win32.whl
Algorithm Hash digest
SHA256 33eb40528e48407db0f9064e529a5caf8f55ea0b55e863d40c8d9211d51b9c2b
MD5 a78a3ccc331ef9e409196bbf783e3945
BLAKE2b-256 ed69904a06c503de9930e9e3e2fbfb0e578f87b17dfc98e022ef40edbb721b7d

See more details on using hashes here.

File details

Details for the file hugr-0.12.4-cp310-abi3-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for hugr-0.12.4-cp310-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 dde79a2220a37f910f0fbde61712ab56e4959f52e74016c4798bc62bac1fc277
MD5 b87930908d75a747143a95e981771a03
BLAKE2b-256 e48645be313487f3a122906b50c20ae10925fc5dfef2f290f2f3ad2c4330555f

See more details on using hashes here.

File details

Details for the file hugr-0.12.4-cp310-abi3-musllinux_1_2_i686.whl.

File metadata

File hashes

Hashes for hugr-0.12.4-cp310-abi3-musllinux_1_2_i686.whl
Algorithm Hash digest
SHA256 aa2ac919dd0802956a415addce1b01b3d56bef405bf0f8c1d1c342aa908ef940
MD5 0f72fd45c19675a82e5c826574652947
BLAKE2b-256 97a111e03020ad7dd43a187777ef2561392989cc5c611cf080ac1d147fb1e60f

See more details on using hashes here.

File details

Details for the file hugr-0.12.4-cp310-abi3-musllinux_1_2_armv7l.whl.

File metadata

File hashes

Hashes for hugr-0.12.4-cp310-abi3-musllinux_1_2_armv7l.whl
Algorithm Hash digest
SHA256 574b813b331386a9f059f74b750745f6da3871f2e000966050cf689820aa0f6c
MD5 bfb4f2338f58a0343f9a9b5f4f46066e
BLAKE2b-256 6213a5d16c4b56884723abeca5a5938be3bd1ea00af44b59f339b4efbeb1cb79

See more details on using hashes here.

File details

Details for the file hugr-0.12.4-cp310-abi3-musllinux_1_2_aarch64.whl.

File metadata

File hashes

Hashes for hugr-0.12.4-cp310-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 3e8212a6428eb73b5c998e2a1188a8cc00e8007fd4a34625fbb9f01f5c89f151
MD5 079601cb9514d587fc0cefa07365de67
BLAKE2b-256 9f844483186a27b679678698d038be19ba4e3782a8714799a35e5db086a57815

See more details on using hashes here.

File details

Details for the file hugr-0.12.4-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for hugr-0.12.4-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 670a1ca070698a48653f8e77fde28384e2c276fae159e38e5496bd5bac9401b9
MD5 15159c2b5a6ae419ceed96b7685db4d6
BLAKE2b-256 945b400edafeefeba0b5b144a9eecfd1a4b6cf6ae596455ddf69460574823dc0

See more details on using hashes here.

File details

Details for the file hugr-0.12.4-cp310-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl.

File metadata

File hashes

Hashes for hugr-0.12.4-cp310-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl
Algorithm Hash digest
SHA256 01943af95c95d14e94f6c849b51c83d1e731b1eb4db2d254448d874bb3fbc002
MD5 b647c02a598b0e6877e55feece307428
BLAKE2b-256 2e132bb69c176b7f55acf83c22c282ea42f878610a95a813bff195776d02d163

See more details on using hashes here.

File details

Details for the file hugr-0.12.4-cp310-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl.

File metadata

File hashes

Hashes for hugr-0.12.4-cp310-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm Hash digest
SHA256 961d8531d0fdd5d2599e483e6d1fef1d9656d002669336c61fb57307bec161e1
MD5 f061d876d9f9a0e55e3dc680391618fe
BLAKE2b-256 2a61a4633f724d1a667c495e576bcf5ef89e368271734fc1e782657f83d20265

See more details on using hashes here.

File details

Details for the file hugr-0.12.4-cp310-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl.

File metadata

File hashes

Hashes for hugr-0.12.4-cp310-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm Hash digest
SHA256 e22e3b92ae71f08765b9ed0ae2db579e8a422f999e8288a83790096a33bfbb94
MD5 ce8b9fc938ffc93a70b0639afa04f1b1
BLAKE2b-256 a90d14812ecf18cb8cc4f357c7f88b191d30b6bce7e68cffbf415158014513e6

See more details on using hashes here.

File details

Details for the file hugr-0.12.4-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for hugr-0.12.4-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 83bad65dc1a305097ee0ebfd41c2444ebabb34ca4c34a264568a0400242af5ab
MD5 bf92050215740a7a889cb5eb01254412
BLAKE2b-256 fe607dc20680cb159bd7f199b769f8353a7a0a28f32df5e6bb78b09602df5253

See more details on using hashes here.

File details

Details for the file hugr-0.12.4-cp310-abi3-manylinux_2_5_i686.manylinux1_i686.whl.

File metadata

File hashes

Hashes for hugr-0.12.4-cp310-abi3-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm Hash digest
SHA256 3fa52a7a08770951225353c7d34ea1204e5c649ddffbbc57b1bce56ccdb97887
MD5 322ef6ba454c07d4a126118e8127fe94
BLAKE2b-256 50a289d0d382988722c504d13ea466643cfe99153af7652e09988ef289ef7500

See more details on using hashes here.

File details

Details for the file hugr-0.12.4-cp310-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for hugr-0.12.4-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 64636f761fa67e7fce515597966a311d38aa5a3fc3b773a3a0a197f3a1ce36d7
MD5 9e069212c50211c96b4c92b7f5acb7a7
BLAKE2b-256 4651f04b60ce9794ddaa4bfa823bad31e326713e10d34db0c120f9cb802f3fab

See more details on using hashes here.

File details

Details for the file hugr-0.12.4-cp310-abi3-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for hugr-0.12.4-cp310-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 b73b01c11419b457a57612890a35f869b8a484e11af5280aa7a0fb84853e0709
MD5 968f9b495ccc7d02153d6dbb1a22a750
BLAKE2b-256 d818a1d86ba3f8a6366e1422121ecce15f6572f3412375c1df5f21ded5e08cf2

See more details on using hashes here.

Supported by

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