Key Equations

July 8, 2026 · View on GitHub

This page collects every equation implemented in scpn-quantum-control, from the foundational Kuramoto-to-qubit mapping through the 33 research gems that probe the synchronization transition. Each equation is accompanied by the module that implements it and the physical intuition behind it.


Equation Dependency Tree

Every equation in the codebase descends from the foundational Kuramoto → XY mapping. The tree below shows which equations feed into which — follow any path from root to leaf to trace a complete physical argument.

graph TD
    KODE["Kuramoto ODE\nd θ/dt = ω + ΣK sin(Δθ)"] --> HXY["XY Hamiltonian\nH = -ΣK(XX+YY) - Σω Z"]
    HXY --> TROTTER["Trotter evolution\nU(t) ≈ [e^{-iH_XY Δt} e^{-iH_Z Δt}]^n"]
    HXY --> VQE["VQE ground state\nmin ⟨ψ(θ)|H|ψ(θ)⟩"]
    HXY --> ORDER["Order parameter\nR = |Σ(⟨X⟩+i⟨Y⟩)|/N"]
    HXY --> XXZ["XXZ extension\nH + Δ·ΣK·ZZ"]

    TROTTER --> UPDE["16-qubit UPDE\nspin chain"]
    TROTTER --> FLOQUET["Floquet DTC\nK(t) = K₀(1+δ cos Ωt)"]
    VQE --> QFI["QFI\nF_Q ∝ 1/Δ²"]
    VQE --> ENTROPY["Entanglement entropy\nS ~ (c/3) ln L"]
    VQE --> MAGIC["Magic\nM₂ = -log₂(ΣP⟨P⟩⁴/2^N)"]
    VQE --> KRYLOV["Krylov complexity\nC_K = Σ n|φ_n|²"]
    VQE --> PERCOLATION["Entanglement percolation\nλ₂(L_C) > 0"]
    VQE --> PAIRING["Richardson pairing\n⟨S⁺S⁻⟩"]

    ORDER --> WITNESS["Sync witnesses\nW = R_c I - C̄"]
    ORDER --> SFF["Spectral form factor\nr̄: Poisson → GOE"]
    ORDER --> LOSCHMIDT["Loschmidt echo\nDQPT zeros"]
    ORDER --> LINDBLAD["Lindblad NESS\nL[ρ_ss] = 0"]
    ORDER --> MPEMBA["Quantum Mpemba\nF_far > F_near"]

    HXY --> DLA["DLA dimension\n2^(2N-1) - 2"]
    DLA --> PARITY["Z₂ parity\nP = Z⊗N"]

    style HXY fill:#6929C4,color:#fff
    style VQE fill:#6929C4,color:#fff
    style DLA fill:#d4a017,color:#000
    style KRYLOV fill:#d4a017,color:#000
    style MAGIC fill:#d4a017,color:#000

1. Foundational: Kuramoto → XY Hamiltonian

Classical Kuramoto (the UPDE core)

The Unified Phase Dynamics Equation describes NN coupled oscillators with natural frequencies ωi\omega_i and coupling matrix KijK_{ij}:

dθidt=ωi+jKijsin(θjθi)\frac{d\theta_i}{dt} = \omega_i + \sum_j K_{ij} \sin(\theta_j - \theta_i)

Each oscillator has a phase θi\theta_i on the circle S1S^1. When the coupling KijK_{ij} is strong enough, the oscillators lock into a common rhythm — they synchronise.

Think of NN metronomes on a shared table. Each ticks at its own natural rate ωi\omega_i, but the table transmits vibrations between them (coupling KijK_{ij}). If the table is rigid enough, the metronomes gradually align. The UPDE is the equation that governs this alignment.

Quantum XY Hamiltonian

The quantum analogue represents each oscillator by a qubit on the Bloch sphere. The coupling structure is encoded as pairwise XY interactions, and the natural frequencies become longitudinal fields:

H=i<jKij(XiXj+YiYj)iωiZiH = -\sum_{i<j} K_{ij} (X_i X_j + Y_i Y_j) - \sum_i \omega_i Z_i

This is the central Hamiltonian used by the codebase. It is a linear analogue or embedding of oscillator-network structure; it is not direct Trotterisation of the nonlinear classical Kuramoto ODE unless a Koopman, Carleman, or equivalent linear embedding is explicitly stated and validated.

Module: bridge/knm_hamiltonian.pyknm_to_hamiltonian(K, omega)

Time Evolution (Lie-Trotter)

U(t)=eiHt[eiHXYΔteiHZΔt]t/ΔtU(t) = e^{-iHt} \approx \left[e^{-iH_{XY}\Delta t}\, e^{-iH_Z\Delta t}\right]^{t/\Delta t}

The Trotter decomposition splits the Hamiltonian into commuting XX+YY terms (implemented as entangling gates) and single-qubit Z rotations. Error scales as O(Δt2)O(\Delta t^2) per step.

