Skip to main content

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, configured Python dispatchers can select an admitted native path. Required-native requests reject missing exports; optional fallback follows the individual consumer's policy.

Installation

The wheel declares scpn-quantum-control>=1.1.0 as a runtime dependency. Hamiltonian calls require a control build containing the shared execution-memory policy. For source development, install the control and engine builds from the same checkout; a dependency version alone does not establish kernel parity.

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_nm construction, 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. Missing optional exports may select the configured Python path. An explicit Rust request or failure of an admitted native dense-Hamiltonian dispatch propagates; it does not silently recompute with another backend.

Direct dense and sparse XY Hamiltonian calls check native dimension/byte arithmetic, then use the installed control package's shared memory reservation. The policy package must be importable. Output vectors use fallible allocation, inherit active owner deadlines/cancellation and recheck lifecycle during basis iteration and before return. Native output charges add to enclosing declarations; inputs must remain unchanged during construction. Nonfinite constructed output refuses. See resource admission and the required installed-engine cases in tests/test_hamiltonian_native.py. Build, numerical parity and performance qualification apply to the exact source being distributed.

Licence

AGPL-3.0-or-later; a commercial licence is available. See the repository root for licence terms and contact details.

The browser replay kernel applies a 64 MiB product ceiling to cumulative declared storage for each call. Owned input/output copies, parser metadata, replay tables and numerical requests share that charge; an explicit Rust caller may tighten it with replay_value_and_gradient_with_memory_budget. This is a policy ceiling, not observed browser capacity or a memory reservation. Parent admission remains binding, allocation failures refuse, and a refused FFI call leaves output bytes unchanged. Independent subsequent calls start with a fresh charge.

Metadata

Release files for scpn-quantum-engine 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for scpn-quantum-engine 0.3.0
File Size Uploaded Provenance Actions
scpn_quantum_engine-0.3.0.tar.gz 311.2 kB With provenance Details for scpn_quantum_engine-0.3.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for scpn-quantum-engine 0.3.0
File Actions
scpn_quantum_engine-0.3.0-cp312-cp312-win_amd64.whl CPython 3.12 CPython 3.12 Windows x86-64 Details for scpn_quantum_engine-0.3.0-cp312-cp312-win_amd64.whl
scpn_quantum_engine-0.3.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 for scpn_quantum_engine-0.3.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
scpn_quantum_engine-0.3.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl CPython 3.12 CPython 3.12 Linux glibc 2.17+ ARM64 Details for scpn_quantum_engine-0.3.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
scpn_quantum_engine-0.3.0-cp312-cp312-macosx_11_0_arm64.whl CPython 3.12 CPython 3.12 macOS 11.0+ ARM64 Details for scpn_quantum_engine-0.3.0-cp312-cp312-macosx_11_0_arm64.whl
scpn_quantum_engine-0.3.0-cp312-cp312-macosx_10_12_x86_64.whl CPython 3.12 CPython 3.12 macOS 10.12+ x86-64 Details for scpn_quantum_engine-0.3.0-cp312-cp312-macosx_10_12_x86_64.whl

Total release size: 6.2 MB

Release files / scpn_quantum_engine-0.3.0.tar.gz

Download URL scpn_quantum_engine-0.3.0.tar.gz
Size 311.2 kB
Tags Source
SHA-256 checksum
How to use checksums
648da8f33997663ce879aa2f6af36a043641778ba1987db981d87df67b2e7c6f
BLAKE2b-256 checksum
How to use checksums
e0e51d259248178fa6fde669d401bcb05f285282bc0727801a986ee50791a4bd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Oct 29, 2026.

Transparency log

Release files / scpn_quantum_engine-0.3.0-cp312-cp312-win_amd64.whl

Download URL scpn_quantum_engine-0.3.0-cp312-cp312-win_amd64.whl
Size 1.2 MB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
21f42108b11ae530b6e1fdad568d342fdba9d5cdcd2a502cd94c95817fb9fcef
BLAKE2b-256 checksum
How to use checksums
81633ddca63a656deadd4688af6095bb421c92c3cde1dc75da3c31588601b966
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Oct 29, 2026.

Transparency log

Release files / scpn_quantum_engine-0.3.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL scpn_quantum_engine-0.3.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 1.3 MB
Tags CPython 3.12 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
e1de9daa61addbdd4db97d61ee8045be2f9767fb2bc87a83e62ac6fd70ec7d28
BLAKE2b-256 checksum
How to use checksums
fa00cb60c3f11fad88f74c3c64e5a105103efc8053986032be409a5b7d5cab64
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Oct 29, 2026.

Transparency log

Release files / scpn_quantum_engine-0.3.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL scpn_quantum_engine-0.3.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 1.2 MB
Tags CPython 3.12 Linux glibc 2.17+ ARM64
SHA-256 checksum
How to use checksums
00f74eddf06e441495bfc964636f7d8cde0c84f2f26488f22480dee67add8d08
BLAKE2b-256 checksum
How to use checksums
569e9a6ffcbc52a141b81f199db9c67b9b5b5054af15339af1be20ee10c9a3cf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Oct 29, 2026.

Transparency log

Release files / scpn_quantum_engine-0.3.0-cp312-cp312-macosx_11_0_arm64.whl

Download URL scpn_quantum_engine-0.3.0-cp312-cp312-macosx_11_0_arm64.whl
Size 1.1 MB
Tags CPython 3.12 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
5c8dfd16bf1061cc43bf62be44122d85d3d9d276a2663c78f2edd630b2da51b0
BLAKE2b-256 checksum
How to use checksums
dcb5e89ff2407999e656806e57a1efc395c5127ec088d7ba1cd243725976f6c6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Oct 29, 2026.

Transparency log

Release files / scpn_quantum_engine-0.3.0-cp312-cp312-macosx_10_12_x86_64.whl

Download URL scpn_quantum_engine-0.3.0-cp312-cp312-macosx_10_12_x86_64.whl
Size 1.2 MB
Tags CPython 3.12 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
de7e8351832b46c4d61530c425d5274a4fd8f53b4ee880d0096d63a4a14449e7
BLAKE2b-256 checksum
How to use checksums
811ef467e8a86bd5ecc3415683c3ba5f2a917a453ebf8681adf716b648b74f56
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Oct 29, 2026.

Transparency log

Security for scpn-quantum-engine 0.3.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.

Select from 6 files

Attestation for scpn_quantum_engine-0.3.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 Oct 29, 2026.

Transparency log

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.

Release history Release notifications | RSS feed

This release

0.3.0 This release

6 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page