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.0b3

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.0b3
File Actions
cqlib-2.0.0b3-cp310-abi3-win_amd64.whl CPython 3.10 abi3 Windows x86-64 Details for cqlib-2.0.0b3-cp310-abi3-win_amd64.whl
cqlib-2.0.0b3-cp310-abi3-manylinux_2_28_x86_64.whl CPython 3.10 abi3 Linux glibc 2.28+ x86-64 Details for cqlib-2.0.0b3-cp310-abi3-manylinux_2_28_x86_64.whl
cqlib-2.0.0b3-cp310-abi3-manylinux_2_28_aarch64.whl CPython 3.10 abi3 Linux glibc 2.28+ ARM64 Details for cqlib-2.0.0b3-cp310-abi3-manylinux_2_28_aarch64.whl
cqlib-2.0.0b3-cp310-abi3-macosx_11_0_x86_64.whl CPython 3.10 abi3 macOS 11.0+ x86-64 Details for cqlib-2.0.0b3-cp310-abi3-macosx_11_0_x86_64.whl
cqlib-2.0.0b3-cp310-abi3-macosx_11_0_arm64.whl CPython 3.10 abi3 macOS 11.0+ ARM64 Details for cqlib-2.0.0b3-cp310-abi3-macosx_11_0_arm64.whl

Total release size: 38.2 MB

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

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

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

Download URL cqlib-2.0.0b3-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
8bc111aaac65187e28e9f6b02f8db86fecfe92013e981c13e377bd1f0db6b90e
BLAKE2b-256 checksum
How to use checksums
42290a627cd0f9c33f208c327398745aa8ad9f7b380fac92ec4cee415865e7da
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.13

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

Download URL cqlib-2.0.0b3-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
ad312af4c02538a998d86962006b79f2f1b539931abd04711d1a5cd735179ffc
BLAKE2b-256 checksum
How to use checksums
7f868ac1a5db137361d4ccafeb9d7e48a8a44f11e832e0fd13363f113e66b392
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.13

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

Download URL cqlib-2.0.0b3-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
22ae60481107f30815d3bd3b9fab2573af3ba170bd90e54b7fc007aed2880646
BLAKE2b-256 checksum
How to use checksums
1708a6c3aa454950f187925bb879c7348be695aa26120469afcb9dfb1afb0154
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.13

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

Download URL cqlib-2.0.0b3-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
bfd15fc2cea47cf9410ee5b25a0ab0ab049d5a54d21516fef563c55bef3df319
BLAKE2b-256 checksum
How to use checksums
aab628b80a001b03f373476eef3ef3531cee9cecd8cf7b82d6582ecf5c897300
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.13

Security for cqlib 2.0.0b3

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