Skip to content

About

Collider Beacon Phase 0: extractor P (Python and C++/ROOT bit-identical twin), XRootD pipeline, measured results (CMS ZeroBias Run2016G; h_min 7.8413 bits/event)

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

72 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Collider Beacon — Phase 0 Engineering

Engineering stack for the Collider Beacon project: certified public randomness from symmetry and quantum measurement. Phase 0 covers the complete processing chain from CMS Open Data to audited random bits, including a bit-identical dual implementation (Python and C++/ROOT) and a complete evidence record.

Citation

J. Zhu, Precision and Detector Fingerprints in Public Collider Data: An Azimuthal-Uniformity Audit of CMS and ATLAS Open Data, Zenodo preprint (2026). Version DOI 10.5281/zenodo.23632595; concept DOI 10.5281/zenodo.23434445. Earlier version: The Collider Beacon: Certified Public Randomness from Symmetry and Quantum Measurement (10.5281/zenodo.23434446).

Measured results (2026-10-16)

  • Input: CMS ZeroBias Run2016G NanoAOD open data (CC0-1.0); 67/67 files; remote read via XRootD.
  • Sample: n = 5,211,771 qualifying events; 41,694,168 bits.
  • Certified output entropy: 7.8413 bits/event (98% of the b = 8 ceiling); Clopper–Pearson upper bound with Bonferroni correction, alpha = 1e-6.
  • Extractor definition: per event, leading-jet azimuth (maximum pT); |eta| < 2.5; pT > 20 GeV; 256 uniform bins; MSB-first packing; one byte per event at b = 8.
  • Quality gates: KS 67/67; NIST STS zero flags over the full 41.7 Mbit stream.
  • Systematic effect: localized acceptance deficit of −10.5% (bins 227–234, phi ≈ +139°..+150°), stable across all 67 files and terciles, unchanged under tight-jetId selection. The entropy bound absorbs this effect conservatively; details are reported in the companion paper.
  • Cross-detector check (2026-10-17): ATLAS Open Data record 93933 (Run 2 2015+2016, no skim, CC0-1.0), 16 files, n = 597,965 events, same extractor and binning. The CMS −10.5% band does not reproduce: ATLAS local band ratio 1.0024 ± 0.0072; the CMS value is excluded at 14.1σ (pooled, conservative estimator comparison). The ATLAS sample carries a broad +2.4% acceptance modulation instead. Details: atlas/RESULTS-2026-10-17.md.
  • Symbol-level dependence and stationarity audit (2026-10-23): lag-k mutual information 0.0090 bits, identical to the shuffled-series floor; 3/67 per-file certified h_min outside the 2.5–97.5% uniform-null band, all below by 0.003–0.015 bit; block-wise MCV matches the uniform null. Details: diagnostics/dependence-2026-10-23.txt.
  • b=12 per-file certification (2026-10-23): 6.10–10.00 bits per file (median 9.78, 5% quantile 8.43); 67/67 files below 10. The ≥ 10-bit/event gate is a pooled-run statement (n ≈ 5.2M), not a per-file one. Details: diagnostics/b12-perfile-2026-10-23.txt.
  • E2 lattice-aligned alphabet (2026-10-24): the empirical 12-bit storage lattice (signed phi, raw float32 bit patterns) yields S1 = 12.9409 bits/event (single-stage Clopper–Pearson with Bonferroni) and S2 = 13.1349 bits/event (two-stage select/certify). Synthetic zero-hypothesis ceiling 12.9857 / 13.2383; computed signed floor 13.65; gain over the b=12 linear arm +1.6311 bit. Both arms lie inside the pre-registered real-data bands (amendment 4); no falsification condition triggered. Details: diagnostics/lattice-result-2026-10-24.md.
  • Stage-2 conditioning (2026-10-23): block-wise Toeplitz extraction over GF(2) with a SHAKE256 chained public seed and a 128-bit leftover-hash margin. Canonical b=12 configuration (25,000 events per block, 58 one-megabit sequences): zero NIST STS flags for three independent seed salts; b=8 control also zero. The raw b=12 stream has six flags. Details: conditioning/RESULT-2026-10-23.md.
  • Two-stage commitment (2026-10-23): C_plan = 0b8ff375… fixes the b=12 plan before recording; C_data = a7a49e01… binds the 67-file SHA256 manifest of the extracted bit streams after recording; verify passes and tamper tests fail. Details: protocol/README.md.
  • Geant4 audit (2026-10-23): simplified full simulation (six Si layers + PbWO4 calorimeter); Z→μμ peak 90.82 GeV (σ68 3.31, 2000 events), H→γγ 124.24 GeV (σ68 0.27, 2000 events); a 5% calibration drift shifts the peaks by 4.53/6.21 GeV at 38.6σ/492σ. Details: audit/README.md.

