Skip to main content

Rust-native quantum compilation platform

Project description

HIQ Python Bindings

Python bindings for the HIQ quantum compilation platform.

Installation

pip install hiq

Quick Start

import hiq

# Create a Bell state circuit
qc = hiq.Circuit("bell", num_qubits=2)
qc.h(0).cx(0, 1).measure_all()

# Check circuit properties
print(f"Depth: {qc.depth()}")
print(f"Qubits: {qc.num_qubits}")

# Convert to QASM
qasm = hiq.to_qasm(qc)
print(qasm)

# Parse QASM
qc2 = hiq.from_qasm("""
OPENQASM 3.0;
qubit[2] q;
h q[0];
cx q[0], q[1];
""")

Features

  • Circuit Building: Fluent API for building quantum circuits
  • Standard Gates: H, X, Y, Z, S, T, CX, CZ, and many more
  • IQM Native Gates: PRX gate support
  • QASM3 I/O: Parse and emit OpenQASM 3.0
  • Compilation Types: Layout, CouplingMap, BasisGates for compilation

Pre-built Circuits

# Bell state
bell = hiq.Circuit.bell()

# GHZ state
ghz = hiq.Circuit.ghz(5)

# Quantum Fourier Transform
qft = hiq.Circuit.qft(4)

License

Apache-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

