scpn-quantum-control

June 15, 2026 · View on GitHub

header

CI codecov License: AGPL-3.0 Python 3.10+ Qiskit 2.2+ Website Docs OpenSSF Best Practices OpenSSF Scorecard Ruff mypy Tests PyPI PyPI Downloads All-time Downloads DOI Hardware: ibm_kingston Open In Colab

Active Development — scpn-quantum-control is under intensive development. The public status wording is anchored to the Hardware Status Ledger, which separates theory, simulator, unmitigated hardware, mitigated hardware, and noise-limited claims. Current promoted hardware evidence is narrowed to artefact-backed ibm_fez baseline rows, the April/May 2026 ibm_kingston DLA parity raw-count datasets, and the May 2026 SCPN/FIM falsification artefacts. Stable core contracts and backend capability artefacts are now part of release/repro hardening and are kept separate from non-artefact scientific claims. APIs may evolve as this work progresses.

Version: 0.9.12 Status: Kuramoto-XY compiler + hardware runners + analysis stack + bounded differentiable-programming surface | generated capability inventory below | CI coverage gate 91.5% | IBM Heron r2 evidence ledgered

What this repository is for

scpn-quantum-control is an evidence-governed workbench for turning coupled-oscillator models into quantum-control experiments, simulator studies, gradient-bearing optimisation loops, and auditable hardware-result packages. It is for teams that need a repeatable path from a physical model to a result that can be reviewed, reproduced, cited, or used in an application pilot.

If your team needs reproducible research or product-grade experimentation, the repository provides:

  • a stable route from K_nm/omega problem definitions to simulators;
  • deterministic artefact-led evidence for method claims;
  • bounded optimisation and differentiable-programming surfaces for training, verification, and convergence analysis;
  • hardware campaign management that separates committed raw-count rows from simulator and scoped-failure classes.

It is positioned for use-cases where decision quality depends on evidence: engineering teams that need a consistent pathway from model specification to observable contracts, and research teams that need explicit failure modes rather than implied coverage.

What you can do first

NeedFirst pathOutput
Understand the softwareOnboarding -> QuickstartA small local Kuramoto-XY run and a clear claim boundary.
Bring your own coupled systemPhysics-First Kuramoto-XYA validated K_nm/omega problem compiled to simulator-ready quantum objects.
Train or inspect gradientsDifferentiable Programming -> Quantum GradientsExact, finite-shot, framework-comparison, or fail-closed gradient evidence.
Review hardware claimsHardware Status Ledger -> Hardware Result PacksRaw-count-backed evidence or an explicit blocked promotion route.
Evaluate adoptionAPI Overview -> Release Readiness GateStable integration surfaces, release gates, and licensing boundaries.

Application and commercial value

The practical value is not "quantum black box" experimentation; it is the ability to reduce integration risk while preserving future hardware options. This package is designed for organisations that want to:

  • de-risk algorithm ideas on simulators and strong classical baselines first;
  • compare evidence classes before claiming hardware-level results;
  • standardise proof surfaces (contracts, manifests, and ledgers) across pilots;
  • move between R&D notebooks and integration-friendly stable facades without collapsing into undocumented internal APIs.

Application lanes include synchronisation diagnostics, control prototyping, quantum-algorithm research, hardware campaign governance, gradient-informed optimisation, and evidence packages for due diligence. Commercial value comes from reducing unclear research risk: every promoted result must have a named artefact, every unsupported route fails closed, and closed-source or SaaS use has a defined commercial licensing route.

scpn-quantum-control Capability Inventory

SurfaceCurrent inventory
Package version0.9.12
Public API exports587
Python source modules809
Public Python classes1667
Paper 0 validation modules466
Domain package families28
API documentation pages0
Rust PyO3 function bindings122
Rust source modules30
Notebook files98
Example files23
Optional extras42
Python test files1930
Public documentation pages240
GitHub Actions workflows19

Evidence boundary: this snapshot is a static inventory. Performance, coverage, hardware, and scientific-fidelity claims require their own committed evidence artefacts.


Status Snapshot — 2026-05-18

AreaPublic status
Generic compiler surfacescpn_quantum_control.kuramoto_core validates arbitrary K_nm/omega inputs and compiles Hamiltonians, dense matrices, Trotter circuits, and order-parameter measurements.
Release and reproducibility scopeStable core contracts and backend capability artefacts for Kuramoto-XY synchronisation are included in release/readiness checks and promoted only with deterministic evidence manifests.
Hardware evidenceibm_fez baseline rows are legacy artefact-backed observations; ibm_kingston Phase 1, Phase 2 A+G, Phase 2 B-C, and popcount DLA datasets are promoted with raw-count artefacts. The SCPN/FIM ibm_kingston result is promoted as a negative/falsification result for the tested digital circuit family.
Simulator and methods evidenceBKT, OTOC, Floquet, MBL, FIM, VQE, GPU, tensor-network, and classical comparison claims stay marked as simulator/classical/methods unless a hardware artefact is named. Generated benchmark artefacts are indexed from the benchmark dashboard and reproducibility CLI.
Paper 0 source-validation registerPaper 0 is fully promoted through the source-accounting register: the planner reports 0 remaining work orders and 0 remaining source records after P0R00001-P0R06211. The generated register contains 466 validation modules with colocated specs, fixtures, loaders, and tests; this is source-bounded ingestion, not external validation evidence.
Licence boundaryThe possible lightweight core split is documented, but all in-repository code remains AGPL/commercial unless a future release changes metadata and SPDX headers.

For claim classes, raw-artefact pointers, and promotion rules, see the Hardware Status Ledger.

Plain-Language Summary

scpn-quantum-control turns a coupled-oscillator network into quantum circuits, simulator workflows, hardware-result ledgers, and analysis tools. The first supported physics lane is the Kuramoto-XY mapping: provide a coupling matrix K_nm and oscillator frequencies omega, then compile the matching XY Hamiltonian, run local or provider-backed circuits, measure synchronisation, and compare the result against classical and exact-simulation baselines.