Module: phase/xy_kuramoto.pyQuantumKuramotoSolver.evolve()

Order Parameter

R=1Ni(Xi+iYi)R = \frac{1}{N} \left|\sum_i \left(\langle X_i \rangle + i\langle Y_i \rangle\right)\right|

R=0R = 0: completely incoherent (random phases). R=1R = 1: perfect synchronization (all phases equal). The transition from R0R \approx 0 to R1R \approx 1 as coupling strength increases is the synchronization phase transition in the model. For publication, biological or cognitive datasets are treated as classical complex-network inputs to this analysis pipeline, not as claims of quantum causation.

XXZ Generalization (Kouchekian-Teodorescu S² Embedding)

arXiv:2601.00113 proves that the classical Kuramoto model on S1S^1 has no Lagrangian structure. Embedding oscillators on S2S^2 (the Bloch sphere) resolves this. The full S² model adds a ZZ interaction controlled by the anisotropy parameter Δ\Delta:

HXXZ=i<jKij(XiXj+YiYj+ΔZiZj)iωiZiH_{XXZ} = -\sum_{i<j} K_{ij}(X_iX_j + Y_iY_j + \Delta \cdot Z_iZ_j) - \sum_i \omega_i Z_i

At Δ=0\Delta = 0: recovers the XY model (our standard Hamiltonian). At Δ=1\Delta = 1: full isotropic Heisenberg model with SU(2) symmetry. The XY model is the in-plane restriction of the Kouchekian-Teodorescu framework.

Module: bridge/knm_hamiltonian.pyknm_to_xxz_hamiltonian(K, omega, delta)


2. K_nm Canonical Parameters

Natural frequencies (16 layers, Paper 27 Table 1):

ω=[1.329,  2.610,  0.844,  1.520,  0.710,  3.780,  1.055,  0.625,  2.210,  1.740,  0.480,  3.210,  0.915,  1.410,  2.830,  0.991]\boldsymbol{\omega} = [1.329,\; 2.610,\; 0.844,\; 1.520,\; 0.710,\; 3.780,\; 1.055,\; 0.625,\; 2.210,\; 1.740,\; 0.480,\; 3.210,\; 0.915,\; 1.410,\; 2.830,\; 0.991]

Coupling matrix (Paper 27, Eq. 3):

Knm=Kbaseeαnm,Kbase=0.45,  α=0.3K_{nm} = K_{\text{base}} \cdot e^{-\alpha|n-m|}, \quad K_{\text{base}}=0.45,\; \alpha=0.3

Calibration anchors: K1,2=0.302K_{1,2}=0.302, K2,3=0.201K_{2,3}=0.201, K3,4=0.252K_{3,4}=0.252, K4,5=0.154K_{4,5}=0.154.

UPDE (Unified Phase Dynamics Equation)

dθndt=ωn+mKnmsin(θmθn)+Fn(θ,t)\frac{d\theta_n}{dt} = \omega_n + \sum_m K_{nm} \sin(\theta_m - \theta_n) + F_n(\boldsymbol{\theta}, t)

FnF_n captures layer-specific forcing. In the quantum mapping, FnF_n corresponds to single-qubit Z rotations beyond the natural frequency term.

Quantum LIF Neuron

Membrane dynamics:

v(t+1)=v(t)Δtτ(v(t)vrest)+RIΔtv(t+1) = v(t) - \frac{\Delta t}{\tau}\bigl(v(t) - v_{\text{rest}}\bigr) + R \cdot I \cdot \Delta t

Rotation angle encoding:

θ=πclip ⁣(vvrestvthreshvrest,  0,  1)\theta = \pi \cdot \text{clip}\!\left(\frac{v - v_{\text{rest}}}{v_{\text{thresh}} - v_{\text{rest}}},\; 0,\; 1\right)

Spike probability:

P(spike)=sin2 ⁣(θ2)P(\text{spike}) = \sin^2\!\left(\frac{\theta}{2}\right)

Quantum Synapse (CRy)

Weight-to-angle:

θw=πwwminwmaxwmin\theta_w = \pi \cdot \frac{w - w_{\min}}{w_{\max} - w_{\min}}

Effective transmission probability:

P(postpre=1)=sin2 ⁣(θw2)P(\text{post}\mid\text{pre}=1) = \sin^2\!\left(\frac{\theta_w}{2}\right)

Parameter-Shift Rule

Gradient of expectation w.r.t. rotation angle:

Zθ=Z ⁣(θ+π2)Z ⁣(θπ2)2\frac{\partial\langle Z \rangle}{\partial\theta} = \frac{\langle Z \rangle\!\left(\theta + \frac{\pi}{2}\right) - \langle Z \rangle\!\left(\theta - \frac{\pi}{2}\right)}{2}

STDP weight update:

Δw=ηspreZpostθw\Delta w = \eta \cdot s_{\text{pre}} \cdot \frac{\partial\langle Z_{\text{post}}\rangle}{\partial\theta_w}

QSNN training uses the same rule for MSE loss gradient:

θniL=L(θni+π/2)L(θniπ/2)2\nabla_{\theta_{ni}} \mathcal{L} = \frac{\mathcal{L}(\theta_{ni} + \pi/2) - \mathcal{L}(\theta_{ni} - \pi/2)}{2}

QAOA Cost Hamiltonian

MPC quadratic cost → Ising:

C=tBu(t)xtarget2=ijJijZiZj+ihiZi+constC = \sum_t \|Bu(t) - x_{\text{target}}\|^2 = \sum_{ij} J_{ij} Z_i Z_j + \sum_i h_i Z_i + \text{const}

QAOA circuit:

γ,β=p=1P[eiβpHmixereiγpHcost]+n|\gamma, \beta\rangle = \prod_{p=1}^{P} \left[e^{-i\beta_p H_{\text{mixer}}}\, e^{-i\gamma_p H_{\text{cost}}}\right] |+\rangle^{\otimes n}

VQLS Cost Function

For the bounded one-dimensional Poisson/Laplacian proxy used by VQLS_GradShafranov, the finite-difference linear system is Ax=bAx = b:

CVQLS=1bAx2xAAxC_{\text{VQLS}} = 1 - \frac{|\langle b|A|x\rangle|^2}{\langle x|A^\dagger A|x\rangle}

where x=U(θ)0|x\rangle = U(\theta)|0\rangle is a variational ansatz. The implementation also computes the physical residual certificate

r(x)=Axb2b2.r(x) = \frac{\|Ax - b\|_2}{\|b\|_2}.

VQLS_GradShafranov.solve() returns a profile only when r(x)r(x) is within the configured tolerance. If the variational ansatz misses the tolerance for the SPD tridiagonal Laplacian assembled by discretize(), the default runtime path returns the direct finite-difference solve and labels the diagnostic method as direct_spd_residual_repair; the raw variational residual remains available in VQLSGradShafranovResult. The result also records model_boundary="1d_poisson_laplacian_proxy" and is_full_grad_shafranov_equilibrium=False; this surface is not a full axisymmetric Grad-Shafranov equilibrium solver.

Probabilistic Error Cancellation (PEC)

Temme et al., PRL 119, 180509 (2017).

Quasi-probability decomposition of the inverse depolarizing channel E1\mathcal{E}^{-1} into Pauli operations {I,X,Y,Z}\{I, X, Y, Z\}:

qI=1+3p44p,qX,Y,Z=p44pq_I = 1 + \frac{3p}{4-4p}, \quad q_{X,Y,Z} = -\frac{p}{4-4p}

Sampling overhead (cost multiplier):

γ=(kqk)ngates\gamma = \left(\sum_k |q_k|\right)^{n_{\text{gates}}}

Monte Carlo estimator:

Omitigated=1Ns=1Nγsgn(s)Os\langle O \rangle_{\text{mitigated}} = \frac{1}{N} \sum_{s=1}^{N} \gamma \cdot \text{sgn}(s) \cdot \langle O \rangle_s

Trapped-Ion Noise Model

Mølmer-Sørensen gate error model (QCCD architecture):

ParameterValueSource
MS 2-qubit error0.5%QCCD benchmarks
T1T_1100 msIon trap coherence
T2T_21 msDephasing time
SQ gate time10 μsSingle-qubit
MS gate time200 μsTwo-qubit

Noise composition per MS gate:

EMS=Edepol(p=0.005)(Erelax(T1,T2,tMS)Erelax)\mathcal{E}_{\text{MS}} = \mathcal{E}_{\text{depol}}(p=0.005) \circ \bigl(\mathcal{E}_{\text{relax}}(T_1, T_2, t_{\text{MS}}) \otimes \mathcal{E}_{\text{relax}}\bigr)

All-to-all connectivity (no SWAP overhead).

ITER Disruption Feature Space

11 physics-based features (ITER Physics Basis, Nuclear Fusion 39, 1999):

FeatureSymbolRangeUnits
Plasma currentIpI_p0.5–17MA
Safety factorq95q_{95}1.5–8
Internal inductancelil_i0.5–2
Greenwald fractionnGWn_{\text{GW}}0–1.5
Normalized betaβN\beta_N0–4
Radiated powerPradP_{\text{rad}}0–100MW
Locked modeLM0–0.01T
Loop voltageVloopV_{\text{loop}}−2–5V
Stored energyWW0–400MJ
Elongationκ\kappa1–2.2
Current rampdIp/dtdI_p/dt−5–5MA/s

Min-max normalization to [0,1][0, 1]:

x^i=clip ⁣(xixmin,ixmax,ixmin,i,  0,  1)\hat{x}_i = \text{clip}\!\left(\frac{x_i - x_{\min,i}}{x_{\max,i} - x_{\min,i}},\; 0,\; 1\right)

