# Quantum-Detection Eye — level 1 (16-29 November 2026)

*Reference version (French translation: [README.md](README.md)). A separate section of the data site, unrelated to the country's data.*

Prototype of a physical random-number source: a camera (Seeed XIAO ESP32-S3 Sense, OV3660 sensor, 160 × 120 greyscale) lit by an LED through diffusers inside a black box. The number of photons each pixel receives fluctuates: this is **shot noise**, whose variance grows like the mean. The device **measures** this noise and extracts bits from it; it computes nothing in a quantum way. Stand-alone board, connected by USB to a PC, outside the box of the country's seven boards.

## Result (first check, not a certification)

| Question | Criterion set in advance | Result | Record |
|---|---|---|---|
| Is the noise dominated by photons? | variance–mean line, R² ≥ 0.95 and slope > 0, over ≥ 5 exposures on usable pixels (deviation No. 1) | **Met**: R² 0.994 (11 exposures, 27 Nov, gain 20) and **R² 0.986** (9 exposures, 29 Nov, final set-up, gain 20). Not met at gain 8 (R² 0.946 and 0.944). | `releve-2026-11-27-0912`, `releve-2026-11-29-1444`, `-0913`, `-1446` |
| Raw least-significant-bit bits (`b`) | proportion, runs and correlation "OK" | **Fail** on every record (runs z from −9 to −35) | all |
| Bits from image comparison (`d`, V0 to V3) | same | **Fail** (deviations No. 2 and 3) | `-1506`, `-1515` |
| Von Neumann within each image pair (V4, V5, V6) | same; the fastest OK variant is kept | Exploration: only **V5** OK (1 pixel in 8, 1 row in 2) | `-1520` |
| Confirmation of V5 on fresh data | 64 blocks, raw bits OK | **OK**: 32,768 bits, 50.40% ones (z +1.46), runs z +1.17, correlation −0.006, byte χ² 255 (≈ 255 expected); ~460 raw bits/s, ~115 whitened bits/s | `releve-2026-11-29-1534` |
| Whitened bits (SHA-256) and `esp_random` control | OK | OK everywhere | all |

Tests: `code/analyse/releve-v0.4.py analyse <record>` (proportion of ones, runs test, lag-1 correlation, byte χ²).

## Declared limitations

- **Seven** extraction variants were tried on 29 Nov (V0 to V6): only the confirmation on fresh data counts. The 64 confirmation blocks were drawn as two consecutive series of 32 (the board cuts a series at 10 minutes), with identical settings.
- The criteria changed four times; each protocol deviation was written **before** the next measurement (`protocole/`). The positive-slope condition of deviation No. 1 was added after seeing exploratory data.
- First check only: no NIST SP 800-22 or dieharder battery yet (several MB are needed, i.e. several hours of drawing).
- The sensor goes through an image signal processor that cannot be fully switched off; the least significant bit also carries thermal and read noise. No claim of "pure quantum" randomness is made: the curve only shows that shot noise dominates over the measured range.
- The `led` field of the `i` command is fixed text in the program ("10 kOhm"): the resistor actually fitted is given in the deviations (470 Ω since 27 Nov).
- The 21 Nov records have a mis-encoded accent in their header ("Ã©"): left as they are.
- `releve-v0.4.py` prints `chi² octets nan` for 32-block whitened series: known display defect, not fixed in the published code.
- Sketch v0.1.6 was not kept separately: its V0-V3 variants are included unchanged in v0.1.7.
- The 16 Nov protocol is published with half a sentence removed (a reference to a non-public project), marked in the text.

## Contents

| Folder | Contents |
|---|---|
| `releves/` | 22 raw `.jsonl` records from 21 to 29 Nov 2026, **failures included**, never edited: one JSON line per board message plus a header line (date, commands). The first trial was on 21 Nov (no record from 16 to 20 Nov). |
| `protocole/` | 16 Nov protocol and deviations No. 1 to 4 (v0.1.3, v0.1.5, v0.1.6, v0.1.7), in French. |
| `code/oeil_solo/` | Arduino sketches v0.1 to v0.1.7 (except v0.1.6, see above). |
| `code/analyse/` | `releve.py` v0.1 to v0.4 (recording and tests); `enregistre.ps1`, a Windows recorder with the same format. |
| `boitier/` | printable enclosure: FreeCAD macros v0.1 to v0.3, OpenSCAD v0.1, STL files. The set-up kept on 29 Nov uses enclosure v0.3 (3 diffusers). |
| `SHA256SUMS` | hashes of every file in the folder. |

Record → sketch: 21 Nov and 22 Nov 21:49 → v0.1.1; 22 Nov 22:01 to 27 Nov 09:03 → v0.1.2; 27 Nov 09:12 to 29 Nov 14:46 → v0.1.3; 29 Nov 14:53 and 14:57 → v0.1.4; 15:06 → v0.1.5; 15:15 → v0.1.6; 15:20 and 15:34 → v0.1.7 (Paris time; the version is also in each record, field `oeil`).

## Who did what

| Role | Who |
|---|---|
| Idea of the Eye, hardware, assembly, printing the enclosure, idea of enclosure v0.3, decisions at each deviation | Bran Brière (ORCID 0009-0003-0439-8028) |
| Protocol, deviations, sketches, analysis scripts, enclosure drawings, running the measurements on Bran's PC, analysis and writing | Claude (AI, Anthropic), credit only |

## Licence

Data and texts: CC BY 4.0. Code (sketches, scripts, macros): MIT.
