SPDX-License-Identifier: AGPL-3.0-or-later

June 27, 2026 · View on GitHub

Commercial license available

© Concepts 1996–2026 Miroslav Šotek. All rights reserved.

© Code 2020–2026 Miroslav Šotek. All rights reserved.

ORCID: 0009-0009-3560-0851

Contact: www.anulum.li | protoscience@anulum.li

scpn-quantum-control — Application benchmark plugins

Application Benchmark Plugins

Application plugins expose domain datasets through the same QPU data artifact contract used by the Kuramoto-XY pipeline. The built-in plugins cover EEG, tokamak MHD mode locking, IEEE power-grid synchronisation, and Friston-style predictive coding.

Why this page exists

This page is for teams moving from abstract synchronisation models to domain-facing benchmarks with traceable outputs. It is intended to show where raw-domain data must pass before it can become a QPUDataArtifact and which routes are bounded by plugin and reproducibility requirements.

from scpn_quantum_control.applications import (
    compile_application_problem,
    run_application_benchmark_suite,
)

results = run_application_benchmark_suite()
problem = compile_application_problem("power_grid_ieee5")

Plugin Extras

The optional extras keep domain dependencies off the default install:

ExtraIntended domain stack
app-eegEEG/MEG file readers and MNE pipelines.
app-plasmaHDF5/tabular tokamak or plasma diagnostics.
app-power-gridPower-system case readers and grid toolchains.
app-fepStructured predictive-coding workflow configuration.
app-benchmarksAll four application stacks.

The packaged benchmark JSON files do not require those extras. The extras are for users who plug in external raw archives and want the same registry path to build a QPU-ready artifact.

Metric Boundary

The EEG, plasma, and power-grid plugins emit topology_similarity_proxy, a Spearman rank coefficient between the artifact K_nm matrix and a reference coupling matrix. This metric is a structural proxy only. It is not an EEG neural-dynamics reproduction, tokamak MHD solve, power-grid swing-equation simulation, FMO transport model, or Josephson device model. Legacy benchmark result objects still expose topology_correlation as a compatibility attribute, but new plugin payloads use the proxy label.

Packaged Datasets

The in-repo artifacts live in data/public_application_benchmarks/. Each file validates as QPUDataArtifact, carries array hashes, and can be adapted to the public KuramotoProblem facade.

DatasetPluginPipeline path
eeg_alpha_plv_8cheeg_alphaPLV matrix → QPU artifact → EEG topology benchmark → Kuramoto facade.
iter_mhd_8modeplasma_iter_mhdNTM/RWM mode graph → QPU artifact → mode-locking benchmark → Kuramoto facade.
ieee5bus_power_gridpower_grid_ieee5IEEE 5-bus constants → QPU artifact → grid synchronisation benchmark → Kuramoto facade.
friston_fep_6nodefriston_fepPrecision graph + observations → QPU artifact → variational free energy + predictive-coding step.

Third-party plugins register factories under the scpn_quantum_control.application_plugins entry-point group. A broken plugin is logged and skipped so one domain adapter cannot block the rest of the benchmark suite.

Curated Researcher Workflows

The promoted researcher workflows are deliberately small and deterministic. They are meant to demonstrate the application boundary, provenance trail, and QPU-ready artefact format without presenting compact benchmark matrices as substitutes for raw domain archives.

WorkflowPromoted artefactsProvenance boundaryDeterministic regeneration
GraphML/CSV topology importExternal user-supplied graph or edge table converted to QPUDataArtifact.Bring-your-own topology path; the repository does not ship private third-party graph archives.Use the application-plugin registry and validate the converted artefact before adapting it to KuramotoProblem.
EEG alpha PLVdata/public_application_benchmarks/eeg_alpha_plv_8ch.json; measured audit artefacts in data/knm_physical_validation/, including eeg_alpha_plv_knm_comparison.json.Public-literature benchmark matrix for examples; raw EDF cohorts stay outside Git under <private-local-record>. The K_nm audit keeps PLV non-promotional because it is an association observable, not a calibrated coupling magnitude.scripts/build_real_eeg_plv_validation_dataset.py and scripts/compare_eeg_plv_cohorts.py regenerate the cohort artefacts; scripts/run_knm_physical_validation_audit.py --measured data/knm_physical_validation/measured_couplings.json --n-layers 8 regenerates the K_nm comparison.
IEEE power griddata/public_application_benchmarks/ieee5bus_power_grid.json; data/knm_physical_validation/measured_couplings_power_grid_ieee5bus.json; data/knm_physical_validation/measured_couplings_power_grid_ieee14bus.json; data/knm_physical_validation/power_grid_ieee14bus_knm_comparison.json.Public IEEE 5-bus constants are converted to swing-equation coupling; public IEEE 14-bus branch reactance and voltage constants provide a larger voltage-weighted admittance control. Both remain negative/control candidates until the measured-system promotion gate passes.scripts/build_power_grid_measured_couplings.py regenerates the 5-bus artefact; add --case ieee14 for the 14-bus admittance candidate; run scripts/run_knm_physical_validation_audit.py --measured ... --n-layers 14 for the comparison.
Plasma/tokamakdata/public_application_benchmarks/iter_mhd_8mode.json.Curated ITER-scale mode-locking topology from public MHD literature, not raw discharge traces.run_application_benchmark_suite() includes the packaged plasma benchmark without optional HDF5 dependencies.
Notebook and example workflowsexamples/02_kuramoto_xy_demo.py, examples/05_vqe_ansatz_comparison.py, examples/09_classical_vs_quantum_benchmark.py, examples/13_iter_disruption_demo.py, examples/18_end_to_end_pipeline.py, examples/19_sync_witness_operator.py, and examples/20_quantum_persistent_homology.py.Notebooks remain support wrappers; reusable logic stays in src/, scripts/, and versioned example files.Static example tests ensure promoted examples remain parseable, expose main(), and are listed in examples/README.md.

For a no-credential smoke path, run:

.venv-linux/bin/python - <<'PY'
from scpn_quantum_control.applications import run_application_benchmark_suite

results = run_application_benchmark_suite()
print(sorted(results))
PY

This command loads the packaged JSON artefacts only. It does not submit IBM jobs, download raw EEG data, or touch private datasets.