Native Spinach propagation benchmark

Completed native-route experiment. Exact source, raw repeats, validation data, and launch records accompany this report.

ODC4 is accurate, but is not the fastest implementation in this experiment. Across 24 case/target comparisons using maximum physical checkpoint error, CF4 wins 5, CF4-3 wins 3, and CF6-5 wins 16. Their best measured medians improve on the fastest qualifying pre-existing route by 1.78 to 67.79 times. ODC4 takes 3.00 to 11.43 times the winning time.

What was measured

The sweep contains 1,204 method/grid cases and 6,020 timed full solves, with five interleaved repetitions per point. All 28 routes were compared on the common two-spin fixtures. Six- and eight-spin fixtures cover 25 routes; native amplitude/frequency phase-grid routes were limited to two spins.

Each solve propagates four reproducible orthonormal complex state columns for a 1 ms pulse under the same spin-chain Hamiltonian. The drift contains site offsets and nearest-neighbour ZZ interactions. RF acts along X and Y with boundary-flat, nonflat, or chirped analytic controls. The state dimension is 2n. Static setup and independent reference costs are recorded separately.

Timed calls include waveform sampling, generator construction, requested derivatives and onsite jets, native exponential actions, endpoint processors, and final physical decoding. No trajectory is requested during timing. Accuracy is checked separately at 17 equally spaced physical checkpoints, without phase alignment or renormalisation. Errors are Frobenius differences divided by the initial block norm, which is 2.

Equal-error comparison

Median complete solve times at maximum checkpoint error 1e-8

All eight fixtures at the strictest selected target. Whiskers show observed min-max across five repeats, not confidence intervals. Each method uses its fastest measured qualifying grid.

Fastest measured qualifying grid

Primary criterion: maximum error over the 17 checkpoints. Selection uses the lowest measured median among grids meeting each target, without interpolation or extrapolation. The archive also includes final-state-only selections and every method’s qualification status.

Spins / pulseTargetWinner (steps)Time, msBest older route (steps)SpeedupODC4 / winner
2 / flat1e-04CF4 (16)1.347isergen-three (32)2.126.57
2 / flat1e-06CF6-5 (16)3.244isergen-three (128)3.185.32
2 / flat1e-08CF6-5 (32)5.976RKMK-DP8 (16)2.495.58
2 / nonflat1e-04CF4 (16)1.344isergen-three (32)2.096.49
2 / nonflat1e-06CF6-5 (16)3.068isergen-three (128)3.375.56
2 / nonflat1e-08CF6-5 (32)5.778RKMK-DP8 (16)2.635.76
2 / chirp1e-04CF4-3 (16)1.899isergen-three (64)2.634.49
2 / chirp1e-06CF6-5 (16)2.961RKMK-DP5 (32)4.5910.90
2 / chirp1e-08CF6-5 (32)5.553RKMK-DP8 (32)4.9511.43
6 / flat1e-04CF4 (16)7.584isergen-three (32)1.874.85
6 / flat1e-06CF6-5 (16)16.677isergen-three (128)2.914.27
6 / flat1e-08CF6-5 (32)29.231isergen-three (512)6.054.77
6 / nonflat1e-04CF4 (16)8.001isergen-three (32)1.784.55
6 / nonflat1e-06CF6-5 (16)16.817isergen-three (128)2.884.21
6 / nonflat1e-08CF6-5 (32)29.482isergen-three (512)5.924.70
6 / chirp1e-04CF4-3 (16)10.853isergen-three (64)2.356.47
6 / chirp1e-06CF6-5 (16)16.622isergen-three (256)5.468.23
6 / chirp1e-08CF6-5 (64)53.025RKMK-DP8 (32)9.335.05
8 / nonflat1e-04CF4 (16)35.540isergen-three (32)2.073.50
8 / nonflat1e-06CF6-5 (16)76.633step-three (128)3.443.00
8 / nonflat1e-08CF6-5 (32)134.953RKMK4 (256)13.843.31
8 / chirp1e-04CF4-3 (16)48.690isergen-three (64)2.904.66
8 / chirp1e-06CF6-5 (16)75.389step-three (256)6.155.88
8 / chirp1e-08CF6-5 (64)238.165RKMK-RKF45 (128)67.793.66

“Older route” excludes the six methods added by this branch: GM4, CF4, CF4-3, CF6-5, BP4, and ODC4. This does not mean their mathematical formulas are all new. Five-repeat medians and recorded min/max spreads are descriptive, not formal confidence intervals.

Work-precision curves

Native Spinach work precision curves for two, six, and eight spins

Grey lines show pre-existing native routes; coloured lines show additions to this branch. Points are measured grids; connecting lines guide the eye. Raw tables retain points outside the plotted error range.

Native-route coverage

The candidate methods use Spinach’s native step action. BP4 and ODC4 telescope internal processors through iserblock; physical output decoding is charged. Competing solvers are not standalone ports.

Accuracy and verification

The reference independently integrates the Schrodinger equation with ode113, then tightens tolerances and maximum step. Its largest refinement difference in the timing fixtures is 4.47e-13. The correctness sweep contains 625 method/grid comparisons, including strong and zero interactions, plus 36 amplitude/frequency checks. All numerical calls completed successfully.

The six new methods passed block/single-step parity, reversibility, superposition, long-run Gram preservation, and Hilbert density-matrix checks. Their largest long-run Gram defect is 8.69e-14. Density tests cover unitary conjugation, trace, Hermiticity, and minimum eigenvalue.

ODC4 order is conditional

With zero coupling, nonflat-pulse ODC4 errors at 32, 64, and 128 steps are 1.78e-8, 2.77e-10, and 4.33e-12, consistent with sixth-order onsite cancellation. For four spins with the coupling multiplier raised to 20, the errors are 2.34e-6, 1.46e-7, and 9.13e-9, consistent with fourth order. The interacting method is not generally sixth order.

Regression and source checks

The focused house-style checker passed. Git whitespace checking passed with the repository-required trailing blank lines exempted.

Remaining code-analyser diagnostics are retained in postflight/quality.json:

Timing exit status: 0. Postflight exit status: 0. Focused house-checker and chart outcomes are recorded in postflight_console.log.

Interpretation and limits

Environment and reproducibility

Branch: research/odc4-native-benchmark-20261114. Local source commit: dc0f6c3d384c1f7ca3b38e5fa09d835f1ddb7676. No push or merge was performed.

Intel Xeon w9-3595X, 60 physical / 120 logical cores; Windows Server 2025 Standard; MATLAB 26.2.0.3320248 (R2026b) Prerelease Update 2. The fixture requests one native process worker and sets the client to one computational thread after construction. Spinach warns that the worktree is on ReFS and recommends NTFS for locking and performance.

Use examples/benchmarks/native_propagation/README.md to reproduce the sweep. Keep numerical sources unchanged between resumed segments. The archive retains MAT/CSV/JSON evidence, raw repeats, achieved-error selections, hashes, tests, completion logs, and coefficient reconstruction.

Coefficient attribution

CF4-3 and CF6-5 are CF4:3Opt and CF6:5Opt from Alvermann and Fehske, Journal of Computational Physics 230 (2011), 5930-5956, Tables 5 and 6. Reconstructing their Gauss-node coefficients using Eq. 60 matches this branch within 1.11e-16 and 8.33e-17. Primary paper; open manuscript.

These are measured implementation results, not universal or hardware-independent speed claims.