Skip to main content

High-performance quantum circuit simulator in Rust: state-vector, MPS, and stabilizer backends

Project description

aleph-sim

aleph is a high-performance quantum circuit simulator written in Rust, with pluggable backends: full state-vector (SIMD + multi-threaded), MPS (matrix product state), and stabilizer (tableau). It is benchmarked against Qiskit Aer (state vector + MPS) and Stim (stabilizer) — every parity-matrix cell is at or below 1.2× its reference, most well below 1× (aleph faster); see the parity report.

Install

pip install aleph-sim

The package is named aleph-sim (the name aleph is taken on PyPI); the Python module is still import aleph. Wheels: Linux x86_64 (manylinux_2_28) and macOS arm64, Python ≥ 3.12 (abi3). They are also attached to each GitHub release.

Quickstart

import aleph

c = aleph.Circuit(2)
c.h(0)
c.cx(0, 1)

result = aleph.run(c, shots=1024, seed=0)
print(result.counts())        # {'00': ~512, '11': ~512}
print(result.statevector())   # 4 amplitudes

Links

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

aleph_sim-0.2.0-cp312-abi3-manylinux_2_28_x86_64.whl (1.4 MB view details)

Uploaded CPython 3.12+manylinux: glibc 2.28+ x86-64

aleph_sim-0.2.0-cp312-abi3-macosx_11_0_arm64.whl (807.1 kB view details)

Uploaded CPython 3.12+macOS 11.0+ ARM64

File details

Details for the file aleph_sim-0.2.0-cp312-abi3-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for aleph_sim-0.2.0-cp312-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 ba418f4be4f9816df5c3decef2c58abc49bda842ea41d5d6c4671ad0ee10fed4
MD5 22c0409ab3c34fcf07d98c81570e1e23
BLAKE2b-256 05c58e5db6e14e03c7dcab9b4ba4867926ef180abb132513e48ba0465a6a90e1

See more details on using hashes here.

Provenance

The following attestation bundles were made for aleph_sim-0.2.0-cp312-abi3-manylinux_2_28_x86_64.whl:

Publisher: release.yml on aleph-sim/aleph

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file aleph_sim-0.2.0-cp312-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for aleph_sim-0.2.0-cp312-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9ae4463af8d2db7a4560ded8a19e3555bc0c19c4a9a036ef980133c86f807567
MD5 3a7b53c499d9f9093dcf50046daaa2bf
BLAKE2b-256 88aa43d9abdbf3cb93013b8f066cbc9bf54c6b5c8a7ecd1ec3e4d10aa7e617c6

See more details on using hashes here.

Provenance

The following attestation bundles were made for aleph_sim-0.2.0-cp312-abi3-macosx_11_0_arm64.whl:

Publisher: release.yml on aleph-sim/aleph

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page