Fault-Tolerant UPDE (Repetition Code)

Each oscillator encoded in dd physical data qubits + (d1)(d-1) ancilla qubits.

Total physical qubits: Nphys=nosc(2d1)N_{\text{phys}} = n_{\text{osc}} \cdot (2d - 1)

Encoding (repetition code, bit-flip protection):

ψL=Ry(θ)0dCNOT fan-outcos(θ/2)0d+sin(θ/2)1d|\psi_L\rangle = R_y(\theta)|0\rangle^{\otimes d} \xrightarrow{\text{CNOT fan-out}} \cos(\theta/2)|0\rangle^{\otimes d} + \sin(\theta/2)|1\rangle^{\otimes d}

Transversal coupling between logical qubits ii and jj:

UZZ(L)=k=1dRZZ ⁣(KijΔtd,  qk(i),  qk(j))U_{\text{ZZ}}^{(L)} = \prod_{k=1}^{d} R_{ZZ}\!\left(\frac{K_{ij}\Delta t}{d},\; q_k^{(i)},\; q_k^{(j)}\right)

Syndrome extraction via adjacent parity checks on ancillae.

Quantum Advantage Scaling

Classical cost (matrix exponential): O(22n)O(2^{2n}) for nn qubits.

Quantum cost (Trotter): O(n2r)O(n^2 \cdot r) gates per step, where rr = Trotter repetitions.

Crossover estimate via exponential fit:

tc(n)=acebcn,tq(n)=aqebqnt_c(n) = a_c \cdot e^{b_c n}, \quad t_q(n) = a_q \cdot e^{b_q n}

ncross=ln(aq/ac)bcbq(bc>bq)n_{\text{cross}} = \frac{\ln(a_q/a_c)}{b_c - b_q} \quad (b_c > b_q)

SSGF Quantum Loop

SSGF geometry matrix WW (symmetric, non-negative, zero diagonal) maps directly to the XY Hamiltonian via the same KnmHK_{nm} \to H compiler.

Phase encoding into qubit XY-plane:

qi=Ry(π/2)Rz(θi)0=0+eiθi12|q_i\rangle = R_y(\pi/2)\, R_z(\theta_i)\, |0\rangle = \frac{|0\rangle + e^{i\theta_i}|1\rangle}{\sqrt{2}}

Phase recovery: θi=atan2(Yi,Xi)\theta_i = \text{atan2}(\langle Y_i\rangle, \langle X_i\rangle)

Identity Binding Topology

6-layer, 18-oscillator Arcane Sapience identity spec:

Layerω\omega (rad/s)Oscillators
working_style1.23
reasoning2.13
relationship0.83
aesthetics1.53
domain_knowledge3.03
cross_project0.93

Coupling: Kintra=0.6K_{\text{intra}} = 0.6, Kinter=0.4e0.25liljK_{\text{inter}} = 0.4 \cdot e^{-0.25|l_i - l_j|}

Maps to 35 oscillators in scpn-phase-orchestrator's identity_coherence domainpack via centroid projection (circular mean for phase roundtrip).


Research Gems: Phase Transition Equations

The equations below were derived during Rounds 1–8 (March 2026) and implement novel probes of the quantum synchronization transition. Each equation has no or minimal prior art in the context of the Kuramoto-XY model.

Synchronization Witnesses (Gem 1)

Three Hermitian observables whose expectation value certifies synchronization:

WitnessEquationObservableFires when
CorrelationWcorr=RcI1Mi<j(XiXj+YiYj)W_{\mathrm{corr}} = R_c \cdot I - \frac{1}{M}\sum_{i<j}(\langle X_iX_j\rangle + \langle Y_iY_j\rangle)Mean pairwise XY correlatorCorrelator >Rc> R_c
FiedlerWF=λ2,cIλ2(L)W_F = \lambda_{2,c} \cdot I - \lambda_2(L)Algebraic connectivity of correlation Laplacianλ2>λ2,c\lambda_2 > \lambda_{2,c}
TopologicalWtop=pH1pcW_{\mathrm{top}} = p_{H_1} - p_cPersistent H₁ fractionpH1<pcp_{H_1} < p_c

The correlation Laplacian is L=DCL = D - C where Cij=XiXj+YiYjC_{ij} = \langle X_iX_j\rangle + \langle Y_iY_j\rangle and Dii=jCijD_{ii} = \sum_j C_{ij}. The Fiedler eigenvalue λ2\lambda_2 is the second-smallest eigenvalue of LL.

Module: analysis/sync_witness.py

Dynamical Lie Algebra Dimension (Gem 11)

For the heterogeneous XY Hamiltonian with all ωi\omega_i distinct:

dim(DLA(HXY))=22N12\dim\bigl(\mathrm{DLA}(H_{XY})\bigr) = 2^{2N-1} - 2

NN (qubits)dim(DLA)\dim(\mathrm{DLA})dim(su(2N))\dim(\mathfrak{su}(2^N))Fraction
261540%
3306348%
412625549%
5510102350%
62046409550%

The DLA dimension approaches half the full su(2N)\mathfrak{su}(2^N) as NN grows. The missing half is blocked by the Z₂ parity symmetry P=ZNP = Z^{\otimes N}. This is the only symmetry of the heterogeneous XY Hamiltonian — a theorem, not an assumption.

Module: analysis/dynamical_lie_algebra.py

Quantum Fisher Information (Gem 15)

The QFI quantifies the maximum precision for estimating the coupling parameter:

FQ(K)=4(KψKψψKψ2)F_Q(K) = 4\left(\langle\partial_K\psi|\partial_K\psi\rangle - |\langle\psi|\partial_K\psi\rangle|^2\right)

Equivalently, in terms of the spectral decomposition H(K)ψn=EnψnH(K)|\psi_n\rangle = E_n|\psi_n\rangle:

FQ=4n0ψnKHψ02(EnE0)2F_Q = 4\sum_{n \neq 0} \frac{|\langle\psi_n|\partial_K H|\psi_0\rangle|^2}{(E_n - E_0)^2}

The QFI diverges as the spectral gap E1E00E_1 - E_0 \to 0 at KcK_c — the synchronization transition is a metrological sweet spot. The Cramér-Rao bound gives δK1/FQ\delta K \geq 1/\sqrt{F_Q}, so the critical ground state achieves Heisenberg-limited precision for measuring coupling strength.

Module: analysis/qfi_criticality.py

Entanglement Percolation (Gem 16)

Pairwise concurrence from the ground state density matrix:

Cij=max(0,λ1λ2λ3λ4)\mathcal{C}_{ij} = \max(0, \lambda_1 - \lambda_2 - \lambda_3 - \lambda_4)

where λk\lambda_k are the square roots of the eigenvalues of ρij(σyσy)ρij(σyσy)\rho_{ij}(\sigma_y \otimes \sigma_y)\rho_{ij}^*(\sigma_y \otimes \sigma_y) in decreasing order.

The concurrence matrix is interpreted as a weighted graph. The entanglement percolation threshold KpK_p is the coupling at which λ2(LC)>0\lambda_2(L_{\mathcal{C}}) > 0 (the concurrence graph becomes connected). Empirical finding: KpKcK_p \approx K_c.

Module: analysis/entanglement_percolation.py

Fidelity Susceptibility (Gem 20)

χF(K)=2(δK)2δK=0ψ(K)ψ(K+δK)\chi_F(K) = -\frac{\partial^2}{\partial(\delta K)^2}\bigg|_{\delta K=0} |\langle\psi(K)|\psi(K + \delta K)\rangle|

χF\chi_F is the gauge-invariant diagnostic: the Berry connection on a 1D open path is pure gauge, but χF\chi_F peaks at the phase transition regardless of the gauge choice.

Module: analysis/berry_fidelity.py

Quantum Mpemba Effect (Gem 21)

Under amplitude damping (Lindblad with Li=γσiL_i = \sqrt{\gamma}\,\sigma_i^-), define the fidelity to the thermal state ρ\rho_\infty:

F(t)=Tr ⁣(ρρ(t)ρ)2\mathcal{F}(t) = \mathrm{Tr}\!\left(\sqrt{\sqrt{\rho_\infty}\,\rho(t)\,\sqrt{\rho_\infty}}\right)^2

Mpemba effect detected when Ffar(t)>Fnear(t)\mathcal{F}_{\mathrm{far}}(t) > \mathcal{F}_{\mathrm{near}}(t) at intermediate times — the far-from-equilibrium state thermalizes faster.

Finding: +N|+\rangle^{\otimes N} (maximum RR, ordered) thermalizes faster than the ground state (near equilibrium) under amplitude damping. Synchronized states are "stickier" — they resist thermalization, which in the SCPN framework implies dynamical protection of synchronised states.

Module: analysis/quantum_mpemba.py

Lindblad NESS (Gem 22)

The non-equilibrium steady state under amplitude damping:

dρdt=i[H,ρ]+γi(σiρσi+12{σi+σi,ρ})=0\frac{d\rho}{dt} = -i[H, \rho] + \gamma\sum_i\left(\sigma_i^-\rho\,\sigma_i^+ - \frac{1}{2}\{\sigma_i^+\sigma_i^-, \rho\}\right) = 0

The NESS ρss\rho_{\mathrm{ss}} satisfies L[ρss]=0\mathcal{L}[\rho_{\mathrm{ss}}] = 0 and retains synchronization signatures (RNESS>0R_{\mathrm{NESS}} > 0) for sufficiently strong coupling.

Module: analysis/lindblad_ness.py

Spectral Form Factor (Gem 27)

g(t)=Tr(eiHt)2d2=1d2neiEnt2g(t) = \frac{|\mathrm{Tr}(e^{-iHt})|^2}{d^2} = \frac{1}{d^2}\left|\sum_n e^{-iE_n t}\right|^2

Level spacing ratio (chaos diagnostic):

rˉ=min(δn,δn+1)max(δn,δn+1),δn=En+1En\bar{r} = \left\langle\frac{\min(\delta_n, \delta_{n+1})}{\max(\delta_n, \delta_{n+1})}\right\rangle, \quad \delta_n = E_{n+1} - E_n

Regimerˉ\bar{r}Level statistics
Integrable0.386Poisson (uncorrelated levels)
Chaotic (GOE)0.536Wigner-Dyson (level repulsion)

The transition from Poisson to GOE as KK increases through KcK_c confirms that the synchronization transition coincides with the onset of quantum chaos.

Module: analysis/spectral_form_factor.py

Krylov Complexity (Gem 31)

Given an operator OO and Hamiltonian HH, the Lanczos algorithm generates the Krylov basis {On)}\{|O_n)\} with recursion coefficients bnb_n:

HOn)=bnOn1)+anOn)+bn+1On+1)H|O_n) = b_n|O_{n-1}) + a_n|O_n) + b_{n+1}|O_{n+1})

The Krylov complexity:

CK(t)=nnϕn(t)2C_K(t) = \sum_n n\,|\phi_n(t)|^2

measures how far into the Krylov chain the operator has spread at time tt. Growth rate: bnnb_n \sim n (chaotic), bnconstb_n \sim \text{const} (integrable).

At KcK_c, Krylov complexity reaches its maximum — the synchronization transition is the point of maximum operator spreading. This is the highest-novelty result (4.5/5): Krylov complexity has never been computed for the Kuramoto-XY system.

Module: analysis/krylov_complexity.py

Stabilizer Rényi Entropy / Magic (Gem 32)

M2=log2 ⁣(PP42N)M_2 = -\log_2\!\left(\frac{\sum_P \langle P\rangle^4}{2^N}\right)

where the sum runs over all $4^NPaulioperatorsPauli operatorsP \in {I, X, Y, Z}^{\otimes N}.. M_2 = 0forstabilizerstates(classicallysimulable);for stabilizer states (classically simulable);M_2$ is maximal for states that are hardest to simulate classically.

At KcK_c, magic peaks — the critical ground state is maximally non-classical. This connects synchronization to computational complexity: the point where the synchronisation transition occurs (in the SCPN model) is precisely where classical simulation fails.

Module: analysis/magic_nonstabilizerness.py

Finite-Size Scaling (Gem 33)

The BKT transition has logarithmic finite-size corrections:

Kc(N)=Kc()+a(lnN)2K_c(N) = K_c(\infty) + \frac{a}{(\ln N)^2}

This ansatz, fitted to small-system data (N=2,3,4,5N = 2, 3, 4, 5), extracts the thermodynamic-limit critical coupling Kc()K_c(\infty).

Module: analysis/finite_size_scaling.py

Richardson Pairing Correlator (Gem 25)

Si+Sj=ψσi+σjψ\langle S_i^+ S_j^-\rangle = \langle\psi| \sigma_i^+ \sigma_j^- |\psi\rangle

where σi+=(Xi+iYi)/2\sigma_i^+ = (X_i + iY_i)/2. Strong pairing (S+S>0|\langle S^+S^-\rangle| > 0) signals the Richardson pairing mechanism — synchronization as quantum superconductivity. The Kouchekian-Teodorescu paper (arXiv:2601.00113) proves that this connection is exact for perturbations around the synchronised fixed point.

Module: analysis/pairing_correlator.py


Equation Map: Module → Physics

ModuleKey EquationPhysical Meaning
knm_hamiltonianH=Kij(XX+YY)ωiZiH = -\sum K_{ij}(XX+YY) - \sum\omega_i Z_iCoupling → quantum spin chain
sync_witnessW=RcICˉXYW = R_c I - \bar{C}_{XY}Certification of synchronization
dynamical_lie_algebradim=22N12\dim = 2^{2N-1} - 2Reachable unitaries, only Z₂ conserved
qfi_criticalityFQ1/Δ2F_Q \propto 1/\Delta^2Metrological precision at KcK_c
entanglement_percolationλ2(LC)>0\lambda_2(L_\mathcal{C}) > 0Entanglement spans the network
berry_fidelityχF\chi_F peaks at KcK_cGauge-invariant transition detector
quantum_mpembaFfar>Fnear\mathcal{F}_{\mathrm{far}} > \mathcal{F}_{\mathrm{near}}Ordered states resist thermalization
spectral_form_factorrˉ\bar{r}: 0.386 → 0.536Integrable → chaotic at KcK_c
krylov_complexityCKC_K peaks at KcK_cMaximum operator spreading
magic_nonstabilizernessM2M_2 peaks at KcK_cMaximum non-classicality
finite_size_scalingKc(N)=Kc()+a/(lnN)2K_c(N) = K_c(\infty) + a/(\ln N)^2Thermodynamic limit extraction
pairing_correlatorS+S\langle S^+S^-\rangleSuperconducting-like pairing
entanglement_entropyS(c/3)lnL,  c=1S \sim (c/3)\ln L,\; c=1CFT at BKT criticality
floquet_kuramotoK(t)=K0(1+δcosΩt)K(t) = K_0(1+\delta\cos\Omega t)Discrete time crystal
lindblad_nessL[ρss]=0\mathcal{L}[\rho_{\mathrm{ss}}] = 0Open-system steady state
loschmidt_echo$\lambda(t) = -\ln\langle\psi_0
xxz_phase_diagramHXXZ(Δ)H_{XXZ}(\Delta)XY → Heisenberg crossover

Convergence of All Probes at KcK_c

The critical point concordance (Gem 19) demonstrates that all independent diagnostics agree on the same KcK_c. This is the central empirical result of the package: eight independent observables, computed from different mathematical frameworks, all point to the same coupling strength.

graph LR
    subgraph "Monotonic probes"
        R["R (order parameter)\n0 → 1"]
        L2["λ₂ (Fiedler)\n0 → connected"]
        GAP["Δ (spectral gap)\nclose → open"]
    end

    subgraph "Peak probes"
        QFI["F_Q (QFI)\npeak at K_c"]
        M2["M₂ (magic)\npeak at K_c"]
        CK["C_K (Krylov)\npeak at K_c"]
        CHI["χ_F (fidelity susc.)\npeak at K_c"]
    end

    subgraph "Decay probes"
        PH1["p_H1 (topology)\nhigh → 0"]
        RBAR["r̄ (chaos)\n0.386 → 0.536"]
    end

    R --> KC["K_c\ncritical coupling"]
    L2 --> KC
    GAP --> KC
    QFI --> KC
    M2 --> KC
    CK --> KC
    CHI --> KC
    PH1 --> KC
    RBAR --> KC

    style KC fill:#6929C4,color:#fff

Behaviour of each probe across the transition:

ProbeBelow KcK_cAt KcK_cAbove KcK_cType
RR (order parameter)0\approx 00.5\sim 0.51\to 1Monotonic rise
FQF_Q (QFI)SmallPeak (diverges as $1/\Delta^2$)DecreasesPeak
Δ\Delta (spectral gap)OpenMinimum (near-degeneracy)Re-opensValley
λ2\lambda_2 (Fiedler)=0= 0Crosses zero>0> 0Step-like
M2M_2 (magic)LowPeak (maximally non-classical)DecreasesPeak
CKC_K (Krylov)LowPeak (maximum operator spreading)DecreasesPeak
χF\chi_F (fidelity susc.)LowPeak (gauge-invariant)DecreasesPeak
pH1p_{H_1} (persistent homology)High (many holes)0.72\approx 0.72 target, still open0\to 0 (no holes)Monotonic decay
rˉ\bar{r} (level spacing)$0.386$ (Poisson)Crossover$0.536$ (GOE)Step-like

Every probe — order parameter, Fisher information, spectral gap, Fiedler connectivity, magic, Krylov complexity, fidelity susceptibility, persistent homology — independently identifies the same critical coupling KcK_c. The pH1=0.72p_{H_1}=0.72 value remains an open empirical/theoretical parameter: the square-lattice BKT expression is a negative control, not a K_nm graph derivation.

Module: analysis/critical_concordance.py

GUESS Symmetry-Decay ZNE (April 2026)

Reference: Oliva del Moral et al., arXiv:2603.13060 (2026), Eq. 5. For a Hamiltonian symmetry observable SS with [H,S]=0[H, S] = 0 and known ideal value Sideal\langle S\rangle_{\text{ideal}}, the noise-induced decay under noise scale gg obeys

Sg  =  Sidealeα(g1).\langle S \rangle_g \;=\; \langle S \rangle_{\text{ideal}} \, e^{-\alpha (g - 1)}.

The exponent α\alpha is fitted by log-linear regression on (g1,lnSg/Sideal)(g - 1, \ln \lvert\langle S\rangle_g/\langle S\rangle_{\text{ideal}}\rvert) pairs. The mitigated target observable is

Omitigated    Onoisy(SidealSnoisy)α.\langle O \rangle_{\text{mitigated}} \;\approx\; \langle O \rangle_{\text{noisy}} \, \left( \frac{\lvert\langle S\rangle_{\text{ideal}}\rvert} {\lvert\langle S\rangle_{\text{noisy}}\rvert} \right)^{\alpha}.

