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
- Repository: https://github.com/aleph-sim/aleph
- Benchmarks: https://github.com/aleph-sim/aleph/blob/main/docs/perf/parity.md
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file aleph_sim-0.2.0-cp312-abi3-manylinux_2_28_x86_64.whl.
File metadata
- Download URL: aleph_sim-0.2.0-cp312-abi3-manylinux_2_28_x86_64.whl
- Upload date:
- Size: 1.4 MB
- Tags: CPython 3.12+, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ba418f4be4f9816df5c3decef2c58abc49bda842ea41d5d6c4671ad0ee10fed4
|
|
| MD5 |
22c0409ab3c34fcf07d98c81570e1e23
|
|
| BLAKE2b-256 |
05c58e5db6e14e03c7dcab9b4ba4867926ef180abb132513e48ba0465a6a90e1
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
aleph_sim-0.2.0-cp312-abi3-manylinux_2_28_x86_64.whl -
Subject digest:
ba418f4be4f9816df5c3decef2c58abc49bda842ea41d5d6c4671ad0ee10fed4 - Sigstore transparency entry: 1803276565
- Sigstore integration time:
-
Permalink:
aleph-sim/aleph@0dda7782af90add4627439cb2bf74365ece25006 -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/aleph-sim
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@0dda7782af90add4627439cb2bf74365ece25006 -
Trigger Event:
release
-
Statement type:
File details
Details for the file aleph_sim-0.2.0-cp312-abi3-macosx_11_0_arm64.whl.
File metadata
- Download URL: aleph_sim-0.2.0-cp312-abi3-macosx_11_0_arm64.whl
- Upload date:
- Size: 807.1 kB
- Tags: CPython 3.12+, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9ae4463af8d2db7a4560ded8a19e3555bc0c19c4a9a036ef980133c86f807567
|
|
| MD5 |
3a7b53c499d9f9093dcf50046daaa2bf
|
|
| BLAKE2b-256 |
88aa43d9abdbf3cb93013b8f066cbc9bf54c6b5c8a7ecd1ec3e4d10aa7e617c6
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
aleph_sim-0.2.0-cp312-abi3-macosx_11_0_arm64.whl -
Subject digest:
9ae4463af8d2db7a4560ded8a19e3555bc0c19c4a9a036ef980133c86f807567 - Sigstore transparency entry: 1803276743
- Sigstore integration time:
-
Permalink:
aleph-sim/aleph@0dda7782af90add4627439cb2bf74365ece25006 -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/aleph-sim
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@0dda7782af90add4627439cb2bf74365ece25006 -
Trigger Event:
release
-
Statement type: