Skip to main content

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, creg declarations
  • 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

Metadata

Release files for crowe-qubit-flow 2.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for crowe-qubit-flow 2.0.1
File Size Uploaded
crowe_qubit_flow-2.0.1.tar.gz 20.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for crowe-qubit-flow 2.0.1
File Interpreter ABI Platform
crowe_qubit_flow-2.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 40.0 kB

Release files / crowe_qubit_flow-2.0.1.tar.gz

Download URL crowe_qubit_flow-2.0.1.tar.gz
Size 20.8 kB
Tags Source
SHA-256 checksum
How to use checksums
ea41ff9a5353264190c03890abd0eaefbb2691267ecaa9a6043ce52ad0cc51f0
BLAKE2b-256 checksum
How to use checksums
6ccaf0013b00f85f75b20560f893da3dbfdea71f32ab46f21e18ba4929a2d53d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.13

Release files / crowe_qubit_flow-2.0.1-py3-none-any.whl

Download URL crowe_qubit_flow-2.0.1-py3-none-any.whl
Size 19.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ea865aa705796a0e69a7089f1f897c18527ccb660575c7ffdf6e169785816f9a
BLAKE2b-256 checksum
How to use checksums
357c14a564926a8fd7e155f62450900e48ff73e08f60c7483a6c1e14a106f722
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.13

Release history Release notifications | RSS feed

This release

2.0.1 This release

2 release files

2.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page