The repository is not only a circuit generator. It also carries the operational surfaces needed to use the software responsibly:

  • stable public facades for notebooks and integrations;
  • Rust acceleration for hot numerical kernels;
  • differentiable-programming kernels for supported scalar, vector, and matrix primitives;
  • no-QPU release gates and hardware-result pack verifiers;
  • source-bounded Paper 0 validation fixtures;
  • claim-boundary documentation that separates simulator, hardware, and open scientific questions.

Who It Is For

UserPrimary valueStart here
Quantum algorithm researcherCompile oscillator networks into XY circuits and inspect synchronisation, entanglement, topology, and control observables.Quickstart, Tutorials
Applied physicist or control engineerConvert domain coupling graphs into reproducible quantum/simulator experiments while retaining classical baselines.Physics-First Kuramoto-XY, Application Benchmark Plugins
Hardware experiment operatorRun or replay provider-backed campaigns only when the evidence ledger, raw counts, and release gates permit the claim.Hardware Guide, Hardware Result Packs
Software integratorUse stable facade APIs instead of binding to internal package layout.Stable Facades API, API Overview
Commercial evaluatorAssess the route from research prototype to product lane: reproducible simulations, hardware-result governance, Rust kernels, and dual licensing.Onboarding, Release Readiness Gate

Application and Commercial Value

The practical value is a disciplined bridge between coupled-system physics, quantum hardware experimentation, and control-facing software:

  • Synchronisation diagnostics: explore where oscillator networks lock, decohere, or separate into sectors.
  • Control prototyping: map power-grid, plasma, EEG/MEG, Josephson-array, and other coupled-system candidates into common K_nm/omega workflows.
  • Hardware evidence management: keep raw-count evidence, simulator output, and open claims separated before public release or paper citation.
  • Differentiable computation: use supported compiler-AD primitives for gradient-bearing scalar, vector, and matrix kernels while unsupported paths fail closed.
  • Gradient-informed quantum optimisation: use the current parameter-shift VQE building blocks and compiler/program-AD kernels as the base for gradient-trained Kuramoto-XY objectives, bounded phase-QNN classifiers, quantum spiking neural networks, and future framework adapters.
  • Bounded phase-QNN and QSNN training now expose structured convergence diagnostics and parameter-shift evaluation accounting through train_parameter_shift_qnn_classifier(...) and QSNNTrainer.train_with_diagnostics(...).
  • The bounded phase-QNN route also exposes its MSE loss, multi-frequency parameter-shift gradient, finite-difference verification, and named external-gradient agreement records through verify_parameter_shift_qnn_classifier_gradient(...).
  • run_parameter_shift_qnn_conformance_suite(...) bundles QNN training, gradient replay, external-gradient agreement hooks, and explicit unsuitable scenario records for reviewer-facing evidence packs.
  • run_parameter_shift_qnn_optimizer_benchmark_suite(...) compares the bounded QNN parameter-shift trainer against finite-difference and deterministic derivative-free baselines as non-isolated functional evidence only.
  • run_parameter_shift_qnn_convergence_suite(...) records deterministic bounded-QNN convergence cases with loss-drop thresholds, accuracy thresholds, parameter-shift evaluation accounting, and unsuitable-scenario records.
  • estimate_parameter_shift_qnn_finite_shot_gradient(...) and run_parameter_shift_qnn_finite_shot_convergence_suite(...) add seeded finite-shot simulator evidence for bounded-QNN gradients and noisy-gradient convergence with shot counts, confidence radii, replay seeds, and explicit non-hardware claim boundaries.
  • verify_parameter_shift_qnn_framework_agreement(...) and run_parameter_shift_qnn_framework_agreement_suite(...) compare bounded QNN parameter-shift gradients with caller-supplied or deterministic framework-style references while explicitly recording that this is not native framework autodiff through simulator kernels.
  • phase_qnode_tape(...) and run_phase_qnode_tape_readiness_suite() add QNode-style differentiable execution records for supported phase objectives, seeded finite-shot replay, and provider-boundary routes that fail closed before hardware submission.
  • PhaseQNodeCircuit, execute_phase_qnode_circuit(...), and parameter_shift_phase_qnode_gradient(...) execute the registered local statevector subset (rx/ry/rz/phase, Pauli Clifford gates, controlled rotations, swap, rxx/ryy/rzz) against Pauli products and sparse weighted Pauli Hamiltonians with structured support reports for blocked routes.
  • run_phase_qnode_framework_parity_suite() runs the same bounded circuit family through SCPN plus installed JAX, PyTorch, TensorFlow, and PennyLane backends, recording value, gradient, dtype/device metadata, and dependency sparse classifications without provider execution.
  • build_pennylane_qnode_from_phase_qnode(...) and check_pennylane_phase_qnode_round_trip(...) generate bounded PennyLane QNodes from registered local PhaseQNodeCircuit declarations and verify value/gradient parity with explicit device, shot, and diff-method metadata.
  • run_phase_qnode_affinity_benchmark(...) records command, affinity, host load, CPU/runtime/dependency metadata, warmups, repetitions, and raw timing rows; evidence is labelled isolated_affinity only when the isolation policy passes, otherwise functional_non_isolated.
  • run_differentiable_model_training_evidence_suite() packages seeded registered QNN, QGNN, QSNN, and Kuramoto-XY local training cases with loss reduction and finite-difference gradient-agreement evidence.
  • execute_phase_qnode_transform(...) and run_phase_qnode_transform_readiness_suite() execute supported scalar local QNode transforms for grad, value_and_grad, hessian, jvp, vjp, jacfwd, and jacrev, while preserving fail-closed vectorized, hardware, and arbitrary-framework boundaries.
  • execute_phase_qnode_vector_jacobian(...), execute_phase_qnode_vmap_grad(...), and run_phase_qnode_vector_transform_readiness_suite() add deterministic native vector-output QNode Jacobians and host-side manual vmap(grad) over scalar parameter-shift objectives. Provider vectorization, framework-native vmap, finite-shot batched gradients, and hardware execution remain fail-closed.
  • execute_provider_qnode_transform(...), execute_provider_qnode_vmap_grad(...), and run_provider_qnode_transform_readiness_suite() connect provider callback expectation samples to QNode transform evidence for grad, value_and_grad, jvp, vjp, scalar jacfwd/jacrev, and manual vmap(grad). Finite-shot provider routes propagate variance and shot metadata; live hardware submission remains policy-gated and fail-closed by default.
  • Product route: AGPL use is available for open research; proprietary deployment uses the commercial licence route described below.

