Rust acceleration engine for scpn-quantum-control (PyO3 + rayon)
Project description
scpn-quantum-engine
Rust acceleration engine for scpn-quantum-control, built with PyO3 and rayon.
The engine is an optional native extension. Every routine it exports has a
pure-Python (NumPy/Qiskit) fallback in scpn-quantum-control, so the library
runs correctly whether or not this extension is installed. When the extension is
present, the Python dispatchers prefer the native path and fall back silently if
a given export is unavailable.
Installation
The wheel is built from this directory with maturin:
# Build a release wheel
maturin build --release --out dist
# Or build and install into the active environment in one step
maturin develop --release
The native module imports as scpn_quantum_engine:
import scpn_quantum_engine as engine
engine.order_parameter(...) # Kuramoto order parameter
engine.feedback_policy_batch(...) # real-time feedback policy
engine.all_xy_expectations(...) # transverse Pauli expectations
Accelerated routines
The extension exports native kernels grouped by subsystem; each mirrors a
Python reference and is checked for parity in the
scpn-quantum-control test suite (tests/test_rust_ffi_validation.py,
tests/test_rust_new_functions.py):
- Kuramoto dynamics — Euler/trajectory integration, order parameter.
- Coupling graphs —
K_nmconstruction, analog and hybrid coupling terms. - Spectral and sector analysis — Koopman generator, magnetisation sectors, correlation matrices, OTOC, Lanczos coefficients, symmetry-decay fits.
- Pauli and Lindblad operators — fast expectation values, sparse order parameter, jump-operator assembly.
- Real-time feedback — batched feedback policy, sub-microsecond jitter tracking, closed-loop replay.
- Error mitigation and QEC — PEC coefficients and sampling, DLA protected subspace metrics.
- Cryptography and entropy — ML-DSA NTT/INTT, NIST SP 800-22 statistics (monobit, runs, longest-run, Berlekamp–Massey).
- Compiler autodiff primitives — value/JVP/VJP kernels for the linear algebra used by the differentiable compiler.
The canonical, generated catalogue is published at https://anulum.github.io/scpn-quantum-control/rust_engine/.
Parity and fallback contract
The native kernels are bit-for-bit or tolerance-matched against their Python references. The Python side never requires the extension: a missing build, a missing export, or a native error all resolve to the NumPy/Qiskit fallback.
Licence
AGPL-3.0-or-later; a commercial licence is available. See the repository root for licence terms and contact details.
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 Distribution
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 scpn_quantum_engine-0.2.0.tar.gz.
File metadata
- Download URL: scpn_quantum_engine-0.2.0.tar.gz
- Upload date:
- Size: 217.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a92008a799596e84c8b7ae188649ba30c2c9fabe32caa424336992cea54c2b20
|
|
| MD5 |
919c965af8dfb362f8adbcea8324612a
|
|
| BLAKE2b-256 |
9adddd91401c10cc827e4c618461260724e699e46c598e94fdfb189fd7cabec9
|
Provenance
The following attestation bundles were made for scpn_quantum_engine-0.2.0.tar.gz:
Publisher:
rust-wheels.yml on anulum/scpn-quantum-control
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
scpn_quantum_engine-0.2.0.tar.gz -
Subject digest:
a92008a799596e84c8b7ae188649ba30c2c9fabe32caa424336992cea54c2b20 - Sigstore transparency entry: 2187378387
- Sigstore integration time:
-
Permalink:
anulum/scpn-quantum-control@748bbc257627743ef022f9fccd53eaa26293b09b -
Branch / Tag:
refs/tags/engine-v0.2.0 - Owner: https://github.com/anulum
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
rust-wheels.yml@748bbc257627743ef022f9fccd53eaa26293b09b -
Trigger Event:
push
-
Statement type:
File details
Details for the file scpn_quantum_engine-0.2.0-cp312-cp312-win_amd64.whl.
File metadata
- Download URL: scpn_quantum_engine-0.2.0-cp312-cp312-win_amd64.whl
- Upload date:
- Size: 1.1 MB
- Tags: CPython 3.12, Windows x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b41f7f81ec3061e88c6f1c8f7db322db70616ec03fcf9c9691af4964ddb307f6
|
|
| MD5 |
d3f4827a190fec125b9aab1b613c7e9e
|
|
| BLAKE2b-256 |
518d68fb7804dda568a454151a2d2561d08a010394c8252d7ff54d7d092b9ff0
|
Provenance
The following attestation bundles were made for scpn_quantum_engine-0.2.0-cp312-cp312-win_amd64.whl:
Publisher:
rust-wheels.yml on anulum/scpn-quantum-control
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
scpn_quantum_engine-0.2.0-cp312-cp312-win_amd64.whl -
Subject digest:
b41f7f81ec3061e88c6f1c8f7db322db70616ec03fcf9c9691af4964ddb307f6 - Sigstore transparency entry: 2187378424
- Sigstore integration time:
-
Permalink:
anulum/scpn-quantum-control@748bbc257627743ef022f9fccd53eaa26293b09b -
Branch / Tag:
refs/tags/engine-v0.2.0 - Owner: https://github.com/anulum
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
rust-wheels.yml@748bbc257627743ef022f9fccd53eaa26293b09b -
Trigger Event:
push
-
Statement type:
File details
Details for the file scpn_quantum_engine-0.2.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: scpn_quantum_engine-0.2.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 1.1 MB
- Tags: CPython 3.12, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
86869eeb7991ec9c8801484aa60b12aa4ca3a880a94375fc0dc59e60b7da8e69
|
|
| MD5 |
c8935747d888f63add9549ed4a1178df
|
|
| BLAKE2b-256 |
f47000c851a1e860440ff048c54844ef777712e36788fcc978e9a0f133764538
|
Provenance
The following attestation bundles were made for scpn_quantum_engine-0.2.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:
Publisher:
rust-wheels.yml on anulum/scpn-quantum-control
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
scpn_quantum_engine-0.2.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl -
Subject digest:
86869eeb7991ec9c8801484aa60b12aa4ca3a880a94375fc0dc59e60b7da8e69 - Sigstore transparency entry: 2187378393
- Sigstore integration time:
-
Permalink:
anulum/scpn-quantum-control@748bbc257627743ef022f9fccd53eaa26293b09b -
Branch / Tag:
refs/tags/engine-v0.2.0 - Owner: https://github.com/anulum
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
rust-wheels.yml@748bbc257627743ef022f9fccd53eaa26293b09b -
Trigger Event:
push
-
Statement type:
File details
Details for the file scpn_quantum_engine-0.2.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.
File metadata
- Download URL: scpn_quantum_engine-0.2.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
- Upload date:
- Size: 1.0 MB
- Tags: CPython 3.12, manylinux: glibc 2.17+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eaf877354399c069e663aec0a740f31244d894b6d0e4344cadeb3f00553d3bb7
|
|
| MD5 |
aef9e648ae45ca56d5389018649d2633
|
|
| BLAKE2b-256 |
87f2d5c16a84f3af05a8d3d3b6aed2f0ee1a7d780ca6baf04def5790bca57307
|
Provenance
The following attestation bundles were made for scpn_quantum_engine-0.2.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl:
Publisher:
rust-wheels.yml on anulum/scpn-quantum-control
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
scpn_quantum_engine-0.2.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl -
Subject digest:
eaf877354399c069e663aec0a740f31244d894b6d0e4344cadeb3f00553d3bb7 - Sigstore transparency entry: 2187378420
- Sigstore integration time:
-
Permalink:
anulum/scpn-quantum-control@748bbc257627743ef022f9fccd53eaa26293b09b -
Branch / Tag:
refs/tags/engine-v0.2.0 - Owner: https://github.com/anulum
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
rust-wheels.yml@748bbc257627743ef022f9fccd53eaa26293b09b -
Trigger Event:
push
-
Statement type:
File details
Details for the file scpn_quantum_engine-0.2.0-cp312-cp312-macosx_11_0_arm64.whl.
File metadata
- Download URL: scpn_quantum_engine-0.2.0-cp312-cp312-macosx_11_0_arm64.whl
- Upload date:
- Size: 1.0 MB
- Tags: CPython 3.12, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
10bb618b778fcb5e6d13d349205757edc901b52b6986447738afb696403913fc
|
|
| MD5 |
8bf0e5161975a7a4959ba6c74d261035
|
|
| BLAKE2b-256 |
90f83f556dadf9b6ed4e83e7521b0f1298a385bbd735e823e6001670acca9c3e
|
Provenance
The following attestation bundles were made for scpn_quantum_engine-0.2.0-cp312-cp312-macosx_11_0_arm64.whl:
Publisher:
rust-wheels.yml on anulum/scpn-quantum-control
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
scpn_quantum_engine-0.2.0-cp312-cp312-macosx_11_0_arm64.whl -
Subject digest:
10bb618b778fcb5e6d13d349205757edc901b52b6986447738afb696403913fc - Sigstore transparency entry: 2187378430
- Sigstore integration time:
-
Permalink:
anulum/scpn-quantum-control@748bbc257627743ef022f9fccd53eaa26293b09b -
Branch / Tag:
refs/tags/engine-v0.2.0 - Owner: https://github.com/anulum
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
rust-wheels.yml@748bbc257627743ef022f9fccd53eaa26293b09b -
Trigger Event:
push
-
Statement type:
File details
Details for the file scpn_quantum_engine-0.2.0-cp312-cp312-macosx_10_12_x86_64.whl.
File metadata
- Download URL: scpn_quantum_engine-0.2.0-cp312-cp312-macosx_10_12_x86_64.whl
- Upload date:
- Size: 1.1 MB
- Tags: CPython 3.12, macOS 10.12+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9ebc7f78c0b7f86aba2bbef6d82ab4d184b7df78a2f97ba33b63bcc5c0604b70
|
|
| MD5 |
1d930fee3615da8870d3b7d25e44ab59
|
|
| BLAKE2b-256 |
8b00d34bac3a2d9f44c7536f61558099f0d46ccc4c39ad771304dfcbfbba22b8
|
Provenance
The following attestation bundles were made for scpn_quantum_engine-0.2.0-cp312-cp312-macosx_10_12_x86_64.whl:
Publisher:
rust-wheels.yml on anulum/scpn-quantum-control
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
scpn_quantum_engine-0.2.0-cp312-cp312-macosx_10_12_x86_64.whl -
Subject digest:
9ebc7f78c0b7f86aba2bbef6d82ab4d184b7df78a2f97ba33b63bcc5c0604b70 - Sigstore transparency entry: 2187378413
- Sigstore integration time:
-
Permalink:
anulum/scpn-quantum-control@748bbc257627743ef022f9fccd53eaa26293b09b -
Branch / Tag:
refs/tags/engine-v0.2.0 - Owner: https://github.com/anulum
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
rust-wheels.yml@748bbc257627743ef022f9fccd53eaa26293b09b -
Trigger Event:
push
-
Statement type: