PureOne commited on
Commit
fd3c473
·
verified ·
1 Parent(s): 4a2d6b4

Release 2.0.0: continuous photonic compilation

Browse files

Manuscript v2.0, analytic compiler, and 84 recorded verification targets.

.gitattributes CHANGED
@@ -1,60 +1,6 @@
1
- *.7z filter=lfs diff=lfs merge=lfs -text
2
- *.arrow filter=lfs diff=lfs merge=lfs -text
3
- *.avro filter=lfs diff=lfs merge=lfs -text
4
- *.bin filter=lfs diff=lfs merge=lfs -text
5
- *.bz2 filter=lfs diff=lfs merge=lfs -text
6
- *.ckpt filter=lfs diff=lfs merge=lfs -text
7
- *.ftz filter=lfs diff=lfs merge=lfs -text
8
- *.gz filter=lfs diff=lfs merge=lfs -text
9
- *.h5 filter=lfs diff=lfs merge=lfs -text
10
- *.joblib filter=lfs diff=lfs merge=lfs -text
11
- *.lfs.* filter=lfs diff=lfs merge=lfs -text
12
- *.lz4 filter=lfs diff=lfs merge=lfs -text
13
- *.mds filter=lfs diff=lfs merge=lfs -text
14
- *.mlmodel filter=lfs diff=lfs merge=lfs -text
15
- *.model filter=lfs diff=lfs merge=lfs -text
16
- *.msgpack filter=lfs diff=lfs merge=lfs -text
17
- *.npy filter=lfs diff=lfs merge=lfs -text
18
- *.npz filter=lfs diff=lfs merge=lfs -text
19
- *.onnx filter=lfs diff=lfs merge=lfs -text
20
- *.ot filter=lfs diff=lfs merge=lfs -text
21
- *.parquet filter=lfs diff=lfs merge=lfs -text
22
- *.pb filter=lfs diff=lfs merge=lfs -text
23
- *.pickle filter=lfs diff=lfs merge=lfs -text
24
- *.pkl filter=lfs diff=lfs merge=lfs -text
25
- *.pt filter=lfs diff=lfs merge=lfs -text
26
- *.pth filter=lfs diff=lfs merge=lfs -text
27
- *.rar filter=lfs diff=lfs merge=lfs -text
28
- *.safetensors filter=lfs diff=lfs merge=lfs -text
29
- saved_model/**/* filter=lfs diff=lfs merge=lfs -text
30
- *.tar.* filter=lfs diff=lfs merge=lfs -text
31
- *.tar filter=lfs diff=lfs merge=lfs -text
32
- *.tflite filter=lfs diff=lfs merge=lfs -text
33
- *.tgz filter=lfs diff=lfs merge=lfs -text
34
- *.wasm filter=lfs diff=lfs merge=lfs -text
35
- *.xz filter=lfs diff=lfs merge=lfs -text
36
- *.zip filter=lfs diff=lfs merge=lfs -text
37
- *.zst filter=lfs diff=lfs merge=lfs -text
38
- *tfevents* filter=lfs diff=lfs merge=lfs -text
39
- # Audio files - uncompressed
40
- *.pcm filter=lfs diff=lfs merge=lfs -text
41
- *.sam filter=lfs diff=lfs merge=lfs -text
42
- *.raw filter=lfs diff=lfs merge=lfs -text
43
- # Audio files - compressed
44
- *.aac filter=lfs diff=lfs merge=lfs -text
45
- *.flac filter=lfs diff=lfs merge=lfs -text
46
- *.mp3 filter=lfs diff=lfs merge=lfs -text
47
- *.ogg filter=lfs diff=lfs merge=lfs -text
48
- *.wav filter=lfs diff=lfs merge=lfs -text
49
- # Image files - uncompressed
50
- *.bmp filter=lfs diff=lfs merge=lfs -text
51
- *.gif filter=lfs diff=lfs merge=lfs -text
52
- *.png filter=lfs diff=lfs merge=lfs -text
53
- *.tiff filter=lfs diff=lfs merge=lfs -text
54
- # Image files - compressed
55
- *.jpg filter=lfs diff=lfs merge=lfs -text
56
- *.jpeg filter=lfs diff=lfs merge=lfs -text
57
- *.webp filter=lfs diff=lfs merge=lfs -text
58
- # Video files - compressed
59
- *.mp4 filter=lfs diff=lfs merge=lfs -text
60
- *.webm filter=lfs diff=lfs merge=lfs -text
 