Repository layout

  • phase0_extract.py — extractor P (reference implementation).
  • phase0_extract_v1_1.py — round-2 variant with corrected tight-jetId bitmask test ((jetId & 2) == 2).
  • phase0_extract_legacy-f8622c70.py — pre-R3 frozen bytes (round-1 manifests record this code_sha256).
  • phase0_verify.py — independent manifest re-check (hashes, entropy recomputation, gates).
  • xrd_*.py, *.sh — XRootD pipeline: batch extraction, resumable file fetch with watchdog, portal reconciliation (adler32), provenance, aggregation.
  • twin/ — C++/ROOT twin of the extractor (bit-identical target), edge-case battery, and single-command runner.
  • runG/, runG2/, refix-2026-10-16/ — evidence: per-file manifests, bit outputs, checksums, aggregates, round-2 sample, R3 re-verification and twin battery outputs.
  • latticeG/ — E2 raw-phi arm: 67 per-file manifests with lattice_sha256 and extractor hashes, plus SHA256SUMS. The raw *.lattice.bin files (about 20 MB) are not stored; xrd_batch_lattice.sh regenerates them from uris.txt.
  • mc/ — Pythia8 command cards and prediction-side evidence; large .root files are excluded and are regenerated from the cards.
  • atlas/ — cross-detector check on ATLAS Open Data: adapter, parallel-range HTTP source (EOS 307 redirect + 16 connections), sample URL lists, result manifest and bits.
  • predictions/ — pre-registered prediction cards, committed before official runs.
  • diagnostics/ — symbol-level dependence and stationarity audit of the b = 8 run (lag-k mutual information, per-file certified h_min against the same-n uniform null, block-wise MCV), the ATLAS consecutive-block stability check, the b = 12 per-file certification distribution, and the E2 lattice-aligned entropy result, with result files and checksums.
  • conditioning/ — Stage-2 Toeplitz extraction with a chained public seed, the block-size/seed scan, and the NIST STS reports for the conditioned b = 12 and b = 8 streams.
  • protocol/ — two-stage commitment tool (C_plan before recording, H_RAW/ C_data after), canonical encoding, Phase 0 example records, and verification.
  • audit/ — Geant4 full-simulation audit demonstration: simplified tracker and PbWO4 calorimeter, Z→μμ and H→γγ mass reconstruction, and a 5% calibration drift test.

Reproduction procedure

pip install uproot awkward scipy numpy fsspec xrootd fsspec-xrootd   # use a mirror that carries xrootd
python3 xrd_run.py phase0_extract.py --files uris-local-f01.txt --out out/f01 --pt-min 20
python3 phase0_verify.py out/f01.manifest.json

Prerequisites: battery cells 1–3 require large inputs that are not stored in this repository — data/nano_data2016_1-1.root (CMS Open Data; file list in uris-local-f01.txt, fetch tooling in xrd_fetch_resume.py) and mc/minbias_delphes.root (regenerate with mc/minbias.cmnd: Pythia8 8.317 with the Delphes CMS card). Cells 4–5 are self-contained; cells with missing inputs are skipped with an explanatory message.

C++/ROOT twin (ROOT 6.40.04 from CVMFS; the script configures the required environment settings listed below):

bash twin/twin_run.sh

The battery compares the twin against the frozen Python reference outputs, byte by byte:

