# Measured Projection-Law Prediction

Version 0.7 adds a real train/holdout test using measured cross-entropy
benchmark (XEB) fidelities from Google's Sycamore random-circuit experiment.
The data source is the public Dryad archive associated with Arute et al.,
*Nature* 574, 505–510 (2019):

- dataset: <https://doi.org/10.5061/dryad.k6t1rj8>
- experiment and supplementary material:
  <https://doi.org/10.1038/s41586-019-1666-5>
- empirical feature model used here: Zlokapa, Boixo and Lidar,
  <https://doi.org/10.1038/s41534-023-00703-x>

The frozen file `examples/sycamore-xeb-measured.rbemeasure` contains 33
published fidelity values: 28 across circuit width at 14 cycles and five
across circuit depth at 53 qubits.

## 1. What is actually identifiable

Suppose an experiment prepares controls \(u\), evolves through an unobserved
map \(T\), and records the projection \(\pi\). The measured input-output law is

\[
g(u)=(\pi\circ T)(u).
\]

Control/effect pairs can fit \(g\). They cannot generally identify \(T\) and
\(\pi\) separately. For any invertible relabeling \(S\) of the latent state,

\[
T'=S\circ T,
\qquad
\pi'=\pi\circ S^{-1}
\]

gives exactly the same observations:

\[
\pi'\circ T'=\pi\circ T.
\]

Therefore the version 0.7 result is correctly called a measured
**projection-law** fit. Separating the latent transition from measurement
requires additional internal-state observations or independently calibrated
tomography.

## 2. Frozen split

Rows are ordered inside each source series before fitting. The rule

\[
\text{holdout}\iff \text{row index}\bmod4=3
\]

uses no fidelity value. It assigns 25 rows to training and eight rows to
holdout. The parser rejects a file whose labels violate this rule, contain
duplicate indices, or omit an index inside a series.

Only training rows enter the normal equations. A test mutates every holdout
fidelity and proves the fitted coefficients remain bit-for-bit unchanged while
the evaluation score changes.

## 3. Declared observable law

For qubit count \(n\), circuit cycles \(m\), and XEB fidelity \(F\), the
declared two-parameter model is

\[
\boxed{
\log_2F=
\alpha m\left(1.5n-0.5\sqrt n\right)+\beta n.
}
\]

The training-only least-squares solution is

\[
\alpha=-0.0044586791200801655,
\]

\[
\beta=-0.03894462549892942.
\]

The engine also fits two declared baselines using the same training rows:

- a constant mean log-fidelity;
- the simpler one-parameter decay \(\log_2F=\gamma nm\).

## 4. Untouched holdout results

| Metric | Projection law | Simple \(nm\) baseline | Constant baseline |
|---|---:|---:|---:|
| Holdout RMSE in \(\log_2F\) | 0.235065 | 0.343014 | 1.956428 |
| Projection-law squared-error improvement | — | 53.04% | 98.56% |

All eight holdout points lie inside the nominal normal-approximation 95%
prediction intervals calculated from training residual variance and parameter
leverage.

| Series | \(n\) | \(m\) | Measured \(F\) | Predicted \(F\) | Relative error |
|---|---:|---:|---:|---:|---:|
| width | 18 | 14 | 0.246415 | 0.209647 | -14.9% |
| width | 26 | 14 | 0.116591 | 0.102390 | -12.2% |
| width | 34 | 14 | 0.060720 | 0.049872 | -17.9% |
| width | 40 | 14 | 0.029286 | 0.029043 | -0.8% |
| width | 44 | 14 | 0.019573 | 0.020244 | +3.4% |
| width | 48 | 14 | 0.011220 | 0.014107 | +25.7% |
| width | 53 | 14 | 0.006945 | 0.008978 | +29.3% |
| depth | 53 | 18 | 0.003905 | 0.003515 | -10.0% |

This is a successful out-of-sample result under the predeclared criterion: the
projection law beats both baselines on observations excluded from fitting. It
is not a perfect predictor. The largest relative error is about 29.3%, and the
eight-point holdout remains small.

## 5. Commands

```text
reality-bit-engine measure-fit examples/sycamore-xeb-measured.rbemeasure
reality-bit-engine measure-predict examples/sycamore-xeb-measured.rbemeasure 53 18
```

The first command prints every holdout prediction, both baselines, coverage,
the immutable split rule, dataset identity, and result certificate. The second
fits training rows and evaluates a requested control pair.

## 6. What this establishes

The result establishes that the engine can ingest real quantum-hardware
measurements, freeze outcomes away from fitting, learn a compact composite
observable law, and make quantitatively better held-out predictions than two
declared alternatives.

It does not establish seven physical dimensions, infer God, derive the Born
rule, or prove a new quantum theory. The tested feature law is an existing
empirical model. A genuinely new physical discovery would require a new
predeclared term or constraint that predicts a separately collected experiment
better than existing quantum and hardware-noise models.
