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.11 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

  • CPython 3.11–3.15 with the GIL enabled
  • 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.0b6

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

Total release size: 38.8 MB

Release files / cqlib-2.0.0b6-cp311-abi3-win_amd64.whl

Download URL cqlib-2.0.0b6-cp311-abi3-win_amd64.whl
Size 8.6 MB
Tags CPython 3.11 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
9fb2c3f2160daae959866e2f9ad9bd298ce6756e8bf9eaf10cdf5dfa0f54f380
BLAKE2b-256 checksum
How to use checksums
e80ec82bc8901577d371676e55794a43fe537eb0de4e7a232ca690620863e1db
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.0b6-cp311-abi3-manylinux_2_28_x86_64.whl

Download URL cqlib-2.0.0b6-cp311-abi3-manylinux_2_28_x86_64.whl
Size 8.2 MB
Tags CPython 3.11 Linux glibc 2.28+ x86-64 abi3
SHA-256 checksum
How to use checksums
b40fd1095b5b361f9ba51dd0f596262daec2a78343cd57c45535139264e9cab2
BLAKE2b-256 checksum
How to use checksums
9435580f6429ea623cc73d63ceaff4c49b914b609840c2f9126e0d53d8085c89
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.0b6-cp311-abi3-manylinux_2_28_aarch64.whl

Download URL cqlib-2.0.0b6-cp311-abi3-manylinux_2_28_aarch64.whl
Size 7.3 MB
Tags CPython 3.11 Linux glibc 2.28+ ARM64 abi3
SHA-256 checksum
How to use checksums
18fdcdfbfefcfc7fdde2fa6e00e009a66f9719bb68a11b4cd15fc64f6f993567
BLAKE2b-256 checksum
How to use checksums
21dc05155b79eeb3244cb074b72a46e41ea756de6c9dfbcf6d28c5034c627e3d
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.0b6-cp311-abi3-macosx_11_0_x86_64.whl

Download URL cqlib-2.0.0b6-cp311-abi3-macosx_11_0_x86_64.whl
Size 7.7 MB
Tags CPython 3.11 abi3 macOS 11.0+ x86-64
SHA-256 checksum
How to use checksums
eb738e49328043dc8baa29d901abab78a51c31e1f8ccb542692dac5c79236f7b
BLAKE2b-256 checksum
How to use checksums
4ae3b04bb1add5cd3a5ba1e3072c2135e95bd55d41872a8b094724322ebb5728
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.0b6-cp311-abi3-macosx_11_0_arm64.whl

Download URL cqlib-2.0.0b6-cp311-abi3-macosx_11_0_arm64.whl
Size 7.0 MB
Tags CPython 3.11 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
5618fde801e3b7ae6b960eab3561724aaff0ce4b0152b61546abbdf9b59a800a
BLAKE2b-256 checksum
How to use checksums
2612e4c21e4f009eba41e59a2da29faaa1d70006d83562bb782899677ee0c8c3
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.0b6

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