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.
Metadata
Release files for scpn-quantum-engine 0.2.0
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 | |
|---|---|---|---|---|
| scpn_quantum_engine-0.2.0.tar.gz | 217.5 kB | With provenance | Details |
Built distributions (wheels)
| File | Reset | |||
|---|---|---|---|---|
| scpn_quantum_engine-0.2.0-cp312-cp312-win_amd64.whl | CPython 3.12 | CPython 3.12 | Windows x86-64 | Details |
| scpn_quantum_engine-0.2.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl | CPython 3.12 | CPython 3.12 | Linux glibc 2.17+ x86-64 | Details |
| scpn_quantum_engine-0.2.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl | CPython 3.12 | CPython 3.12 | Linux glibc 2.17+ ARM64 | Details |
| scpn_quantum_engine-0.2.0-cp312-cp312-macosx_11_0_arm64.whl | CPython 3.12 | CPython 3.12 | macOS 11.0+ ARM64 | Details |
| scpn_quantum_engine-0.2.0-cp312-cp312-macosx_10_12_x86_64.whl | CPython 3.12 | CPython 3.12 | macOS 10.12+ x86-64 | Details |
Total release size: 5.6 MB
Release files / scpn_quantum_engine-0.2.0.tar.gz
| Download URL | scpn_quantum_engine-0.2.0.tar.gz |
|---|---|
| Size | 217.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a92008a799596e84c8b7ae188649ba30c2c9fabe32caa424336992cea54c2b20
|
|
BLAKE2b-256 checksum How to use checksums |
9adddd91401c10cc827e4c618461260724e699e46c598e94fdfb189fd7cabec9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 16, 2026.
Transparency logRelease files / scpn_quantum_engine-0.2.0-cp312-cp312-win_amd64.whl
| Download URL | scpn_quantum_engine-0.2.0-cp312-cp312-win_amd64.whl |
|---|---|
| Size | 1.1 MB |
| Tags | CPython 3.12 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
b41f7f81ec3061e88c6f1c8f7db322db70616ec03fcf9c9691af4964ddb307f6
|
|
BLAKE2b-256 checksum How to use checksums |
518d68fb7804dda568a454151a2d2561d08a010394c8252d7ff54d7d092b9ff0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 16, 2026.
Transparency logRelease files / scpn_quantum_engine-0.2.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | scpn_quantum_engine-0.2.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 1.1 MB |
| Tags | CPython 3.12 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
86869eeb7991ec9c8801484aa60b12aa4ca3a880a94375fc0dc59e60b7da8e69
|
|
BLAKE2b-256 checksum How to use checksums |
f47000c851a1e860440ff048c54844ef777712e36788fcc978e9a0f133764538
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 16, 2026.
Transparency logRelease files / scpn_quantum_engine-0.2.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
| Download URL | scpn_quantum_engine-0.2.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl |
|---|---|
| Size | 1.0 MB |
| Tags | CPython 3.12 Linux glibc 2.17+ ARM64 |
|
SHA-256 checksum How to use checksums |
eaf877354399c069e663aec0a740f31244d894b6d0e4344cadeb3f00553d3bb7
|
|
BLAKE2b-256 checksum How to use checksums |
87f2d5c16a84f3af05a8d3d3b6aed2f0ee1a7d780ca6baf04def5790bca57307
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 16, 2026.
Transparency logRelease files / scpn_quantum_engine-0.2.0-cp312-cp312-macosx_11_0_arm64.whl
| Download URL | scpn_quantum_engine-0.2.0-cp312-cp312-macosx_11_0_arm64.whl |
|---|---|
| Size | 1.0 MB |
| Tags | CPython 3.12 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
10bb618b778fcb5e6d13d349205757edc901b52b6986447738afb696403913fc
|
|
BLAKE2b-256 checksum How to use checksums |
90f83f556dadf9b6ed4e83e7521b0f1298a385bbd735e823e6001670acca9c3e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 16, 2026.
Transparency logRelease files / scpn_quantum_engine-0.2.0-cp312-cp312-macosx_10_12_x86_64.whl
| Download URL | scpn_quantum_engine-0.2.0-cp312-cp312-macosx_10_12_x86_64.whl |
|---|---|
| Size | 1.1 MB |
| Tags | CPython 3.12 macOS 10.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
9ebc7f78c0b7f86aba2bbef6d82ab4d184b7df78a2f97ba33b63bcc5c0604b70
|
|
BLAKE2b-256 checksum How to use checksums |
8b00d34bac3a2d9f44c7536f61558099f0d46ccc4c39ad771304dfcbfbba22b8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 16, 2026.
Transparency logSecurity for scpn-quantum-engine 0.2.0
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.
Full provenance
All 6 files in this release have been uploaded with provenance metadata.
Attestation for scpn_quantum_engine-0.2.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 16, 2026.
Transparency logA 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.