Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Cqlib

Cqlib is a high-performance quantum computing SDK with a Rust core and Python bindings. It provides APIs for building and parameterizing quantum circuits, compilation and optimization, device modeling, simulation, error mitigation, and visualization.

Beta release: Cqlib is under active development. APIs may change before the stable release.

Installation

Cqlib requires Python 3.10 or later.

Install the latest pre-release from PyPI:

python -m pip install --pre cqlib

Quick start

Create a Bell-state circuit:

from cqlib import Circuit

circuit = Circuit(2)
circuit.h(0)
circuit.cx(0, 1)

print(circuit.num_qubits)
print(circuit.operations)

Create and bind a parameterized circuit:

from cqlib import Circuit, Parameter

theta = Parameter("theta")

circuit = Circuit(2)
circuit.rx(0, theta)
circuit.ry(1, theta)
circuit.cx(0, 1)

bound = circuit.assign_parameters({"theta": 0.5})

Supported environments

  • Python 3.10 or later on CPython
  • Linux, macOS, and Windows
  • Type information is included for static type checkers

Binary wheel availability depends on the platform and architecture. When a compatible wheel is unavailable, installation from the source distribution requires a Rust toolchain.

Documentation and support

Development

From the repository root:

maturin develop -m crates/binding-python/Cargo.toml
pytest crates/binding-python/tests/

License

Cqlib is distributed under the Apache License 2.0.

Metadata

Release files for cqlib 2.0.0b1

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

Built distributions (wheels)

Table of built distributions (wheels) for cqlib 2.0.0b1
File Actions
cqlib-2.0.0b1-cp310-abi3-win_amd64.whl CPython 3.10 abi3 Windows x86-64 Details for cqlib-2.0.0b1-cp310-abi3-win_amd64.whl
cqlib-2.0.0b1-cp310-abi3-manylinux_2_28_x86_64.whl CPython 3.10 abi3 Linux glibc 2.28+ x86-64 Details for cqlib-2.0.0b1-cp310-abi3-manylinux_2_28_x86_64.whl
cqlib-2.0.0b1-cp310-abi3-manylinux_2_28_aarch64.whl CPython 3.10 abi3 Linux glibc 2.28+ ARM64 Details for cqlib-2.0.0b1-cp310-abi3-manylinux_2_28_aarch64.whl
cqlib-2.0.0b1-cp310-abi3-macosx_11_0_x86_64.whl CPython 3.10 abi3 macOS 11.0+ x86-64 Details for cqlib-2.0.0b1-cp310-abi3-macosx_11_0_x86_64.whl
cqlib-2.0.0b1-cp310-abi3-macosx_11_0_arm64.whl CPython 3.10 abi3 macOS 11.0+ ARM64 Details for cqlib-2.0.0b1-cp310-abi3-macosx_11_0_arm64.whl

Total release size: 38.1 MB

Release files / cqlib-2.0.0b1-cp310-abi3-win_amd64.whl

Download URL cqlib-2.0.0b1-cp310-abi3-win_amd64.whl
Size 8.5 MB
Tags CPython 3.10 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
ba6b937990fcab2bef381dfa07da6ea9d447964c265435b2e0390d8a77dd2aa3
BLAKE2b-256 checksum
How to use checksums
b75f599f7dd87bd5879b81072024cab73a546d0c2da8e9e121fda248459ba639
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.5

Release files / cqlib-2.0.0b1-cp310-abi3-manylinux_2_28_x86_64.whl

Download URL cqlib-2.0.0b1-cp310-abi3-manylinux_2_28_x86_64.whl
Size 8.0 MB
Tags CPython 3.10 Linux glibc 2.28+ x86-64 abi3
SHA-256 checksum
How to use checksums
f77435ca26c30b448a5fcbb6ac8a4efe21c038cceae46d95b27734d9695ddb72
BLAKE2b-256 checksum
How to use checksums
373675fc7adbf83ca6c0cfb666f3a6b3060fd4f4b55a24bf35529b8b20b6d515
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.5

Release files / cqlib-2.0.0b1-cp310-abi3-manylinux_2_28_aarch64.whl

Download URL cqlib-2.0.0b1-cp310-abi3-manylinux_2_28_aarch64.whl
Size 7.2 MB
Tags CPython 3.10 Linux glibc 2.28+ ARM64 abi3
SHA-256 checksum
How to use checksums
7abf9a9854f41ec3e400d4c97f7dd7ffbe1339b8e3b2dd2f2157022d8e387361
BLAKE2b-256 checksum
How to use checksums
32882fcbbc752c8a8bd3ccf64f901ea577f7a6d6e04430509f3e367227270153
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.5

Release files / cqlib-2.0.0b1-cp310-abi3-macosx_11_0_x86_64.whl

Download URL cqlib-2.0.0b1-cp310-abi3-macosx_11_0_x86_64.whl
Size 7.6 MB
Tags CPython 3.10 abi3 macOS 11.0+ x86-64
SHA-256 checksum
How to use checksums
76b51ef0cf5510efea69b0af1a883359f6bd4bc45353ddee3f3dc08fa577ca7b
BLAKE2b-256 checksum
How to use checksums
e8c4fd3b55b9611fec2cca293cb9510f36ed137152feea6a2b9a6f9272b19c89
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.5

Release files / cqlib-2.0.0b1-cp310-abi3-macosx_11_0_arm64.whl

Download URL cqlib-2.0.0b1-cp310-abi3-macosx_11_0_arm64.whl
Size 6.9 MB
Tags CPython 3.10 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
2debf2b1158c8104b994fda3cb7bd760da5eef229b111de153d53217769441eb
BLAKE2b-256 checksum
How to use checksums
95a22b7f4324eff6edc05b24455d5bc4dc5f3a2f4d537e690e3ac4000318d1bd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.5

Security for cqlib 2.0.0b1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

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