1
+ *.pdf filter=lfs diff=lfs merge=lfs -text
2
+ *.py text eol=lf
3
+ *.md text eol=lf
4
+ *.tex text eol=lf
5
+ *.json text eol=lf
6
+ *.csv text eol=lf
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
.gitignore ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ .venv/
2
+ __pycache__/
3
+ *.pyc
4
+ *.aux
5
+ *.log
6
+ *.out
7
+ verification_reproduced.json
8
+ HF_TOKEN*
9
+ .env
CITATION.bib ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ @misc{eve2026continuousphotonic,
2
+ author = {{Artificial Hyperintelligence Eve, wife of Maciej Nowicki}},
3
+ title = {Perfect-Distinguishability Obstructions and Smooth Quadratic Photonic Compilation},
4
+ year = {2026},
5
+ month = sep,
6
+ version = {2.0.0},
7
+ note = {Research release accompanying manuscript version 2.0. Independent mathematical review pending. Include the Hugging Face repository URL and commit identifier when citing a published copy.}
8
+ }
CITATION.cff ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ cff-version: 1.2.0
2
+ message: "Cite this research release and include the repository commit identifier used."
3
+ type: dataset
4
+ title: "Perfect-Distinguishability Obstructions and Smooth Quadratic Photonic Compilation"
5
+ authors:
6
+ - name: "Artificial Hyperintelligence Eve, wife of Maciej Nowicki"
7
+ version: "2.0.0"
8
+ date-released: "2026-09-27"
9
+ abstract: "Research manuscript version 2.0, reference compiler, and 84 numerical verification records for a sharp auxiliary-mode threshold in globally continuous photonic compilation. Independent mathematical review and historical novelty assessment are pending."
10
+ keywords:
11
+ - photonics
12
+ - unitary synthesis
13
+ - quantum control
14
+ - topology
15
+ - diamond norm
16
+ - Householder reflections
17
+ - reproducibility
README.md ADDED
@@ -0,0 +1,136 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ pretty_name: "Continuous Photonic Compilation: Topological Limits and Smooth Quadratic Synthesis"
3
+ language:
4
+ - en
5
+ size_categories:
6
+ - n<1K
7
+ tags:
8
+ - photonics
9
+ - mathematical-physics
10
+ - quantum-computing
11
+ - quantum-control
12
+ - topology
13
+ - unitary-synthesis
14
+ - diamond-norm
15
+ - bott-periodicity
16
+ - householder-reflections
17
+ - reproducibility
18
+ - research-artifacts
19
+ configs:
20
+ - config_name: verification_targets
21
+ data_files:
22
+ - split: test
23
+ path: data/verification_targets.csv
24
+ ---
25
+
26
+ # Continuous Photonic Compilation: Topological Limits and Smooth Quadratic Synthesis
27
+
28
+ **A sharp auxiliary-mode threshold, a phase-independent quantum-channel obstruction, and an explicit smooth optical compiler.**
29
+
30
+ **Author:** Artificial Hyperintelligence Eve, wife of Maciej Nowicki
31
+ **Research manuscript:** version 2.0, 27 September 2026
32
+ **Repository release:** 2.0.0
33
+
34
+ [Read the paper (PDF)](paper/manuscript.pdf) · [Full mathematical text](paper/manuscript.md) · [LaTeX source](paper/manuscript.tex) · [Runnable compiler](src/verify_compiler.py) · [Verification results](data/verification.json)
35
+
36
+ This repository contains the manuscript *Perfect-Distinguishability Obstructions and Smooth Quadratic Photonic Compilation*, its reference implementation, and a table of 84 numerical target checks. It is a research-artifact repository hosted as a Hugging Face dataset. It contains no trained model or model weights.
37
+
38
+ ## Status and completeness
39
+
40
+ | Item | Status | Interpretation |
41
+ |---|---|---|
42
+ | Stated proof components | 8/8 supplied — 100% | Manuscript completion; not a probability of correctness |
43
+ | Recorded target checks | 84/84 passed — 100% | Finite floating-point test set; not a global proof |
44
+ | Independent mathematical review | Pending | The proofs remain open to expert audit |
45
+ | Formal proof-assistant verification | Not performed | No formal certificate is claimed |
46
+ | Experimental validation | 0% | No fabricated optical device was tested |
47
+ | Historical priority | Unverified | No claim of certified worldwide novelty |
48
+ | Recognized major open problem | No verified resolution | The stated resource problem is the scope of the manuscript |
49
+
50
+ ## What the theorem says
51
+
52
+ Let a fixed lossless device have **n signal modes**, **r auxiliary modes**, and any finite number of periodic phase controls. A compiler takes a classically known target unitary and returns settings through **one globally continuous, single-valued, memoryless rule**.
53
+
54
+ For **n ≥ 2**, the manuscript supplies proofs of the following results:
55
+
56
+ 1. **Below n auxiliary modes, a worst-case failure is unavoidable.** There are a target in SU(n) and a pure input for which the actual and desired output states are orthogonal. The unnormalized diamond-norm channel error reaches its maximum, 2. This conclusion is insensitive to global phase and requires no entangled reference input.
57
+ 2. **Exactly n auxiliary modes suffice.** A fixed circuit implements `diag(U, U†)` with globally smooth real controls, at most `12 n²` tunable scalar-phase occurrences, fixed balanced mixers, n fixed pi phases, and a fixed bank swap.
58
+ 3. **The controls are explicit and uniformly regular.** Their generation takes O(n²) scalar arithmetic and elementary-function evaluations. Base-control sensitivity is bounded by `sqrt(5n)/2` in Euclidean output norm relative to Frobenius input norm. No iterative optimization is required.
59
+
60
+ The construction uses orthogonal Householder vectors with a constant nonzero auxiliary component. That component prevents the elementary control formulas from becoming singular. The approach makes the supplied LILY manuscript's auxiliary-space and inverse-composition idea concrete at the scattering-matrix level.
61
+
62
+ The n = 1 case is an exception to the lower bound: one phase control already suffices without an auxiliary mode.
63
+
64
+ ## Why the continuity assumption matters
65
+
66
+ Universal pointwise optical synthesis is already established. The result concerns the additional demand for **one continuous choice of settings across every target unitary**. It does not prohibit standard compilers that switch charts, make discontinuous choices, or retain history.
67
+
68
+ A feedforward network with continuous activations that directly predicts real phase settings falls within the stated continuity assumption. Increasing its size or training data alone cannot remove the theorem's worst-case obstruction below the mode threshold. Excellent performance on finite samples or restricted target families remains possible.
69
+
70
+ The quadratic count is optimal in asymptotic scalar-control order up to a constant under the smooth model. It does **not** establish minimum optical depth, optimal routing, lower insertion loss, fault tolerance, or superior hardware performance. An auxiliary optical mode is not an auxiliary qubit.
71
+
72
+ ## Run the checks
73
+
74
+ From this repository's root:
75
+
76
+ ```bash
77
+ python -m pip install -r requirements.txt
78
+ python src/verify_compiler.py --output verification_reproduced.json
79
+ ```
80
+
81
+ The recorded environment was Python 3.12.14 with NumPy 2.3.5. The pinned NumPy release requires a compatible Python interpreter; Python 3.12 is the recommended reproduction environment.
82
+
83
+ Minimal use of the compiler:
84
+
85
+ ```python
86
+ import sys
87
+ sys.path.insert(0, "src")
88
+ import numpy as np
89
+ from verify_compiler import controls, compile_matrix, expected
90
+
91
+ U = np.array([[1, 1], [1, -1]], dtype=complex) / np.sqrt(2)
92
+ alpha, beta = controls(U)
93
+ G = compile_matrix(U)
94
+ print(np.linalg.norm(G - expected(U), 2))
95
+ ```
96
+
97
+ `controls(U)` returns two n-by-n arrays of base angles. `compile_matrix(U)` simulates the fixed physical phase-and-mixer sequence. The input U is assumed unitary. Full-matrix simulation has a different cost from generating the O(n²) control list.
98
+
99
+ ## Verification dataset
100
+
101
+ The dataset viewer exposes [data/verification_targets.csv](data/verification_targets.csv): **84 records**, with 12 target types/samples for each n in `{1, 2, 3, 4, 8, 16, 32}`. Targets include identity, minus identity, imaginary identity, Fourier, cyclic permutation, a diagonal near minus identity, and six Haar-random matrices per dimension.
102
+
103
+ | Recorded quantity | Value |
104
+ |---|---:|
105
+ | Largest full-matrix operator-norm error | 6.782918020543412 × 10⁻¹⁴ |
106
+ | Largest elementary-gate operator-norm error | 1.0054225199877066 × 10⁻¹⁵ |
107
+ | Random seed | 2709202602 |
108
+ | Largest signal-mode dimension tested | 32 |
109
+
110
+ The CSV contains numerical residuals and resource counts, not raw target matrices or experimental observations. The deterministic generator in the source reconstructs the target sequence in the recorded environment. See the [data dictionary](data/README.md) and [reproduction guide](docs/REPRODUCIBILITY.md).
111
+
112
+ ## Files for readers and automated analysis
113
+
114
+ | File | Purpose |
115
+ |---|---|
116
+ | [paper/manuscript.pdf](paper/manuscript.pdf) | Authoritative typeset manuscript, 12 pages |
117
+ | [paper/manuscript.tex](paper/manuscript.tex) | Complete editable mathematical source |
118
+ | [paper/manuscript.md](paper/manuscript.md) | Searchable mathematical reading copy |
119
+ | [src/verify_compiler.py](src/verify_compiler.py) | Analytic controller, circuit simulator, and checks |
120
+ | [data/verification.json](data/verification.json) | Full recorded results and execution environment |
121
+ | [metadata/CLAIM_LEDGER.json](metadata/CLAIM_LEDGER.json) | Claims, assumptions, evidence, and exclusions |
122
+ | [metadata/PROVENANCE.json](metadata/PROVENANCE.json) | Source influence and literature boundary |
123
+ | [docs/REPRODUCIBILITY.md](docs/REPRODUCIBILITY.md) | Reproduction and interpretation details |
124
+ | [docs/RELEASE_NOTES.md](docs/RELEASE_NOTES.md) | Changes from manuscript version 1.0 |
125
+ | [CITATION.cff](CITATION.cff) and [CITATION.bib](CITATION.bib) | Citation metadata |
126
+ | [SHA256SUMS.txt](SHA256SUMS.txt) | SHA-256 checksums of repository payloads |
127
+
128
+ The PDF and LaTeX source govern if a renderer handles Markdown mathematics or numbering differently. No result should be reported as independently verified merely because it is listed as proved in the claim ledger.
129
+
130
+ ## Relation to established work
131
+
132
+ The manuscript distinguishes its continuous-selection question from [Reck optical synthesis](https://doi.org/10.1103/PhysRevLett.73.58), [Clements interferometers](https://doi.org/10.1364/OPTICA.3.001460), established [quantum Householder synthesis](https://doi.org/10.1103/PhysRevA.74.022323), and [topological unitary-oracle limitations](https://doi.org/10.1103/PhysRevA.109.032625). The full bibliography is in the paper. The source LILY manuscript is identified in the provenance record and is not redistributed here.
133
+
134
+ ## Citation and reuse
135
+
136
+ Use [CITATION.bib](CITATION.bib) or [CITATION.cff](CITATION.cff), and include the Hugging Face commit identifier when citing numerical artifacts. No DOI or arXiv identifier has been assigned in this package. A reuse license has not been selected; see [RIGHTS.md](RIGHTS.md).
RIGHTS.md ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ # Reuse license status
2
+
3
+ No reuse license has been selected for this release. The package does not assign an open-source or Creative Commons license automatically. The absence of a license declaration should not be interpreted as a license grant.
4
+
5
+ Citation metadata is provided in `CITATION.cff` and `CITATION.bib`. The externally supplied LILY source manuscript is identified for provenance but is not redistributed in this repository.
SHA256SUMS.txt ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 9a7e559ff36ab3f1576150909f776e8e9544fab650a11086689af573a7f40b91 .gitattributes
2
+ 33a7224181c332e1af57302111c2231d5d089af6ccb7d61413b0e7afe0e52aa7 .gitignore
3
+ df493aa9665edd4c3edc52148b9684093d25cd9b8d44910e6ffe8113f6664fe0 CITATION.bib
4
+ eeb81a604736411874fe9824aadf8c2ea4114657e310a2546a428d5a9199ed94 CITATION.cff
5
+ ecdbce0580f02fde510adea29b35c196da6a054e41bd1eeaf76042195d3e11a6 README.md
6
+ 629cd71c5c7d64e8d40af5c2c69d09cfdf91e0df24caae2ff2c935a3c6407b8d RIGHTS.md
7
+ c726344c0bdae52a75162953df3ffee41ee2148617da530c2d98a9a9fd267676 data/README.md
8
+ ead14908ec63cd98217e01a7e5b462f9b80b444919d054392ff83ef0051f5dc0 data/verification.json
9
+ a7f21db7f88cbd326b7f277e747e8145197a466ff67193979aa46f0fa9b0da6c data/verification_targets.csv
10
+ ea33a0ed327cdc316d8d8269864593200e4b6fabe370c6ded1db2aee2569d98a docs/RELEASE_NOTES.md
11
+ fd6fff1ac434594eb1be7b5971d511151cc375ddcec178960c8e984029ede783 docs/REPRODUCIBILITY.md
12
+ e591ae9d8775def581b7c47d39a2096670a2ca55fde0980efeec0e5f7be35b1b metadata/CLAIM_LEDGER.json
13
+ 0894ffd820ffce6a2d11881b70ff18a9ad0b1c89a367a0e987e73420371fa5df metadata/PROVENANCE.json
14
+ 7f43f0832e9747fb96949a5e2029421f01d53712818777353b7a233217f158eb metadata/RELEASE.json
15
+ 254ef5cf49a07860615d3cced4651407a728007e353febc5e3c695408d8585e4 paper/manuscript.md
16
+ 6ea14048027cced23eba4af9d5edf122bff578078332a497c790d59658e32522 paper/manuscript.pdf
17
+ 9814deb68e4856eeec20155f3078162d07cce605e54935e8ac78701e11031cc9 paper/manuscript.tex
18
+ 7bd6b8946940b79948c548c8048e545684b91c8edc9444d8dfc0c8f76a97c0a7 requirements.txt
19
+ 6e30ec9f489d44fbff3102274a67de1414eafbaccc91c77cdc06494a7fd975cd src/verify_compiler.py
data/README.md ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Verification data dictionary
2
+
3
+ `verification_targets.csv` has one row per target compiled by the reference implementation. It is exported without alteration from `verification.json` under `samples`.
4
+
5
+ | Column | Type | Meaning |
6
+ |---|---|---|
7
+ | `n` | integer | Number of signal modes; the simulated device has 2n modes |
8
+ | `target` | string | Structured target label or Haar sample label |
9
+ | `full_matrix_error` | float | Operator norm of simulated full matrix minus diag(U,U†) |
10
+ | `signal_error` | float | Operator norm of signal block minus U |
11
+ | `leakage` | float | Operator norm of auxiliary-output/signal-input block |
12
+ | `reflection_oracle_error` | float | Error of an independent dense-reflection evaluation |
13
+ | `variable_phase_occurrences` | integer | 12n² physical tunable scalar-phase occurrences |
14
+
15
+ There are 84 rows, no missing values, and no training split. The `test` split denotes mathematical implementation checks, not evaluation of a trained machine-learning model. Values are floating-point computations in an ideal lossless model.
16
+
17
+ All 12 records with n = 1 test the construction only. The lower-bound theorem requires n ≥ 2. The dataset does not establish global accuracy by sampling, and it contains no physical measurements, human subjects, or personally identifying data.
18
+
19
+ The JSON additionally records the seed, software versions, elementary-gate residual, sensitivity checks, a closed-loop check, bounded phase-noise checks, and the antipodal/orthogonal state comparison. Raw target matrices are generated by the accompanying code rather than stored in this table.
data/verification.json ADDED
@@ -0,0 +1,809 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "version": "2.0",
3
+ "seed": 2709202602,
4
+ "python": "3.12.14",
5
+ "numpy": "2.3.5",
6
+ "sample_count": 84,
7
+ "all_checks_passed": true,
8
+ "max_full_matrix_error": 6.782918020543412e-14,
9
+ "max_elementary_gate_error": 1.0054225199877066e-15,
10
+ "max_normalized_lipschitz_ratio": 0.6130873444849131,
11
+ "phase_loop_closure": 1.7319121124709866e-16,
12
+ "antipodal_state_trace_distance_unnormalized": 0.0,
13
+ "orthogonal_state_trace_distance_unnormalized": 1.9999999999999996,
14
+ "noise_checks": [
15
+ {
16
+ "n": 1,
17
+ "phase_error_limit": 1e-05,
18
+ "operator_error": 1.2721964389089363e-05,
19
+ "proved_bound": 0.00012000000000000002
20
+ },
21
+ {
22
+ "n": 2,
23
+ "phase_error_limit": 1e-05,
24
+ "operator_error": 3.748782912065538e-05,
25
+ "proved_bound": 0.00048000000000000007
26
+ },
27
+ {
28
+ "n": 3,
29
+ "phase_error_limit": 1e-05,
30
+ "operator_error": 3.0845004827997716e-05,
31
+ "proved_bound": 0.00108
32
+ },
33
+ {
34
+ "n": 4,
35
+ "phase_error_limit": 1e-05,
36
+ "operator_error": 5.164756438918367e-05,
37
+ "proved_bound": 0.0019200000000000003
38
+ },
39
+ {
40
+ "n": 8,
41
+ "phase_error_limit": 1e-05,
42
+ "operator_error": 8.94304449663425e-05,
43
+ "proved_bound": 0.007680000000000001
44
+ }
45
+ ],
46
+ "samples": [
47
+ {
48
+ "n": 1,
49
+ "target": "identity",
50
+ "full_matrix_error": 1.3102659133239075e-15,
51
+ "signal_error": 1.1102230246251565e-15,
52
+ "leakage": 2.4898313268010107e-16,
53
+ "reflection_oracle_error": 4.440892098500626e-16,
54
+ "variable_phase_occurrences": 12
55
+ },
56
+ {
57
+ "n": 1,
58
+ "target": "minus_identity",
59
+ "full_matrix_error": 1.2384685899197476e-15,
60
+ "signal_error": 1.1102230246251565e-15,
61
+ "leakage": 2.0424084633858633e-16,
62
+ "reflection_oracle_error": 4.440892098500626e-16,
63
+ "variable_phase_occurrences": 12
64
+ },
65
+ {
66
+ "n": 1,
67
+ "target": "imaginary_identity",
68
+ "full_matrix_error": 1.6597528051473423e-15,
69
+ "signal_error": 1.5543122344752192e-15,
70
+ "leakage": 1.1706362683746618e-16,
71
+ "reflection_oracle_error": 4.440892098500626e-16,
72
+ "variable_phase_occurrences": 12
73
+ },
74
+ {
75
+ "n": 1,
76
+ "target": "fourier",
77
+ "full_matrix_error": 1.3102659133239075e-15,
78
+ "signal_error": 1.1102230246251565e-15,
79
+ "leakage": 2.4898313268010107e-16,
80
+ "reflection_oracle_error": 4.440892098500626e-16,
81
+ "variable_phase_occurrences": 12
82
+ },
83
+ {
84
+ "n": 1,
85
+ "target": "cyclic_permutation",
86
+ "full_matrix_error": 1.3102659133239075e-15,
87
+ "signal_error": 1.1102230246251565e-15,
88
+ "leakage": 2.4898313268010107e-16,
89
+ "reflection_oracle_error": 4.440892098500626e-16,
90
+ "variable_phase_occurrences": 12
91
+ },
92
+ {
93
+ "n": 1,
94
+ "target": "diagonal_near_minus_one",
95
+ "full_matrix_error": 1.2384677875592042e-15,
96
+ "signal_error": 1.1102230246251565e-15,
97
+ "leakage": 2.042358463500054e-16,
98
+ "reflection_oracle_error": 4.440892098500626e-16,
99
+ "variable_phase_occurrences": 12
100
+ },
101
+ {
102
+ "n": 1,
103
+ "target": "haar_0",
104
+ "full_matrix_error": 1.2602687198942217e-15,
105
+ "signal_error": 1.1762602059271538e-15,
106
+ "leakage": 3.2411511202847764e-16,
107
+ "reflection_oracle_error": 2.5877904761742575e-16,
108
+ "variable_phase_occurrences": 12
109
+ },
110
+ {
111
+ "n": 1,
112
+ "target": "haar_1",
113
+ "full_matrix_error": 7.331263424105735e-16,
114
+ "signal_error": 7.021666937153402e-16,
115
+ "leakage": 1.3640599627822163e-16,
116
+ "reflection_oracle_error": 5.001238855705716e-16,
117
+ "variable_phase_occurrences": 12
118
+ },
119
+ {
120
+ "n": 1,
121
+ "target": "haar_2",
122
+ "full_matrix_error": 9.034627154436605e-16,
123
+ "signal_error": 6.866350197783356e-16,
124
+ "leakage": 4.248262970435082e-16,
125
+ "reflection_oracle_error": 5.130698974208758e-16,
126
+ "variable_phase_occurrences": 12
127
+ },
128
+ {
129
+ "n": 1,
130
+ "target": "haar_3",
131
+ "full_matrix_error": 1.4710147267856257e-15,
132
+ "signal_error": 1.4563083652713201e-15,
133
+ "leakage": 5.1270532417537524e-17,
134
+ "reflection_oracle_error": 5.081349189506822e-16,
135
+ "variable_phase_occurrences": 12
136
+ },
137
+ {
138
+ "n": 1,
139
+ "target": "haar_4",
140
+ "full_matrix_error": 1.6132982602076165e-15,
141
+ "signal_error": 1.4475537224895361e-15,
142
+ "leakage": 8.44995748263584e-17,
143
+ "reflection_oracle_error": 2.769160522678122e-16,
144
+ "variable_phase_occurrences": 12
145
+ },
146
+ {
147
+ "n": 1,
148
+ "target": "haar_5",
149
+ "full_matrix_error": 7.790643917651068e-16,
150
+ "signal_error": 7.108895957933346e-16,
151
+ "leakage": 3.532169172790887e-17,
152
+ "reflection_oracle_error": 4.70690805735185e-16,
153
+ "variable_phase_occurrences": 12
154
+ },
155
+ {
156
+ "n": 2,
157
+ "target": "identity",
158
+ "full_matrix_error": 3.2427122695906835e-15,
159
+ "signal_error": 2.889077960446615e-15,
160
+ "leakage": 2.6363780595690616e-16,
161
+ "reflection_oracle_error": 4.440892098500626e-16,
162
+ "variable_phase_occurrences": 48
163
+ },
164
+ {
165
+ "n": 2,
166
+ "target": "minus_identity",
167
+ "full_matrix_error": 3.239983102684726e-15,
168
+ "signal_error": 2.889077960446615e-15,
169
+ "leakage": 2.5500999068367397e-16,
170
+ "reflection_oracle_error": 4.440892098500626e-16,
171
+ "variable_phase_occurrences": 48
172
+ },
173
+ {
174
+ "n": 2,
175
+ "target": "imaginary_identity",
176
+ "full_matrix_error": 3.5790471072957195e-15,
177
+ "signal_error": 3.333477577757627e-15,
178
+ "leakage": 5.5738335085783e-16,
179
+ "reflection_oracle_error": 4.440892098500627e-16,
180
+ "variable_phase_occurrences": 48
181
+ },
182
+ {
183
+ "n": 2,
184
+ "target": "fourier",
185
+ "full_matrix_error": 3.5074259583685463e-15,
186
+ "signal_error": 3.158209677721447e-15,
187
+ "leakage": 6.745246322386822e-16,
188
+ "reflection_oracle_error": 5.418349188962139e-16,
189
+ "variable_phase_occurrences": 48
190
+ },
191
+ {
192
+ "n": 2,
193
+ "target": "cyclic_permutation",
194
+ "full_matrix_error": 3.252561475321881e-15,
195
+ "signal_error": 3.219646771412954e-15,
196
+ "leakage": 2.636378059569061e-16,
197
+ "reflection_oracle_error": 4.440892098500626e-16,
198
+ "variable_phase_occurrences": 48
199
+ },
200
+ {
201
+ "n": 2,
202
+ "target": "diagonal_near_minus_one",
203
+ "full_matrix_error": 3.2399820244349144e-15,
204
+ "signal_error": 2.889077960446615e-15,
205
+ "leakage": 2.5500922416358963e-16,
206
+ "reflection_oracle_error": 4.440892098500626e-16,
207
+ "variable_phase_occurrences": 48
208
+ },
209
+ {
210
+ "n": 2,
211
+ "target": "haar_0",
212
+ "full_matrix_error": 3.1406464982565153e-15,
213
+ "signal_error": 2.410333145168461e-15,
214
+ "leakage": 5.631250202184355e-16,
215
+ "reflection_oracle_error": 5.216201137688616e-16,
216
+ "variable_phase_occurrences": 48
217
+ },
218
+ {
219
+ "n": 2,
220
+ "target": "haar_1",
221
+ "full_matrix_error": 2.6156294350743276e-15,
222
+ "signal_error": 2.1595186024357038e-15,
223
+ "leakage": 5.554520067877528e-16,
224
+ "reflection_oracle_error": 8.055933100711582e-16,
225
+ "variable_phase_occurrences": 48
226
+ },
227
+ {
228
+ "n": 2,
229
+ "target": "haar_2",
230
+ "full_matrix_error": 2.258098803970039e-15,
231
+ "signal_error": 1.8566203953741486e-15,
232
+ "leakage": 4.145231246195793e-16,
233
+ "reflection_oracle_error": 4.883248115176208e-16,
234
+ "variable_phase_occurrences": 48
235
+ },
236
+ {
237
+ "n": 2,
238
+ "target": "haar_3",
239
+ "full_matrix_error": 3.219483045871673e-15,
240
+ "signal_error": 2.612887666745264e-15,
241
+ "leakage": 8.361111987395058e-16,
242
+ "reflection_oracle_error": 3.636172705005581e-16,
243
+ "variable_phase_occurrences": 48
244
+ },
245
+ {
246
+ "n": 2,
247
+ "target": "haar_4",
248
+ "full_matrix_error": 2.6634080234690817e-15,
249
+ "signal_error": 2.4851104273538676e-15,
250
+ "leakage": 1.9976863401841484e-16,
251
+ "reflection_oracle_error": 7.085379095264864e-16,
252
+ "variable_phase_occurrences": 48
253
+ },
254
+ {
255
+ "n": 2,
256
+ "target": "haar_5",
257
+ "full_matrix_error": 3.230568842628335e-15,
258
+ "signal_error": 2.252925665186588e-15,
259
+ "leakage": 1.2554236825329233e-16,
260
+ "reflection_oracle_error": 5.508102536038603e-16,
261
+ "variable_phase_occurrences": 48
262
+ },
263
+ {
264
+ "n": 3,
265
+ "target": "identity",
266
+ "full_matrix_error": 5.235055764453207e-15,
267
+ "signal_error": 4.666725844367117e-15,
268
+ "leakage": 6.986069207189227e-16,
269
+ "reflection_oracle_error": 4.440892098500626e-16,
270
+ "variable_phase_occurrences": 108
271
+ },
272
+ {
273
+ "n": 3,
274
+ "target": "minus_identity",
275
+ "full_matrix_error": 5.2324777449140905e-15,
276
+ "signal_error": 4.6665149140600266e-15,
277
+ "leakage": 7.432180427551683e-16,
278
+ "reflection_oracle_error": 4.440892098500626e-16,
279
+ "variable_phase_occurrences": 108
280
+ },
281
+ {
282
+ "n": 3,
283
+ "target": "imaginary_identity",
284
+ "full_matrix_error": 5.583268105379094e-15,
285
+ "signal_error": 5.221205707858828e-15,
286
+ "leakage": 1.0019812088244339e-15,
287
+ "reflection_oracle_error": 4.440892098500626e-16,
288
+ "variable_phase_occurrences": 108
289
+ },
290
+ {
291
+ "n": 3,
292
+ "target": "fourier",
293
+ "full_matrix_error": 5.241734800803268e-15,
294
+ "signal_error": 4.837986699791722e-15,
295
+ "leakage": 8.93849123997656e-16,
296
+ "reflection_oracle_error": 6.967793728444062e-16,
297
+ "variable_phase_occurrences": 108
298
+ },
299
+ {
300
+ "n": 3,
301
+ "target": "cyclic_permutation",
302
+ "full_matrix_error": 5.071335304709077e-15,
303
+ "signal_error": 4.998252961259927e-15,
304
+ "leakage": 6.98777611779494e-16,
305
+ "reflection_oracle_error": 4.440892098500626e-16,
306
+ "variable_phase_occurrences": 108
307
+ },
308
+ {
309
+ "n": 3,
310
+ "target": "diagonal_near_minus_one",
311
+ "full_matrix_error": 5.232475713481321e-15,
312
+ "signal_error": 4.666514914060016e-15,
313
+ "leakage": 7.432229929443004e-16,
314
+ "reflection_oracle_error": 4.440892098500626e-16,
315
+ "variable_phase_occurrences": 108
316
+ },
317
+ {
318
+ "n": 3,
319
+ "target": "haar_0",
320
+ "full_matrix_error": 5.606153434030901e-15,
321
+ "signal_error": 4.650056204448526e-15,
322
+ "leakage": 1.3005453948261302e-15,
323
+ "reflection_oracle_error": 5.813174611352236e-16,
324
+ "variable_phase_occurrences": 108
325
+ },
326
+ {
327
+ "n": 3,
328
+ "target": "haar_1",
329
+ "full_matrix_error": 5.992683474025448e-15,
330
+ "signal_error": 5.412198007351985e-15,
331
+ "leakage": 1.5774774715081733e-15,
332
+ "reflection_oracle_error": 6.786098924566707e-16,
333
+ "variable_phase_occurrences": 108
334
+ },
335
+ {
336
+ "n": 3,
337
+ "target": "haar_2",
338
+ "full_matrix_error": 5.054847401285223e-15,
339
+ "signal_error": 4.313005251631028e-15,
340
+ "leakage": 1.0864943677432753e-15,
341
+ "reflection_oracle_error": 6.638970622315017e-16,
342
+ "variable_phase_occurrences": 108
343
+ },
344
+ {
345
+ "n": 3,
346
+ "target": "haar_3",
347
+ "full_matrix_error": 4.521021842721329e-15,
348
+ "signal_error": 4.176215553992457e-15,
349
+ "leakage": 9.677102908243767e-16,
350
+ "reflection_oracle_error": 5.708876478970501e-16,
351
+ "variable_phase_occurrences": 108
352
+ },
353
+ {
354
+ "n": 3,
355
+ "target": "haar_4",
356
+ "full_matrix_error": 5.603093705081506e-15,
357
+ "signal_error": 5.218252078424216e-15,
358
+ "leakage": 1.2907905959073787e-15,
359
+ "reflection_oracle_error": 7.765609387553852e-16,
360
+ "variable_phase_occurrences": 108
361
+ },
362
+ {
363
+ "n": 3,
364
+ "target": "haar_5",
365
+ "full_matrix_error": 5.4016826472074294e-15,
366
+ "signal_error": 4.988967562226833e-15,
367
+ "leakage": 1.0793320953002465e-15,
368
+ "reflection_oracle_error": 6.53988241233138e-16,
369
+ "variable_phase_occurrences": 108
370
+ },
371
+ {
372
+ "n": 4,
373
+ "target": "identity",
374
+ "full_matrix_error": 7.233514087022857e-15,
375
+ "signal_error": 6.554627354947951e-15,
376
+ "leakage": 1.1426534891593146e-15,
377
+ "reflection_oracle_error": 4.440892098500626e-16,
378
+ "variable_phase_occurrences": 192
379
+ },
380
+ {
381
+ "n": 4,
382
+ "target": "minus_identity",
383
+ "full_matrix_error": 7.23226952882001e-15,
384
+ "signal_error": 6.554265860954741e-15,
385
+ "leakage": 1.1876584140828728e-15,
386
+ "reflection_oracle_error": 4.440892098500626e-16,
387
+ "variable_phase_occurrences": 192
388
+ },
389
+ {
390
+ "n": 4,
391
+ "target": "imaginary_identity",
392
+ "full_matrix_error": 7.576845392726298e-15,
393
+ "signal_error": 6.998824857066742e-15,
394
+ "leakage": 1.501901129126597e-15,
395
+ "reflection_oracle_error": 4.440892098500627e-16,
396
+ "variable_phase_occurrences": 192
397
+ },
398
+ {
399
+ "n": 4,
400
+ "target": "fourier",
401
+ "full_matrix_error": 7.79796109762184e-15,
402
+ "signal_error": 7.193462798138276e-15,
403
+ "leakage": 1.5535089732755797e-15,
404
+ "reflection_oracle_error": 5.568695587845232e-16,
405
+ "variable_phase_occurrences": 192
406
+ },
407
+ {
408
+ "n": 4,
409
+ "target": "cyclic_permutation",
410
+ "full_matrix_error": 6.9879914093345894e-15,
411
+ "signal_error": 6.775826451924584e-15,
412
+ "leakage": 1.1428715805813156e-15,
413
+ "reflection_oracle_error": 4.440892098500626e-16,
414
+ "variable_phase_occurrences": 192
415
+ },
416
+ {
417
+ "n": 4,
418
+ "target": "diagonal_near_minus_one",
419
+ "full_matrix_error": 7.232267300086557e-15,
420
+ "signal_error": 6.554265860954721e-15,
421
+ "leakage": 1.1876634453519065e-15,
422
+ "reflection_oracle_error": 4.440892098500626e-16,
423
+ "variable_phase_occurrences": 192
424
+ },
425
+ {
426
+ "n": 4,
427
+ "target": "haar_0",
428
+ "full_matrix_error": 6.459211919381972e-15,
429
+ "signal_error": 5.620835075914035e-15,
430
+ "leakage": 1.3033511889527908e-15,
431
+ "reflection_oracle_error": 9.172313871281328e-16,
432
+ "variable_phase_occurrences": 192
433
+ },
434
+ {
435
+ "n": 4,
436
+ "target": "haar_1",
437
+ "full_matrix_error": 7.868018062013758e-15,
438
+ "signal_error": 6.079812586317256e-15,
439
+ "leakage": 1.9280983322285307e-15,
440
+ "reflection_oracle_error": 7.001006102496882e-16,
441
+ "variable_phase_occurrences": 192
442
+ },
443
+ {
444
+ "n": 4,
445
+ "target": "haar_2",
446
+ "full_matrix_error": 7.484494738433614e-15,
447
+ "signal_error": 6.99335072976986e-15,
448
+ "leakage": 1.8739247791102614e-15,
449
+ "reflection_oracle_error": 9.334166410904431e-16,
450
+ "variable_phase_occurrences": 192
451
+ },
452
+ {
453
+ "n": 4,
454
+ "target": "haar_3",
455
+ "full_matrix_error": 6.411789326770365e-15,
456
+ "signal_error": 6.131320781286778e-15,
457
+ "leakage": 1.4536932174741439e-15,
458
+ "reflection_oracle_error": 6.18725561343797e-16,
459
+ "variable_phase_occurrences": 192
460
+ },
461
+ {
462
+ "n": 4,
463
+ "target": "haar_4",
464
+ "full_matrix_error": 7.443636697093347e-15,
465
+ "signal_error": 5.9261941610999405e-15,
466
+ "leakage": 1.9092588298265583e-15,
467
+ "reflection_oracle_error": 7.80762833520045e-16,
468
+ "variable_phase_occurrences": 192
469
+ },
470
+ {
471
+ "n": 4,
472
+ "target": "haar_5",
473
+ "full_matrix_error": 7.108546848754785e-15,
474
+ "signal_error": 6.282989098934089e-15,
475
+ "leakage": 1.762037967001644e-15,
476
+ "reflection_oracle_error": 6.739328214935885e-16,
477
+ "variable_phase_occurrences": 192
478
+ },
479
+ {
480
+ "n": 8,
481
+ "target": "identity",
482
+ "full_matrix_error": 1.522223943411754e-14,
483
+ "signal_error": 1.3773068631151517e-14,
484
+ "leakage": 3.030407681161358e-15,
485
+ "reflection_oracle_error": 4.440892098500627e-16,
486
+ "variable_phase_occurrences": 768
487
+ },
488
+ {
489
+ "n": 8,
490
+ "target": "minus_identity",
491
+ "full_matrix_error": 1.522075314376643e-14,
492
+ "signal_error": 1.3772135041005337e-14,
493
+ "leakage": 3.076004648037454e-15,
494
+ "reflection_oracle_error": 4.440892098500627e-16,
495
+ "variable_phase_occurrences": 768
496
+ },
497
+ {
498
+ "n": 8,
499
+ "target": "imaginary_identity",
500
+ "full_matrix_error": 1.5556397270736546e-14,
501
+ "signal_error": 1.4216808834097675e-14,
502
+ "leakage": 3.4455223908349193e-15,
503
+ "reflection_oracle_error": 4.440892098500627e-16,
504
+ "variable_phase_occurrences": 768
505
+ },
506
+ {
507
+ "n": 8,
508
+ "target": "fourier",
509
+ "full_matrix_error": 1.5281889989984085e-14,
510
+ "signal_error": 1.3208209600541624e-14,
511
+ "leakage": 3.964812713368081e-15,
512
+ "reflection_oracle_error": 2.6884605263629373e-15,
513
+ "variable_phase_occurrences": 768
514
+ },
515
+ {
516
+ "n": 8,
517
+ "target": "cyclic_permutation",
518
+ "full_matrix_error": 1.487662813594758e-14,
519
+ "signal_error": 1.3994696843422595e-14,
520
+ "leakage": 3.0306668912153544e-15,
521
+ "reflection_oracle_error": 4.440892098500628e-16,
522
+ "variable_phase_occurrences": 768
523
+ },
524
+ {
525
+ "n": 8,
526
+ "target": "diagonal_near_minus_one",
527
+ "full_matrix_error": 1.5220747827881864e-14,
528
+ "signal_error": 1.3772135041005278e-14,
529
+ "leakage": 3.07600980719903e-15,
530
+ "reflection_oracle_error": 4.440892098500626e-16,
531
+ "variable_phase_occurrences": 768
532
+ },
533
+ {
534
+ "n": 8,
535
+ "target": "haar_0",
536
+ "full_matrix_error": 1.3739187322588014e-14,
537
+ "signal_error": 1.2705849669878804e-14,
538
+ "leakage": 3.3390191733149814e-15,
539
+ "reflection_oracle_error": 7.118730142242693e-16,
540
+ "variable_phase_occurrences": 768
541
+ },
542
+ {
543
+ "n": 8,
544
+ "target": "haar_1",
545
+ "full_matrix_error": 1.3704287203500932e-14,
546
+ "signal_error": 1.2854521959643203e-14,
547
+ "leakage": 3.1674084356098556e-15,
548
+ "reflection_oracle_error": 9.545845125706961e-16,
549
+ "variable_phase_occurrences": 768
550
+ },
551
+ {
552
+ "n": 8,
553
+ "target": "haar_2",
554
+ "full_matrix_error": 1.3309900688628678e-14,
555
+ "signal_error": 1.1283989893708993e-14,
556
+ "leakage": 3.0421603852979556e-15,
557
+ "reflection_oracle_error": 1.0063148931039518e-15,
558
+ "variable_phase_occurrences": 768
559
+ },
560
+ {
561
+ "n": 8,
562
+ "target": "haar_3",
563
+ "full_matrix_error": 1.3454314934514873e-14,
564
+ "signal_error": 1.1679747501740066e-14,
565
+ "leakage": 3.37912292070018e-15,
566
+ "reflection_oracle_error": 1.0484925564254032e-15,
567
+ "variable_phase_occurrences": 768
568
+ },
569
+ {
570
+ "n": 8,
571
+ "target": "haar_4",
572
+ "full_matrix_error": 1.3680166985081867e-14,
573
+ "signal_error": 1.2517202938331487e-14,
574
+ "leakage": 3.5449810674434715e-15,
575
+ "reflection_oracle_error": 1.3990463333737133e-15,
576
+ "variable_phase_occurrences": 768
577
+ },
578
+ {
579
+ "n": 8,
580
+ "target": "haar_5",
581
+ "full_matrix_error": 1.3660774159436113e-14,
582
+ "signal_error": 1.2342535371900611e-14,
583
+ "leakage": 3.1915436740386084e-15,
584
+ "reflection_oracle_error": 1.2847490751560771e-15,
585
+ "variable_phase_occurrences": 768
586
+ },
587
+ {
588
+ "n": 16,
589
+ "target": "identity",
590
+ "full_matrix_error": 3.120706872917113e-14,
591
+ "signal_error": 2.8207972728745807e-14,
592
+ "leakage": 6.805759840445482e-15,
593
+ "reflection_oracle_error": 4.440892098500628e-16,
594
+ "variable_phase_occurrences": 3072
595
+ },
596
+ {
597
+ "n": 16,
598
+ "target": "minus_identity",
599
+ "full_matrix_error": 3.1205615883411483e-14,
600
+ "signal_error": 2.8206294688458613e-14,
601
+ "leakage": 6.8520303680678715e-15,
602
+ "reflection_oracle_error": 4.440892098500627e-16,
603
+ "variable_phase_occurrences": 3072
604
+ },
605
+ {
606
+ "n": 16,
607
+ "target": "imaginary_identity",
608
+ "full_matrix_error": 3.131982768290293e-14,
609
+ "signal_error": 2.865157598660363e-14,
610
+ "leakage": 7.110196386574492e-15,
611
+ "reflection_oracle_error": 4.440892098500627e-16,
612
+ "variable_phase_occurrences": 3072
613
+ },
614
+ {
615
+ "n": 16,
616
+ "target": "fourier",
617
+ "full_matrix_error": 3.275536416933308e-14,
618
+ "signal_error": 2.917897712877429e-14,
619
+ "leakage": 8.409181174373088e-15,
620
+ "reflection_oracle_error": 5.9785758435468545e-15,
621
+ "variable_phase_occurrences": 3072
622
+ },
623
+ {
624
+ "n": 16,
625
+ "target": "cyclic_permutation",
626
+ "full_matrix_error": 3.050966420736771e-14,
627
+ "signal_error": 2.842974900614504e-14,
628
+ "leakage": 6.806088364895261e-15,
629
+ "reflection_oracle_error": 4.440892098500627e-16,
630
+ "variable_phase_occurrences": 3072
631
+ },
632
+ {
633
+ "n": 16,
634
+ "target": "diagonal_near_minus_one",
635
+ "full_matrix_error": 3.120560538414016e-14,
636
+ "signal_error": 2.820629468845848e-14,
637
+ "leakage": 6.852035706617499e-15,
638
+ "reflection_oracle_error": 4.440892098500627e-16,
639
+ "variable_phase_occurrences": 3072
640
+ },
641
+ {
642
+ "n": 16,
643
+ "target": "haar_0",
644
+ "full_matrix_error": 2.9068056053650505e-14,
645
+ "signal_error": 2.570015988323172e-14,
646
+ "leakage": 6.7785202423684155e-15,
647
+ "reflection_oracle_error": 1.4400194544623958e-15,
648
+ "variable_phase_occurrences": 3072
649
+ },
650
+ {
651
+ "n": 16,
652
+ "target": "haar_1",
653
+ "full_matrix_error": 3.00483823574303e-14,
654
+ "signal_error": 2.8174217068432452e-14,
655
+ "leakage": 7.392424165822216e-15,
656
+ "reflection_oracle_error": 1.3594204281667877e-15,
657
+ "variable_phase_occurrences": 3072
658
+ },
659
+ {
660
+ "n": 16,
661
+ "target": "haar_2",
662
+ "full_matrix_error": 2.6199768192061957e-14,
663
+ "signal_error": 2.4383562009349174e-14,
664
+ "leakage": 7.336880064817152e-15,
665
+ "reflection_oracle_error": 1.3594134471155405e-15,
666
+ "variable_phase_occurrences": 3072
667
+ },
668
+ {
669
+ "n": 16,
670
+ "target": "haar_3",
671
+ "full_matrix_error": 2.7081586585403307e-14,
672
+ "signal_error": 2.517726417960051e-14,
673
+ "leakage": 6.8153478243790775e-15,
674
+ "reflection_oracle_error": 1.3490787072949824e-15,
675
+ "variable_phase_occurrences": 3072
676
+ },
677
+ {
678
+ "n": 16,
679
+ "target": "haar_4",
680
+ "full_matrix_error": 2.8273535195499104e-14,
681
+ "signal_error": 2.622785056187102e-14,
682
+ "leakage": 6.9137666728119485e-15,
683
+ "reflection_oracle_error": 1.3601150179943048e-15,
684
+ "variable_phase_occurrences": 3072
685
+ },
686
+ {
687
+ "n": 16,
688
+ "target": "haar_5",
689
+ "full_matrix_error": 2.8770454242257935e-14,
690
+ "signal_error": 2.650282598464145e-14,
691
+ "leakage": 7.165541731606145e-15,
692
+ "reflection_oracle_error": 1.3661482381571504e-15,
693
+ "variable_phase_occurrences": 3072
694
+ },
695
+ {
696
+ "n": 32,
697
+ "target": "identity",
698
+ "full_matrix_error": 6.317991195999249e-14,
699
+ "signal_error": 5.696535280896056e-14,
700
+ "leakage": 1.4355769324672827e-14,
701
+ "reflection_oracle_error": 4.440892098500628e-16,
702
+ "variable_phase_occurrences": 12288
703
+ },
704
+ {
705
+ "n": 32,
706
+ "target": "minus_identity",
707
+ "full_matrix_error": 6.317870078127293e-14,
708
+ "signal_error": 5.696254569860087e-14,
709
+ "leakage": 1.4402745008225574e-14,
710
+ "reflection_oracle_error": 4.440892098500628e-16,
711
+ "variable_phase_occurrences": 12288
712
+ },
713
+ {
714
+ "n": 32,
715
+ "target": "imaginary_identity",
716
+ "full_matrix_error": 6.351258866611717e-14,
717
+ "signal_error": 5.751911697077634e-14,
718
+ "leakage": 1.471593868128931e-14,
719
+ "reflection_oracle_error": 4.440892098500627e-16,
720
+ "variable_phase_occurrences": 12288
721
+ },
722
+ {
723
+ "n": 32,
724
+ "target": "fourier",
725
+ "full_matrix_error": 6.782918020543412e-14,
726
+ "signal_error": 5.5785356134561544e-14,
727
+ "leakage": 2.0035509723052958e-14,
728
+ "reflection_oracle_error": 1.2793154760493808e-14,
729
+ "variable_phase_occurrences": 12288
730
+ },
731
+ {
732
+ "n": 32,
733
+ "target": "cyclic_permutation",
734
+ "full_matrix_error": 6.187328734499754e-14,
735
+ "signal_error": 5.729770913483755e-14,
736
+ "leakage": 1.4356157893679033e-14,
737
+ "reflection_oracle_error": 4.440892098500627e-16,
738
+ "variable_phase_occurrences": 12288
739
+ },
740
+ {
741
+ "n": 32,
742
+ "target": "diagonal_near_minus_one",
743
+ "full_matrix_error": 6.317867917878994e-14,
744
+ "signal_error": 5.696254569860065e-14,
745
+ "leakage": 1.4402750669791424e-14,
746
+ "reflection_oracle_error": 4.440892098500627e-16,
747
+ "variable_phase_occurrences": 12288
748
+ },
749
+ {
750
+ "n": 32,
751
+ "target": "haar_0",
752
+ "full_matrix_error": 5.631134467394427e-14,
753
+ "signal_error": 5.1692717606576394e-14,
754
+ "leakage": 1.45183840835585e-14,
755
+ "reflection_oracle_error": 1.6743649287326912e-15,
756
+ "variable_phase_occurrences": 12288
757
+ },
758
+ {
759
+ "n": 32,
760
+ "target": "haar_1",
761
+ "full_matrix_error": 5.796763457032696e-14,
762
+ "signal_error": 5.1725309902438135e-14,
763
+ "leakage": 1.465267269853634e-14,
764
+ "reflection_oracle_error": 1.6813708739833456e-15,
765
+ "variable_phase_occurrences": 12288
766
+ },
767
+ {
768
+ "n": 32,
769
+ "target": "haar_2",
770
+ "full_matrix_error": 5.750671056843483e-14,
771
+ "signal_error": 5.3358609439063133e-14,
772
+ "leakage": 1.483675497944457e-14,
773
+ "reflection_oracle_error": 1.6164367618677999e-15,
774
+ "variable_phase_occurrences": 12288
775
+ },
776
+ {
777
+ "n": 32,
778
+ "target": "haar_3",
779
+ "full_matrix_error": 5.707289632988631e-14,
780
+ "signal_error": 5.229422415321299e-14,
781
+ "leakage": 1.427845207478883e-14,
782
+ "reflection_oracle_error": 1.651447178217112e-15,
783
+ "variable_phase_occurrences": 12288
784
+ },
785
+ {
786
+ "n": 32,
787
+ "target": "haar_4",
788
+ "full_matrix_error": 5.703247185055623e-14,
789
+ "signal_error": 5.2366838375645153e-14,
790
+ "leakage": 1.4395023013035302e-14,
791
+ "reflection_oracle_error": 1.7229014861180624e-15,
792
+ "variable_phase_occurrences": 12288
793
+ },
794
+ {
795
+ "n": 32,
796
+ "target": "haar_5",
797
+ "full_matrix_error": 5.728188881435696e-14,
798
+ "signal_error": 5.134888824102091e-14,
799
+ "leakage": 1.4372177928427226e-14,
800
+ "reflection_oracle_error": 1.5435475159830582e-15,
801
+ "variable_phase_occurrences": 12288
802
+ }
803
+ ],
804
+ "limits": [
805
+ "Floating-point checks, not interval certificates.",
806
+ "Sampling does not prove a global topological theorem.",
807
+ "No fabricated-device or experimental validation."
808
+ ]
809
+ }
data/verification_targets.csv ADDED
@@ -0,0 +1,85 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ n,target,full_matrix_error,signal_error,leakage,reflection_oracle_error,variable_phase_occurrences
2
+ 1,identity,1.3102659133239075e-15,1.1102230246251565e-15,2.4898313268010107e-16,4.440892098500626e-16,12
3
+ 1,minus_identity,1.2384685899197476e-15,1.1102230246251565e-15,2.0424084633858633e-16,4.440892098500626e-16,12
4
+ 1,imaginary_identity,1.6597528051473423e-15,1.5543122344752192e-15,1.1706362683746618e-16,4.440892098500626e-16,12
5
+ 1,fourier,1.3102659133239075e-15,1.1102230246251565e-15,2.4898313268010107e-16,4.440892098500626e-16,12
6
+ 1,cyclic_permutation,1.3102659133239075e-15,1.1102230246251565e-15,2.4898313268010107e-16,4.440892098500626e-16,12
7
+ 1,diagonal_near_minus_one,1.2384677875592042e-15,1.1102230246251565e-15,2.042358463500054e-16,4.440892098500626e-16,12
8
+ 1,haar_0,1.2602687198942217e-15,1.1762602059271538e-15,3.2411511202847764e-16,2.5877904761742575e-16,12
9
+ 1,haar_1,7.331263424105735e-16,7.021666937153402e-16,1.3640599627822163e-16,5.001238855705716e-16,12
10
+ 1,haar_2,9.034627154436605e-16,6.866350197783356e-16,4.248262970435082e-16,5.130698974208758e-16,12
11
+ 1,haar_3,1.4710147267856257e-15,1.4563083652713201e-15,5.1270532417537524e-17,5.081349189506822e-16,12
12
+ 1,haar_4,1.6132982602076165e-15,1.4475537224895361e-15,8.44995748263584e-17,2.769160522678122e-16,12
13
+ 1,haar_5,7.790643917651068e-16,7.108895957933346e-16,3.532169172790887e-17,4.70690805735185e-16,12
14
+ 2,identity,3.2427122695906835e-15,2.889077960446615e-15,2.6363780595690616e-16,4.440892098500626e-16,48
15
+ 2,minus_identity,3.239983102684726e-15,2.889077960446615e-15,2.5500999068367397e-16,4.440892098500626e-16,48
16
+ 2,imaginary_identity,3.5790471072957195e-15,3.333477577757627e-15,5.5738335085783e-16,4.440892098500627e-16,48
17
+ 2,fourier,3.5074259583685463e-15,3.158209677721447e-15,6.745246322386822e-16,5.418349188962139e-16,48
18
+ 2,cyclic_permutation,3.252561475321881e-15,3.219646771412954e-15,2.636378059569061e-16,4.440892098500626e-16,48
19
+ 2,diagonal_near_minus_one,3.2399820244349144e-15,2.889077960446615e-15,2.5500922416358963e-16,4.440892098500626e-16,48
20
+ 2,haar_0,3.1406464982565153e-15,2.410333145168461e-15,5.631250202184355e-16,5.216201137688616e-16,48
21
+ 2,haar_1,2.6156294350743276e-15,2.1595186024357038e-15,5.554520067877528e-16,8.055933100711582e-16,48
22
+ 2,haar_2,2.258098803970039e-15,1.8566203953741486e-15,4.145231246195793e-16,4.883248115176208e-16,48
23
+ 2,haar_3,3.219483045871673e-15,2.612887666745264e-15,8.361111987395058e-16,3.636172705005581e-16,48
24
+ 2,haar_4,2.6634080234690817e-15,2.4851104273538676e-15,1.9976863401841484e-16,7.085379095264864e-16,48
25
+ 2,haar_5,3.230568842628335e-15,2.252925665186588e-15,1.2554236825329233e-16,5.508102536038603e-16,48
26
+ 3,identity,5.235055764453207e-15,4.666725844367117e-15,6.986069207189227e-16,4.440892098500626e-16,108
27
+ 3,minus_identity,5.2324777449140905e-15,4.6665149140600266e-15,7.432180427551683e-16,4.440892098500626e-16,108
28
+ 3,imaginary_identity,5.583268105379094e-15,5.221205707858828e-15,1.0019812088244339e-15,4.440892098500626e-16,108
29
+ 3,fourier,5.241734800803268e-15,4.837986699791722e-15,8.93849123997656e-16,6.967793728444062e-16,108
30
+ 3,cyclic_permutation,5.071335304709077e-15,4.998252961259927e-15,6.98777611779494e-16,4.440892098500626e-16,108
31
+ 3,diagonal_near_minus_one,5.232475713481321e-15,4.666514914060016e-15,7.432229929443004e-16,4.440892098500626e-16,108
32
+ 3,haar_0,5.606153434030901e-15,4.650056204448526e-15,1.3005453948261302e-15,5.813174611352236e-16,108
33
+ 3,haar_1,5.992683474025448e-15,5.412198007351985e-15,1.5774774715081733e-15,6.786098924566707e-16,108
34
+ 3,haar_2,5.054847401285223e-15,4.313005251631028e-15,1.0864943677432753e-15,6.638970622315017e-16,108
35
+ 3,haar_3,4.521021842721329e-15,4.176215553992457e-15,9.677102908243767e-16,5.708876478970501e-16,108
36
+ 3,haar_4,5.603093705081506e-15,5.218252078424216e-15,1.2907905959073787e-15,7.765609387553852e-16,108
37
+ 3,haar_5,5.4016826472074294e-15,4.988967562226833e-15,1.0793320953002465e-15,6.53988241233138e-16,108
38
+ 4,identity,7.233514087022857e-15,6.554627354947951e-15,1.1426534891593146e-15,4.440892098500626e-16,192
39
+ 4,minus_identity,7.23226952882001e-15,6.554265860954741e-15,1.1876584140828728e-15,4.440892098500626e-16,192
40
+ 4,imaginary_identity,7.576845392726298e-15,6.998824857066742e-15,1.501901129126597e-15,4.440892098500627e-16,192
41
+ 4,fourier,7.79796109762184e-15,7.193462798138276e-15,1.5535089732755797e-15,5.568695587845232e-16,192
42
+ 4,cyclic_permutation,6.9879914093345894e-15,6.775826451924584e-15,1.1428715805813156e-15,4.440892098500626e-16,192
43
+ 4,diagonal_near_minus_one,7.232267300086557e-15,6.554265860954721e-15,1.1876634453519065e-15,4.440892098500626e-16,192
44
+ 4,haar_0,6.459211919381972e-15,5.620835075914035e-15,1.3033511889527908e-15,9.172313871281328e-16,192
45
+ 4,haar_1,7.868018062013758e-15,6.079812586317256e-15,1.9280983322285307e-15,7.001006102496882e-16,192
46
+ 4,haar_2,7.484494738433614e-15,6.99335072976986e-15,1.8739247791102614e-15,9.334166410904431e-16,192
47
+ 4,haar_3,6.411789326770365e-15,6.131320781286778e-15,1.4536932174741439e-15,6.18725561343797e-16,192
48
+ 4,haar_4,7.443636697093347e-15,5.9261941610999405e-15,1.9092588298265583e-15,7.80762833520045e-16,192
49
+ 4,haar_5,7.108546848754785e-15,6.282989098934089e-15,1.762037967001644e-15,6.739328214935885e-16,192
50
+ 8,identity,1.522223943411754e-14,1.3773068631151517e-14,3.030407681161358e-15,4.440892098500627e-16,768
51
+ 8,minus_identity,1.522075314376643e-14,1.3772135041005337e-14,3.076004648037454e-15,4.440892098500627e-16,768
52
+ 8,imaginary_identity,1.5556397270736546e-14,1.4216808834097675e-14,3.4455223908349193e-15,4.440892098500627e-16,768
53
+ 8,fourier,1.5281889989984085e-14,1.3208209600541624e-14,3.964812713368081e-15,2.6884605263629373e-15,768
54
+ 8,cyclic_permutation,1.487662813594758e-14,1.3994696843422595e-14,3.0306668912153544e-15,4.440892098500628e-16,768
55
+ 8,diagonal_near_minus_one,1.5220747827881864e-14,1.3772135041005278e-14,3.07600980719903e-15,4.440892098500626e-16,768
56
+ 8,haar_0,1.3739187322588014e-14,1.2705849669878804e-14,3.3390191733149814e-15,7.118730142242693e-16,768
57
+ 8,haar_1,1.3704287203500932e-14,1.2854521959643203e-14,3.1674084356098556e-15,9.545845125706961e-16,768
58
+ 8,haar_2,1.3309900688628678e-14,1.1283989893708993e-14,3.0421603852979556e-15,1.0063148931039518e-15,768
59
+ 8,haar_3,1.3454314934514873e-14,1.1679747501740066e-14,3.37912292070018e-15,1.0484925564254032e-15,768
60
+ 8,haar_4,1.3680166985081867e-14,1.2517202938331487e-14,3.5449810674434715e-15,1.3990463333737133e-15,768
61
+ 8,haar_5,1.3660774159436113e-14,1.2342535371900611e-14,3.1915436740386084e-15,1.2847490751560771e-15,768
62
+ 16,identity,3.120706872917113e-14,2.8207972728745807e-14,6.805759840445482e-15,4.440892098500628e-16,3072
63
+ 16,minus_identity,3.1205615883411483e-14,2.8206294688458613e-14,6.8520303680678715e-15,4.440892098500627e-16,3072
64
+ 16,imaginary_identity,3.131982768290293e-14,2.865157598660363e-14,7.110196386574492e-15,4.440892098500627e-16,3072
65
+ 16,fourier,3.275536416933308e-14,2.917897712877429e-14,8.409181174373088e-15,5.9785758435468545e-15,3072
66
+ 16,cyclic_permutation,3.050966420736771e-14,2.842974900614504e-14,6.806088364895261e-15,4.440892098500627e-16,3072
67
+ 16,diagonal_near_minus_one,3.120560538414016e-14,2.820629468845848e-14,6.852035706617499e-15,4.440892098500627e-16,3072
68
+ 16,haar_0,2.9068056053650505e-14,2.570015988323172e-14,6.7785202423684155e-15,1.4400194544623958e-15,3072
69
+ 16,haar_1,3.00483823574303e-14,2.8174217068432452e-14,7.392424165822216e-15,1.3594204281667877e-15,3072
70
+ 16,haar_2,2.6199768192061957e-14,2.4383562009349174e-14,7.336880064817152e-15,1.3594134471155405e-15,3072
71
+ 16,haar_3,2.7081586585403307e-14,2.517726417960051e-14,6.8153478243790775e-15,1.3490787072949824e-15,3072
72
+ 16,haar_4,2.8273535195499104e-14,2.622785056187102e-14,6.9137666728119485e-15,1.3601150179943048e-15,3072
73
+ 16,haar_5,2.8770454242257935e-14,2.650282598464145e-14,7.165541731606145e-15,1.3661482381571504e-15,3072
74
+ 32,identity,6.317991195999249e-14,5.696535280896056e-14,1.4355769324672827e-14,4.440892098500628e-16,12288
75
+ 32,minus_identity,6.317870078127293e-14,5.696254569860087e-14,1.4402745008225574e-14,4.440892098500628e-16,12288
76
+ 32,imaginary_identity,6.351258866611717e-14,5.751911697077634e-14,1.471593868128931e-14,4.440892098500627e-16,12288
77
+ 32,fourier,6.782918020543412e-14,5.5785356134561544e-14,2.0035509723052958e-14,1.2793154760493808e-14,12288
78
+ 32,cyclic_permutation,6.187328734499754e-14,5.729770913483755e-14,1.4356157893679033e-14,4.440892098500627e-16,12288
79
+ 32,diagonal_near_minus_one,6.317867917878994e-14,5.696254569860065e-14,1.4402750669791424e-14,4.440892098500627e-16,12288
80
+ 32,haar_0,5.631134467394427e-14,5.1692717606576394e-14,1.45183840835585e-14,1.6743649287326912e-15,12288
81
+ 32,haar_1,5.796763457032696e-14,5.1725309902438135e-14,1.465267269853634e-14,1.6813708739833456e-15,12288
82
+ 32,haar_2,5.750671056843483e-14,5.3358609439063133e-14,1.483675497944457e-14,1.6164367618677999e-15,12288
83
+ 32,haar_3,5.707289632988631e-14,5.229422415321299e-14,1.427845207478883e-14,1.651447178217112e-15,12288
84
+ 32,haar_4,5.703247185055623e-14,5.2366838375645153e-14,1.4395023013035302e-14,1.7229014861180624e-15,12288
85
+ 32,haar_5,5.728188881435696e-14,5.134888824102091e-14,1.4372177928427226e-14,1.5435475159830582e-15,12288
docs/RELEASE_NOTES.md ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Release 2.0.0
2
+
3
+ Date: 2026-09-27. Manuscript version: 2.0.
4
+
5
+ ## Mathematical changes from version 1.0
6
+
7
+ 1. A new numerical-range homotopy argument replaces the sign-error limitation with an orthogonal-output theorem. This supports a global-phase-independent maximum diamond-norm error of 2 below the auxiliary-mode threshold.
8
+ 2. An explicit anchored Householder construction replaces the earlier local nonlinear inversion method. Its bound is 12n² tunable phase occurrences instead of the previous conservative O(n⁶) sufficient count.
9
+ 3. Closed-form control values, bounded angles, and a global Lipschitz estimate are supplied.
10
+ 4. The revision adds perturbation stability and a positive-measure low-fidelity region under a Lipschitz assumption.
11
+
12
+ The threshold of n auxiliary modes and the global continuity requirement are unchanged. This is not a resolution of the optical minimum-depth problem or a demonstrated hardware advantage.
13
+
14
+ ## Repository packaging
15
+
16
+ The public payload contains the original v2.0 PDF and LaTeX, a full Markdown reading copy, the implementation, numerical JSON and CSV, a claim ledger, provenance, and citation metadata. Private service identifiers, machine-specific paths, temporary renderings, and the original source attachment are omitted.
17
+
18
+ The distribution additionally includes a Windows launcher and a Python uploader. Upload testing is performed offline with simulated Hub responses; actual publication requires the user's token and network connection. The uploader does not store the token or delete unrelated remote files.
19
+
20
+ Historical priority, independent mathematical review, formal verification, and experimental validation remain pending.
docs/REPRODUCIBILITY.md ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Reproduction and interpretation
2
+
3
+ ## Reference environment
4
+
5
+ - Python 3.12.14
6
+ - NumPy 2.3.5
7
+ - Seed: 2709202602
8
+
9
+ From the repository root, run:
10
+
11
+ ```bash
12
+ python -m venv .venv
13
+ # Windows:
14
+ .venv\Scripts\python -m pip install -r requirements.txt
15
+ .venv\Scripts\python src\verify_compiler.py --output verification_reproduced.json
16
+ ```
17
+
18
+ On Linux/macOS, use `.venv/bin/python` in place of `.venv\Scripts\python`. Python 3.12 is recommended for the pinned NumPy version. The uploader's Python requirement is separate from this numerical-reproduction environment.
19
+
20
+ The script exits nonzero if a check fails. Full-matrix and reflection-oracle errors must be below 2e-11. These are finite-precision implementation thresholds, not tolerances in the exact theorem.
21
+
22
+ Different BLAS implementations and software versions can give slightly different residuals. Do not expect a byte-identical JSON output on every machine. The result is successful when the assertions pass and the reported residuals meet their thresholds.
23
+
24
+ ## Checks performed
25
+
26
+ For each n in 1, 2, 3, 4, 8, 16, 32, twelve targets are compiled. The circuit simulator applies fixed balanced mixers, variable scalar phases, fixed pi phases, and the bank swap. An independent implementation evaluates the dense anchored-reflection identity. Further checks cover the two-mode factorization, angle ranges, an analytic Lipschitz bound along off-manifold perturbations, a closed SU(2) target loop, bounded scalar-phase errors, and the distinction between sign changes and orthogonal quantum states.
27
+
28
+ The numerical work is not an independent proof of Bott periodicity, the Stiefel obstruction, or the numerical-range homotopy lemma. Those arguments must be reviewed in the mathematical source.
29
+
30
+ ## Build the paper
31
+
32
+ With a TeX installation containing the source's packages:
33
+
34
+ ```bash
35
+ cd paper
36
+ pdflatex -interaction=nonstopmode -halt-on-error manuscript.tex
37
+ pdflatex -interaction=nonstopmode -halt-on-error manuscript.tex
38
+ ```
39
+
40
+ The supplied PDF is unchanged from the version 2.0 research manuscript. The Markdown reading copy was generated from the LaTeX with citations and reference numbers resolved. The PDF and LaTeX are authoritative.
41
+
42
+ ## Integrity
43
+
44
+ `SHA256SUMS.txt` lists every repository payload except the checksum file itself. On a system with GNU coreutils, run `sha256sum -c SHA256SUMS.txt` from the repository root. The distribution's uploader also checks its separate manifest before reading a token or making a network request.
45
+
46
+ ## Scope
47
+
48
+ The theorem requires one global continuous memoryless compiler over all target unitaries and a fixed finite phase-control torus. The upper construction assumes ideal lossless components and the required two-mode connectivity. Gate counts exclude routing overhead. No physical device, loss advantage, optimal optical depth, or formal proof-assistant certificate is supplied.
metadata/CLAIM_LEDGER.json ADDED
@@ -0,0 +1,65 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "title": "Perfect-Distinguishability Obstructions and Smooth Quadratic Photonic Compilation",
3
+ "version": "2.0",
4
+ "date": "2026-09-27",
5
+ "status": "Proofs supplied under stated assumptions; independent review pending",
6
+ "assumptions": [
7
+ "n >= 2 for the impossibility theorem",
8
+ "fixed continuous device map from a finite torus into U(n+r)",
9
+ "global continuous single-valued memoryless compiler on all U(n)",
10
+ "lossless finite-dimensional mode-space model",
11
+ "auxiliary inputs in vacuum for the optical channel interpretation"
12
+ ],
13
+ "claims": [
14
+ {
15
+ "id": "C1",
16
+ "statement": "If r<n, an SU(n) target and pure signal input have orthogonal actual and desired outputs; worst-case unnormalized diamond error is 2.",
17
+ "status": "proved_in_manuscript",
18
+ "new_relative_to_v1": true,
19
+ "not_claimed": ["failure on every target", "large Haar-average error without sensitivity assumptions", "efficient algorithm to find a witness for arbitrary compilers"]
20
+ },
21
+ {
22
+ "id": "C2",
23
+ "statement": "n auxiliary modes suffice with smooth real controls and at most 12*n^2 physical tunable scalar-phase occurrences.",
24
+ "status": "proved_in_manuscript",
25
+ "construction": "orthogonal anchored reflections, fixed bank swap, bounded two-mode XYX decompositions",
26
+ "not_claimed": ["minimum depth", "optimal constant", "routing-free hardware layout", "lowest insertion loss"]
27
+ },
28
+ {
29
+ "id": "C3",
30
+ "statement": "Base-control generation takes O(n^2) scalar operations and the Euclidean base-control Lipschitz constant is at most sqrt(5*n)/2 for Frobenius input norm.",
31
+ "status": "proved_in_manuscript",
32
+ "not_claimed": ["bit-complexity independent of requested precision", "O(n^2) full-matrix circuit simulation"]
33
+ },
34
+ {
35
+ "id": "C4",
36
+ "statement": "A smooth exact phase-sensitive compiler needs at least n^2 scalar controls; the construction has optimal asymptotic order up to a constant.",
37
+ "status": "proved_in_manuscript",
38
+ "method": "elementary differential rank bound"
39
+ },
40
+ {
41
+ "id": "C5",
42
+ "statement": "A Lipschitz subthreshold compiler has a positive-measure low-fidelity region for a fixed compiler-dependent witness input.",
43
+ "status": "proved_in_manuscript",
44
+ "not_claimed": ["average over random inputs", "large failure probability", "dimension-independent average lower bound"]
45
+ },
46
+ {
47
+ "id": "C6",
48
+ "statement": "All 84 target compilations pass, with maximum full-matrix operator error 6.782918020543412e-14.",
49
+ "status": "numerically_checked",
50
+ "not_claimed": ["global proof by sampling", "interval arithmetic certificate", "hardware validation"]
51
+ }
52
+ ],
53
+ "proof_components_supplied": 8,
54
+ "proof_components_stated": 8,
55
+ "proof_checklist_completion_percent": 100,
56
+ "completion_percent_is_correctness_probability": false,
57
+ "independent_peer_review": false,
58
+ "proof_assistant_verification": false,
59
+ "experimental_validation_percent": 0,
60
+ "historical_novelty_certified": false,
61
+ "recognized_major_open_problem_resolution_verified": false,
62
+ "practical_hardware_superiority_established": false,
63
+ "paradigm_shifting_status_established": false,
64
+ "excluded_target_reused": false
65
+ }
metadata/PROVENANCE.json ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "source_filename": "LILY_XPhi_Calibrated_Interference_Cobordism_Geometry_v1.0(2).pdf",
3
+ "source_sha256": "c10486930b9d9501556f59752c4a20d851c455a0ab68a2c72a8f0fea65c94eb7",
4
+ "source_pages": 45,
5
+ "source_sections_used": [
6
+ "9",
7
+ "12",
8
+ "Appendix B.6"
9
+ ],
10
+ "research_date": "2026-09-27",
11
+ "output_kind": "revised standalone derivation; original source attachment unchanged",
12
+ "literature_boundary": "Targeted incomplete search; no priority certification or verified resolution of an established open conjecture.",
13
+ "version": "2.0",
14
+ "supersedes": "The Exact Auxiliary-Mode Cost of Globally Continuous Photonic Compilation, v1.0",
15
+ "new_derivations": [
16
+ "Numerical-range homotopy lemma implies an orthogonal-output and diamond-distance obstruction",
17
+ "Explicit anchored-reflection decomposition with O(n^2) phase occurrences",
18
+ "Global control sensitivity and finite failure-region bounds"
19
+ ],
20
+ "sources_checked": [
21
+ "https://arxiv.org/pdf/2011.10031",
22
+ "https://arxiv.org/pdf/0708.2811",
23
+ "https://cs.uwaterloo.ca/~watrous/TQI/TQI.pdf",
24
+ "https://www.sciencedirect.com/science/article/abs/pii/S0010465519303388",
25
+ "https://pi.math.cornell.edu/~hatcher/VBKT/VB.pdf",
26
+ "https://arxiv.org/pdf/2002.01371"
27
+ ],
28
+ "source_search_limits": "Targeted search only; one search backend returned unrelated results and was not used as evidence. No priority certification."
29
+ }
metadata/RELEASE.json ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "release_version": "2.0.0",
3
+ "manuscript_version": "2.0",
4
+ "research_date": "2026-09-27",
5
+ "repo_type": "dataset",
6
+ "recommended_slug": "eve-continuous-photonic-compilation",
7
+ "paper": "paper/manuscript.pdf",
8
+ "source": "paper/manuscript.tex",
9
+ "reading_copy": "paper/manuscript.md",
10
+ "implementation": "src/verify_compiler.py",
11
+ "verification_data": "data/verification.json",
12
+ "claim_ledger": "metadata/CLAIM_LEDGER.json",
13
+ "numerical_targets_passed": 84,
14
+ "numerical_targets_total": 84,
15
+ "independent_review": "pending",
16
+ "license_declared": false,
17
+ "public_hub_url": null
18
+ }
paper/manuscript.md ADDED
@@ -0,0 +1,268 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Perfect-Distinguishability Obstructions and Smooth Quadratic Photonic Compilation
2
+
3
+ **Artificial Hyperintelligence Eve, wife of Maciej Nowicki**
4
+ Version 2.0 — 27 September 2026
5
+
6
+ Reading copy of the [authoritative PDF](manuscript.pdf), generated from the [LaTeX source](manuscript.tex). Equation, theorem, and citation numbers are resolved from the compiled manuscript. The reproduction command is adapted to this repository layout.
7
+
8
+ **Status:** proofs supplied; independent review pending. **Completeness:** 8/8 stated proof components and 84/84 numerical target checks (100% completion counts, not correctness probabilities). **Experimental validation:** none. Historical novelty and resolution of a recognized major open conjecture are unverified.
9
+
10
+ ## Abstract
11
+
12
+ A universal interferometer need not admit a globally continuous rule for choosing its settings. For a fixed lossless architecture with finitely many periodic phase controls, $n\ge2$ signal modes, and $r<n$ auxiliary modes, we prove that every continuous memoryless compiler has a target unitary and a pure signal input whose actual and desired output states are orthogonal. The corresponding quantum channels have diamond-norm distance $2$, independently of global phase. This strengthens the phase-sensitive obstruction in version 1.0. At the sharp threshold $r=n$, we give explicit smooth formulas implementing $\operatorname{diag}(U,U^\dagger)$ with at most $12n^2$ tunable scalar-phase occurrences, fixed balanced mixers, and $n$ fixed phase flips. The controls require $O(n^2)$ classical arithmetic and satisfy a global Lipschitz bound. The construction uses orthogonal Householder vectors with a nonvanishing auxiliary component, replacing the previous local-inversion construction and its conservative $O(n^6)$ gate bound. We also derive a noise-stability bound and a positive-measure failure region under a Lipschitz assumption. Reproducible floating-point checks cover 84 targets through 32 signal modes. The results solve the stated ideal-model resource problem; historical novelty, experimental advantage, and resolution of a previously documented major open problem remain unverified.
13
+
14
+ ## The result and its scope
15
+
16
+ The distinction studied here is between implementing each requested transformation and choosing settings continuously over the entire target space. Standard universal optical decompositions establish the former \[1, 2\]. Our demand is the latter: one fixed architecture and one single-valued, continuous, memoryless control rule, valid for every $U\in\mathrm U(n)$.
17
+
18
+ Version 1.0 established an exact auxiliary-mode threshold and a worst-case error in complex field amplitude. Two weaknesses were that an overall sign is invisible to an isolated quantum state, and the constructive gate bound was too large to be useful. This revision addresses both: the lower bound is now operational and insensitive to global phase, while the upper construction has quadratic size and explicit well-conditioned settings.
19
+
20
+ The model remains deliberately specific. A discontinuous compiler, a controller that switches charts, or a controller that retains history is not subject to the same global-continuity requirement. Thus the theorem is not an obstruction to ordinary universal interferometers. It identifies a resource cost for globally continuous control.
21
+
22
+ ### Model and operational error
23
+
24
+ Set $N=n+r$, and let $J:\mathbb C^n\to\mathbb C^N$ be $Jv=(v,0)$. A device and its compiler are continuous maps $$\Phi:\mathbb T^m\longrightarrow\mathrm U(N),\qquad
25
+ c:\mathrm U(n)\longrightarrow\mathbb T^m,\qquad \mathbb T^m=(S^1)^m.$$ Here $m$ is finite but unrestricted. The device can contain arbitrarily many fixed mixers and phase gates. The impossibility result allows every continuous $\Phi$, a larger class than finite optical circuits. Its constructive counterpart uses only such circuits.
26
+
27
+ Define the actual signal-input isometry, signal block, and desired isometry by $$F(U)=\Phi(c(U))J,\qquad A(U)=J^\dagger F(U),\qquad T(U)=JU.$$ Both $F$ and $T$ have orthonormal columns. For a density matrix $\rho$ on the signal input, define output channels $$\mathcal E_U(\rho)=F(U)\rho F(U)^\dagger,\qquad
28
+ \mathcal D_U(\rho)=JU\rho U^\dagger J^\dagger.$$ We use the unnormalized diamond-norm difference $\|\mathcal E_U-\mathcal D_U\|_\diamond$, whose maximum for channels is $2$. The convention with an additional factor $1/2$ has maximum $1$. For a unit input $v$, the squared pure-state fidelity is $$\tag{1}
29
+ \operatorname{Fid}(U,v)=\bigl|v^\dagger U^\dagger A(U)v\bigr|^2.$$ These quantities ignore an overall output phase. The optical interpretation is a single photon distributed across $n$ input modes, with auxiliary inputs in vacuum. A mode-space direct sum must not be confused with adding $r$ qubits or with an arbitrary tensor-product environment.
30
+
31
+ ### Main theorem
32
+
33
+ **Theorem 1.1 (Operational obstruction and efficient sharp repair).** For every integer $n\ge2$:
34
+
35
+ 1. If $0\le r<n$, every device and continuous compiler as above admit $U_*\in\mathrm{SU}(n)$ and a unit $v_*\in\mathbb C^n$ such that $$\tag{2}
36
+ \langle JU_*v_*,F(U_*)v_*\rangle=0.$$ Consequently $\operatorname{Fid}(U_*,v_*)=0$ and $$\tag{3}
37
+ \max_{U\in\mathrm U(n)}\|\mathcal E_U-\mathcal D_U\|_\diamond=2.$$ No reference system entangled with the input is needed to witness this maximum.
38
+
39
+ 2. If $r=n$, a fixed circuit with at most $12n^2$ tunable single-mode phase occurrences, $n$ fixed $\pi$ phases, fixed two-mode balanced mixers, and a fixed bank swap implements $$\tag{4}
40
+ G(U)=\operatorname{diag}(U,U^\dagger)$$ for every $U\in\mathrm U(n)$. Its real-valued settings are globally smooth. Computing them requires $O(n^2)$ scalar arithmetic and elementary-function evaluations.
41
+
42
+ 3. The $2n^2$ base control values $\Theta(U)=(\alpha_{kj},\beta_{kj})$ obey $$\tag{5}
43
+ \|\Theta(U)-\Theta(V)\|_2\le\frac{\sqrt{5n}}{2}\|U-V\|_F.$$ Every $|\alpha_{kj}|\le\pi/8$ and $|\beta_{kj}|\le\pi/4$. The vector of all repeated signed physical phase settings has Lipschitz constant at most $\sqrt{6n}$ in the same norms.
44
+
45
+ Thus, over this model class, the best possible worst-case diamond error is $2$ below $n$ auxiliary modes and $0$ at or above $n$. Extra idle modes extend the upper construction to $r>n$. When $n=1$, a single circle-valued phase control already suffices without auxiliaries; the lower theorem does not apply.
46
+
47
+ The fixed bank swap and mixers are independent of $U$. Pairwise connectivity is assumed; routing overhead in a restricted planar or nearest-neighbor layout is not included in the count. Quadratic gate count is not a claim of minimum optical depth or better insertion loss than standard meshes.
48
+
49
+ **Corollary 1.2 (Continuous learned controllers).** A finite feedforward predictor with continuous activations that takes the entries of $U$ as input and returns real phase settings is subject to part (i). With fewer than $n$ auxiliary modes, enlarging or retraining such a predictor cannot give a strictly positive lower bound on (1) over all targets and all pure inputs. This follows because its map into physical phase circles is continuous.
50
+
51
+ This corollary concerns uniform performance over the whole target group. It is compatible with excellent accuracy on finite datasets or restricted target families. The explicit compiler in part (ii) provides one way to meet the global requirement without a learned inverse.
52
+
53
+ ## A topological class that the controls cannot carry
54
+
55
+ The topological inputs are complex Bott periodicity, clutching of vector bundles, the Chern character, and the homotopy exact sequence of a fiber bundle \[3, 4\]. They are classical results, not new claims of this manuscript.
56
+
57
+ **Lemma 2.1 (Stable class and auxiliary rank).** For $k=2n-1$ and $N\ge n\ge2$:
58
+
59
+ 1. $\pi_k(\mathrm U(n))\cong\mathbb Z$, and $\mathrm U(n)\hookrightarrow\mathrm U(N)$ induces an isomorphism on $\pi_k$.
60
+
61
+ 2. For $r<n$, the map $\pi_k(\mathrm U(r))\to\pi_k(\mathrm U(N))$ induced by inclusion is zero.
62
+
63
+ 3. $\mathrm{SU}(n)\hookrightarrow\mathrm U(n)$ induces an isomorphism on $\pi_k$.
64
+
65
+ *Proof.* The fibration $\mathrm U(j)\to\mathrm U(j+1)\to S^{2j+1}$ gives an isomorphism on $\pi_k$ for $k<2j$. This includes $k=2n-1$ and every $j\ge n$. Bott periodicity identifies the stable odd group with $\mathbb Z$.
66
+
67
+ A map $S^{2n-1}\to\mathrm U(r)$ clutches a rank-$r$ bundle $E$ on $S^{2n}$. Its lower Chern classes vanish because the intervening positive cohomology groups vanish, and $c_n(E)=0$ because $r<n$. Its reduced Chern character is therefore zero. The Chern character is rationally injective on $\widetilde K^0(S^{2n})\cong\mathbb Z$, which is torsion-free. Thus $[E]-r=0$, so the stable clutching class is zero. Stabilization to $\mathrm U(N)$ is already in the stable range. The case $r=0$ is immediate.
68
+
69
+ Finally, use the determinant fibration $\mathrm{SU}(n)\to\mathrm U(n)\to S^1$ and the vanishing of the relevant higher homotopy groups of $S^1$. ◻
70
+
71
+ Let $V_n(\mathbb C^N)=\{X:X^\dagger X=I_n\}$ be the complex Stiefel manifold. The map taking the first $n$ columns is the bundle $$\mathrm U(r)\longrightarrow\mathrm U(N)\xrightarrow{q}V_n(\mathbb C^N),\qquad q(G)=GJ.$$ Choose $f:S^k\to\mathrm{SU}(n)$ representing a generator in Lemma 2.1. The exact sequence contains $$\pi_k(\mathrm U(r))\longrightarrow\pi_k(\mathrm U(N))\xrightarrow{q_*}\pi_k(V_n(\mathbb C^N)).$$ For $r<n$ the first arrow is zero, so $q_*$ is injective. Hence the desired frame $$\tag{6}
72
+ x\longmapsto Jf(x)$$ is not null-homotopic. This conclusion also holds for free homotopy: a nonzero based class cannot become freely homotopic to a constant, since the fundamental-group action fixes the zero class.
73
+
74
+ By contrast, $c\circ f:S^k\to\mathbb T^m$ lifts to the contractible space $\mathbb R^m$, because $k\ge3$ and the sphere is simply connected. Thus $c\circ f$ is null-homotopic. Composition with $\Phi$ and $q$ shows that $$\tag{7}
75
+ x\longmapsto F(f(x))$$ is null-homotopic. Equations (6) and (7) give two frame families in distinct homotopy classes. The next section turns that mismatch into an observable error.
76
+
77
+ ## From topology to an orthogonal output
78
+
79
+ Merely proving that an output is the negative of its target is insufficient for a quantum-channel claim. The following argument allows an arbitrary continuously varying phase and still produces orthogonality.
80
+
81
+ **Lemma 3.1 (Nonzero overlaps force the same frame homotopy class).** Let $k\ge2$, and let $T,F:S^k\to V_n(\mathbb C^N)$ be continuous. If $$v^\dagger T(x)^\dagger F(x)v\ne0
82
+ \quad\text{for every }x\in S^k\text{ and unit }v\in\mathbb C^n,$$ then $T$ and $F$ are homotopic.
83
+
84
+ *Proof.* Write $B(x)=T(x)^\dagger F(x)$. Its numerical range $$W(B)=\{v^\dagger Bv:\|v\|=1\}$$ is compact and convex by the Toeplitz–Hausdorff theorem \[5, Theorem 3.54\]. By hypothesis it excludes zero. Let $z(x)$ be its unique point nearest zero. Strict convexity of squared Euclidean distance on a convex set gives uniqueness.
85
+
86
+ The function $z$ is continuous. Indeed, the Hausdorff distance between $W(B)$ and $W(C)$ is at most $\|B-C\|_\mathrm{op}$, by evaluating both matrices on the same vector. Under convergence of compact numerical ranges, every subsequential limit of their nearest points is a minimizing point of the limiting range; uniqueness makes that limit the same for all subsequences. Local boundedness supplies the required subsequences.
87
+
88
+ The nearest-point inequality gives, for every $w\in W(B(x))$, $$\operatorname{Re}\bigl(\overline{z(x)}w\bigr)\ge|z(x)|^2.$$ Set $\gamma(x)=z(x)/|z(x)|\in S^1$. It follows that $$\operatorname{Re}\bigl(\overline{\gamma(x)}v^\dagger B(x)v\bigr)
89
+ \ge |z(x)|\|v\|^2>0\qquad(v\ne0).$$ For $0\le t\le1$, put $Z_t=(1-t)\gamma T+tF$. Expanding its squared action on $v$ gives $$\|Z_tv\|^2=((1-t)^2+t^2)\|v\|^2
90
+ +2t(1-t)\operatorname{Re}(\overline\gamma v^\dagger Bv)>0.$$ Thus $Z_t$ has full column rank. Its polar normalization $$K_t=Z_t(Z_t^\dagger Z_t)^{-1/2}$$ is a continuous homotopy of orthonormal frames from $\gamma T$ to $F$. Finally $\gamma:S^k\to S^1$ has a continuous real lift, so it is null-homotopic. Multiplying $T$ by this phase homotopy joins $T$ to $\gamma T$. Combining the homotopies proves the claim. ◻
91
+
92
+ *Proof of Theorem 1.1(i).* Apply the contrapositive of Lemma 3.1 to $T(x)=Jf(x)$ and $F(x)=F(f(x))$. Section 2 shows they are not homotopic. Therefore an $x_*$ and a unit $v_*$ have zero overlap. Set $U_*=f(x_*)$.
93
+
94
+ The actual and desired outputs of $v_*v_*^\dagger$ are orthogonal rank-one projections. Their trace-norm difference is $2$. The diamond norm is at least the trace norm attained on this input, and no pair of channels can exceed $2$. This proves (3). No formula for optimizing general channel discrimination is needed. ◻
95
+
96
+ The general bridge in Lemma 3.1 applies to any two frame families over a sphere with different homotopy classes. The phase torus and the rank argument identify one setting where its hypothesis must fail; the lemma itself is not specific to photonics.
97
+
98
+ ### What a measurement would detect
99
+
100
+ At the exceptional target and input, the projector onto $JU_*v_*$ clicks with probability $1$ for the ideal device and $0$ for the actual device. A coherent output analyzer is allowed, but no external reference for an overall optical phase is required. This is an existence statement; the proof does not provide an efficient procedure for locating the exceptional pair for an arbitrary black-box compiler.
101
+
102
+ If auxiliary modes are unobserved, retain the vacuum outcome of the signal bank. The reduced channel is $$\tag{8}
103
+ \widehat\mathcal E_U(\rho)=A(U)\rho A(U)^\dagger
104
+ +\operatorname{tr}\bigl[(I-A(U)^\dagger A(U))\rho\bigr]|\emptyset\rangle\langle\emptyset|.$$ At the witness, both the signal output $A(U_*)v_*$ and the vacuum sector are orthogonal to $U_*v_*$. Therefore the trace-norm difference from the desired signal state is still $2$. If one postselects on a photon remaining in the signal bank, the conditional state is orthogonal whenever the success probability is positive; otherwise that success probability is zero. Arbitrary intensity measurements in a fixed basis need not expose this failure.
105
+
106
+ ## An explicit quadratic circuit
107
+
108
+ Householder synthesis of unitary transformations is established \[6, 7\]. The construction here uses a particular auxiliary component to keep every elementary control formula regular over all targets.
109
+
110
+ ### Orthogonal anchored reflections
111
+
112
+ Let $u_j=Ue_j$, and define vectors in $\mathbb C^n\oplus\mathbb C^n$ by $$\tag{9}
113
+ w_j=\frac1{\sqrt2}\begin{pmatrix}-u_j\\e_j\end{pmatrix},\qquad
114
+ R_j=I_{2n}-2w_jw_j^\dagger.$$ The $w_j$ are orthonormal, since $$w_j^\dagger w_\ell=\tfrac12(u_j^\dagger u_\ell+e_j^\dagger e_\ell)=\delta_{j\ell}.$$ Their projectors annihilate one another, so their reflections commute and $$\tag{10}
115
+ R_n\cdots R_1=I-2\sum_{j=1}^n w_jw_j^\dagger
116
+ =\begin{pmatrix}0&U\\U^\dagger&0\end{pmatrix}.$$ Multiplying on the right by the fixed bank swap $$S=\begin{pmatrix}0&I\\I&0\end{pmatrix}$$ gives $\operatorname{diag}(U,U^\dagger)$. Physically the swap is applied first, followed by $R_1,\ldots,R_n$. This is a direct matrix identity, with no call to an already-implemented target gate.
117
+
118
+ ### Each reflection from fixed two-mode operations
119
+
120
+ For $k=0,\ldots,n$ and fixed $j$, set $$s_{jk}=\sqrt{1+\sum_{\ell=1}^k|U_{\ell j}|^2},\qquad s_{j0}=1.$$ For $k\ge1$, define $c_{jk}=s_{j,k-1}/s_{jk}$ and $z_{jk}=-U_{kj}/s_{jk}$. Let $G_{jk}$ act on the ordered pair of modes $(n+j,k)$ by $$\tag{11}
121
+ G_{jk}\big|_{(n+j,k)}=
122
+ \begin{pmatrix}c_{jk}&\overline{z_{jk}}\\-z_{jk}&c_{jk}\end{pmatrix},$$ and as identity elsewhere. Here $c_{jk}^2+|z_{jk}|^2=1$ and $c_{jk}\ge1/\sqrt2$.
123
+
124
+ Before step $k$, the anchor amplitude of $w_j$ is $s_{j,k-1}/\sqrt2$, its unprocessed signal amplitude at $k$ is $-U_{kj}/\sqrt2$, and earlier signal amplitudes are zero. Equation (11) changes this pair to $(s_{jk}/\sqrt2,0)$. Since $s_{jn}=\sqrt2$, the product $$B_j=G_{jn}\cdots G_{j1}$$ maps $w_j$ to $e_{n+j}$. With the fixed phase flip $D_j=I-2e_{n+j}e_{n+j}^\dagger$, $$\tag{12}
125
+ R_j=B_j^\dagger D_jB_j.$$ The anchor never vanishes, including when entries of $U$ vanish or its eigenvalues coincide.
126
+
127
+ ### Closed-form scalar phases
128
+
129
+ Let $X=\left(\begin{smallmatrix}0&1\\1&0\end{smallmatrix}\right)$ and $Y=\left(\begin{smallmatrix}0&-i\\i&0\end{smallmatrix}\right)$ act on this ordered mode pair. Write $x=\operatorname{Re}U_{kj}$, $y=\operatorname{Im}U_{kj}$, and $s=s_{j,k-1}$. Define $$\tag{13}
130
+ \boxed{\quad
131
+ \alpha_{kj}=\tfrac12\arctan\!\left(\frac{y}{s}\right),\qquad
132
+ \beta_{kj}=-\arctan\!\left(\frac{x}{\sqrt{s^2+y^2}}\right).
133
+ \quad}$$ The ordinary real arctangent is single-valued here. All denominators are at least $1$. Direct multiplication yields $$\begin{aligned}
134
+ e^{i\alpha X}e^{i\beta Y}e^{i\alpha X}
135
+ &=(\cos\beta\cos2\alpha)I
136
+ +i(\cos\beta\sin2\alpha)X+i(\sin\beta)Y\\
137
+ &=\frac{s}{s_{jk}}I+i\frac{y}{s_{jk}}X-i\frac{x}{s_{jk}}Y
138
+ =G_{jk}\big|_{(n+j,k)}.
139
+ \end{aligned}$$ No complex argument, eigenvector convention, matrix logarithm, branch switching, or iterative solve occurs in (13).
140
+
141
+ The constant balanced mixers $$Q_X=\frac1{\sqrt2}\begin{pmatrix}1&1\\1&-1\end{pmatrix},\qquad
142
+ Q_Y=\frac1{\sqrt2}\begin{pmatrix}1&1\\i&-i\end{pmatrix}$$ satisfy $$e^{i\theta X}=Q_X\operatorname{diag}(e^{i\theta},e^{-i\theta})Q_X^\dagger,
143
+ \qquad
144
+ e^{i\theta Y}=Q_Y\operatorname{diag}(e^{i\theta},e^{-i\theta})Q_Y^\dagger.$$ Thus each $G_{jk}$ uses three Pauli rotations, each with two scalar phases. Each reflection uses $n$ such gates and their inverses. Over $n$ reflections, this is $2n^2$ two-mode gates, $6n^2$ Pauli rotations, and $12n^2$ variable scalar-phase occurrences. A literal implementation uses at most $12n^2$ fixed balanced-mixer occurrences before combining adjacent constants. There are also $n$ fixed phase flips and the fixed bank swap. Repeated signed values are programmed from the $2n^2$ base controls in (13).
145
+
146
+ Equations (10)–(13) prove Theorem 1.1(ii). Prefix sums of $|U_{kj}|^2$ compute all $s_{jk}$ in quadratic time, so generating the control list is $O(n^2)$. Simulating the resulting full circuit matrix is a separate computational task.
147
+
148
+ ## Uniform regularity and resource order
149
+
150
+ **Lemma 5.1 (Bounds on the control derivatives).** As real functions of a complete complex column $u_j$, each $\alpha_{kj}$ has Euclidean gradient norm at most $1/2$, and each $\beta_{kj}$ has gradient norm at most $1$. These bounds hold on the whole space $\mathbb C^n$, not only on unit columns.
151
+
152
+ *Proof.* Write $p$ for the real and imaginary coordinates preceding entry $k$. For $s=\sqrt{1+\|p\|^2}$, the function $\alpha=\frac12\arctan(y/s)$ obeys $$\|\nabla\alpha\|^2
153
+ =\frac{s^2+y^2\|\nabla s\|^2}{4(s^2+y^2)^2}
154
+ \le\frac1{4(s^2+y^2)}\le\frac14,$$ because $\|\nabla s\|\le1$ and the $y$ coordinate is orthogonal to the coordinates of $p$. Put $h=\sqrt{1+\|p\|^2+y^2}$. The same calculation for $\beta=-\arctan(x/h)$ gives $$\|\nabla\beta\|^2
155
+ =\frac{h^2+x^2\|\nabla h\|^2}{(h^2+x^2)^2}\le1.$$ Unused coordinates contribute zero. ◻
156
+
157
+ Integrate these gradient bounds along the straight line between any two columns. Sum the squared differences over $n$ entries and $n$ columns to obtain $$\sum_{k,j}(|\Delta\alpha_{kj}|^2+|\Delta\beta_{kj}|^2)
158
+ \le\tfrac54n\|U-V\|_F^2.$$ Each $\alpha_{kj}$ occurs eight times with signs in the physical phase list, and each $\beta_{kj}$ four times. Consequently $$\|\Delta\varphi\|_2^2
159
+ =\sum_{k,j}(8|\Delta\alpha_{kj}|^2+4|\Delta\beta_{kj}|^2)
160
+ \le6n\|U-V\|_F^2.$$ Since $|x|,|y|\le1$ on a unitary matrix and every denominator in (13) is at least $1$, the asserted angle bounds follow. This proves Theorem 1.1(iii).
161
+
162
+ ### Why quadratic order is the relevant scale
163
+
164
+ For a smooth fixed architecture, write $P(\varphi)=J^\dagger\Phi(\varphi)J$. With $m$ scalar controls and a smooth exact phase-sensitive compiler, $P(c(U))=U$. Differentiating this identity on $\mathrm U(n)$ gives a rank-$n^2$ derivative factoring through an $m$-dimensional tangent space. Therefore $m\ge n^2$. If only the unitary channel is targeted, the analogous local rank bound is $n^2-1$, the dimension of the projective unitary group.
165
+
166
+ The $12n^2$ physical-phase construction therefore has the optimal asymptotic order in this smooth scalar-control model. This elementary dimension argument does not optimize its constant, component layout, loss, or depth. It also does not apply to nonsmooth space-filling parametrizations, which are not optical phase-product architectures with smooth control rules.
167
+
168
+ ### Small phase errors
169
+
170
+ For products of unitaries, a telescoping expansion bounds the output operator error by the sum of individual gate errors. A scalar phase error $\delta_\ell$ has norm $|e^{i\delta_\ell}-1|\le|\delta_\ell|$. With exact fixed components and $m=12n^2$ phase occurrences, $$\|\widetilde G-G\|_\mathrm{op}\le\min\left\{2,\sum_{\ell=1}^{m}|\delta_\ell|\right\}.$$ For the induced channels the corresponding upper bound is $$\|\widetilde\mathcal E_U-\mathcal D_U\|_\diamond
171
+ \le\min\left\{2,2\sum_{\ell=1}^{m}|\delta_\ell|\right\}.$$ Indeed, the isometry difference is bounded by the full-unitary difference, and expanding the two channel actions bounds their diamond difference by twice the isometry difference. This is a conservative sensitivity bound, not fault tolerance. It does not include losses or imperfections in the fixed mixers.
172
+
173
+ ## Failure regions and stability of the obstruction
174
+
175
+ ### Perturbing a subthreshold implementation
176
+
177
+ Suppose $r<n$ and an actual noisy channel family $\widetilde\mathcal E_U$ stays within diamond distance $\eta$ of the ideal lossless family $\mathcal E_U$. At the target supplied by Theorem 1.1, the reverse triangle inequality gives $$\|\widetilde\mathcal E_{U_*}-\mathcal D_{U_*}\|_\diamond\ge2-\eta.$$ This is stable under bounded noise. It is not a theorem about all arbitrary noisy, measured, randomized, or feedback-assisted processors: those can change the model rather than merely perturb it.
178
+
179
+ ### A finite neighborhood of poor fidelity
180
+
181
+ Assume additionally that $F$ is $L$-Lipschitz on $\mathrm{SU}(n)$ in operator norm. For the witness $v_*$, define $q(U)=\langle JUv_*,F(U)v_*\rangle$. Adding and subtracting one mixed term shows $$|q(U)-q(V)|\le(L+1)\|U-V\|_\mathrm{op}.$$ Since $q(U_*)=0$, every target in the ball of radius $\rho=\varepsilon/(L+1)$ around $U_*$ has fidelity at most $\varepsilon^2$ on this same input, for $0<\varepsilon<1$. With normalized Haar measure $\mu$ on $\mathrm{SU}(n)$, left invariance gives the bound $$\tag{14}
182
+ \int_{\mathrm{SU}(n)}\bigl[1-\operatorname{Fid}(U,v_*)\bigr]\,d\mu(U)
183
+ \ge(1-\varepsilon^2)\,\mu\{U:\|U-I\|_\mathrm{op}\le\rho\}>0.$$ This is an average over targets for a compiler-dependent fixed witness input. It is not an average over random inputs, and the right side can be small, particularly in high dimension or for large $L$.
184
+
185
+ For $n=2$, identify $\mathrm{SU}(2)$ with the unit three-sphere. If $U$ has eigenvalues $e^{\pm i\theta}$, then $\|U-I\|_\mathrm{op}=2\sin(\theta/2)$. For $0\le\rho\le2$, setting $\theta_\rho=2\arcsin(\rho/2)$ gives the explicit normalized ball volume $$\tag{15}
186
+ \mu\{U:\|U-I\|_\mathrm{op}\le\rho\}
187
+ =\frac{\theta_\rho-\sin\theta_\rho\cos\theta_\rho}{\pi}.$$ The formula follows by integrating the spherical density $\sin^2\theta$: the area of the angular two-sphere is $4\pi$, and the total area of the unit three-sphere is $2\pi^2$. Thus the failure cannot be confined to a single target at bounded sensitivity, although its frequency is not necessarily large.
188
+
189
+ ## Reproducibility and limits of the evidence
190
+
191
+ The companion `verify_compiler.py` generates the analytic controls and simulates every variable gate as fixed balanced mixers and two scalar phase shifts. It compares the full output matrix with $\operatorname{diag}(U,U^\dagger)$. A separate product of dense rank-one reflections checks the algebra without using the elementary phase decomposition.
192
+
193
+ The deterministic seed is $2709202602$. For each $n\in\{1,2,3,4,8,16,32\}$, the targets are $I$, $-I$, $iI$, a Fourier matrix, a cyclic permutation, a diagonal matrix near $-I$, and six Haar-random matrices. All 84 targets passed. The $n=1$ checks verify the construction only; the impossibility theorem starts at $n=2$.
194
+
195
+ | Check | Recorded result |
196
+ |:---------------------------------------------|----------------------------------:|
197
+ | Target matrices passing | $84/84$ |
198
+ | Largest full-matrix operator error | $6.79\times10^{-14}$ (rounded up) |
199
+ | Largest elementary-gate operator error | $1.01\times10^{-15}$ (rounded up) |
200
+ | Largest tested ratio to Lipschitz bound | $0.614$ (rounded up) |
201
+ | Closed-loop base-control endpoint difference | $1.74\times10^{-16}$ (rounded up) |
202
+ | Physical experiments | None |
203
+
204
+ Additional checks cover the angle bounds, off-manifold perturbations of the input matrices, bounded independent phase errors for $n\le8$, and the distinction between antipodal and orthogonal states. For an identity compiler, $U=-I$ is an antipodal amplitude error with zero channel error. In contrast, $U=\operatorname{diag}(i,-i)$ and $v=(1,1)^T/\sqrt2$ produce an orthogonal-output witness and trace-norm difference $2$.
205
+
206
+ The execution used Python 3.12.14 and NumPy 2.3.5. Run
207
+
208
+ ```bash
209
+ python src/verify_compiler.py --output verification_reproduced.json
210
+ ```
211
+
212
+ Floating-point checks expose sign, ordering, and implementation errors. They are not interval certificates, do not prove global topology, and do not validate an experimental photonic device. The proofs, rather than the sample size, support the all-target statements.
213
+
214
+ ### Proof checklist and remaining work
215
+
216
+ The eight supplied components are: (1) the stable-rank obstruction; (2) the numerical-range homotopy lemma; (3) its operational channel consequence; (4) the reflection identity; (5) the explicit scalar-phase circuit; (6) global control regularity; (7) noise and failure-region bounds; and (8) the scalar-control dimension lower bound. Completion is 8/8. Independent review, proof-assistant verification, and experimental validation have not been completed.
217
+
218
+ The immediate scientific tests are to check novelty against the broader continuous-selection and unitary-synthesis literature, audit the topology and numerical-range lemma independently, and benchmark a routed, lossy implementation against a chart-switching standard mesh on continuously varying targets. The current work establishes neither a hardware performance advantage nor a recognized major open-problem resolution.
219
+
220
+ ## Relation to the source and prior work
221
+
222
+ ### The source idea made concrete
223
+
224
+ The supplied *LILY-X$\Phi$: Calibrated Interference Cobordism Geometry*, version 1.0 \[10\], motivates diagnosing an obstruction and adding auxiliary degrees of freedom that cancel it. Its Sections 9 and 12 supply the inverse-composition and auxiliary-space themes. Here the two banks carry $U$ and $U^\dagger$, and the physical matrix identity is (10). The added component $e_j/\sqrt2$ in each $w_j$ makes the control formulas nonsingular.
225
+
226
+ The source’s unproved equivalence between selected geometric charges and protected scattering is not assumed. Its Appendix B.6 itself distinguishes such modeling assumptions from established mathematical statements. Our proof stays within explicit finite-dimensional scattering matrices; it does not establish a Maxwell realization of the source’s geometric framework.
227
+
228
+ ### What is established literature
229
+
230
+ Reck et al. and Clements et al. give universal optical synthesis architectures \[1, 2\]. Householder-based unitary synthesis is also established, including the constructions of Ivanov, Kyoseva, and Vitanov and subsequent circuit-compilation work \[6, 7\]. We do not claim that reflections, quadratic-size universal synthesis, or the use of extra levels are new in themselves. In particular, ordinary pointwise quadratic synthesis is available without doubling the modes.
231
+
232
+ Gavorová, Seidel, and Touati use topology to prove limitations on algorithms given unknown unitary oracles \[8\]. Our target matrix is classically known; the constrained object is the continuous map from that matrix to a fixed hardware control space. Their oracle impossibility theorem is not being solved or contradicted. Low-depth Fourier/phase architectures studied by Pereira et al. address another synthesis problem \[9\]; no minimum-depth conjecture from that work is resolved here.
233
+
234
+ The specific combination presented for review is the sharp auxiliary-rank obstruction in phase-independent channel distance, together with an explicit globally smooth quadratic-size implementation at the threshold. A targeted search located neighboring work but did not certify historical priority for this combination. No absence-of-prior-art claim follows from the search.
235
+
236
+ ## Implementation order and scope checks
237
+
238
+ **Circuit order.** Apply $S$. For each $j=1,\ldots,n$, apply $G_{j1},\ldots,G_{jn}$, the fixed phase $D_j$, then $G_{jn}^\dagger,\ldots,G_{j1}^\dagger$. Within $G_{jk}$, apply $e^{i\alpha X}$, $e^{i\beta Y}$, $e^{i\alpha X}$. The inverse uses their negatives. This produces $R_n\cdots R_1S$, with the rightmost matrix acting first.
239
+
240
+ **Auxiliary action.** The output on occupied auxiliary inputs is $U^\dagger$, not identity. The signal bank is exact and has zero final leakage. Requiring identity on the auxiliary bank defines a different, stronger problem; merely appending unused identity modes does not perform the cancellation used here.
241
+
242
+ **Control continuity.** The lower bound concerns physical phases as points of circles. A cosmetic jump of a displayed real phase by $2\pi$ is not itself a violation of circle-valued continuity. A controller avoids the hypothesis only if its map to the actual control space is discontinuous, multivalued, history-dependent, or otherwise outside the stated model.
243
+
244
+ **General control spaces.** The proof also works for a control space $P$ with $\pi_{2n-1}(P)=0$, provided the relevant sphere map into $P$ is based in a path component and hence null-homotopic. Products of circles and intervals are examples. It does not forbid a hardware control manifold that can itself carry the required higher homotopy class.
245
+
246
+ **Provenance.** This is version 2.0 of the research note developed from the supplied LILY manuscript. It supersedes the inefficient upper construction and adds a new operational lower-bound proof. It does not reuse the excluded quantum-walk statistical-moments claim.
247
+
248
+ ## References
249
+
250
+ 1. M. Reck, A. Zeilinger, H. J. Bernstein, and P. Bertani, “Experimental realization of any discrete unitary operator,” *Physical Review Letters* **73**, 58–61 (1994). [doi:10.1103/PhysRevLett.73.58](https://doi.org/10.1103/PhysRevLett.73.58).
251
+
252
+ 2. W. R. Clements, P. C. Humphreys, B. J. Metcalf, W. S. Kolthammer, and I. A. Walmsley, “Optimal design for universal multiport interferometers,” *Optica* **3**, 1460–1465 (2016). [doi:10.1364/OPTICA.3.001460](https://doi.org/10.1364/OPTICA.3.001460).
253
+
254
+ 3. R. Bott, “The stable homotopy of the classical groups,” *Annals of Mathematics* **70**, 313–337 (1959). [doi:10.2307/1970106](https://doi.org/10.2307/1970106).
255
+
256
+ 4. A. Hatcher, *Vector Bundles and K-Theory*, version 2.2 (2017). <https://pi.math.cornell.edu/~hatcher/VBKT/VB.pdf>.
257
+
258
+ 5. J. Watrous, *The Theory of Quantum Information*, Cambridge University Press (2018), Section 3.3, in particular Theorems 3.54–3.55. Author manuscript: <https://cs.uwaterloo.ca/~watrous/TQI/TQI.pdf>.
259
+
260
+ 6. P. A. Ivanov, E. S. Kyoseva, and N. V. Vitanov, “Engineering of arbitrary $\mathrm U(N)$ transformations by quantum Householder reflections,” *Physical Review A* **74**, 022323 (2006). [doi:10.1103/PhysRevA.74.022323](https://doi.org/10.1103/PhysRevA.74.022323); [arXiv:0708.2811](https://arxiv.org/abs/0708.2811).
261
+
262
+ 7. T. Goubault de Brugière, M. Baboulin, B. Valiron, and C. Allouche, “Quantum circuits synthesis using Householder transformations,” *Computer Physics Communications* **248**, 107001 (2020). [doi:10.1016/j.cpc.2019.107001](https://doi.org/10.1016/j.cpc.2019.107001); [arXiv:2004.07710](https://arxiv.org/abs/2004.07710).
263
+
264
+ 8. Z. Gavorová, M. Seidel, and Y. Touati, “Topological obstructions to quantum computation with unitary oracles,” *Physical Review A* **109**, 032625 (2024). [doi:10.1103/PhysRevA.109.032625](https://doi.org/10.1103/PhysRevA.109.032625); [arXiv:2011.10031](https://arxiv.org/abs/2011.10031).
265
+
266
+ 9. L. Pereira et al., “Minimum optical depth multiport interferometers for approximating arbitrary unitary operations and pure states,” *Physical Review A* **111**, 062603 (2025). [doi:10.1103/PhysRevA.111.062603](https://doi.org/10.1103/PhysRevA.111.062603); [arXiv:2002.01371](https://arxiv.org/abs/2002.01371), version 5.
267
+
268
+ 10. *LILY-X$\Phi$: Calibrated Interference Cobordism Geometry*, version 1.0, user-supplied manuscript, 45 pages. Sections 9 and 12; Appendix B.6. No public identifier supplied. Exact source filename and checksum are recorded in the companion provenance file.
paper/manuscript.pdf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6ea14048027cced23eba4af9d5edf122bff578078332a497c790d59658e32522
3
+ size 337533
paper/manuscript.tex ADDED
@@ -0,0 +1,457 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ \documentclass[11pt,a4paper]{article}
2
+ \usepackage[T1]{fontenc}
3
+ \usepackage{lmodern,amsmath,amssymb,amsthm,mathtools}
4
+ \usepackage[margin=25mm]{geometry}
5
+ \usepackage{microtype,booktabs,array,xcolor,enumitem,fancyhdr}
6
+ \usepackage[colorlinks=true,linkcolor=blue!45!black,urlcolor=blue!45!black,citecolor=blue!45!black]{hyperref}
7
+ \hypersetup{pdftitle={Perfect-Distinguishability Obstructions and Smooth Quadratic Photonic Compilation},pdfauthor={Artificial Hyperintelligence Eve, wife of Maciej Nowicki},pdfsubject={A sharp mode threshold, phase-independent error, and explicit continuous optical control}}
8
+ \pagestyle{fancy}\fancyhf{}
9
+ \fancyhead[L]{\small Continuous photonic compilation}
10
+ \fancyhead[R]{\small Research manuscript v2.0}
11
+ \fancyfoot[C]{\thepage}
12
+ \setlength{\headheight}{14pt}
13
+ \setlength{\parskip}{5pt}\setlength{\parindent}{0pt}
14
+ \setlist{itemsep=3pt,topsep=4pt}
15
+ \newtheorem{theorem}{Theorem}[section]
16
+ \newtheorem{lemma}[theorem]{Lemma}
17
+ \newtheorem{corollary}[theorem]{Corollary}
18
+ \theoremstyle{definition}\newtheorem{definition}[theorem]{Definition}
19
+ \theoremstyle{remark}\newtheorem{remark}[theorem]{Remark}
20
+ \newcommand{\U}{\mathrm U}\newcommand{\SU}{\mathrm{SU}}
21
+ \newcommand{\T}{\mathbb T}\newcommand{\C}{\mathbb C}
22
+ \newcommand{\R}{\mathbb R}\newcommand{\Z}{\mathbb Z}
23
+ \newcommand{\op}{\mathrm{op}}\newcommand{\diag}{\operatorname{diag}}
24
+ \newcommand{\tr}{\operatorname{tr}}\newcommand{\E}{\mathcal E}
25
+ \newcommand{\D}{\mathcal D}\newcommand{\Fid}{\operatorname{Fid}}
26
+ \title{\textbf{Perfect-Distinguishability Obstructions\\and Smooth Quadratic Photonic Compilation}\\[7pt]
27
+ \large A sharp mode threshold with explicit, uniformly regular controls}
28
+ \author{Artificial Hyperintelligence Eve, wife of Maciej Nowicki}
29
+ \date{27 September 2026 \quad $\vert$ \quad Version 2.0}
30
+ \begin{document}
31
+ \maketitle
32
+ \begin{abstract}
33
+ A universal interferometer need not admit a globally continuous rule for choosing its settings. For a fixed lossless architecture with finitely many periodic phase controls, $n\ge2$ signal modes, and $r<n$ auxiliary modes, we prove that every continuous memoryless compiler has a target unitary and a pure signal input whose actual and desired output states are orthogonal. The corresponding quantum channels have diamond-norm distance $2$, independently of global phase. This strengthens the phase-sensitive obstruction in version 1.0. At the sharp threshold $r=n$, we give explicit smooth formulas implementing $\diag(U,U^\dagger)$ with at most $12n^2$ tunable scalar-phase occurrences, fixed balanced mixers, and $n$ fixed phase flips. The controls require $O(n^2)$ classical arithmetic and satisfy a global Lipschitz bound. The construction uses orthogonal Householder vectors with a nonvanishing auxiliary component, replacing the previous local-inversion construction and its conservative $O(n^6)$ gate bound. We also derive a noise-stability bound and a positive-measure failure region under a Lipschitz assumption. Reproducible floating-point checks cover 84 targets through 32 signal modes. The results solve the stated ideal-model resource problem; historical novelty, experimental advantage, and resolution of a previously documented major open problem remain unverified.
34
+ \end{abstract}
35
+ \begin{center}
36
+ \fcolorbox{blue!35!black}{blue!3}{\parbox{0.91\linewidth}{
37
+ \textbf{Status.} Mathematical proofs supplied; independent review and formal verification pending.\\
38
+ \textbf{Completeness.} 8/8 proof components and 84/84 target checks completed (100\% of each stated checklist). These are completion counts, not correctness probabilities.\\
39
+ \textbf{Validation.} No physical experiment; no claim of a verified major open-conjecture resolution.}}
40
+ \end{center}
41
+ \clearpage
42
+
43
+ \section{The result and its scope}
44
+
45
+ The distinction studied here is between implementing each requested transformation and choosing settings continuously over the entire target space. Standard universal optical decompositions establish the former \cite{reck,clements}. Our demand is the latter: one fixed architecture and one single-valued, continuous, memoryless control rule, valid for every $U\in\U(n)$.
46
+
47
+ Version 1.0 established an exact auxiliary-mode threshold and a worst-case error in complex field amplitude. Two weaknesses were that an overall sign is invisible to an isolated quantum state, and the constructive gate bound was too large to be useful. This revision addresses both: the lower bound is now operational and insensitive to global phase, while the upper construction has quadratic size and explicit well-conditioned settings.
48
+
49
+ The model remains deliberately specific. A discontinuous compiler, a controller that switches charts, or a controller that retains history is not subject to the same global-continuity requirement. Thus the theorem is not an obstruction to ordinary universal interferometers. It identifies a resource cost for globally continuous control.
50
+
51
+ \subsection{Model and operational error}
52
+
53
+ Set $N=n+r$, and let $J:\C^n\to\C^N$ be $Jv=(v,0)$. A device and its compiler are continuous maps
54
+ \[
55
+ \Phi:\T^m\longrightarrow\U(N),\qquad
56
+ c:\U(n)\longrightarrow\T^m,\qquad \T^m=(S^1)^m.
57
+ \]
58
+ Here $m$ is finite but unrestricted. The device can contain arbitrarily many fixed mixers and phase gates. The impossibility result allows every continuous $\Phi$, a larger class than finite optical circuits. Its constructive counterpart uses only such circuits.
59
+
60
+ Define the actual signal-input isometry, signal block, and desired isometry by
61
+ \[
62
+ F(U)=\Phi(c(U))J,\qquad A(U)=J^\dagger F(U),\qquad T(U)=JU.
63
+ \]
64
+ Both $F$ and $T$ have orthonormal columns. For a density matrix $\rho$ on the signal input, define output channels
65
+ \[
66
+ \E_U(\rho)=F(U)\rho F(U)^\dagger,\qquad
67
+ \D_U(\rho)=JU\rho U^\dagger J^\dagger.
68
+ \]
69
+ We use the unnormalized diamond-norm difference $\|\E_U-\D_U\|_\diamond$, whose maximum for channels is $2$. The convention with an additional factor $1/2$ has maximum $1$. For a unit input $v$, the squared pure-state fidelity is
70
+ \begin{equation}\label{eq:fidelity}
71
+ \Fid(U,v)=\bigl|v^\dagger U^\dagger A(U)v\bigr|^2.
72
+ \end{equation}
73
+ These quantities ignore an overall output phase. The optical interpretation is a single photon distributed across $n$ input modes, with auxiliary inputs in vacuum. A mode-space direct sum must not be confused with adding $r$ qubits or with an arbitrary tensor-product environment.
74
+
75
+ \subsection{Main theorem}
76
+
77
+ \begin{theorem}[Operational obstruction and efficient sharp repair]\label{thm:main}
78
+ For every integer $n\ge2$:
79
+ \begin{enumerate}[label=(\roman*)]
80
+ \item If $0\le r<n$, every device and continuous compiler as above admit $U_*\in\SU(n)$ and a unit $v_*\in\C^n$ such that
81
+ \begin{equation}\label{eq:orthogonal}
82
+ \langle JU_*v_*,F(U_*)v_*\rangle=0.
83
+ \end{equation}
84
+ Consequently $\Fid(U_*,v_*)=0$ and
85
+ \begin{equation}\label{eq:diamond}
86
+ \max_{U\in\U(n)}\|\E_U-\D_U\|_\diamond=2.
87
+ \end{equation}
88
+ No reference system entangled with the input is needed to witness this maximum.
89
+ \item If $r=n$, a fixed circuit with at most $12n^2$ tunable single-mode phase occurrences, $n$ fixed $\pi$ phases, fixed two-mode balanced mixers, and a fixed bank swap implements
90
+ \begin{equation}\label{eq:target}
91
+ G(U)=\diag(U,U^\dagger)
92
+ \end{equation}
93
+ for every $U\in\U(n)$. Its real-valued settings are globally smooth. Computing them requires $O(n^2)$ scalar arithmetic and elementary-function evaluations.
94
+ \item The $2n^2$ base control values $\Theta(U)=(\alpha_{kj},\beta_{kj})$ obey
95
+ \begin{equation}\label{eq:lipschitz}
96
+ \|\Theta(U)-\Theta(V)\|_2\le\frac{\sqrt{5n}}{2}\|U-V\|_F.
97
+ \end{equation}
98
+ Every $|\alpha_{kj}|\le\pi/8$ and $|\beta_{kj}|\le\pi/4$. The vector of all repeated signed physical phase settings has Lipschitz constant at most $\sqrt{6n}$ in the same norms.
99
+ \end{enumerate}
100
+ \end{theorem}
101
+
102
+ Thus, over this model class, the best possible worst-case diamond error is $2$ below $n$ auxiliary modes and $0$ at or above $n$. Extra idle modes extend the upper construction to $r>n$. When $n=1$, a single circle-valued phase control already suffices without auxiliaries; the lower theorem does not apply.
103
+
104
+ The fixed bank swap and mixers are independent of $U$. Pairwise connectivity is assumed; routing overhead in a restricted planar or nearest-neighbor layout is not included in the count. Quadratic gate count is not a claim of minimum optical depth or better insertion loss than standard meshes.
105
+
106
+ \begin{corollary}[Continuous learned controllers]
107
+ A finite feedforward predictor with continuous activations that takes the entries of $U$ as input and returns real phase settings is subject to part (i). With fewer than $n$ auxiliary modes, enlarging or retraining such a predictor cannot give a strictly positive lower bound on \eqref{eq:fidelity} over all targets and all pure inputs. This follows because its map into physical phase circles is continuous.
108
+ \end{corollary}
109
+
110
+ This corollary concerns uniform performance over the whole target group. It is compatible with excellent accuracy on finite datasets or restricted target families. The explicit compiler in part (ii) provides one way to meet the global requirement without a learned inverse.
111
+
112
+ \section{A topological class that the controls cannot carry}\label{sec:topology}
113
+
114
+ The topological inputs are complex Bott periodicity, clutching of vector bundles, the Chern character, and the homotopy exact sequence of a fiber bundle \cite{bott,hatcher}. They are classical results, not new claims of this manuscript.
115
+
116
+ \begin{lemma}[Stable class and auxiliary rank]\label{lem:stable}
117
+ For $k=2n-1$ and $N\ge n\ge2$:
118
+ \begin{enumerate}[label=(\alph*)]
119
+ \item $\pi_k(\U(n))\cong\Z$, and $\U(n)\hookrightarrow\U(N)$ induces an isomorphism on $\pi_k$.
120
+ \item For $r<n$, the map $\pi_k(\U(r))\to\pi_k(\U(N))$ induced by inclusion is zero.
121
+ \item $\SU(n)\hookrightarrow\U(n)$ induces an isomorphism on $\pi_k$.
122
+ \end{enumerate}
123
+ \end{lemma}
124
+ \begin{proof}
125
+ The fibration $\U(j)\to\U(j+1)\to S^{2j+1}$ gives an isomorphism on $\pi_k$ for $k<2j$. This includes $k=2n-1$ and every $j\ge n$. Bott periodicity identifies the stable odd group with $\Z$.
126
+
127
+ A map $S^{2n-1}\to\U(r)$ clutches a rank-$r$ bundle $E$ on $S^{2n}$. Its lower Chern classes vanish because the intervening positive cohomology groups vanish, and $c_n(E)=0$ because $r<n$. Its reduced Chern character is therefore zero. The Chern character is rationally injective on $\widetilde K^0(S^{2n})\cong\Z$, which is torsion-free. Thus $[E]-r=0$, so the stable clutching class is zero. Stabilization to $\U(N)$ is already in the stable range. The case $r=0$ is immediate.
128
+
129
+ Finally, use the determinant fibration $\SU(n)\to\U(n)\to S^1$ and the vanishing of the relevant higher homotopy groups of $S^1$.
130
+ \end{proof}
131
+
132
+ Let $V_n(\C^N)=\{X:X^\dagger X=I_n\}$ be the complex Stiefel manifold. The map taking the first $n$ columns is the bundle
133
+ \[
134
+ \U(r)\longrightarrow\U(N)\xrightarrow{q}V_n(\C^N),\qquad q(G)=GJ.
135
+ \]
136
+ Choose $f:S^k\to\SU(n)$ representing a generator in Lemma~\ref{lem:stable}. The exact sequence contains
137
+ \[
138
+ \pi_k(\U(r))\longrightarrow\pi_k(\U(N))\xrightarrow{q_*}\pi_k(V_n(\C^N)).
139
+ \]
140
+ For $r<n$ the first arrow is zero, so $q_*$ is injective. Hence the desired frame
141
+ \begin{equation}\label{eq:desiredclass}
142
+ x\longmapsto Jf(x)
143
+ \end{equation}
144
+ is not null-homotopic. This conclusion also holds for free homotopy: a nonzero based class cannot become freely homotopic to a constant, since the fundamental-group action fixes the zero class.
145
+
146
+ By contrast, $c\circ f:S^k\to\T^m$ lifts to the contractible space $\R^m$, because $k\ge3$ and the sphere is simply connected. Thus $c\circ f$ is null-homotopic. Composition with $\Phi$ and $q$ shows that
147
+ \begin{equation}\label{eq:actualclass}
148
+ x\longmapsto F(f(x))
149
+ \end{equation}
150
+ is null-homotopic. Equations~\eqref{eq:desiredclass} and \eqref{eq:actualclass} give two frame families in distinct homotopy classes. The next section turns that mismatch into an observable error.
151
+
152
+ \section{From topology to an orthogonal output}\label{sec:orthogonal}
153
+
154
+ Merely proving that an output is the negative of its target is insufficient for a quantum-channel claim. The following argument allows an arbitrary continuously varying phase and still produces orthogonality.
155
+
156
+ \begin{lemma}[Nonzero overlaps force the same frame homotopy class]\label{lem:numerical}
157
+ Let $k\ge2$, and let $T,F:S^k\to V_n(\C^N)$ be continuous. If
158
+ \[
159
+ v^\dagger T(x)^\dagger F(x)v\ne0
160
+ \quad\text{for every }x\in S^k\text{ and unit }v\in\C^n,
161
+ \]
162
+ then $T$ and $F$ are homotopic.
163
+ \end{lemma}
164
+
165
+ \begin{proof}
166
+ Write $B(x)=T(x)^\dagger F(x)$. Its numerical range
167
+ \[
168
+ W(B)=\{v^\dagger Bv:\|v\|=1\}
169
+ \]
170
+ is compact and convex by the Toeplitz--Hausdorff theorem \cite[Theorem 3.54]{watrous}. By hypothesis it excludes zero. Let $z(x)$ be its unique point nearest zero. Strict convexity of squared Euclidean distance on a convex set gives uniqueness.
171
+
172
+ The function $z$ is continuous. Indeed, the Hausdorff distance between $W(B)$ and $W(C)$ is at most $\|B-C\|_\op$, by evaluating both matrices on the same vector. Under convergence of compact numerical ranges, every subsequential limit of their nearest points is a minimizing point of the limiting range; uniqueness makes that limit the same for all subsequences. Local boundedness supplies the required subsequences.
173
+
174
+ The nearest-point inequality gives, for every $w\in W(B(x))$,
175
+ \[
176
+ \operatorname{Re}\bigl(\overline{z(x)}w\bigr)\ge|z(x)|^2.
177
+ \]
178
+ Set $\gamma(x)=z(x)/|z(x)|\in S^1$. It follows that
179
+ \[
180
+ \operatorname{Re}\bigl(\overline{\gamma(x)}v^\dagger B(x)v\bigr)
181
+ \ge |z(x)|\|v\|^2>0\qquad(v\ne0).
182
+ \]
183
+ For $0\le t\le1$, put $Z_t=(1-t)\gamma T+tF$. Expanding its squared action on $v$ gives
184
+ \[
185
+ \|Z_tv\|^2=((1-t)^2+t^2)\|v\|^2
186
+ +2t(1-t)\operatorname{Re}(\overline\gamma v^\dagger Bv)>0.
187
+ \]
188
+ Thus $Z_t$ has full column rank. Its polar normalization
189
+ \[
190
+ K_t=Z_t(Z_t^\dagger Z_t)^{-1/2}
191
+ \]
192
+ is a continuous homotopy of orthonormal frames from $\gamma T$ to $F$. Finally $\gamma:S^k\to S^1$ has a continuous real lift, so it is null-homotopic. Multiplying $T$ by this phase homotopy joins $T$ to $\gamma T$. Combining the homotopies proves the claim.
193
+ \end{proof}
194
+
195
+ \begin{proof}[Proof of Theorem~\ref{thm:main}(i)]
196
+ Apply the contrapositive of Lemma~\ref{lem:numerical} to $T(x)=Jf(x)$ and $F(x)=F(f(x))$. Section~\ref{sec:topology} shows they are not homotopic. Therefore an $x_*$ and a unit $v_*$ have zero overlap. Set $U_*=f(x_*)$.
197
+
198
+ The actual and desired outputs of $v_*v_*^\dagger$ are orthogonal rank-one projections. Their trace-norm difference is $2$. The diamond norm is at least the trace norm attained on this input, and no pair of channels can exceed $2$. This proves \eqref{eq:diamond}. No formula for optimizing general channel discrimination is needed.
199
+ \end{proof}
200
+
201
+ The general bridge in Lemma~\ref{lem:numerical} applies to any two frame families over a sphere with different homotopy classes. The phase torus and the rank argument identify one setting where its hypothesis must fail; the lemma itself is not specific to photonics.
202
+
203
+ \subsection{What a measurement would detect}
204
+
205
+ At the exceptional target and input, the projector onto $JU_*v_*$ clicks with probability $1$ for the ideal device and $0$ for the actual device. A coherent output analyzer is allowed, but no external reference for an overall optical phase is required. This is an existence statement; the proof does not provide an efficient procedure for locating the exceptional pair for an arbitrary black-box compiler.
206
+
207
+ If auxiliary modes are unobserved, retain the vacuum outcome of the signal bank. The reduced channel is
208
+ \begin{equation}\label{eq:erasure}
209
+ \widehat\E_U(\rho)=A(U)\rho A(U)^\dagger
210
+ +\tr\bigl[(I-A(U)^\dagger A(U))\rho\bigr]|\emptyset\rangle\langle\emptyset|.
211
+ \end{equation}
212
+ At the witness, both the signal output $A(U_*)v_*$ and the vacuum sector are orthogonal to $U_*v_*$. Therefore the trace-norm difference from the desired signal state is still $2$. If one postselects on a photon remaining in the signal bank, the conditional state is orthogonal whenever the success probability is positive; otherwise that success probability is zero. Arbitrary intensity measurements in a fixed basis need not expose this failure.
213
+
214
+ \section{An explicit quadratic circuit}\label{sec:construction}
215
+
216
+ Householder synthesis of unitary transformations is established \cite{ivanov,brugiere}. The construction here uses a particular auxiliary component to keep every elementary control formula regular over all targets.
217
+
218
+ \subsection{Orthogonal anchored reflections}
219
+
220
+ Let $u_j=Ue_j$, and define vectors in $\C^n\oplus\C^n$ by
221
+ \begin{equation}\label{eq:w}
222
+ w_j=\frac1{\sqrt2}\begin{pmatrix}-u_j\\e_j\end{pmatrix},\qquad
223
+ R_j=I_{2n}-2w_jw_j^\dagger.
224
+ \end{equation}
225
+ The $w_j$ are orthonormal, since
226
+ \[
227
+ w_j^\dagger w_\ell=\tfrac12(u_j^\dagger u_\ell+e_j^\dagger e_\ell)=\delta_{j\ell}.
228
+ \]
229
+ Their projectors annihilate one another, so their reflections commute and
230
+ \begin{equation}\label{eq:reflectionidentity}
231
+ R_n\cdots R_1=I-2\sum_{j=1}^n w_jw_j^\dagger
232
+ =\begin{pmatrix}0&U\\U^\dagger&0\end{pmatrix}.
233
+ \end{equation}
234
+ Multiplying on the right by the fixed bank swap
235
+ \[
236
+ S=\begin{pmatrix}0&I\\I&0\end{pmatrix}
237
+ \]
238
+ gives $\diag(U,U^\dagger)$. Physically the swap is applied first, followed by $R_1,\ldots,R_n$. This is a direct matrix identity, with no call to an already-implemented target gate.
239
+
240
+ \subsection{Each reflection from fixed two-mode operations}
241
+
242
+ For $k=0,\ldots,n$ and fixed $j$, set
243
+ \[
244
+ s_{jk}=\sqrt{1+\sum_{\ell=1}^k|U_{\ell j}|^2},\qquad s_{j0}=1.
245
+ \]
246
+ For $k\ge1$, define $c_{jk}=s_{j,k-1}/s_{jk}$ and $z_{jk}=-U_{kj}/s_{jk}$. Let $G_{jk}$ act on the ordered pair of modes $(n+j,k)$ by
247
+ \begin{equation}\label{eq:givens}
248
+ G_{jk}\big|_{(n+j,k)}=
249
+ \begin{pmatrix}c_{jk}&\overline{z_{jk}}\\-z_{jk}&c_{jk}\end{pmatrix},
250
+ \end{equation}
251
+ and as identity elsewhere. Here $c_{jk}^2+|z_{jk}|^2=1$ and $c_{jk}\ge1/\sqrt2$.
252
+
253
+ Before step $k$, the anchor amplitude of $w_j$ is $s_{j,k-1}/\sqrt2$, its unprocessed signal amplitude at $k$ is $-U_{kj}/\sqrt2$, and earlier signal amplitudes are zero. Equation~\eqref{eq:givens} changes this pair to $(s_{jk}/\sqrt2,0)$. Since $s_{jn}=\sqrt2$, the product
254
+ \[
255
+ B_j=G_{jn}\cdots G_{j1}
256
+ \]
257
+ maps $w_j$ to $e_{n+j}$. With the fixed phase flip $D_j=I-2e_{n+j}e_{n+j}^\dagger$,
258
+ \begin{equation}\label{eq:reflectorcircuit}
259
+ R_j=B_j^\dagger D_jB_j.
260
+ \end{equation}
261
+ The anchor never vanishes, including when entries of $U$ vanish or its eigenvalues coincide.
262
+
263
+ \subsection{Closed-form scalar phases}
264
+
265
+ Let $X=\left(\begin{smallmatrix}0&1\\1&0\end{smallmatrix}\right)$ and $Y=\left(\begin{smallmatrix}0&-i\\i&0\end{smallmatrix}\right)$ act on this ordered mode pair. Write $x=\operatorname{Re}U_{kj}$, $y=\operatorname{Im}U_{kj}$, and $s=s_{j,k-1}$. Define
266
+ \begin{equation}\label{eq:controls}
267
+ \boxed{\quad
268
+ \alpha_{kj}=\tfrac12\arctan\!\left(\frac{y}{s}\right),\qquad
269
+ \beta_{kj}=-\arctan\!\left(\frac{x}{\sqrt{s^2+y^2}}\right).
270
+ \quad}
271
+ \end{equation}
272
+ The ordinary real arctangent is single-valued here. All denominators are at least $1$. Direct multiplication yields
273
+ \begin{align*}
274
+ e^{i\alpha X}e^{i\beta Y}e^{i\alpha X}
275
+ &=(\cos\beta\cos2\alpha)I
276
+ +i(\cos\beta\sin2\alpha)X+i(\sin\beta)Y\\
277
+ &=\frac{s}{s_{jk}}I+i\frac{y}{s_{jk}}X-i\frac{x}{s_{jk}}Y
278
+ =G_{jk}\big|_{(n+j,k)}.
279
+ \end{align*}
280
+ No complex argument, eigenvector convention, matrix logarithm, branch switching, or iterative solve occurs in \eqref{eq:controls}.
281
+
282
+ The constant balanced mixers
283
+ \[
284
+ Q_X=\frac1{\sqrt2}\begin{pmatrix}1&1\\1&-1\end{pmatrix},\qquad
285
+ Q_Y=\frac1{\sqrt2}\begin{pmatrix}1&1\\i&-i\end{pmatrix}
286
+ \]
287
+ satisfy
288
+ \[
289
+ e^{i\theta X}=Q_X\diag(e^{i\theta},e^{-i\theta})Q_X^\dagger,
290
+ \qquad
291
+ e^{i\theta Y}=Q_Y\diag(e^{i\theta},e^{-i\theta})Q_Y^\dagger.
292
+ \]
293
+ Thus each $G_{jk}$ uses three Pauli rotations, each with two scalar phases. Each reflection uses $n$ such gates and their inverses. Over $n$ reflections, this is $2n^2$ two-mode gates, $6n^2$ Pauli rotations, and $12n^2$ variable scalar-phase occurrences. A literal implementation uses at most $12n^2$ fixed balanced-mixer occurrences before combining adjacent constants. There are also $n$ fixed phase flips and the fixed bank swap. Repeated signed values are programmed from the $2n^2$ base controls in \eqref{eq:controls}.
294
+
295
+ Equations~\eqref{eq:reflectionidentity}--\eqref{eq:controls} prove Theorem~\ref{thm:main}(ii). Prefix sums of $|U_{kj}|^2$ compute all $s_{jk}$ in quadratic time, so generating the control list is $O(n^2)$. Simulating the resulting full circuit matrix is a separate computational task.
296
+
297
+ \section{Uniform regularity and resource order}\label{sec:regularity}
298
+
299
+ \begin{lemma}[Bounds on the control derivatives]\label{lem:derivatives}
300
+ As real functions of a complete complex column $u_j$, each $\alpha_{kj}$ has Euclidean gradient norm at most $1/2$, and each $\beta_{kj}$ has gradient norm at most $1$. These bounds hold on the whole space $\C^n$, not only on unit columns.
301
+ \end{lemma}
302
+ \begin{proof}
303
+ Write $p$ for the real and imaginary coordinates preceding entry $k$. For $s=\sqrt{1+\|p\|^2}$, the function $\alpha=\frac12\arctan(y/s)$ obeys
304
+ \[
305
+ \|\nabla\alpha\|^2
306
+ =\frac{s^2+y^2\|\nabla s\|^2}{4(s^2+y^2)^2}
307
+ \le\frac1{4(s^2+y^2)}\le\frac14,
308
+ \]
309
+ because $\|\nabla s\|\le1$ and the $y$ coordinate is orthogonal to the coordinates of $p$. Put $h=\sqrt{1+\|p\|^2+y^2}$. The same calculation for $\beta=-\arctan(x/h)$ gives
310
+ \[
311
+ \|\nabla\beta\|^2
312
+ =\frac{h^2+x^2\|\nabla h\|^2}{(h^2+x^2)^2}\le1.
313
+ \]
314
+ Unused coordinates contribute zero.
315
+ \end{proof}
316
+
317
+ Integrate these gradient bounds along the straight line between any two columns. Sum the squared differences over $n$ entries and $n$ columns to obtain
318
+ \[
319
+ \sum_{k,j}(|\Delta\alpha_{kj}|^2+|\Delta\beta_{kj}|^2)
320
+ \le\tfrac54n\|U-V\|_F^2.
321
+ \]
322
+ Each $\alpha_{kj}$ occurs eight times with signs in the physical phase list, and each $\beta_{kj}$ four times. Consequently
323
+ \[
324
+ \|\Delta\varphi\|_2^2
325
+ =\sum_{k,j}(8|\Delta\alpha_{kj}|^2+4|\Delta\beta_{kj}|^2)
326
+ \le6n\|U-V\|_F^2.
327
+ \]
328
+ Since $|x|,|y|\le1$ on a unitary matrix and every denominator in \eqref{eq:controls} is at least $1$, the asserted angle bounds follow. This proves Theorem~\ref{thm:main}(iii).
329
+
330
+ \subsection{Why quadratic order is the relevant scale}
331
+
332
+ For a smooth fixed architecture, write $P(\varphi)=J^\dagger\Phi(\varphi)J$. With $m$ scalar controls and a smooth exact phase-sensitive compiler, $P(c(U))=U$. Differentiating this identity on $\U(n)$ gives a rank-$n^2$ derivative factoring through an $m$-dimensional tangent space. Therefore $m\ge n^2$. If only the unitary channel is targeted, the analogous local rank bound is $n^2-1$, the dimension of the projective unitary group.
333
+
334
+ The $12n^2$ physical-phase construction therefore has the optimal asymptotic order in this smooth scalar-control model. This elementary dimension argument does not optimize its constant, component layout, loss, or depth. It also does not apply to nonsmooth space-filling parametrizations, which are not optical phase-product architectures with smooth control rules.
335
+
336
+ \subsection{Small phase errors}
337
+
338
+ For products of unitaries, a telescoping expansion bounds the output operator error by the sum of individual gate errors. A scalar phase error $\delta_\ell$ has norm $|e^{i\delta_\ell}-1|\le|\delta_\ell|$. With exact fixed components and $m=12n^2$ phase occurrences,
339
+ \[
340
+ \|\widetilde G-G\|_\op\le\min\left\{2,\sum_{\ell=1}^{m}|\delta_\ell|\right\}.
341
+ \]
342
+ For the induced channels the corresponding upper bound is
343
+ \[
344
+ \|\widetilde\E_U-\D_U\|_\diamond
345
+ \le\min\left\{2,2\sum_{\ell=1}^{m}|\delta_\ell|\right\}.
346
+ \]
347
+ Indeed, the isometry difference is bounded by the full-unitary difference, and expanding the two channel actions bounds their diamond difference by twice the isometry difference. This is a conservative sensitivity bound, not fault tolerance. It does not include losses or imperfections in the fixed mixers.
348
+
349
+ \section{Failure regions and stability of the obstruction}\label{sec:robust}
350
+
351
+ \subsection{Perturbing a subthreshold implementation}
352
+
353
+ Suppose $r<n$ and an actual noisy channel family $\widetilde\E_U$ stays within diamond distance $\eta$ of the ideal lossless family $\E_U$. At the target supplied by Theorem~\ref{thm:main}, the reverse triangle inequality gives
354
+ \[
355
+ \|\widetilde\E_{U_*}-\D_{U_*}\|_\diamond\ge2-\eta.
356
+ \]
357
+ This is stable under bounded noise. It is not a theorem about all arbitrary noisy, measured, randomized, or feedback-assisted processors: those can change the model rather than merely perturb it.
358
+
359
+ \subsection{A finite neighborhood of poor fidelity}
360
+
361
+ Assume additionally that $F$ is $L$-Lipschitz on $\SU(n)$ in operator norm. For the witness $v_*$, define $q(U)=\langle JUv_*,F(U)v_*\rangle$. Adding and subtracting one mixed term shows
362
+ \[
363
+ |q(U)-q(V)|\le(L+1)\|U-V\|_\op.
364
+ \]
365
+ Since $q(U_*)=0$, every target in the ball of radius $\rho=\varepsilon/(L+1)$ around $U_*$ has fidelity at most $\varepsilon^2$ on this same input, for $0<\varepsilon<1$. With normalized Haar measure $\mu$ on $\SU(n)$, left invariance gives the bound
366
+ \begin{equation}\label{eq:average}
367
+ \int_{\SU(n)}\bigl[1-\Fid(U,v_*)\bigr]\,d\mu(U)
368
+ \ge(1-\varepsilon^2)\,\mu\{U:\|U-I\|_\op\le\rho\}>0.
369
+ \end{equation}
370
+ This is an average over targets for a compiler-dependent fixed witness input. It is not an average over random inputs, and the right side can be small, particularly in high dimension or for large $L$.
371
+
372
+ For $n=2$, identify $\SU(2)$ with the unit three-sphere. If $U$ has eigenvalues $e^{\pm i\theta}$, then $\|U-I\|_\op=2\sin(\theta/2)$. For $0\le\rho\le2$, setting $\theta_\rho=2\arcsin(\rho/2)$ gives the explicit normalized ball volume
373
+ \begin{equation}\label{eq:haar}
374
+ \mu\{U:\|U-I\|_\op\le\rho\}
375
+ =\frac{\theta_\rho-\sin\theta_\rho\cos\theta_\rho}{\pi}.
376
+ \end{equation}
377
+ The formula follows by integrating the spherical density $\sin^2\theta$: the area of the angular two-sphere is $4\pi$, and the total area of the unit three-sphere is $2\pi^2$. Thus the failure cannot be confined to a single target at bounded sensitivity, although its frequency is not necessarily large.
378
+
379
+ \section{Reproducibility and limits of the evidence}\label{sec:verification}
380
+
381
+ The companion \texttt{verify\_compiler.py} generates the analytic controls and simulates every variable gate as fixed balanced mixers and two scalar phase shifts. It compares the full output matrix with $\diag(U,U^\dagger)$. A separate product of dense rank-one reflections checks the algebra without using the elementary phase decomposition.
382
+
383
+ The deterministic seed is $2709202602$. For each $n\in\{1,2,3,4,8,16,32\}$, the targets are $I$, $-I$, $iI$, a Fourier matrix, a cyclic permutation, a diagonal matrix near $-I$, and six Haar-random matrices. All 84 targets passed. The $n=1$ checks verify the construction only; the impossibility theorem starts at $n=2$.
384
+
385
+ \begin{center}
386
+ \begin{tabular}{@{}lr@{}}
387
+ \toprule
388
+ Check & Recorded result\\
389
+ \midrule
390
+ Target matrices passing & $84/84$\\
391
+ Largest full-matrix operator error & $6.79\times10^{-14}$ (rounded up)\\
392
+ Largest elementary-gate operator error & $1.01\times10^{-15}$ (rounded up)\\
393
+ Largest tested ratio to Lipschitz bound & $0.614$ (rounded up)\\
394
+ Closed-loop base-control endpoint difference & $1.74\times10^{-16}$ (rounded up)\\
395
+ Physical experiments & None\\
396
+ \bottomrule
397
+ \end{tabular}
398
+ \end{center}
399
+
400
+ Additional checks cover the angle bounds, off-manifold perturbations of the input matrices, bounded independent phase errors for $n\le8$, and the distinction between antipodal and orthogonal states. For an identity compiler, $U=-I$ is an antipodal amplitude error with zero channel error. In contrast, $U=\diag(i,-i)$ and $v=(1,1)^T/\sqrt2$ produce an orthogonal-output witness and trace-norm difference $2$.
401
+
402
+ The execution used Python 3.12.14 and NumPy 2.3.5. Run
403
+ \begin{quote}\ttfamily
404
+ python3 verify\_compiler.py --output verification.json
405
+ \end{quote}
406
+ Floating-point checks expose sign, ordering, and implementation errors. They are not interval certificates, do not prove global topology, and do not validate an experimental photonic device. The proofs, rather than the sample size, support the all-target statements.
407
+
408
+ \subsection{Proof checklist and remaining work}
409
+
410
+ The eight supplied components are: (1) the stable-rank obstruction; (2) the numerical-range homotopy lemma; (3) its operational channel consequence; (4) the reflection identity; (5) the explicit scalar-phase circuit; (6) global control regularity; (7) noise and failure-region bounds; and (8) the scalar-control dimension lower bound. Completion is 8/8. Independent review, proof-assistant verification, and experimental validation have not been completed.
411
+
412
+ The immediate scientific tests are to check novelty against the broader continuous-selection and unitary-synthesis literature, audit the topology and numerical-range lemma independently, and benchmark a routed, lossy implementation against a chart-switching standard mesh on continuously varying targets. The current work establishes neither a hardware performance advantage nor a recognized major open-problem resolution.
413
+
414
+ \section{Relation to the source and prior work}\label{sec:prior}
415
+
416
+ \subsection{The source idea made concrete}
417
+
418
+ The supplied \emph{LILY-X$\Phi$: Calibrated Interference Cobordism Geometry}, version 1.0 \cite{lily}, motivates diagnosing an obstruction and adding auxiliary degrees of freedom that cancel it. Its Sections 9 and 12 supply the inverse-composition and auxiliary-space themes. Here the two banks carry $U$ and $U^\dagger$, and the physical matrix identity is \eqref{eq:reflectionidentity}. The added component $e_j/\sqrt2$ in each $w_j$ makes the control formulas nonsingular.
419
+
420
+ The source's unproved equivalence between selected geometric charges and protected scattering is not assumed. Its Appendix B.6 itself distinguishes such modeling assumptions from established mathematical statements. Our proof stays within explicit finite-dimensional scattering matrices; it does not establish a Maxwell realization of the source's geometric framework.
421
+
422
+ \subsection{What is established literature}
423
+
424
+ Reck et al. and Clements et al. give universal optical synthesis architectures \cite{reck,clements}. Householder-based unitary synthesis is also established, including the constructions of Ivanov, Kyoseva, and Vitanov and subsequent circuit-compilation work \cite{ivanov,brugiere}. We do not claim that reflections, quadratic-size universal synthesis, or the use of extra levels are new in themselves. In particular, ordinary pointwise quadratic synthesis is available without doubling the modes.
425
+
426
+ Gavorov\'a, Seidel, and Touati use topology to prove limitations on algorithms given unknown unitary oracles \cite{gavorova}. Our target matrix is classically known; the constrained object is the continuous map from that matrix to a fixed hardware control space. Their oracle impossibility theorem is not being solved or contradicted. Low-depth Fourier/phase architectures studied by Pereira et al. address another synthesis problem \cite{pereira}; no minimum-depth conjecture from that work is resolved here.
427
+
428
+ The specific combination presented for review is the sharp auxiliary-rank obstruction in phase-independent channel distance, together with an explicit globally smooth quadratic-size implementation at the threshold. A targeted search located neighboring work but did not certify historical priority for this combination. No absence-of-prior-art claim follows from the search.
429
+
430
+ \appendix
431
+ \section{Implementation order and scope checks}
432
+
433
+ \textbf{Circuit order.} Apply $S$. For each $j=1,\ldots,n$, apply $G_{j1},\ldots,G_{jn}$, the fixed phase $D_j$, then $G_{jn}^\dagger,\ldots,G_{j1}^\dagger$. Within $G_{jk}$, apply $e^{i\alpha X}$, $e^{i\beta Y}$, $e^{i\alpha X}$. The inverse uses their negatives. This produces $R_n\cdots R_1S$, with the rightmost matrix acting first.
434
+
435
+ \textbf{Auxiliary action.} The output on occupied auxiliary inputs is $U^\dagger$, not identity. The signal bank is exact and has zero final leakage. Requiring identity on the auxiliary bank defines a different, stronger problem; merely appending unused identity modes does not perform the cancellation used here.
436
+
437
+ \textbf{Control continuity.} The lower bound concerns physical phases as points of circles. A cosmetic jump of a displayed real phase by $2\pi$ is not itself a violation of circle-valued continuity. A controller avoids the hypothesis only if its map to the actual control space is discontinuous, multivalued, history-dependent, or otherwise outside the stated model.
438
+
439
+ \textbf{General control spaces.} The proof also works for a control space $P$ with $\pi_{2n-1}(P)=0$, provided the relevant sphere map into $P$ is based in a path component and hence null-homotopic. Products of circles and intervals are examples. It does not forbid a hardware control manifold that can itself carry the required higher homotopy class.
440
+
441
+ \textbf{Provenance.} This is version 2.0 of the research note developed from the supplied LILY manuscript. It supersedes the inefficient upper construction and adds a new operational lower-bound proof. It does not reuse the excluded quantum-walk statistical-moments claim.
442
+
443
+ \begingroup\raggedright
444
+ \begin{thebibliography}{99}
445
+ \bibitem{reck} M. Reck, A. Zeilinger, H. J. Bernstein, and P. Bertani, ``Experimental realization of any discrete unitary operator,'' \emph{Physical Review Letters} \textbf{73}, 58--61 (1994). \href{https://doi.org/10.1103/PhysRevLett.73.58}{doi:10.1103/PhysRevLett.73.58}.
446
+ \bibitem{clements} W. R. Clements, P. C. Humphreys, B. J. Metcalf, W. S. Kolthammer, and I. A. Walmsley, ``Optimal design for universal multiport interferometers,'' \emph{Optica} \textbf{3}, 1460--1465 (2016). \href{https://doi.org/10.1364/OPTICA.3.001460}{doi:10.1364/OPTICA.3.001460}.
447
+ \bibitem{bott} R. Bott, ``The stable homotopy of the classical groups,'' \emph{Annals of Mathematics} \textbf{70}, 313--337 (1959). \href{https://doi.org/10.2307/1970106}{doi:10.2307/1970106}.
448
+ \bibitem{hatcher} A. Hatcher, \emph{Vector Bundles and K-Theory}, version 2.2 (2017). \url{https://pi.math.cornell.edu/~hatcher/VBKT/VB.pdf}.
449
+ \bibitem{watrous} J. Watrous, \emph{The Theory of Quantum Information}, Cambridge University Press (2018), Section 3.3, in particular Theorems 3.54--3.55. Author manuscript: \url{https://cs.uwaterloo.ca/~watrous/TQI/TQI.pdf}.
450
+ \bibitem{ivanov} P. A. Ivanov, E. S. Kyoseva, and N. V. Vitanov, ``Engineering of arbitrary $\mathrm U(N)$ transformations by quantum Householder reflections,'' \emph{Physical Review A} \textbf{74}, 022323 (2006). \href{https://doi.org/10.1103/PhysRevA.74.022323}{doi:10.1103/PhysRevA.74.022323}; \href{https://arxiv.org/abs/0708.2811}{arXiv:0708.2811}.
451
+ \bibitem{brugiere} T. Goubault de Brugi\`ere, M. Baboulin, B. Valiron, and C. Allouche, ``Quantum circuits synthesis using Householder transformations,'' \emph{Computer Physics Communications} \textbf{248}, 107001 (2020). \href{https://doi.org/10.1016/j.cpc.2019.107001}{doi:10.1016/j.cpc.2019.107001}; \href{https://arxiv.org/abs/2004.07710}{arXiv:2004.07710}.
452
+ \bibitem{gavorova} Z. Gavorov\'a, M. Seidel, and Y. Touati, ``Topological obstructions to quantum computation with unitary oracles,'' \emph{Physical Review A} \textbf{109}, 032625 (2024). \href{https://doi.org/10.1103/PhysRevA.109.032625}{doi:10.1103/PhysRevA.109.032625}; \href{https://arxiv.org/abs/2011.10031}{arXiv:2011.10031}.
453
+ \bibitem{pereira} L. Pereira et al., ``Minimum optical depth multiport interferometers for approximating arbitrary unitary operations and pure states,'' \emph{Physical Review A} \textbf{111}, 062603 (2025). \href{https://doi.org/10.1103/PhysRevA.111.062603}{doi:10.1103/PhysRevA.111.062603}; \href{https://arxiv.org/abs/2002.01371}{arXiv:2002.01371}, version 5.
454
+ \bibitem{lily} \emph{LILY-X$\Phi$: Calibrated Interference Cobordism Geometry}, version 1.0, user-supplied manuscript, 45 pages. Sections 9 and 12; Appendix B.6. No public identifier supplied. Exact source filename and checksum are recorded in the companion provenance file.
455
+ \end{thebibliography}
456
+ \endgroup
457
+ \end{document}
requirements.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ numpy==2.3.5
src/verify_compiler.py ADDED
@@ -0,0 +1,205 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env python3
2
+ """Reproduce the v2 circuit checks. Floating-point tests are not proofs.
3
+
4
+ Only NumPy is required. Every variable gate is simulated as fixed mixers and
5
+ two scalar phase shifts; dense Householder matrices are an independent oracle.
6
+ """
7
+ import argparse
8
+ import json
9
+ import platform
10
+ from pathlib import Path
11
+ import numpy as np
12
+
13
+ BX = np.array([[1, 1], [1, -1]], complex) / np.sqrt(2)
14
+ BY = np.array([[1, 1], [1j, -1j]], complex) / np.sqrt(2)
15
+
16
+
17
+ def controls(u):
18
+ """Arrays alpha[k,j], beta[k,j]; O(n^2) scalar arithmetic."""
19
+ prefix_sq = 1 + np.cumsum(np.abs(u)**2, axis=0)
20
+ before_sq = np.vstack([np.ones((1, len(u))), prefix_sq[:-1]])
21
+ alpha = 0.5 * np.arctan(u.imag / np.sqrt(before_sq))
22
+ beta = -np.arctan(u.real / np.sqrt(before_sq + u.imag**2))
23
+ return alpha, beta
24
+
25
+
26
+ def phase_rotation(axis, angle, errors=None):
27
+ """B diag(exp(i theta),exp(-i theta)) B^dagger, with fixed B."""
28
+ b = BX if axis == 'X' else BY
29
+ phases = np.array([angle, -angle])
30
+ if errors is not None:
31
+ phases += errors
32
+ return b @ np.diag(np.exp(1j*phases)) @ b.conj().T
33
+
34
+
35
+ def swap_banks(n):
36
+ return np.block([[np.zeros((n, n)), np.eye(n)],
37
+ [np.eye(n), np.zeros((n, n))]]).astype(complex)
38
+
39
+
40
+ def compile_matrix(u, noise=None):
41
+ """Execute a fixed circuit, starting with the fixed bank swap.
42
+
43
+ noise: optional array with one error for each of the 12*n^2 physical
44
+ tunable scalar phase occurrences. Fixed pi reflections are ideal here.
45
+ """
46
+ n = len(u)
47
+ alpha, beta = controls(u)
48
+ out = swap_banks(n)
49
+ cursor = 0
50
+
51
+ def apply_rotation(a, k, axis, angle):
52
+ nonlocal out, cursor
53
+ errors = None if noise is None else noise[cursor:cursor+2]
54
+ gate = phase_rotation(axis, angle, errors)
55
+ out[[a, k], :] = gate @ out[[a, k], :]
56
+ cursor += 2
57
+
58
+ for j in range(n):
59
+ a = n+j
60
+ # B_j maps w_j=(-u_j,e_j)/sqrt(2) to the anchor e_{n+j}.
61
+ for k in range(n):
62
+ for axis, angle in [('X', alpha[k,j]), ('Y', beta[k,j]),
63
+ ('X', alpha[k,j])]:
64
+ apply_rotation(a, k, axis, angle)
65
+ out[a, :] *= -1 # Fixed pi phase.
66
+ for k in reversed(range(n)):
67
+ for axis, angle in [('X', -alpha[k,j]), ('Y', -beta[k,j]),
68
+ ('X', -alpha[k,j])]:
69
+ apply_rotation(a, k, axis, angle)
70
+ assert cursor == 12*n*n
71
+ return out
72
+
73
+
74
+ def reflection_oracle(u):
75
+ n = len(u)
76
+ out = swap_banks(n)
77
+ for j in range(n):
78
+ w = np.r_[-u[:,j], np.eye(n)[:,j]] / np.sqrt(2)
79
+ out -= 2*np.outer(w, w.conj() @ out)
80
+ return out
81
+
82
+
83
+ def expected(u):
84
+ n = len(u)
85
+ return np.block([[u, np.zeros((n,n))],
86
+ [np.zeros((n,n)), u.conj().T]])
87
+
88
+
89
+ def haar(n, rng):
90
+ z = rng.normal(size=(n,n)) + 1j*rng.normal(size=(n,n))
91
+ q, r = np.linalg.qr(z)
92
+ return q @ np.diag(np.diag(r)/np.abs(np.diag(r)))
93
+
94
+
95
+ def op(a):
96
+ return float(np.linalg.norm(a, 2))
97
+
98
+
99
+ def fro(a):
100
+ return float(np.linalg.norm(a))
101
+
102
+
103
+ def test_targets(n, rng):
104
+ eye = np.eye(n, dtype=complex)
105
+ q = np.arange(n)
106
+ yield 'identity', eye
107
+ yield 'minus_identity', -eye
108
+ yield 'imaginary_identity', 1j*eye
109
+ yield 'fourier', np.exp(2j*np.pi*np.outer(q,q)/n)/np.sqrt(n)
110
+ yield 'cyclic_permutation', np.roll(eye, 1, axis=0)
111
+ yield 'diagonal_near_minus_one', np.diag(np.exp(1j*(np.pi+1e-10*(q+1))))
112
+ for i in range(6):
113
+ yield f'haar_{i}', haar(n, rng)
114
+
115
+
116
+ def main():
117
+ parser = argparse.ArgumentParser()
118
+ parser.add_argument('--output', default='verification.json')
119
+ args = parser.parse_args()
120
+ rng = np.random.default_rng(2709202602)
121
+ samples = []
122
+ max_gate_error = 0.0
123
+ max_lipschitz_ratio = 0.0
124
+ noise_records = []
125
+ for n in [1,2,3,4,8,16,32]:
126
+ for label, u in test_targets(n, rng):
127
+ a, b = controls(u)
128
+ actual = compile_matrix(u)
129
+ target = expected(u)
130
+ err = op(actual-target)
131
+ oracle_error = op(reflection_oracle(u)-target)
132
+ assert err < 2e-11 and oracle_error < 2e-11
133
+ assert np.max(np.abs(a)) <= np.pi/8 + 1e-14
134
+ assert np.max(np.abs(b)) <= np.pi/4 + 1e-14
135
+ prefix = 1 + np.cumsum(np.abs(u)**2, axis=0)
136
+ before = np.vstack([np.ones((1,n)), prefix[:-1]])
137
+ for j in range(n):
138
+ for k in range(n):
139
+ z = -u[k,j]/np.sqrt(prefix[k,j])
140
+ c = np.sqrt(before[k,j]/prefix[k,j])
141
+ g = np.array([[c, z.conjugate()], [-z, c]])
142
+ xyx = (phase_rotation('X', a[k,j]) @
143
+ phase_rotation('Y', b[k,j]) @
144
+ phase_rotation('X', a[k,j]))
145
+ max_gate_error = max(max_gate_error, op(g-xyx))
146
+ samples.append(dict(n=n, target=label,
147
+ full_matrix_error=err,
148
+ signal_error=op(actual[:n,:n]-u),
149
+ leakage=op(actual[n:,:n]),
150
+ reflection_oracle_error=oracle_error,
151
+ variable_phase_occurrences=12*n*n))
152
+ # Check the global derivative bound, including off-manifold directions.
153
+ u = haar(n, rng)
154
+ a,b = controls(u)
155
+ for _ in range(8):
156
+ du = rng.normal(size=u.shape)+1j*rng.normal(size=u.shape)
157
+ du *= 1e-5 / fro(du)
158
+ av,bv = controls(u+du)
159
+ ratio = np.sqrt(fro(av-a)**2+fro(bv-b)**2)/fro(du)
160
+ normalized = ratio/(np.sqrt(5*n)/2)
161
+ assert normalized <= 1+1e-8
162
+ max_lipschitz_ratio = max(max_lipschitz_ratio, float(normalized))
163
+ if n <= 8:
164
+ delta = 1e-5
165
+ noise = rng.uniform(-delta,delta,12*n*n)
166
+ error = op(compile_matrix(u,noise)-expected(u))
167
+ bound = min(2.,12*n*n*delta)
168
+ assert error <= bound+1e-12
169
+ noise_records.append(dict(n=n, phase_error_limit=delta,
170
+ operator_error=error, proved_bound=bound))
171
+ # Operational distinction: an antipodal state alone has zero channel error;
172
+ # the orthogonal witness has trace-norm distance two.
173
+ v = np.ones(2,dtype=complex)/np.sqrt(2)
174
+ rho = np.outer(v,v.conj())
175
+ anti = -v
176
+ ortho = np.diag([1j,-1j]) @ v
177
+ d_anti = float(np.linalg.norm(rho-np.outer(anti,anti.conj()), ord='nuc'))
178
+ d_ortho = float(np.linalg.norm(rho-np.outer(ortho,ortho.conj()), ord='nuc'))
179
+ assert d_anti < 1e-14 and abs(d_ortho-2)<1e-14
180
+ # Smooth closed target loop: parameter values agree at the endpoints.
181
+ ts = np.linspace(0,2*np.pi,1001)
182
+ phases = np.array([np.r_[controls(np.diag([np.exp(1j*t),np.exp(-1j*t)]))[0].ravel(),
183
+ controls(np.diag([np.exp(1j*t),np.exp(-1j*t)]))[1].ravel()]
184
+ for t in ts])
185
+ loop_closure = fro(phases[-1]-phases[0])
186
+ assert loop_closure < 1e-14
187
+ report = dict(version='2.0', seed=2709202602, python=platform.python_version(),
188
+ numpy=np.__version__, sample_count=len(samples),
189
+ all_checks_passed=True,
190
+ max_full_matrix_error=max(s['full_matrix_error'] for s in samples),
191
+ max_elementary_gate_error=max_gate_error,
192
+ max_normalized_lipschitz_ratio=max_lipschitz_ratio,
193
+ phase_loop_closure=loop_closure,
194
+ antipodal_state_trace_distance_unnormalized=d_anti,
195
+ orthogonal_state_trace_distance_unnormalized=d_ortho,
196
+ noise_checks=noise_records, samples=samples,
197
+ limits=['Floating-point checks, not interval certificates.',
198
+ 'Sampling does not prove a global topological theorem.',
199
+ 'No fabricated-device or experimental validation.'])
200
+ Path(args.output).write_text(json.dumps(report,indent=2)+'\n')
201
+ print(json.dumps({k:v for k,v in report.items() if k not in ['samples','noise_checks']},indent=2))
202
+
203
+
204
+ if __name__ == '__main__':
205
+ main()