hiq_quantum-1.0.1.tar.gz (82.2 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

hiq_quantum-1.0.1-pp311-pypy311_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (433.6 kB view details)

Uploaded PyPymanylinux: glibc 2.17+ x86-64

hiq_quantum-1.0.1-cp314-cp314-win_amd64.whl (299.9 kB view details)

Uploaded CPython 3.14Windows x86-64

hiq_quantum-1.0.1-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (432.7 kB view details)

Uploaded CPython 3.14manylinux: glibc 2.17+ x86-64

hiq_quantum-1.0.1-cp314-cp314-macosx_11_0_arm64.whl (391.7 kB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

hiq_quantum-1.0.1-cp313-cp313-win_amd64.whl (299.9 kB view details)

Uploaded CPython 3.13Windows x86-64

hiq_quantum-1.0.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (432.7 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

hiq_quantum-1.0.1-cp313-cp313-macosx_11_0_arm64.whl (391.7 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

hiq_quantum-1.0.1-cp312-cp312-win_amd64.whl (299.3 kB view details)

Uploaded CPython 3.12Windows x86-64

hiq_quantum-1.0.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (432.6 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

hiq_quantum-1.0.1-cp312-cp312-macosx_11_0_arm64.whl (391.5 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

hiq_quantum-1.0.1-cp311-cp311-win_amd64.whl (299.4 kB view details)

Uploaded CPython 3.11Windows x86-64

hiq_quantum-1.0.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (434.1 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

hiq_quantum-1.0.1-cp311-cp311-macosx_11_0_arm64.whl (391.5 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

hiq_quantum-1.0.1-cp310-cp310-win_amd64.whl (302.3 kB view details)

Uploaded CPython 3.10Windows x86-64

hiq_quantum-1.0.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (436.8 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

hiq_quantum-1.0.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (436.4 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ x86-64

File details

Details for the file hiq_quantum-1.0.1.tar.gz.

File metadata

  • Download URL: hiq_quantum-1.0.1.tar.gz
  • Upload date:
  • Size: 82.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.11.5

File hashes

Hashes for hiq_quantum-1.0.1.tar.gz
Algorithm Hash digest
SHA256 d423757e8b25a9ef9a0e4da3b06c360c01070555913fbaf671dda421388141a2
MD5 e2589bc994e517ffa64344de35d2c455
BLAKE2b-256 090f2e7bcb6c5db99b92c418fa5edb51f1c53d3c945897eb88a0195be2cea2df

See more details on using hashes here.

File details

Details for the file hiq_quantum-1.0.1-pp311-pypy311_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for hiq_quantum-1.0.1-pp311-pypy311_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 e29f47e0d21e5d33b18db0c3f6f94b8dddc033d04171f515fa833df2929128c1
MD5 2c2b41a2c2d1b687d8df82d13d28391a
BLAKE2b-256 9ba0e5aadbc0caa92639cfabcdc7d70b09668b2c2bdd1769c7cc6426fcfc2b2d

See more details on using hashes here.

File details

Details for the file hiq_quantum-1.0.1-cp314-cp314-win_amd64.whl.

File metadata

File hashes

Hashes for hiq_quantum-1.0.1-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 a247d3e24c2f22c24f1e96188d26f48acd0c03e29eb1781c1b347187c4b39a42
MD5 963c3e7e59a58cc6cca92948286cc17f
BLAKE2b-256 38e3ad4aaed0bad002dad0bad7fe384e63b56dc453c60853d5cadec9c073884e

See more details on using hashes here.

File details

Details for the file hiq_quantum-1.0.1-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for hiq_quantum-1.0.1-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d339b7a5c514aa90a55dc4bb1811a9b568b23dedb8fceaec148833114bb5fdeb
MD5 aadaa522f217229cac6a7c98a0a4d175
BLAKE2b-256 713640e39754558d1e9e4dae74d70273b6e5f1538bc0e1f098f92877e7c76093

See more details on using hashes here.

File details

Details for the file hiq_quantum-1.0.1-cp314-cp314-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for hiq_quantum-1.0.1-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 88d7e8eca18b84e40a70ff8933d6ed77369210eefe98fea15aab5ada0334bb32
MD5 11c04db9e846867900f25ef87e7ff7e5
BLAKE2b-256 102efa4084250a111e9fca8b020832452d3a052e681c8bec06f6a186bdc0a08f

See more details on using hashes here.

File details

Details for the file hiq_quantum-1.0.1-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for hiq_quantum-1.0.1-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 c265fc880624324e134f30c5de08e85ebea4ce81f1cd0b4c0fc397774b39fd04
MD5 5afd6967d92451a59612729ae3d0a273
BLAKE2b-256 cc19d56da994fb2673d129c26d849068d8684986518358047714917e3910a48c

See more details on using hashes here.

File details

Details for the file hiq_quantum-1.0.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for hiq_quantum-1.0.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 647b150516b7bd85de6618a77a09fba8ae68618fa7f8856175b4523743b5eb4e
MD5 03633b790d2bb7c1c9219dc171662c12
BLAKE2b-256 e83f84675df25ba988ceccc3bd5c817b41b923437183b366f2d16adfc4fea4ab

See more details on using hashes here.

File details

Details for the file hiq_quantum-1.0.1-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for hiq_quantum-1.0.1-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5a7f59cf35a192ffe0151702c1760573ce31ee9005b16c9f48e2cee0394cfcfe
MD5 c0c4b239cdb9d5a01dfd912df8204831
BLAKE2b-256 0d39c700bca8ea047888314cef709b97c77c26c2c287cdfefd103f51829bb15a

See more details on using hashes here.

File details

Details for the file hiq_quantum-1.0.1-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for hiq_quantum-1.0.1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 2e38253a12d05ac04d2f976104100f3d146bdb11e5064dc591ebe15cd47bbda2
MD5 27e024dc57559867ec8604b867ce70a5
BLAKE2b-256 883bb6c9677f69f8ed32fb8d81a656232597b9188de228f2c8a70b72c2e29561

See more details on using hashes here.

File details

Details for the file hiq_quantum-1.0.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for hiq_quantum-1.0.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 24f4d432c476aee7aa9d942dc071757d6782b1859524b01ca4ed52967a80eca1
MD5 af3ac2effd8708eefafa45c50bb40915
BLAKE2b-256 a24c7f8967c2c1c46629caecdcf3265bb572d14a33d4c47808e57bcd8e130bc5

See more details on using hashes here.

File details

Details for the file hiq_quantum-1.0.1-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for hiq_quantum-1.0.1-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 407e12f343b7b043852a6118fd022d5c814d19f8ca8a231793c282fa6da87d19
MD5 d134f01d008db5dae00111d97359e760
BLAKE2b-256 1090a06f2503af8f62e2f119732a087f27283f18883c88a092c7a482c8195bd8

See more details on using hashes here.

File details

Details for the file hiq_quantum-1.0.1-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for hiq_quantum-1.0.1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 37a9545bf77c0b0e05a9c8ed4cca3071aef95ca246698c7bf1aad7391dd44fcd
MD5 bbac526b28dde81d5e7f3894590a0a9f
BLAKE2b-256 2f64713a6838cd91617f1f555bb7ea495f8895b1708cd144a1d449c02c7844e9

See more details on using hashes here.

File details

Details for the file hiq_quantum-1.0.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for hiq_quantum-1.0.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a1d17b8229a6d22a3434a3854e13f28e0fab23b565e64b3aa424c89b057141d5
MD5 d30d3b0bdcfe8e329ba67eeabd7ef73e
BLAKE2b-256 97926fbc6a5ecd38c1a5d69b96d36b8946761c82fbc293dfb603d5d5da089f5c

See more details on using hashes here.

File details

Details for the file hiq_quantum-1.0.1-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for hiq_quantum-1.0.1-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2f019d1d20b255609622857540e1a073f90733e9ad16eb8e1cfccbe62eacf0e9
MD5 597f594e3eca03fa776f6d3d9a49af28
BLAKE2b-256 a28d21a61fedd26e4b092bf7ca5c9bb10f2daa6106f0ec0fe468db5346e39eca

See more details on using hashes here.

File details

Details for the file hiq_quantum-1.0.1-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for hiq_quantum-1.0.1-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 dcd35993e40443b1dc148e9ad7a13164a27ffcec34ba522226affbd4e0a7def4
MD5 324efca99f25d582492ffb9cb8e56de1
BLAKE2b-256 08ea547a7b4b5bbba2600d84f52129923b7e85f7f6744a4320d4fffb70d54b80

See more details on using hashes here.

File details

Details for the file hiq_quantum-1.0.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for hiq_quantum-1.0.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a840dfcbda60fb695fa6fb62fbd26e30304e334bb0defcf481a38736df538d6e
MD5 a2947f82127f0c4daae670d50a5c9010
BLAKE2b-256 02c60f2c4ac19b50b2f529ed31c63f67404a9c440921770b5f1e14c7fbeaa73d

See more details on using hashes here.

File details

Details for the file hiq_quantum-1.0.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for hiq_quantum-1.0.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 47253a9bc55310f7bd2c6224a0a7b6ab0472fbeba43ffb2b8eff2731a0e63924
MD5 0e0ee04dc9b152a9f7ef97414a757222
BLAKE2b-256 3e3dba8732f6a099304a3f0e8321f71e76fbcbd2491cf161c8eeef27b6261b8a

See more details on using hashes here.

Supported by

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