Open boundaries remain explicit: the package does not claim broad quantum advantage, clinical validation, or externally validated SCPN biology. It provides a reproducible computational workbench and the governance required to promote claims only when the evidence exists.

Why Teams Would Adopt It

The package is useful when a team needs a single accountable route from a coupled-system model to quantum-control evidence:

NeedWhat the repository suppliesBoundary to respect
Turn oscillator data into quantum experimentsK_nm/omega validation, XY Hamiltonians, circuits, and local execution paths.The mapping is a quantum XY analogue of synchronisation dynamics, not a proof of nonlinear classical equivalence for every system.
Optimise trainable objectivesParameter-shift VQE, composed phase objectives, gradient certificates, and supported compiler/program-AD kernels.Unsupported gates, adapters, backends, shapes, and transform nests fail closed.
Compare simulators, hardware, and papersRaw-count ledgers, result packs, no-QPU gates, benchmark manifests, and reproducibility docs.Claims must cite committed evidence artefacts; simulator output is not hardware validation.
Prepare a product or research integrationStable facades, provider capability records, Rust acceleration hooks, API docs, tutorials, and licence boundary text.Closed-source network services or embedded products need the commercial licence route.

Market-facing applications include quantum-control prototyping, power-grid and plasma synchronisation studies, EEG/MEG rhythm modelling under non-clinical claim limits, quantum-hardware campaign governance, gradient-informed VQE/QNN research, and reproducible benchmark publication.

Differentiable Programming Route

The differentiable-programming lane is now documented as a first-path product surface because gradient evidence is central to quantum optimisation, machine learning integration, and control. The bounded Phase-QNode promotion state is SOTA-candidate until the claim ledger, external comparison rows, and isolated CI benchmark artefacts all pass:

LayerCurrent statusWhere to start
Quantum parameter-shiftSupported through scpn_quantum_control.phase.param_shift for callable expectation objectives, structured PhaseVQE gradients, and local gradient-descent VQE examples.Quantum Gradients, Variational Methods
Program and compiler ADSupported for registered scalar, vector, and matrix primitives with native lowering reports and fail-closed unsupported boundaries.Differentiable Programming, Differentiable API
Gradient support matrixExecutable support planning now covers registered gates, observables, backends, transforms, and ML/provider adapters with explicit blocked reasons and alternatives.Quantum Gradients, Differentiable API
Unified readiness ledgerrun_differentiable_readiness_audit() aggregates the support matrix, transform nesting, QNode tape/transform suites, provider gradients, hardware policy, and provider hardware-preparation audit into one reviewer-facing pass/fail ledger.Differentiable Programming, Differentiable API
Transform nesting governanceExecutable planning now separates supported local grad, value_and_grad, hessian, nested-grad, tape, scalar jvp, scalar vjp, scalar jacfwd, scalar jacrev, vector-output native Jacobian execution, native manual vmap(grad), and provider-callback QNode transforms from blocked framework-vectorized, adapter-nested, finite-shot curvature, malformed-provider, and hardware nesting routes.Quantum Gradients, Differentiable API
Provider-gradient readinessExecutable audit evidence distinguishes deterministic callbacks, finite-shot callbacks, multi-frequency rules, hardware-blocked routes, unknown backends, malformed finite-shot samples, and policy-bound hardware-preparation records.Quantum Gradients, Differentiable API
Hardware-gradient policy readinessExecutable dry-run policy decisions now gate hardware-gradient preparation by provider/backend allowlist, shot budget, required evidence IDs, and live-execution ticket status. prepare_provider_hardware_parameter_shift_gradient(...) packages that approval into provider-preparation evidence, and run_provider_hardware_gradient_preparation_audit() verifies supported and blocked preparation routes without submitting QPU jobs.Quantum Gradients, Differentiable API
Differentiable claim ledgerThe Phase-QNode evidence ledger maps implementation, tests, artefact IDs, documentation, known gaps, and promotion status; no promoted claim is accepted without an artefact ID.Differentiable Programming, Claim Ledger
Bounded phase-QNN trainingA deterministic data-reuploading binary classifier is available through train_parameter_shift_qnn_classifier(...) with multi-frequency parameter-shift descent, prediction evidence, accuracy, convergence certificates, finite-difference gradient verification, seeded finite-shot gradient uncertainty and noisy-convergence evidence, optional named external-gradient agreement records, a conformance suite with unsuitable-scenario evidence, deterministic convergence suites, non-isolated optimizer-baseline comparisons, and caller-supplied framework-gradient agreement checks.Quantum Gradients, Differentiable API
Registered Phase-QNode familyLocal statevector execution, parameter-shift gradients, framework parity rows, verified SCPN MLIR-runtime lowering adapters, and isolated-affinity benchmark metadata are available for the declared gate/observable subset. Unsupported gates, dynamic/provider paths, native LLVM/JIT lowering, interpreter fallback success, and unregistered observables fail closed with support reports.Differentiable API, Benchmark Harness
ML framework and tape roadmapGradient tape, QNode-style tape records, backend gradient planning, provider-safe callback execution with shot/variance accounting, convergence certificates, optional JAX host-callback parameter-shift interop, PennyLane gradient-agreement checks, PyTorch/TensorFlow host-boundary tensor bridges, and bounded framework parity rows are available. Full provider-backed QNode migration bridges and arbitrary architectures remain staged surfaces, not yet advertised as production-complete.Differentiable Roadmap

This matters commercially because optimisation users do not only need circuits. They need gradients, convergence evidence, framework interop, reproducible benchmarks, and clear failure modes. The SCPN route aims to combine Kuramoto-XY physics, quantum-control objectives, hardware-result governance, and compiler-backed AD under one support matrix.

The first production-grade differentiable workflows are deliberately bounded:

  1. train small VQE objectives with parameter-shift gradients through PhaseVQE.solve(gradient_method="parameter_shift");
  2. verify gradients against finite differences and analytic references through verify_parameter_shift_gradient(...) and verify_vqe_parameter_shift_gradient(...);
  3. train bounded phase-QNN classifiers through train_parameter_shift_qnn_classifier(...), verify their QNN-specific gradients through verify_parameter_shift_qnn_classifier_gradient(...), record seeded finite-shot uncertainty through estimate_parameter_shift_qnn_finite_shot_gradient(...), package evidence with run_parameter_shift_qnn_conformance_suite(...), certify deterministic local convergence with run_parameter_shift_qnn_convergence_suite(...), replay seeded finite-shot convergence with run_parameter_shift_qnn_finite_shot_convergence_suite(...), compare local optimizer baselines with run_parameter_shift_qnn_optimizer_benchmark_suite(...), and record caller-supplied framework-gradient agreement with verify_parameter_shift_qnn_framework_agreement(...);
  4. execute registered local Phase-QNode circuits with execute_phase_qnode_circuit(...), compare installed framework parity with run_phase_qnode_framework_parity_suite(), and lower supported subsets to textual MLIR metadata with lower_phase_qnode_circuit_to_mlir(...);
  5. use compiler/program-AD kernels for supported classical objectives;
  6. evaluate hardware-gradient preparation with evaluate_hardware_gradient_policy(...) and run_hardware_gradient_policy_readiness_suite() before any provider job is prepared;
  7. summarize the focused readiness suites with run_differentiable_readiness_audit();
  8. document unsupported gates, backends, shapes, and dynamic program paths before they can mislead users.

Future releases will extend this route toward native framework gradients beyond the current host-boundary JAX/PyTorch/TensorFlow bridges, full PennyLane/Qiskit migration bridges beyond agreement checks, quantum neural networks, analog oscillator mappings, open-system gradients, benchmark leaderboards, and real-time feedback control.

Richer Presentation

For a richer presentation of the Phase 1 hardware results, methodology deep-dives, interactive plots, and architecture diagrams, see the project website:

anulum.li/scpn-quantum-control

Direct entry points:

  • Onboarding — what the project is, who should use it, what is mature, and what remains claim-bound
  • Hardware Status Ledger — claim classes, campaign evidence paths, and publication hygiene rules
  • Hardware Result Packs — offline manifest and integrity verifier for promoted IBM raw-count datasets
  • Physics-First Kuramoto-XY — start from arbitrary oscillator networks before SCPN-specific layers
  • Differentiable Programming — current AD surface, support boundaries, and user routes
  • Quantum Gradients — parameter-shift, VQE gradients, verification tests, and planned backend gradient planner
  • Differentiable API — public scpn_quantum_control.differentiable reference and usage map
  • Differentiable Roadmap — staged plan for tape, framework adapters, QNN/QGNN/QSNN, analog mapping, benchmarks, verification, and dashboards
  • Stable Facades API — mkdocstrings reference for first-path public facades
  • Paper 0 Validation Register — source-accounting register status, claim boundary, and generated API contract for Paper 0 ingestion
  • Phase 1 Results — raw-count reproduction of the DLA parity asymmetry on ibm_kingston, April 2026, with full Welch table and interactive Plotly plot
  • Reproducibility Manifest — per-commit pinning, IBM job IDs, dependency constraints, rerun protocol
  • Method: GUESS Mitigation — symmetry-guided ZNE, shot-budget-free for the XY Hamiltonian
  • Method: DLA Parity Theoremsu(2n1)su(2n1)\mathfrak{su}(2^{n-1}) \oplus \mathfrak{su}(2^{n-1}) decomposition and hardware reproduction path
  • Method: Pulse Shaping — ICI three-level (1,665× Rust) and (α, β)-hypergeometric (44× Rust)
  • The Science — plain-language primer on SCPN, Kuramoto-XY, and why the DLA parity result matters
  • Methods Benchmark Dashboard — generated Rust/VQE, GPU, tensor-network, FIM, and reproducibility artefact index
  • Roadmap — canonical active work queue and completed release-safety tasks

Quick Start

pip install scpn-quantum-control
import numpy as np
from scpn_quantum_control.phase.xy_kuramoto import QuantumKuramotoSolver

# 8 oscillators, exponential-decay coupling, heterogeneous frequencies
N = 8
K = 0.5 * np.exp(-0.3 * np.abs(np.subtract.outer(range(N), range(N))))
omega = np.linspace(0.8, 1.2, N)

# Simulate: Trotter evolution → order parameter R(t)
solver = QuantumKuramotoSolver(N, K, omega)
result = solver.run(t_max=1.0, dt=0.1)
print(f"Final R = {result['R'][-1]:.3f}")
# → R rises from ~0.3 (incoherent) toward 1.0 (synchronised)

No IBM credentials needed — runs on local statevector simulator. Pass any coupling matrix; the built-in SCPN benchmark is just one example.


What This Package Does

A Kuramoto-XY compiler and hardware-evidence workbench for heterogeneous coupled oscillators. The repository contains legacy ibm_fez baseline artefacts, promoted ibm_kingston DLA parity datasets, and SCPN/FIM falsification artefacts with raw counts, job IDs, integrity checks, and count-to-statistic reproduction harnesses.

The package provides:

  1. A Kuramoto-to-quantum compiler — any coupling matrix K_nm and natural frequencies omega compile directly into executable Qiskit circuits for IBM hardware. Rust-accelerated Hamiltonian construction (5,401× faster than Qiskit).

  2. Tracked research module families probing the synchronisation phase transition — synchronisation witnesses, OTOC scrambling, Krylov complexity, persistent homology, DLA parity theorem, Paper 0 source-accounting fixtures, and more. Novel constructions and first applications are documented in the research-gems and API pages; exact file counts use the package table below.

  3. Hardware evidence with claim classes — legacy ibm_fez baseline rows, promoted ibm_kingston DLA parity datasets, and the SCPN/FIM negative hardware result are separated from simulator-only, frontier, queued-job, and aggregate-only outputs. Stable core contracts and backend capability artefacts are included in this hardening boundary and are replayed via reproducibility tooling.

  4. Paper 0 source-validation register — source-bounded Paper 0 ingestion is complete across P0R00001-P0R06211. The register is exposed under scpn_quantum_control.paper0 with generated validation modules, spec loaders, fixture runners, and focused tests. It records what the source ledger says and what generated fixtures preserve; it does not promote those source statements into measured hardware or external scientific validation.

Think of it as a quantum microscope for synchronisation: classical Kuramoto tells you when oscillators lock in step; this package tells you what the quantum state looks like at the transition, how entangled it is, how fast information scrambles, and whether the system thermalises.

Advanced benchmark: The built-in SCPN 16-layer coupling matrix (Paper 27) provides a heterogeneous-frequency benchmark for structured oscillator-network experiments. Publication-facing claims should treat this as a classical complex-network input to quantum-inspired Hamiltonian, tensor-network, topological, and DLA analyses, not as a quantum-biological or clinical causation claim. See SCPN Foundations.

Key Results

Hardware Evidence

ResultValue
ibm_kingston DLA parity Phase 1342 circuits, raw counts, job IDs, integrity checks, and reproduction harness in data/phase1_dla_parity/
ibm_kingston DLA parity Phase 2Promoted A+G n=4 replication, B-C mixed n=6,8 scaling, and popcount controls in data/phase2_dla_parity/, data/phase2_scaling_bc/, and data/phase2_popcount_control/; no DLA-parity-only or monotone-scaling claim
ibm_kingston SCPN/FIM hardware testPilot and repeated follow-up artefacts in data/scpn_fim_hamiltonian/; promoted as a negative result for simple digital lambda=4 hardware protection on the tested circuit family
ibm_fez baseline rowsLegacy QPU observations retained in results/ibm_hardware_2026-03-28/ and results/march_2026/; quote only artefact-backed values through the ledger
Quarantined IBM outputsV2/frontier/queued-job/aggregate-only artefacts are not promoted until raw counts, retrieval manifests, and analysis code are reviewed

Simulation

ResultValue
Critical coupling K_c(∞)≈ 2.2 (BKT finite-size scaling)
DTC with heterogeneous ω15/15 amplitudes show subharmonic response
OTOC scrambling4× faster at K=4 vs K=1 (n=8)
Schmidt gap transitionK = 3.44 (n=8, 60-point resolution)
DLA dimension formula2^(2N-1) − 2 (exact, all N)

Software

MetricValue
Rust engine bindings49 exported #[pyfunction] bindings in the tracked Rust crate; low-level helper fn definitions are an implementation detail.
Source package surface697 tracked Python source files under src/scpn_quantum_control, excluding package initialisers; 470 of these are generated Paper 0 source-accounting validation modules.
Research module familiesAnalysis, phase, hardware, bridge, mitigation, QEC, applications, forecasting, and Paper 0 validation families; exact current counts are listed in the package map below.
Publication figures17 (simulation + hardware, including the Phase 1 DLA parity panels and exact-simulation crossover)
Test suiteCI-gated suite with a 91.5% aggregate coverage gate after module-specific test-policy cleanup; current tracked test-function count is 9,139 by tests/test_*.py collection.
Reproducibility CLIscpn-bench reproduce-methods, scpn-bench fim-all, and scpn-bench all regenerate committed methods/FIM artefacts without IBM submission

Exact-Simulation Wall-Time (Not broad quantum-advantage claim)

This section covers exact Hilbert-space simulation crossover only. No broad observable-level quantum-advantage claim is closed yet. Any broader advantage claim requires comparison against state-of-the-art tensor-network or GPU baselines and explicit accounting for data-loading and state-preparation cost.

No quantum advantage at n ≤ 16 in this exact-simulation path. Classical ODE is faster for all accessible sizes. The value of the quantum approach is characterisation (entanglement, MBL, witnesses), not speed.

Methodn=4n=8n=12n=16
Classical Kuramoto ODE (scipy)0.4 ms1.4 ms2.8 ms~11 ms
Exact diagonalisation (numpy eigh)0.1 ms164 ms26.8 sOOM (32 GB)
Qiskit statevector~50 ms~2 s~minutesimpractical
Rust Hamiltonian + numpy eigh0.02 ms30 ms~5 s~2 min (est.)
IBM hardware (per-job, 4000 shots)~5 s~10 s~20 s~40 s

Measured on Ubuntu 24.04, AMD Ryzen, 32 GB RAM. Rust speedup applies to Hamiltonian construction only; the eigh bottleneck is LAPACK in all cases.

Publications

Background: Kuramoto → XY Mapping

Any network of N coupled Kuramoto oscillators can be represented by a linear Kuramoto-XY Hamiltonian analogue or embedding. This is not a claim that a gate-model circuit directly Trotterises the nonlinear classical Kuramoto ODE; direct nonlinear simulation requires an explicit Koopman, Carleman, or equivalent embedding. The built-in SCPN example uses 16 oscillators with a coupling matrix K_nm:

K_nm = K_base * exp(-alpha * |n - m|)

with K_base = 0.45, alpha = 0.3, and empirical calibration anchors (K[1,2] = 0.302, K[2,3] = 0.201, K[3,4] = 0.252, K[4,5] = 0.154). Cross-hierarchy boosts link distant layers (L1-L16 = 0.05, L5-L7 = 0.15). See docs/equations.md for the full parameter set.

Knm coupling matrix The 16×16 K_nm coupling matrix. White annotations: calibration anchors from Paper 27 Table 2. Cyan annotations: cross-hierarchy boosts (L1↔L16, L5↔L7). Exponential decay with distance is visible along the diagonal.

The classical dynamics follow the Kuramoto ODE:

d(theta_i)/dt = omega_i + sum_j K_ij sin(theta_j - theta_i)

The working quantum analogue uses the XY Hamiltonian

H = -sum_{i<j} K_ij (X_i X_j + Y_i Y_j) - sum_i omega_i Z_i

where X, Y, Z are Pauli operators. Superconducting transmon devices can compile XX+YY interactions through native-gate decompositions, making quantum hardware a useful test bed for the corresponding Hamiltonian dynamics. The order parameter R — a measure of global synchronization — is extracted from qubit expectations: R = (1/N)|sum_i (<X_i> + i<Y_i>)|.

Layer coherence vs coupling strength Coherence R as a function of coupling strength K_base across 16 SCPN layers. Strongly-coupled layers (L3, L4, L10) synchronize first; weakly-coupled L12 lags behind, consistent with the exponential decay in K_nm.

Reference: M. Sotek, Self-Consistent Phenomenological Network: Layer Dynamics and Coupling Structure, Working Paper 27 (2025). Manuscript in preparation.

Hardware Results (ibm_fez, February 2026)

ExperimentQubitsDepthHardwareExactError
VQE ground state412 CZ-6.2998-6.30300.05%
Kuramoto XY (1 rep)485R=0.743R=0.8027.3%
Qubit scaling6147R=0.482R=0.5329.3%
UPDE-16 snapshot16770R=0.332R=0.61546%
QAOA-MPC (p=2)4---0.5140.250--

Full results with all 12 decoherence data points: results/HARDWARE_RESULTS.md

Key findings:

  • VQE with K_nm-informed ansatz achieves 0.05% error on 4-qubit subsystem
  • Coherence wall at depth 250-400 on Heron r2 — shallow Trotter (1 rep) beats deep Trotter on NISQ devices

Trotter depth tradeoff More Trotter repetitions improve mathematical accuracy but increase circuit depth. On NISQ hardware, decoherence from the extra gates outweighs the Trotter error reduction. Optimal strategy: fewest reps that capture the physics.

  • 16-layer UPDE snapshot on real hardware — per-layer structure partially tracks coupling topology (L12 collapse, L3 resilience at the extremes; Spearman rho = -0.13 across all layers)

UPDE-16 per-layer expectations Per-layer X-basis expectations from the 16-qubit UPDE snapshot on ibm_fez. L12 (most weakly coupled) shows near-complete decoherence; strongly-coupled layers (L3, L4, L10) maintain coherence.

  • 12-point decoherence curve from depth 5 to 770 with exponential decay fit

Decoherence curve Hardware-to-exact ratio R_hw/R_exact vs circuit depth. The three regimes: near-perfect readout (depth < 25), linear decoherence (85-400), and noise-dominated (> 400).

Package Map

Counts below are tracked Python source files under src/scpn_quantum_control, excluding package initialisers. Generated Paper 0 files are kept visible because they are part of the shipped source-accounting API, but they are not external scientific validation evidence.

graph TD
    subgraph Foundation
        bridge["bridge/ (13)\nK_nm → Hamiltonian\ncross-repo adapters"]
        paper0["paper0/ (471)\nsource-accounting validation\nregister fixtures"]
    end

    subgraph "Core Physics"
        phase["phase/ (29)\nTrotter, VQE, ADAPT-VQE\nVarQITE, Floquet DTC"]
        analysis["analysis/ (58)\nWitnesses, QFI, PH\nOTOC, Krylov, magic"]
    end

    subgraph "Applications"
        control["control/ (11)\nQAOA-MPC, residual VQLS-GS\nPetri nets, ITER"]
        qsnn["qsnn/ (7)\nQuantum spiking\nneural networks"]
        apps["applications/ (13)\nFMO, power grid\nJosephson, EEG, ITER"]
    end

    subgraph "Hardware & QEC"
        hw["hardware/ (63)\nIBM runner, backends\nGPU offload, cutting"]
        mit["mitigation/ (12)\nZNE, PEC, DD\nZ2 post-selection"]
        qec["qec/ (13)\nToric code, surface code\nrep code, error budget"]
    end

    subgraph "Field Theory"
        gauge["gauge/ (5)\nWilson loops, vortices\nCFT, universality"]
        crypto["crypto/ (6)\nBB84, Bell tests\ntopology-auth QKD"]
    end

    bridge --> phase
    bridge --> analysis
    bridge --> control
    bridge --> qsnn
    paper0 --> bridge
    phase --> analysis
    phase --> apps
    hw --> phase
    mit --> hw
    qec --> hw
    analysis --> gauge

    style bridge fill:#6929C4,color:#fff
    style analysis fill:#d4a017,color:#000
    style phase fill:#6929C4,color:#fff
SubpackageModulesPurpose
paper0471Source-accounting validation modules and fixtures for processed Paper 0 records
analysis58Synchronisation probes: witnesses, QFI, PH, OTOC, Krylov, magic, BKT, DLA
hardware63IBM Quantum runner, plugin backends registry, AsyncHardwareRunner, trapped-ion backend, GPU offload, circuit cutting, fast sparse, qubit mapper (DynQ), provenance
phase29Time evolution: Trotter, VQE, ADAPT-VQE, VarQITE, AVQDS, QSVT, Floquet DTC, Lindblad
applications13FMO photosynthesis, power grid, Josephson array, EEG, ITER, quantum EVS
bridge13K_nm → Hamiltonian, cross-repo adapters (sc-neurocore, SSGF, orchestrator)
control11QAOA-MPC, residual-certified VQLS Grad-Shafranov, Petri nets, ITER disruption, topological optimiser
mitigation12ZNE, PEC, dynamical decoupling, Z2 parity, CPDR, symmetry verification, GUESS, compound
qec13Toric code, repetition code UPDE, surface code, biological surface code, error budget, multi-scale, syndrome flow
benchmarks7Classical vs quantum scaling, MPS baseline, GPU baseline, AppQSim
crypto6BB84, Bell tests, topology-authenticated QKD, key hierarchy
identity6VQE attractor, coherence budget, entanglement witness, fingerprint
qsnn7Quantum spiking neural networks (LIF, trace STDP, synapses, dynamic coupling, training, neuromorphic bridge)
gauge5U(1) Wilson loops, vortex detection, CFT, universality, confinement
psi_field4U(1) compact lattice gauge: lattice, infoton, observables, SCPN mapping
ssgf4SSGF quantum integration
accel3Multi-language dispatcher + Julia tier (Rust → Julia → Python fallback chain)
dla_parity4DLA parity helpers and campaign analysis support
fep2Friston Free Energy Principle: variational free energy, predictive coding
forecasting1Held-out synchronisation forecasting over hardware traces and source-backed topology replays
benchmark_harness4Reproducible benchmark harness entry points
tcbo1TCBO quantum observer
pgbo1PGBO quantum bridge
l161Layer 16 quantum director

Quick Start

pip install scpn-quantum-control

Any coupling network — bring your own K and omega:

from scpn_quantum_control import QuantumKuramotoSolver, build_kuramoto_ring

K, omega = build_kuramoto_ring(6, coupling=0.5, rng_seed=42)
solver = QuantumKuramotoSolver(6, K, omega)
result = solver.run(t_max=1.0, dt=0.1, trotter_per_step=2)
print(f"R(t): {result['R']}")

Built-in SCPN network (16 oscillators from Paper 27):

from scpn_quantum_control import QuantumKuramotoSolver, build_knm_paper27, OMEGA_N_16

K = build_knm_paper27(L=4)
solver = QuantumKuramotoSolver(4, K, OMEGA_N_16[:4])
result = solver.run(t_max=0.5, dt=0.1, trotter_per_step=2)

Detect synchronization with witness operators:

from scpn_quantum_control.analysis.sync_witness import evaluate_all_witnesses

# After running X-basis and Y-basis circuits on IBM hardware:
results = evaluate_all_witnesses(x_counts, y_counts, n_qubits=4)
for name, w in results.items():
    print(f"{name}: {'SYNCHRONIZED' if w.is_synchronized else 'incoherent'}")

For development (editable install with test/lint tooling):

pip install -e ".[dev]"
pre-commit install
pytest tests/ -v

Hardware execution (requires IBM Quantum credentials)

pip install -e ".[ibm]"
python run_hardware.py --experiment kuramoto --qubits 4 --shots 10000

Data Flow

The pipeline from coupling matrix to measurement follows a fixed sequence:

graph LR
    A["K_nm\ncoupling matrix"] --> B["knm_to_hamiltonian()\nSparsePauliOp"]
    B --> C["Trotter / VQE\nQuantumCircuit"]
    C --> D["Transpile\nnative gates"]
    D --> E["Execute\nAer / IBM"]
    E --> F["Parse counts\n⟨X⟩, ⟨Y⟩, ⟨Z⟩"]
    F --> G["Order parameter\nR(t)"]

    style A fill:#6929C4,color:#fff
    style G fill:#2ecc71,color:#000

Examples

22 standalone scripts in examples/:

#ScriptWhat it demonstrates
01qlif_demoQuantum LIF neuron: membrane → Ry rotation → spike
02kuramoto_xy_demo4-oscillator Kuramoto dynamics, R(t) trajectory
03qaoa_mpc_demoQAOA binary MPC: quadratic cost → Ising Hamiltonian
04qpetri_demoQuantum Petri net: tokens evolve in superposition
05vqe_ansatz_comparisonThree ansatze benchmarked on 4-qubit Hamiltonian
06zne_demoZero-noise extrapolation with unitary folding
07crypto_bell_testCHSH inequality violation certification
08dynamical_decouplingDD pulse sequence insertion (XY4, X2, CPMG)
09classical_vs_quantum_benchmarkScaling crossover analysis
10identity_continuity_demoVQE attractor basin stability
11pec_demoProbabilistic error cancellation
12trapped_ion_demoIon trap noise model comparison
13iter_disruption_demoITER plasma disruption classification
14quantum_advantage_demoAdvantage threshold estimation
15qsnn_training_demoQSNN training loop with parameter-shift
16fault_tolerant_demoRepetition code UPDE
17snn_ssgf_bridges_demoCross-repo bridge roundtrips
18end_to_end_pipelineComplete K_nm → IBM → analysis pipeline
19sync_witness_operatorSynchronisation witness operator demo
20quantum_persistent_homologyPersistent homology analysis
21biological_qec_scpn16Biological surface code on 16-layer SCPN
22quantum_neuromorphic_bridgeQSNN quantum LIF + trace STDP + dynamic coupling bridge

All examples run on statevector simulation (no QPU needed).

Notebooks

98 tracked Jupyter notebooks in notebooks/ — including the core tutorials and retained investigation notebooks. Core notebooks:

#NotebookLevelKey Output
01Kuramoto XY DynamicsBeginnerR(t) trajectory, quantum-classical overlay
02VQE Ground StateBeginnerEnergy convergence, ansatz comparison
03Error MitigationIntermediateZNE extrapolation plot
04UPDE 16-LayerIntermediatePer-layer R bar chart
05Crypto & EntanglementIntermediateCHSH S-parameter, QKD QBER
06PEC Error CancellationAdvancedPEC vs ZNE, overhead scaling
07Quantum AdvantageAdvancedScaling crossover prediction
08Identity ContinuityAdvancedAttractor basin, fingerprint
09ITER DisruptionDomainFeature distributions, accuracy, CONTROL bridge contract
10QSNN TrainingAdvancedLoss curve, weight evolution
11Surface Code BudgetAdvancedQEC resource estimation
12Trapped Ion ComparisonAdvancedNoise model comparison
13Cross-Repo BridgesIntegrationPhase roundtrip, adapter demos

All run on local AerSimulator. No IBM credentials needed.

Architecture

scpn_quantum_control/
├── paper0/        471 modules — source-accounting validation register
├── analysis/       58 modules — synchronisation probes
├── hardware/       63 modules — IBM runner, backends, GPU, cutting, provenance
├── phase/          29 modules — time evolution + variational + Lindblad
├── bridge/         13 modules — K_nm → quantum objects + cross-repo
├── applications/   13 modules — physical system benchmarks
├── control/        11 modules — QAOA-MPC, residual VQLS-GS, Petri, ITER, topological
├── mitigation/     12 modules — ZNE, PEC, DD, Z2, CPDR, symmetry
├── qec/            13 modules — error correction + biological surface code
├── benchmarks/      7 modules — performance baselines
├── identity/        6 modules — identity continuity analysis
├── qsnn/            7 modules — quantum spiking neural networks + neuromorphic bridge
├── crypto/          6 modules — QKD, Bell tests, key hierarchy
├── gauge/           5 modules — U(1) gauge theory probes
├── ssgf/            4 modules — SSGF quantum integration
├── tcbo/            1 module  — TCBO quantum observer
├── pgbo/            1 module  — PGBO quantum bridge
├── l16/             1 module  — Layer 16 quantum director
└── scpn_quantum_engine/  Rust crate (PyO3 0.25, 55 exported PyO3 bindings)

Dependencies

PackageVersionPurpose
qiskit>= 2.2,<3.0Circuit construction, transpilation
qiskit-aer>= 0.15,<1.0Statevector + noise simulation
numpy>= 1.24Array operations
scipy>= 1.10Sparse linear algebra, optimisation
networkx>= 3.0Graph algorithms (QEC decoder)

Optional:

  • matplotlib >= 3.5 for visualisation
  • qiskit-ibm-runtime >= 0.40,<1.0 for hardware execution
  • cupy >= 12.0 for GPU-accelerated simulation

Limitations

  • NISQ benchmarking only. Current hardware results are proof-of-concept. Circuit depths >400 hit the Heron r2 coherence wall; the 16-layer UPDE snapshot (46% error) confirms this. Real tokamak control requires <1 ms deterministic latency on radiation-hardened hardware — cloud QPUs cannot provide that.
  • SCPN is an unpublished model. The 16-layer coupling structure comes from a 2025 working paper (Sotek, Paper 27) with no external citations yet. The Kuramoto→XY mapping is standard physics; the specific K_nm parameterisation is not independently validated.
  • Small-scale broad advantage not demonstrated. At N=4-16 qubits, classical ODE solvers outperform quantum simulation in both speed and accuracy. The exact Hilbert-space crossover is a resource boundary, not a demonstrated general advantage.
  • IBM hardware claim hygiene. Do not cite queued-job, placeholder, aggregate-only, or frontier JSON as hardware validation. The promoted raw-count campaign is data/phase1_dla_parity/; legacy ibm_fez observations must name their committed artefact row.

Documentation

Full docs at anulum.github.io/scpn-quantum-control:

RepositoryDescription
sc-neurocoreClassical SCPN spiking neural network engine (v3.13.3, 2155+ tests)
scpn-fusion-coreClassical SCPN algorithms: Kuramoto solvers, coupling calibration, transport (v3.9.3, 3300+ tests)
scpn-phase-orchestratorSCPN phase orchestration: regime detection, UPDE engine, Petri-net supervisor (v0.5.0, 2321 tests)
scpn-controlSCPN control systems: plasma MPC, disruption mitigation (v0.18.0, 3015 tests)

Citation

@software{scpn_quantum_control,
  title  = {scpn-quantum-control: Quantum-Native SCPN Phase Dynamics and Control},
  author = {Sotek, Miroslav},
  year   = {2026},
  url    = {https://github.com/anulum/scpn-quantum-control},
  doi    = {10.5281/zenodo.18821929}
}

License

AGPL-3.0-or-later — commercial license available.

Dual licensing is explicit: the public repository is AGPL-3.0-or-later, and proprietary integration requires a separate commercial licence grant. The generic Kuramoto-XY facade is documented as a possible future core-package boundary, but it is not a separate permissive package today. Until an explicit release changes SPDX headers and package metadata, all in-repository code remains under the AGPL/commercial terms above.

Use caseRoute
Academic research, teaching, private experimentsUse the AGPL terms in LICENSE.
AGPL-compatible open-source redistributionUse the AGPL terms and preserve notices/source obligations.
Closed-source product, internal proprietary tool, SaaS, consulting deliverable, or embedded deploymentObtain a commercial licence before distribution or network service use.
Future lightweight core packageNot available yet; no permissive relicensing is implied by the facade docs.

Commercial Licensing

AGPL-3.0 requires derivative works and network-service modifications to provide corresponding source under the AGPL. If you need to integrate scpn-quantum-control into proprietary software without publishing your source code, use the commercial route:

  1. Email protoscience@anulum.li with organisation name, product or service description, deployment model, expected users, and whether source redistribution is required.
  2. Select the licence tier below or request an enterprise quote.
  3. Execute the commercial licence grant before shipping the proprietary integration or offering it as a network service.
TierPriceIncludes
IndieCHF 49/monthSingle developer, one product
ProCHF 199/monthTeam up to 10, unlimited products
PerpetualCHF 999 one-timePermanent license, one major version
EnterpriseCustomSLA, priority support, custom modules

Reference files: LICENSE, NOTICE.md, and docs/core_package_boundary.md.

Contact: protoscience@anulum.li | anulum.li


ANULUM      Fortis Studio
Developed by ANULUM / Fortis Studio