hiq-quantum 1.0.1__cp314-cp314-win_amd64.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
hiq_quantum/__init__.py
ADDED
|
Binary file
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: hiq-quantum
|
|
3
|
+
Version: 1.0.1
|
|
4
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
5
|
+
Classifier: Intended Audience :: Science/Research
|
|
6
|
+
Classifier: License :: OSI Approved :: Apache Software License
|
|
7
|
+
Classifier: Programming Language :: Rust
|
|
8
|
+
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
9
|
+
Classifier: Programming Language :: Python :: 3
|
|
10
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
11
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
12
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
14
|
+
Classifier: Topic :: Scientific/Engineering :: Physics
|
|
15
|
+
Requires-Dist: pytest>=7.0 ; extra == 'dev'
|
|
16
|
+
Requires-Dist: pytest-cov ; extra == 'dev'
|
|
17
|
+
Provides-Extra: dev
|
|
18
|
+
Summary: Rust-native quantum compilation platform
|
|
19
|
+
Keywords: quantum,compiler,qasm,circuit
|
|
20
|
+
Author-email: Daniel Hinderink <daniel@hal-contract.org>
|
|
21
|
+
License: Apache-2.0
|
|
22
|
+
Requires-Python: >=3.9
|
|
23
|
+
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
|
|
24
|
+
Project-URL: Homepage, https://github.com/hiq-lab/HIQ
|
|
25
|
+
Project-URL: Issues, https://github.com/hiq-lab/HIQ/issues
|
|
26
|
+
Project-URL: Repository, https://github.com/hiq-lab/HIQ
|
|
27
|
+
|
|
28
|
+
# HIQ Python Bindings
|
|
29
|
+
|
|
30
|
+
Python bindings for the HIQ quantum compilation platform.
|
|
31
|
+
|
|
32
|
+
## Installation
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
pip install hiq
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
## Quick Start
|
|
39
|
+
|
|
40
|
+
```python
|
|
41
|
+
import hiq
|
|
42
|
+
|
|
43
|
+
# Create a Bell state circuit
|
|
44
|
+
qc = hiq.Circuit("bell", num_qubits=2)
|
|
45
|
+
qc.h(0).cx(0, 1).measure_all()
|
|
46
|
+
|
|
47
|
+
# Check circuit properties
|
|
48
|
+
print(f"Depth: {qc.depth()}")
|
|
49
|
+
print(f"Qubits: {qc.num_qubits}")
|
|
50
|
+
|
|
51
|
+
# Convert to QASM
|
|
52
|
+
qasm = hiq.to_qasm(qc)
|
|
53
|
+
print(qasm)
|
|
54
|
+
|
|
55
|
+
# Parse QASM
|
|
56
|
+
qc2 = hiq.from_qasm("""
|
|
57
|
+
OPENQASM 3.0;
|
|
58
|
+
qubit[2] q;
|
|
59
|
+
h q[0];
|
|
60
|
+
cx q[0], q[1];
|
|
61
|
+
""")
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
## Features
|
|
65
|
+
|
|
66
|
+
- **Circuit Building**: Fluent API for building quantum circuits
|
|
67
|
+
- **Standard Gates**: H, X, Y, Z, S, T, CX, CZ, and many more
|
|
68
|
+
- **IQM Native Gates**: PRX gate support
|
|
69
|
+
- **QASM3 I/O**: Parse and emit OpenQASM 3.0
|
|
70
|
+
- **Compilation Types**: Layout, CouplingMap, BasisGates for compilation
|
|
71
|
+
|
|
72
|
+
## Pre-built Circuits
|
|
73
|
+
|
|
74
|
+
```python
|
|
75
|
+
# Bell state
|
|
76
|
+
bell = hiq.Circuit.bell()
|
|
77
|
+
|
|
78
|
+
# GHZ state
|
|
79
|
+
ghz = hiq.Circuit.ghz(5)
|
|
80
|
+
|
|
81
|
+
# Quantum Fourier Transform
|
|
82
|
+
qft = hiq.Circuit.qft(4)
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
## License
|
|
86
|
+
|
|
87
|
+
Apache-2.0
|
|
88
|
+
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
hiq_quantum\__init__.py,sha256=DpSpYuIDZkHi_1n0yua7fsC4RGd0tPIJ9jAs7aJ2raQ,127
|
|
2
|
+
hiq_quantum\hiq_quantum.cp314-win_amd64.pyd,sha256=gqYl-G6nNek62cfGtQBiyniebI7Y0_rZXotwdac3ea0,719360
|
|
3
|
+
hiq_quantum-1.0.1.dist-info\METADATA,sha256=DvtqMQKBwHyzDIdZ_vEm4ZT01aUi-RlBGazGWeEEriY,2240
|
|
4
|
+
hiq_quantum-1.0.1.dist-info\WHEEL,sha256=TASrtxyeL-Pi7odwPBMCgR1YebCHdBFZvgqiADG_4b0,97
|
|
5
|
+
hiq_quantum-1.0.1.dist-info\RECORD,,
|