# Advanced experiment analysis toolkit (prospective, descriptive only)

The three worked examples are deterministic synthetic illustrations, using the existing experiment-specific CSV headers. Their timestamps, calibrations (blank), and values are not records of physical tests. Do not combine them with observations. Python 3.9+ standard library only. From the advanced-lab directory, run `python analysis/block_analysis.py clock analysis/clock-synthetic.csv`, replacing clock with force or interferometer as appropriate. Run `python -m unittest discover -s analysis -p test_block_analysis.py` for validation. Regenerate examples only in a separate working copy using `python analysis/generate_examples.py`.

Clock: supply corrected, high-precision log-ratio offsets relative to the same reference, not rounded optical-frequency readouts. Four observations in LRRL or RLLR order with equal time centers form R minus L. The demonstration yields 1.005e-18, with illustrative linear drift canceled. Force: supply one fixed detector/probe configuration and the independently calculated conventional contribution for each observation; subtract it before the same contrast. Example residual is 1e-10 m/s². It is a synthetic single-probe residual, not a measured composition contrast or a clock bound. Matched differential channels require their own validated transfer and covariance analysis.

Interferometry: supply independently unwrapped phases with fixed optical schedule and all eight isotope/source/recoil states (Rb85/Rb87, L/R, +1/-1). The estimator is 1/2 times the signed triple-parity sum; average a block with its exact reverse, verifying symmetric observation centers. The synthetic mean is -0.225284402 rad. Each row needs measured fidelity ≥0.90, leakage ≤0.05 and positive contrast to pass this limited software screen. This cannot validate ensemble-wide pulse fidelity, trajectory closure, phase references or any other optical gate; the Phase 34 actual numerical mirror/final designs failed. The synthetic example assigns hypothetical passing metrics solely to demonstrate arithmetic. Do not use it to authorize measurements.

The program rejects malformed or incomplete blocks, invalid rows, mixed primary configuration, invalid timestamps and inconsistent orders. It cannot verify actual calibration, geometry, configuration metadata completeness, source-state settling, corrections, independence or phase unwrapping. Preserve all raw and rejected records; if exclusions are preregistered, export a separately labeled valid-block subset rather than deleting failures. The program deliberately provides only descriptive mean and sample standard deviation across blocks (or reverse pairs), not a confidence interval. Zero synthetic scatter does not imply zero uncertainty. Correlated noise, measured systematic bounds and independently validated transfer must be assessed externally before scientific conclusions. No new field solve, hardware qualification or experiment is claimed.
