Quantum circuit programming language with Dirac notation — part of the Crowe Quantum Platform
Project description
crowe-qubit-flow
Qubit-Flow — a quantum programming language with a full parser and interpreter. Supports quantum registers, gates, measurement, classical control, loops, and teleportation.
Installation
pip install crowe-qubit-flow
Features
- Full Language: Variables, loops, conditionals, functions
- Quantum Registers:
qreg,cregdeclarations - Gate Set: H, X, Y, Z, CNOT, CZ, Toffoli, Rx, Ry, Rz, SWAP, and more
- Measurement: Born-rule sampling with configurable shots
- Built-in Protocols: Teleportation, barrier, reset
Quick Start
from crowe_qubit_flow import Interpreter
interp = Interpreter()
result = interp.run("""
qreg q[2];
H q[0];
CNOT q[0], q[1];
measure q[0] -> c[0];
measure q[1] -> c[1];
""", shots=1000)
print(result.counts) # {'00': ~500, '11': ~500}
Part of the Crowe Quantum Platform
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
crowe_qubit_flow-2.0.1.tar.gz
(20.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file crowe_qubit_flow-2.0.1.tar.gz.
File metadata
- Download URL: crowe_qubit_flow-2.0.1.tar.gz
- Upload date:
- Size: 20.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ea41ff9a5353264190c03890abd0eaefbb2691267ecaa9a6043ce52ad0cc51f0
|
|
| MD5 |
de76119d89595566f65c86d2350d2202
|
|
| BLAKE2b-256 |
6ccaf0013b00f85f75b20560f893da3dbfdea71f32ab46f21e18ba4929a2d53d
|
File details
Details for the file crowe_qubit_flow-2.0.1-py3-none-any.whl.
File metadata
- Download URL: crowe_qubit_flow-2.0.1-py3-none-any.whl
- Upload date:
- Size: 19.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ea865aa705796a0e69a7089f1f897c18527ccb660575c7ffdf6e169785816f9a
|
|
| MD5 |
729b61edeb4a9ddfa5071935aaebc895
|
|
| BLAKE2b-256 |
357c14a564926a8fd7e155f62450900e48ff73e08f60c7483a6c1e14a106f722
|