For SCPN Kuramoto-XY, the natural symmetry is the conserved total magnetisation S=iZiS = \sum_i Z_i (since [HXY,Zi]=0[H_{XY}, \sum Z_i] = 0), so Sideal=+n\langle S\rangle_{\text{ideal}} = +n for the ground state.

Module: mitigation/symmetry_decay.py (Rust path: scpn_quantum_engine.fit_symmetry_decay, scpn_quantum_engine.guess_extrapolate_batch).

DynQ Quality Score (April 2026)

Reference: Liu et al., arXiv:2601.19635 (2026), Eqs. 1 and 8. The QPU is modelled as a graph G=(V,E,W)G = (V, E, W) with edge weights inversely proportional to the two-qubit gate error rates:

wij  =  1eij+ϵ0,ϵ0=106.w_{ij} \;=\; \frac{1}{e_{ij} + \epsilon_0}, \quad \epsilon_0 = 10^{-6}.

Louvain community detection partitions GG into sub-regions, and each sub-region RR is scored by

Sconn(R)=ERVR(VR1)/2,Sfid(R)=11ER(i,j)EReij,S_{\text{conn}}(R) = \frac{|E_R|}{|V_R|(|V_R|-1)/2}, \qquad S_{\text{fid}}(R) = 1 - \frac{1}{|E_R|}\sum_{(i,j)\in E_R} e_{ij},

with the composite quality

Q(R)  =  Sconn(R)Sfid(R).Q(R) \;=\; S_{\text{conn}}(R) \cdot S_{\text{fid}}(R).

The chosen execution region maximises Q(R)Q(R) subject to VR|V_R| \ge the circuit width.

Module: hardware/qubit_mapper.py (Rust path: scpn_quantum_engine.score_regions_batch).

ICI Mixing Angle (April 2026)

Reference: Liu et al. (2023), STIREP optimal control. The Pontryagin Maximum Principle solution for stimulated Raman exact passage with Lindblad decay from the excited state is a three-segment trajectory in the mixing angle θ(t)\theta(t) between pump and Stokes:

θ(t)={θJt/t10t<t1(intuitive)θJ+(π22θJ)tt1t2t1t1t<t2(counter-intuitive)π2θJ+θJtt2Tt2t2tT(intuitive)\theta(t) = \begin{cases} \theta_J\, t / t_1 & 0 \le t < t_1 \quad (\text{intuitive}) \\ \theta_J + (\tfrac{\pi}{2} - 2\theta_J)\dfrac{t - t_1}{t_2 - t_1} & t_1 \le t < t_2 \quad (\text{counter-intuitive}) \\ \tfrac{\pi}{2} - \theta_J + \theta_J\dfrac{t - t_2}{T - t_2} & t_2 \le t \le T \quad (\text{intuitive}) \end{cases}

with t1=0.05Tt_1 = 0.05\,T, t2=0.95Tt_2 = 0.95\,T, and the boundary jump angle θJ=θjump\theta_J = \theta_{\text{jump}}. The Rabi frequencies satisfy the total power constraint \Omega_P^2 + \Omega_S^2 = \Omega_0^{2}$$ with

ΩP(t)=Ω0sinθ(t),ΩS(t)=Ω0cosθ(t).\Omega_P(t) = \Omega_0 \sin\theta(t), \qquad \Omega_S(t) = \Omega_0 \cos\theta(t).

Module: phase/pulse_shaping.py (Rust path: scpn_quantum_engine.ici_mixing_angle_batch).

(α,β)-Hypergeometric Pulse Envelope (April 2026)

Reference: Ventura Meinersen et al., arXiv:2504.08031 (2025), Eq. 14. The unified adiabatic pulse family parameterised by the Gauss hypergeometric function 2F1{}_2F_1:

Ω(t)Ω0=sech(γt)2F1 ⁣(α,β;α+β+12;1+tanh(γt)2).\frac{\Omega(t)}{\Omega_0} = \mathrm{sech}(\gamma t) \cdot {}_2F_1\!\left( \alpha,\, \beta;\, \tfrac{\alpha + \beta + 1}{2};\, \tfrac{1 + \tanh(\gamma t)}{2} \right).

Special cases:

Protocolα\alphaβ\beta
Allen-Eberly (pure sech\mathrm{sech})00
STIRAP-optimal0.50.5
Demkov-Kunike1.00.5

The analytical infidelity bound in the adiabatic limit is

1F    (γΩ0)2Γ(α+1)Γ(β+1)Γ ⁣(α+β2+1)2.1 - F \;\lesssim\; \left(\frac{\gamma}{\Omega_0}\right)^2 \, \frac{\Gamma(\alpha+1)\,\Gamma(\beta+1)} {\Gamma\!\left(\tfrac{\alpha+\beta}{2}+1\right)^2}.

Module: phase/pulse_shaping.py (Rust path: scpn_quantum_engine.hypergeometric_envelope_batch, custom 2F1{}_2F_1 series expansion + rayon, 44× faster than scipy element-wise).