Cell Scope Criterion Result
1 f01, b = 8, real data identical to runG/f01.bits.bin (sha256 6bc096b7…) pass
2 f01, b = 5 residual-bit path (6 residual bits discarded) pass
3 MC Delphes, b = 5 prediction-side tree pass
4 Edge cases pT ties (first-maximum selection), NaN masking, exact bin edges (±1 ULP), ±π clamp pass
5 NaN-phi input both implementations reject (Python exception; twin exit code 3) pass

E2 lattice-aligned analysis (requires the regenerated latticeG/*.lattice.bin files; see latticeG/ above):

python3 diagnostics/lattice_integrity.py --lattice-dir latticeG \
  --require-complete --expected-files 67 --expected-n 5211771 \
  --out diagnostics/lattice-integrity.json
python3 diagnostics/lattice_alpha.py --lattice-dir latticeG \
  --out diagnostics/lattice-alpha.json --fig diagnostics/lattice-alpha.png

Environment configuration

The following settings are required; they are configured in twin/twin_run.sh and were established during commissioning:

  • LCG ROOT's Cling startup probes x86_64-linux-gnu-g++-11 (the compiler name recorded by the LCG build). Without it, interpreter creation fails; a symlink to the system C++ compiler under that name resolves this.
  • ROOT external libraries (TBB, PCRE2) are not included in root-config --libs; their LCG release paths must be added to LD_LIBRARY_PATH at link and run time.
  • CVMFS lazy loading of .pcm and .so files can stall on mmap page faults; a one-time prewarm of the ROOT library directory is required (command in the script header).
  • XRootD: URIs require the root://host//eos/... form (double slash); XRootD 6.x pybind11 rejects numpy integer types — the adapter xrd_compat.py handles this. Direct XRootD.client.File.read() calls were observed to hang in this environment; reads go through the fsspec-xrootd layer, the same path used by uproot.
  • uproot >= 5.7: classic TTree output requires wf.mktree(name, {col: "var * float32"}) followed by .extend(); plain dict assignment produces an RNTuple.

Evidence and integrity

Each reported number is traceable to a per-file manifest containing the run parameters, code_sha256, bits_sha256, and gate results. The evidence directories runG/, runG2/, refix-2026-10-16/, mc/, latticeG/, and diagnostics/ contain SHA256SUMS files. Lattice manifests pin lattice_sha256 for files that are regenerated rather than stored. Verification: cd <dir> && sha256sum -c SHA256SUMS (protocol/SHA256SUMS uses repository-root paths and is verified from the root). Paths inside retained tool outputs and manifests are relative to the repository root; data/ denotes the local input-data directory, which is not stored here.

Extractor revision ledger: R1 = tight-jetId bitmask test ((jetId & 2) == 2; round-2 variant only). R2 = gate-label fix in phase0_verify.py (logic unchanged). R3 = parameter-derived manifest description string; default --pt-min = 20.0. The algorithm is unchanged across R1–R3; re-verified bit-for-bit (refix-2026-10-16/f01.bits.bin matches runG/f01.bits.bin, sha256 6bc096b7…). code_sha256 lineage: round-1 manifests f8622c70… (frozen bytes: phase0_extract_legacy-f8622c70.py); current 9272d4df….

Evidence ledger: R4 = path normalization (2026-10-26). Local absolute paths in 18 tracked evidence files (21 lines: NIST STS reports and freq.txt, two .sha256 files, two manifests, two precision-anchor outputs) were replaced by repository-relative paths. Payload hashes, numeric results and all manifest fields other than path strings are unchanged; the affected SHA256SUMS files were recomputed (conditioning 8, runG 3, diagnostics 1, mc/herwig/run400k 1 entries).

Input data: CMS Open Data (CC0-1.0). Large input files are not stored in this repository.

License

MIT (see LICENSE). Companion repository: vmc-rsep-xmss (monotone accountability / VMC).

About

Collider Beacon Phase 0: extractor P (Python and C++/ROOT bit-identical twin), XRootD pipeline, measured results (CMS ZeroBias Run2016G; h_min 7.8413 bits/event)

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages