pyquantumclifford
Thin Python wrapper for QuantumClifford.jl and QuantumClifford.ECC using the JuliaPy stack.
Supports extremely fast Stabilizer state simulations, weakly non-Clifford dynamics, and generation of many modern quantum error correcting codes.
Instalation
pip install pyquantumclifford
or
uv add pyquantumclifford
On first import the Julia runtime will be downloaded and QuantumClifford.jl will be compiled (optimized for your hardware). This is a slow process, might take around 5 minutes.
Optional: Having juliaup installed in your system (and available in your PATH) makes managing Julia versions much simpler behind the scenes. Consider manually installing juliaup before installing pyquantumclifford. The install command is curl -fsSL https://install.julialang.org | sh for a selfcontained install in ~/.julia that you can delete at any time.
Usage
import numpy as np
from pyquantumclifford import QuantumClifford, ECC
# Optional, for calling arbitrary Julia code
from juliacall import Main as jl
# Simple ECC code
code = ECC.Shor9()
# Access parity checks and matrices
ECC.parity_checks(ECC.Shor9())
ECC.parity_matrix(ECC.Shor9())
np.array(ECC.parity_matrix(ECC.Shor9()))
Notes
- Windows is not supported due to the Oscar computer algebra system being unavailable on it. Use WSL on Windows.
juliacallprovides access to Julia modules from Python.
Metadata
Release files for pyquantumclifford 0.10.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pyquantumclifford-0.10.1.tar.gz | 1.8 kB | Without provenance | Details for pyquantumclifford-0.10.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyquantumclifford-0.10.1-py3-none-any.whl | Python 3 | none | any | Details for pyquantumclifford-0.10.1-py3-none-any.whl |
Total release size: 4.7 kB
Release files / pyquantumclifford-0.10.1.tar.gz
| Download URL | pyquantumclifford-0.10.1.tar.gz |
|---|---|
| Size | 1.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7e8b49afc97da85441d29cd2325a9a5a857245b4a1d6d195ad78a4268c081adc
|
|
BLAKE2b-256 checksum How to use checksums |
bde03ae95e3f8c326bcce778d3bfa9b4430b8e3301c13964bdb20f7ac0725f1c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.21 {"installer":{"name":"uv","version":"0.9.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Arch Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / pyquantumclifford-0.10.1-py3-none-any.whl
| Download URL | pyquantumclifford-0.10.1-py3-none-any.whl |
|---|---|
| Size | 2.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f8609023ead0b6f250fa39901b3aa9204eb980238f29422bf3f2a9a558da5b73
|
|
BLAKE2b-256 checksum How to use checksums |
bed17e58c35169b622cacae1a973d7fbf040a84c5fb55a42adf837d3600a6716
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.21 {"installer":{"name":"uv","version":"0.9.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Arch Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for pyquantumclifford 0.10.1
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.