{"layer":"phrases","ties":[{"record":"verification/unbounded-loop","phrase":"verification/unbounded-loop/e0423f5ba9c0","topic":"verification","part":0,"tone":0,"rows":[{"name":"interp","line":129,"end_line":139,"module":"QuantumComputation.QuantumHoareLogic.Syntax","plain":"Classical–quantum program semantics","lines":[138,139],"exact_lines":true,"relation":"states","note":"","annotation":"Consider `while true` with body `skip`. `whileRec` starts with `abort`, and every successor unrolling executes `skip` and then the previous unrolling. They all return the zero state, so the supremum in `interp` returns zero as well (the loop unrolling rule in Figure S3).","proof_lines":[130,139],"fidelity":"same","fidelity_source":"ai","annotation_references":[{"start":260,"end":269,"key":"figure:s3"}]},{"name":"QMonad.Q.whileRec","line":248,"end_line":254,"module":"QuantumComputation.QuantumHoareLogic.Semantics","plain":"Guard tests in a finite loop unrolling","lines":[248,252],"exact_lines":true,"relation":"states","note":"","annotation":"Let the guard be $x>0$ and let the body decrement $x$. From a store with $x=1$, the first unrolling executes the body and reaches `abort`. The second unrolling tests the updated value $x=0$ and returns the state there. The successor case in `whileRec` is what gives it that second guard test.","proof_lines":[251,254]}],"role":"statement","lean":true,"name":"interp","module":"QuantumComputation.QuantumHoareLogic.Syntax","lines":[138,139],"plain":"Classical–quantum program semantics","relation":"states","anchor":"block-S1.SS1-block-1","at":"b11015-11068","origin":"ai","explanation":{"text":"","citations":[{"ref":"verification/unbounded-loop/e0423f5ba9c0","title":"Passage in the authors’ arXiv text","url":"https://arxiv.org/html/2611.09822v3#S1.SS1.p1.1"},{"ref":"https://dx.doi.org/10.1145/3456877","title":"10.1145/3456877","url":"https://dx.doi.org/10.1145/3456877"}]}},{"record":"verification/hybrid-language","phrase":"verification/hybrid-language/92826154df46","topic":"verification","part":0,"tone":0,"rows":[{"name":"QProg","line":41,"end_line":85,"module":"QuantumComputation.QuantumHoareLogic.Syntax","plain":"Commands of the classical-quantum while-language","lines":[41,85],"exact_lines":false,"relation":"states","note":"","annotation":"`qMeasure x ℳ` writes the outcome index to $x$. The next `qIf` can test that value to choose a unitary. The separate command `qSet` sends the quantum state at each store to $|0\\rangle$ and preserves the store’s probability mass.","fidelity":"same","fidelity_source":"ai"},{"name":"CQState.qMeasurement","line":125,"end_line":128,"module":"QuantumComputation.QuantumHoareLogic.Semantics","plain":"Measurement outcomes and partial density operators","lines":[125,128],"exact_lines":true,"relation":"states","note":"","annotation":"If the input at a store is $p\\rho$ with $\\operatorname{tr}(\\rho)=1$, outcome $o$ contributes the partial density operator $pM_o\\rho M_o^\\dagger$. Its trace includes both the probability $p$ of reaching the store and the conditional probability of $o$. `qMeasurement` records $o$ before summing the outcome states.","proof_lines":[127,128]}],"role":"statement","lean":true,"name":"QProg","module":"QuantumComputation.QuantumHoareLogic.Syntax","lines":[41,85],"plain":"Commands of the classical-quantum while-language","relation":"states","anchor":"block-S1.SS1-block-1","at":"b11153-11199","origin":"ai","explanation":{"text":"","citations":[{"ref":"verification/hybrid-language/92826154df46","title":"Passage in the authors’ arXiv text","url":"https://arxiv.org/html/2611.09822v3#S1.SS1.p1.1"},{"ref":"https://dx.doi.org/10.1145/3456877","title":"10.1145/3456877","url":"https://dx.doi.org/10.1145/3456877"}]}},{"record":"verification/backwards-reasoning","phrase":"verification/backwards-reasoning/5a70d3bbee97","topic":"verification","part":0,"tone":0,"rows":[{"name":"Triple.of_le_wp","line":526,"end_line":529,"module":"QuantumComputation.QuantumHoareLogic.WP","plain":"Pointwise comparison with the weakest precondition","lines":[526,528],"exact_lines":true,"relation":"part","note":"","annotation":"To reset one qubit, measure it in the computational basis and apply $X$ on outcome one. Pulling the target projector $|0\\rangle\\langle0|$ back through the conditional gives the outcome-zero and outcome-one projectors, respectively. The measurement rule adds them to the identity, so `Triple.of_le_wp` applies with precondition $\\top$.","proof_lines":[529,529]}],"role":"explanation","lean":true,"name":"Triple.of_le_wp","module":"QuantumComputation.QuantumHoareLogic.WP","lines":[526,528],"plain":"Pointwise comparison with the weakest precondition","relation":"part","anchor":"block-S1.SS1-block-2","at":"b11580-11631","origin":"ai","explanation":{"text":"","citations":[{"ref":"verification/backwards-reasoning/5a70d3bbee97","title":"Passage in the authors’ arXiv text","url":"https://arxiv.org/html/2611.09822v3#S1.SS1.p2.1"},{"ref":"https://arxiv.org/html/2008.06812v2#S4.T3","title":"Table 3, weakest precondition rules","url":"https://arxiv.org/html/2008.06812v2#S4.T3"},{"ref":"https://arxiv.org/html/2008.06812v2#S4.I10.i2","title":"Lemma 4.14(2), weakest precondition duality","url":"https://arxiv.org/html/2008.06812v2#S4.I10.i2"}]}},{"record":"grover/parallel-model","phrase":"grover/parallel-model/52116f699dd6","topic":"grover","part":0,"tone":1,"rows":[{"name":"QuantumComputationSpecs.Algorithms.Grover:QuantumComputation.Specs.groverParallelMarkingOracle","line":78,"end_line":82,"module":"QuantumComputationSpecs.Algorithms.Grover","plain":"Parallel marking oracle in the challenge","lines":[78,82],"exact_lines":true,"relation":"defines","note":"","annotation":"The product applies $O_S$ to each disjoint query register, even when the registers share an entangled state. Between rounds, Find-Any reflects about the uniform state of all $mn$ address qubits. That joint diffusion amplifies the odd-parity part of the state.","proof_lines":[80,82]},{"name":"QuantumComputationDiscoveries.Algorithms.GroverFindAny:QuantumComputation.Specs.groverParallelMarkingOracle","line":79,"end_line":83,"module":"QuantumComputationDiscoveries.Algorithms.GroverFindAny","plain":"Parallel marking oracle in Find-Any","lines":[79,83],"exact_lines":true,"relation":"defines","note":"","annotation":"With the target qubits in $|-\\rangle$, the product oracle multiplies an address tuple by $(-1)^{\\sum_j[x_j\\in S]}$. Two marked positions give two factors of $-1$ and a net sign of $+1$. One round gives this parity phase, which suffices for Find-Any.","proof_lines":[81,83]}],"role":"definition","lean":true,"name":"QuantumComputationSpecs.Algorithms.Grover:QuantumComputation.Specs.groverParallelMarkingOracle","module":"QuantumComputationSpecs.Algorithms.Grover","lines":[78,82],"plain":"Parallel marking oracle in the challenge","relation":"defines","anchor":"block-S2.SS1-block-1","at":"b19211-19266","origin":"ai","explanation":{"text":"","citations":[{"ref":"grover/parallel-model/52116f699dd6","title":"Passage in the authors’ arXiv text","url":"https://arxiv.org/html/2611.09822v3#S2.SS1.p1.1"},{"ref":"https://dx.doi.org/10.1103/PhysRevA.60.2746","title":"10.1103/PhysRevA.60.2746","url":"https://dx.doi.org/10.1103/PhysRevA.60.2746"},{"ref":"https://dx.doi.org/10.1007/s00453-016-0206-z","title":"10.1007/s00453-016-0206-z","url":"https://dx.doi.org/10.1007/s00453-016-0206-z"}]}},{"record":"grover/find-any","phrase":"grover/find-any/7151b1849bb2","topic":"grover","part":0,"tone":1,"rows":[{"name":"QuantumComputation.Specs.groverFindAny_correctness","line":160,"end_line":166,"module":"QuantumComputationDiscoveries.Algorithms.GroverFindAny","plain":"Find-Any correctness theorem","lines":[160,165],"exact_lines":false,"relation":"states","note":"","annotation":"On a trace-one input, `⊤` has expectation one. The final assertion measures the probability of returning a member of $S$, so the triple requires that probability to be one. Individual runs may take different numbers of queries.","proof_lines":[166,166]},{"name":"QuantumComputation.Specs.groverFindAnyProgram","line":154,"end_line":156,"module":"QuantumComputationDiscoveries.Algorithms.GroverFindAny","plain":"Find-Any program and reset","lines":[154,156],"exact_lines":true,"relation":"states","note":"","annotation":"`qset` resets the quantum workspace before the compiled circuit starts. The circuit initializes the classical result used to control its loop. Thus the initial trace-one state may include a nonzero workspace and a previous value of `res`.","proof_lines":[156,156]},{"name":"QuantumComputationDiscoveries.Algorithms.GroverFindAny:QuantumComputation.Specs.groverParallelMarkingOracle","line":79,"end_line":83,"module":"QuantumComputationDiscoveries.Algorithms.GroverFindAny","plain":"Parallel marking oracle in Find-Any","lines":[79,80],"exact_lines":false,"relation":"states","note":"","annotation":"The program chooses its circuit from $n,m,k$ and supplies $S$ through `groverParallelMarkingOracle m S`. Its angles can depend on the known target count $k$. The theorem must establish certainty for every placement of those $k$ targets.","proof_lines":[81,83]}],"role":"statement","lean":true,"name":"QuantumComputation.Specs.groverFindAny_correctness","module":"QuantumComputationDiscoveries.Algorithms.GroverFindAny","lines":[160,165],"plain":"Find-Any correctness theorem","relation":"states","anchor":"block-S2.SS1-block-1","at":"b19435-19482","origin":"ai","explanation":{"text":"","citations":[{"ref":"grover/find-any/7151b1849bb2","title":"Passage in the authors’ arXiv text","url":"https://arxiv.org/html/2611.09822v3#S2.SS1.p1.1"}]}},{"record":"grover/eventual-cost","phrase":"grover/eventual-cost/13ab3b8cfe34","topic":"grover","part":0,"tone":1,"rows":[{"name":"QuantumComputation.Specs.groverFindAny_rel_cost","line":175,"end_line":181,"module":"QuantumComputationDiscoveries.Algorithms.GroverFindAny","plain":"Find-Any round bound for large domains","lines":[175,180],"exact_lines":false,"relation":"states","note":"","annotation":"The quantifiers fix a claimed pair $(m,k)$ and then let $n$ grow. The statement averages over marked sets of size $k$ for each such $n$. For example, the $(8,32)$ result lets the address space grow while keeping eight slots and 32 targets.","proof_lines":[181,181]},{"name":"QuantumComputation.Specs.groverFindAll_rel_cost","line":233,"end_line":239,"module":"QuantumComputationDiscoveries.Algorithms.GroverFindAll","plain":"Find-All round bound for large domains","lines":[233,238],"exact_lines":false,"relation":"states","note":"","annotation":"The theorem bounds the rounds through complete recovery, including retries and searches for targets left after a batch. Its normalization is the sequential reference scale that adds a Find-Any term for every remaining target count.","proof_lines":[239,239]},{"name":"QuantumComputation.Specs.groverFindAnyProgram","line":154,"end_line":156,"module":"QuantumComputationDiscoveries.Algorithms.GroverFindAny","plain":"Find-Any program and reset","lines":[154,155],"exact_lines":false,"relation":"states","note":"","annotation":"`groverFindAnyProgram` includes initialization, initial amplification, the weak checks, and the final membership readout in the large-domain branch. The cost theorem counts the queries of that full program. The initial reset has query cost zero.","proof_lines":[156,156]},{"name":"ResourceCounting.CostModel.ofEmbeddedOracle","line":102,"end_line":109,"module":"QuantumComputation.QuantumHoareLogic.ResourceCounting","plain":"Charging one round per embedded oracle","lines":[102,107],"exact_lines":true,"relation":"states","note":"","annotation":"One embedded application of $O_S^{\\otimes m}$ costs one round. A run of $j$ rounds can use at most $mj$ individual oracle queries. The bound here is on the expectation of $j$. Figure S6 distinguishes the counted oracle round from the zero-cost operations.","proof_lines":[104,109],"annotation_references":[{"start":176,"end":185,"key":"figure:s6"}]},{"name":"QuantumComputation.Specs.GroverSolution.FindAny.rel_cost","line":1367,"end_line":1505,"module":"QuantumComputationDiscoveries.Algorithms.Grover.Solution.FindAny","plain":"A shared bound on expected rounds","lines":[1474,1478],"exact_lines":true,"relation":"states","note":"","annotation":"The bound `bd` adds $K+1$ setup rounds, $1/(1-p)$ expected weak checks, and one readout round, where $K$ is `lockSchedule` and $p$ is the miss probability. A click certifies odd parity. The readout query supplies the membership bits needed to choose an address.","proof_lines":[1374,1505]}],"role":"statement","lean":true,"name":"QuantumComputation.Specs.groverFindAny_rel_cost","module":"QuantumComputationDiscoveries.Algorithms.GroverFindAny","lines":[175,180],"plain":"Find-Any round bound for large domains","relation":"states","anchor":"block-S2.SS1-block-1","at":"b19507-19543","origin":"ai","explanation":{"text":"","citations":[{"ref":"grover/eventual-cost/13ab3b8cfe34","title":"Passage in the authors’ arXiv text","url":"https://arxiv.org/html/2611.09822v3#S2.SS1.p1.1"}]}},{"record":"grover/grid","phrase":"grover/grid/2e2148b481a7","topic":"grover","part":0,"tone":1,"rows":[{"name":"QuantumComputation.Specs.groverFindAnyCells","line":129,"end_line":130,"module":"QuantumComputationDiscoveries.Algorithms.GroverFindAny","plain":"Find-Any grid selector","lines":[129,129],"exact_lines":false,"relation":"states","note":"","annotation":"The pair $(8,32)$ means eight parallel slots and 32 marked indices. The addresses still have $n$ bits, so the domain $2^n$ can grow while both coordinates of the grid stay fixed.","proof_lines":[130,130]},{"name":"QuantumComputation.Specs.groverFindAllCells","line":184,"end_line":185,"module":"QuantumComputationDiscoveries.Algorithms.GroverFindAll","plain":"Find-All grid selector","lines":[184,184],"exact_lines":false,"relation":"states","note":"","annotation":"The grid includes settings with $k>m$, where the archive may need several batches. The correctness theorem assumes $k\\le2^n$. Its hypotheses also admit settings with more query slots than addresses.","proof_lines":[185,185]}],"role":"statement","lean":true,"name":"QuantumComputation.Specs.groverFindAnyCells","module":"QuantumComputationDiscoveries.Algorithms.GroverFindAny","lines":[129,129],"plain":"Find-Any grid selector","relation":"states","anchor":"block-S2.SS1-block-1","at":"b19545-19587","origin":"ai","explanation":{"text":"","citations":[{"ref":"grover/grid/2e2148b481a7","title":"Passage in the authors’ arXiv text","url":"https://arxiv.org/html/2611.09822v3#S2.SS1.p1.1"}]}},{"record":"grover/any-speedup","phrase":"grover/any-speedup/2452cb2f1e98","topic":"grover","part":0,"tone":1,"rows":[{"name":"QuantumComputation.Specs.groverFindAny_rel_cost","line":175,"end_line":181,"module":"QuantumComputationDiscoveries.Algorithms.GroverFindAny","plain":"Find-Any round bound for large domains","lines":[175,180],"exact_lines":false,"relation":"states","note":"","annotation":"This theorem gives the new algorithm's upper bound, in units of the Find-Any reference scale. The authors evaluate the Gingrich–Williams–Cerf baseline in the same units and divide its coefficient by the verified one (Equation (10) gives the baseline coefficient). For $m=k=2$, the reported comparison is about $0.942/0.81831\\approx1.15$.","proof_lines":[181,181],"annotation_references":[{"start":217,"end":230,"key":"equation:10"}]},{"name":"QuantumComputation.Specs.groverFindAnyRelCost","line":170,"end_line":171,"module":"QuantumComputationDiscoveries.Algorithms.GroverFindAny","plain":"Submitted Find-Any coefficient","lines":[170,170],"exact_lines":false,"relation":"states","note":"","annotation":"The bound uses the same rational at every grid point. The best reported ratio in the interior occurs at $m=1024$, where the manuscript compares approximately $0.997$ for GW with $0.818310$ for the verified upper bound. The resulting factor rounds to $1.22$.","proof_lines":[171,171]},{"name":"QuantumComputation.Specs.GroverSolution.FindAny.relCost","line":96,"end_line":97,"module":"QuantumComputationDiscoveries.Algorithms.Grover.Solution.FindAny","plain":"One coefficient for Find-Any","lines":[96,96],"exact_lines":false,"relation":"states","note":"","annotation":"GW applies Grover rotations separately to $m$ copies of the full-domain state and combines their success probabilities at readout. The joint circuit has an odd-parity fraction asymptotic to $mk/N$, so its leading Grover angle is larger by a factor of $\\sqrt m$. The weak-loop proof gives one normalized bound across the grid.","proof_lines":[97,97]}],"role":"statement","lean":true,"name":"QuantumComputation.Specs.groverFindAny_rel_cost","module":"QuantumComputationDiscoveries.Algorithms.GroverFindAny","lines":[175,180],"plain":"Find-Any round bound for large domains","relation":"states","anchor":"block-S2.SS1-block-2","at":"b20345-20396","origin":"ai","explanation":{"text":"","citations":[{"ref":"grover/any-speedup/2452cb2f1e98","title":"Passage in the authors’ arXiv text","url":"https://arxiv.org/html/2611.09822v3#S2.SS1.p2.1"},{"ref":"https://arxiv.org/pdf/quant-ph/9904049v1#page=9","title":"Equation (32), expected cost of parallel search with restarts","url":"https://arxiv.org/pdf/quant-ph/9904049v1#page=9"},{"ref":"https://arxiv.org/pdf/2609.39621v1#page=13","title":"Equation (14), cost ratio as the target probability tends to zero","url":"https://arxiv.org/pdf/2609.39621v1#page=13"}]}},{"record":"grover/all-speedup","phrase":"grover/all-speedup/49b456cc0c31","topic":"grover","part":0,"tone":1,"rows":[{"name":"QuantumComputation.Specs.groverFindAll_rel_cost","line":233,"end_line":239,"module":"QuantumComputationDiscoveries.Algorithms.GroverFindAll","plain":"Find-All round bound for large domains","lines":[233,238],"exact_lines":true,"relation":"states","note":"","annotation":"The Find-All reference scale is the sum of sequential search terms in Equation (7). The paper evaluates GR0 separately, including the average cost of cleaning up the random remainder after the first pass. Its speedup is the prior coefficient divided by the verified upper coefficient in the same units.","proof_lines":[239,239],"annotation_references":[{"start":70,"end":82,"key":"equation:7"}]},{"name":"QuantumComputation.Specs.GroverFindAll.gridRelCost","line":306,"end_line":450,"module":"QuantumComputationDiscoveries.Algorithms.Grover.Solution.GridRouter","plain":"Find-All coefficients by setting","lines":[437,448],"exact_lines":true,"relation":"states","note":"","annotation":"At $(1024,512)$, `gridRelCost` gives $6756116497/250000000000\\approx0.02702$. Multiplying by Equation (7) gives a bound of about $0.029063\\sqrt N$ rounds for sufficiently large $N$. The $2.57\\times$ shown in Figure 3d uses the paper’s GR0 coefficient as the numerator.","proof_lines":[307,450],"annotation_references":[{"start":93,"end":105,"key":"equation:7"},{"start":208,"end":217,"key":"figure:3"}]},{"name":"QuantumComputation.Specs.GroverFindAll.arm8_rc","line":996,"end_line":1002,"module":"QuantumComputationDiscoveries.Algorithms.Grover.Solution.GridRouter","plain":"Equality of Johnson cost coefficients","lines":[996,1002],"exact_lines":true,"relation":"states","note":"","annotation":"`arm8_rc` equates the public table entry with the coefficient supplied by the selected Johnson circuit. Among its seven settings is $(1024,512)$. That setting’s first pass has eight segments at the same subset size of 1,024, although the circuit family also allows larger subsets.","proof_lines":[998,1002]},{"name":"QuantumComputation.Specs.GroverFindAll.findAllGrid_rel_cost","line":2176,"end_line":2680,"module":"QuantumComputationDiscoveries.Algorithms.Grover.Solution.GridRouter","plain":"Cost proof for each Find-All circuit","lines":[2266,2278],"exact_lines":true,"relation":"states","note":"","annotation":"The proof calls the bound for the selected Johnson circuit and rewrites its coefficient by `arm8_rc`. The circuit certificate budgets for the cost of the walk and for each remaining search after a batch outcome. It charges any probability mass left over after the certified outcome bounds at a common upper budget.","proof_lines":[2188,2680]}],"role":"statement","lean":true,"name":"QuantumComputation.Specs.groverFindAll_rel_cost","module":"QuantumComputationDiscoveries.Algorithms.GroverFindAll","lines":[233,238],"plain":"Find-All round bound for large domains","relation":"states","anchor":"block-S2.SS1-block-2","at":"b20486-20533","origin":"ai","explanation":{"text":"","citations":[{"ref":"grover/all-speedup/49b456cc0c31","title":"Passage in the authors’ arXiv text","url":"https://arxiv.org/html/2611.09822v3#S2.SS1.p2.1"},{"ref":"https://arxiv.org/pdf/quant-ph/0407217v1#page=4","title":"Lemma 1 and Figure 3, search at descending target counts","url":"https://arxiv.org/pdf/quant-ph/0407217v1#page=4"},{"ref":"https://arxiv.org/pdf/quant-ph/0407217v1#page=5","title":"Theorem 3, parallel search by random partition","url":"https://arxiv.org/pdf/quant-ph/0407217v1#page=5"}]}},{"record":"grover/find-any-mechanism","phrase":"grover/find-any-mechanism/6c2767034249","topic":"grover","part":0,"tone":1,"rows":[{"name":"QuantumComputation.Specs.GroverSolution.FindAny.eigLockCirc","line":952,"end_line":955,"module":"QuantumComputationDiscoveries.Algorithms.Grover.Solution.FindAny","plain":"Weak measurement loop and readout","lines":[952,953],"exact_lines":false,"relation":"part","note":"","annotation":"The miss operator in Equation (6) scales the marked component by $-\\sqrt{1-\\kappa}$ before normalization. For $0<\\kappa<1$ it retains part of the marked amplitude, which the circuit uses in the next diffusion step. In Find-Any this marked component consists of odd-parity tuples.","proof_lines":[954,955],"annotation_references":[{"start":21,"end":33,"key":"equation:6"}]}],"role":"explanation","lean":true,"name":"QuantumComputation.Specs.GroverSolution.FindAny.eigLockCirc","module":"QuantumComputationDiscoveries.Algorithms.Grover.Solution.FindAny","lines":[952,953],"plain":"Weak measurement loop and readout","relation":"part","anchor":"block-S2.SS1-block-2","at":"b20729-20768","origin":"ai","explanation":{"text":"","citations":[{"ref":"grover/find-any-mechanism/6c2767034249","title":"Passage in the authors’ arXiv text","url":"https://arxiv.org/html/2611.09822v3#S2.SS1.p2.1"},{"ref":"https://arxiv.org/pdf/2609.39621v1#page=12","title":"Algorithm 1, weak measurement and the no-click branch","url":"https://arxiv.org/pdf/2609.39621v1#page=12"}]}},{"record":"grover/johnson-phase","phrase":"grover/johnson-phase/836bdd37c952","topic":"grover","part":0,"tone":1,"rows":[{"name":"QuantumComputation.Specs.DickeSol.sDiagM_mulVec_liftSymVec","line":347,"end_line":370,"module":"QuantumComputationDiscoveries.Algorithms.Grover.Solution.FindAllJohnsonP01","plain":"Phase from remaining-target parity","lines":[347,351],"exact_lines":true,"relation":"part","note":"","annotation":"The parity query gives phases $+1$, $-1$ and $+1$ to subsets with zero, one and two remaining hits. This diagonal operation preserves the squared amplitude of each subset. The intervening Johnson operator can mix the hit counts and change their probabilities (Figure S9, step (2), shows the alternating query and reflection).","proof_lines":[349,370],"annotation_references":[{"start":260,"end":269,"key":"figure:s9"}]}],"role":"explanation","lean":true,"name":"QuantumComputation.Specs.DickeSol.sDiagM_mulVec_liftSymVec","module":"QuantumComputationDiscoveries.Algorithms.Grover.Solution.FindAllJohnsonP01","lines":[347,351],"plain":"Phase from remaining-target parity","relation":"part","anchor":"block-S2.SS1-block-2","at":"b21056-21125","origin":"ai","explanation":{"text":"","citations":[{"ref":"grover/johnson-phase/836bdd37c952","title":"Passage in the authors’ arXiv text","url":"https://arxiv.org/html/2611.09822v3#S2.SS1.p2.1"},{"ref":"https://dx.doi.org/10.1007/s00453-016-0206-z","title":"10.1007/s00453-016-0206-z","url":"https://dx.doi.org/10.1007/s00453-016-0206-z"}]}},{"record":"grover/johnson-readout","phrase":"grover/johnson-readout/334f10e2300c","topic":"grover","part":0,"tone":1,"rows":[{"name":"QuantumComputation.Specs.DickeSol.johnsonPassFront","line":821,"end_line":832,"module":"QuantumComputationDiscoveries.Algorithms.Grover.Solution.FindAllJohnsonP01","plain":"Batch readout after the walk","lines":[821,823],"exact_lines":false,"relation":"part","note":"","annotation":"For the fixed-size walk, flags in $|0\\rangle$ record the individual remaining marks in one parallel query after unmarking the archive. The following permutation stores their addresses as a batch. A subset may contribute some of the remaining targets, leaving the rest for later search.","proof_lines":[824,832]}],"role":"explanation","lean":true,"name":"QuantumComputation.Specs.DickeSol.johnsonPassFront","module":"QuantumComputationDiscoveries.Algorithms.Grover.Solution.FindAllJohnsonP01","lines":[821,823],"plain":"Batch readout after the walk","relation":"part","anchor":"block-S2.SS1-block-2","at":"b21276-21311","origin":"ai","explanation":{"text":"","citations":[{"ref":"grover/johnson-readout/334f10e2300c","title":"Passage in the authors’ arXiv text","url":"https://arxiv.org/html/2611.09822v3#S2.SS1.p2.1"}]}},{"record":"arcsin/reversible-action","phrase":"arcsin/reversible-action/c26b5123b790","topic":"arcsin","part":0,"tone":2,"rows":[{"name":"QuantumComputation.Specs.arcsin_correctness","line":352,"end_line":446,"module":"QuantumComputationDiscoveries.Primitives.Arcsin","plain":"Uniform approximation and exact modular addition","lines":[352,361],"exact_lines":true,"relation":"states","note":"","annotation":"The conclusion uses `RealizesCleanSubroutine` with the unitary `arcsinTableUnitary z`. It specifies the operation obtained by linear extension of the modular addition on basis states, after initializing the ancillas to zero. The width and tolerance assumptions are $k\\ge3$ and at least half a grid step.","proof_lines":[362,446],"fidelity":"same","fidelity_source":"ai"},{"name":"QuantumComputation.Specs.ArcsinImpl.realizesCleanSubroutine_compileList102","line":2731,"end_line":2780,"module":"QuantumComputationDiscoveries.Primitives.Arcsin.Solution.StageProofB","plain":"Clean unitary action from the phase-aware basis calculation","lines":[2736,2742],"exact_lines":true,"relation":"states","note":"","annotation":"The same basis outputs can carry different relative phases. If two clean basis inputs pick up opposite signs, their sum becomes a difference of the two intended outputs. The `phaseList102 … = false` clause fixes the phase at $+1$ for every clean basis input. The proof then compares the operators on basis vectors with the zero-ancilla projector.","proof_lines":[2743,2780]},{"name":"QuantumComputation.Specs.arcsinProgram","line":342,"end_line":345,"module":"QuantumComputationDiscoveries.Primitives.Arcsin","plain":"Dynamic circuit for reversible fixed-point arcsin","lines":[342,345],"exact_lines":true,"relation":"states","note":"","annotation":"The first $k$ data wires encode $b$ and the next $k$ encode $y$, so their local integer index is $b+2^k y$. The register arguments place these wires and the clean ancillas in a larger ambient register. The circuit is specified for all data states on those wires.","proof_lines":[345,345]}],"role":"statement","lean":true,"name":"QuantumComputation.Specs.arcsin_correctness","module":"QuantumComputationDiscoveries.Primitives.Arcsin","lines":[352,361],"plain":"Uniform approximation and exact modular addition","relation":"states","anchor":"block-S2.SS2-block-1","at":"b21497-21533","origin":"ai","explanation":{"text":"","citations":[{"ref":"arcsin/reversible-action/c26b5123b790","title":"Passage in the authors’ arXiv text","url":"https://arxiv.org/html/2611.09822v3#S2.SS2.p1.1"}]}},{"record":"arcsin/precision","phrase":"arcsin/precision/ed67b50da16c","topic":"arcsin","part":0,"tone":2,"rows":[{"name":"QuantumComputation.Specs.arcsin_correctness","line":352,"end_line":446,"module":"QuantumComputationDiscoveries.Primitives.Arcsin","plain":"Uniform approximation and exact modular addition","lines":[352,361],"exact_lines":false,"relation":"states","note":"","annotation":"The theorem asks for one table $z$ that meets the error bound and gives the exact modular increment of the compiled circuit. In the benchmark proof this is `z25`, whose entries come from the circuit’s fixed-point arithmetic. The same table works for every disjoint placement of the registers.","proof_lines":[362,446],"fidelity":"stronger","fidelity_source":"ai"},{"name":"QuantumComputation.Specs.z25_satisfies_abs_error","line":118,"end_line":196,"module":"QuantumComputationDiscoveries.Primitives.Arcsin","plain":"Uniform absolute error of the implemented table","lines":[118,119],"exact_lines":false,"relation":"states","note":"","annotation":"The premise `hy` selects exactly the codes that decode into $[-1,1]$. For a positive interior code, the proof first equates the computed increment `z25 y` with the interval formula and then applies the certified error bound for that formula. Separate branches handle the sign and the endpoints.","proof_lines":[120,196],"fidelity":"same","fidelity_source":"ai"},{"name":"QuantumComputation.Specs.SatisfiesArcsinAbsError","line":75,"end_line":76,"module":"QuantumComputationDiscoveries.Primitives.Arcsin","plain":"Absolute error after decoding y and z","lines":[75,76],"exact_lines":true,"relation":"states","note":"","annotation":"The predicate compares the decoded increment with the real arcsine of the decoded input. The output register can start at any $b$. For example, if $b$ represents $1.5$ and $y=1$, the sum wraps by $4$ and the output is near $1.5+\\pi/2-4$. The error bound is on the increment near $\\pi/2$.","proof_lines":[76,76]}],"role":"statement","lean":true,"name":"QuantumComputation.Specs.arcsin_correctness","module":"QuantumComputationDiscoveries.Primitives.Arcsin","lines":[352,361],"plain":"Uniform approximation and exact modular addition","relation":"states","anchor":"block-S2.SS2-block-1","at":"b21772-21868","origin":"ai","explanation":{"text":"","citations":[{"ref":"arcsin/precision/ed67b50da16c","title":"Passage in the authors’ arXiv text","url":"https://arxiv.org/html/2611.09822v3#S2.SS2.p1.1"}]}},{"record":"arcsin/comparison","phrase":"arcsin/comparison/ef12b94b9f03","topic":"arcsin","part":0,"tone":2,"rows":[{"name":"QuantumComputationDiscoveries.Primitives.Arcsin:QuantumComputation.Specs.arcsin_k25_const_cost","line":482,"end_line":504,"module":"QuantumComputationDiscoveries.Primitives.Arcsin","plain":"Benchmark spacetime bound and primitive Toffoli count","lines":[482,503],"exact_lines":true,"relation":"part","note":"","annotation":"The published costs are $4{,}152$ and $3{,}698$ $T$ gates at the same width. The change is all in the combined lookup-and-add stage in Figure S11(b). The early lookup falls by 644, the adder falls by 60, and the later lookup rises by 250. The net change of 454 gives the reported overall reduction of about $10.9\\%$.","proof_lines":[484,504],"annotation_references":[{"start":135,"end":148,"key":"figure:s11"}]}],"role":"derivation","lean":true,"name":"QuantumComputationDiscoveries.Primitives.Arcsin:QuantumComputation.Specs.arcsin_k25_const_cost","module":"QuantumComputationDiscoveries.Primitives.Arcsin","lines":[482,503],"plain":"Benchmark spacetime bound and primitive Toffoli count","relation":"part","anchor":"block-S2.SS2-block-2","at":"b23055-23101","origin":"ai","explanation":{"text":"","citations":[{"ref":"arcsin/comparison/ef12b94b9f03","title":"Passage in the authors’ arXiv text","url":"https://arxiv.org/html/2611.09822v3#S2.SS2.p2.1"}]}},{"record":"arcsin/comparison","phrase":"arcsin/comparison/44aad3d3af05","topic":"arcsin","part":0,"tone":2,"rows":[{"name":"QuantumComputationDiscoveries.Primitives.Arcsin:QuantumComputation.Specs.arcsin_k25_const_cost","line":482,"end_line":504,"module":"QuantumComputationDiscoveries.Primitives.Arcsin","plain":"Benchmark spacetime bound and primitive Toffoli count","lines":[482,503],"exact_lines":true,"relation":"part","note":"","annotation":"Appendix F.2 estimates $440{,}576$ $T$ gates for two dominant blocks on a workspace of 245 qubits. Dividing that product by the final upper bound gives $(440{,}576/3{,}698)\\cdot(245/100)\\approx292$. This is the basis of the paper’s reported factor of about 290.","proof_lines":[484,504],"annotation_references":[{"start":0,"end":12,"key":"appendix:f.2"}]},{"name":"QuantumComputation.Specs.arcsin_correctness","line":352,"end_line":446,"module":"QuantumComputationDiscoveries.Primitives.Arcsin","plain":"Uniform approximation and exact modular addition","lines":[352,369],"exact_lines":true,"relation":"part","note":"","annotation":"The benchmark proof gives uniform absolute error at most $1.25\\times10^{-7}$ on the valid 25-bit grid and exact modular accumulation. The reported Häner comparison uses 35-bit arithmetic and an error estimate of about $10^{-6}$ based on sampled square-root errors. The two error levels and the partial baseline accounting belong to that numerical comparison (Table S2).","proof_lines":[362,446],"annotation_references":[{"start":359,"end":367,"key":"table:s2"}]}],"role":"derivation","lean":true,"name":"QuantumComputationDiscoveries.Primitives.Arcsin:QuantumComputation.Specs.arcsin_k25_const_cost","module":"QuantumComputationDiscoveries.Primitives.Arcsin","lines":[482,503],"plain":"Benchmark spacetime bound and primitive Toffoli count","relation":"part","anchor":"block-S2.SS2-block-2","at":"b23164-23194","origin":"ai","explanation":{"text":"","citations":[{"ref":"arcsin/comparison/44aad3d3af05","title":"Passage in the authors’ arXiv text","url":"https://arxiv.org/html/2611.09822v3#S2.SS2.p2.1"}]}},{"record":"fusion/model","phrase":"fusion/model/578687fcc08b","topic":"fusion","part":0,"tone":3,"rows":[{"name":"QuantumComputation.Specs.StoppingPower.systemQubits","line":151,"end_line":151,"module":"QuantumComputationDiscoveries.Algorithms.StoppingPower","plain":"3,948 system qubits","lines":[151,151],"exact_lines":false,"relation":"defines","note":"","annotation":"In first quantization, each moving particle has its own momentum register. The 218 electron registers use $218\\cdot3\\cdot6=3{,}924$ qubits. The $\\alpha$ particle adds $3\\cdot8=24$ in `systemQubits`. The fixed proton positions are classical parameters of the Hamiltonian."},{"name":"QuantumComputation.Specs.StoppingPower.Configuration","line":229,"end_line":236,"module":"QuantumComputationDiscoveries.Algorithms.StoppingPower","plain":"Proton positions and initial projectile momentum","lines":[229,236],"exact_lines":false,"relation":"defines","note":"","annotation":"The proton positions $R_\\ell$ are arbitrary real coordinates and enter the Hamiltonian through $S(\\nu)=\\sum_{\\ell=1}^{216}e^{-ik_\\nu\\cdot R_\\ell}$. The projectile offset is $k_{\\mathrm{proj}}=2\\pi p_0/\\Omega^{1/3}$ for an integer vector $p_0$. Lean enforces $\\|k_{\\mathrm{proj}}\\|_2\\leq29{,}376$ a.u. with a bound on the squared norm. The projectile kinetic energy uses $k_p-k_{\\mathrm{proj}}$."}],"role":"definition","lean":true,"name":"QuantumComputation.Specs.StoppingPower.systemQubits","module":"QuantumComputationDiscoveries.Algorithms.StoppingPower","lines":[151,151],"plain":"3,948 system qubits","relation":"defines","anchor":"block-S2.SS3-block-3","at":"b26341-26427","origin":"ai","explanation":{"text":"","citations":[{"ref":"fusion/model/578687fcc08b","title":"Passage in the authors’ arXiv text","url":"https://arxiv.org/html/2611.09822v3#S2.SS3.p2.1"},{"ref":"https://dx.doi.org/10.1073/pnas.2317772121","title":"10.1073/pnas.2317772121","url":"https://dx.doi.org/10.1073/pnas.2317772121"},{"ref":"https://dx.doi.org/10.1103/PRXQuantum.2.040332","title":"10.1103/PRXQuantum.2.040332","url":"https://dx.doi.org/10.1103/PRXQuantum.2.040332"}]}},{"record":"fusion/time-evolution","phrase":"fusion/time-evolution/082e3d885061","topic":"fusion","part":0,"tone":3,"rows":[{"name":"QuantumComputation.Specs.stoppingPower_correctness","line":935,"end_line":971,"module":"QuantumComputationDiscoveries.Algorithms.StoppingPower","plain":"One compiled unitary for every spin partition","lines":[935,942],"exact_lines":true,"relation":"states","note":"","annotation":"For each allowed configuration, time and disjoint register placement, the compiled circuit realizes one unitary $W$ on all valid grid inputs with zero ancillas. The bound on the difference from $e^{-iHt}$ applies to the smaller subspace of grid states antisymmetric under same-spin exchange. Within each spin partition, one phase applies to all vectors in that subspace (the criterion in Equation (12) and its stated input restriction).","proof_lines":[943,971],"fidelity":"same","fidelity_source":"ai","annotation_references":[{"start":388,"end":401,"key":"equation:12"}]},{"name":"QuantumComputationDiscoveries.Algorithms.StoppingPower:QuantumComputation.Specs.ApproximatesTimeEvolution","line":129,"end_line":135,"module":"QuantumComputationDiscoveries.Algorithms.StoppingPower","plain":"Operator-norm error with zero ancillas","lines":[133,135],"exact_lines":true,"relation":"states","note":"","annotation":"The factor `input` on the right projects onto the selected spin sector and the all-zero ancilla state. The operator norm of the restricted difference is the largest vector error over unit inputs in that subspace. The output vector includes the ancillas, so the bound also controls any component with nonzero output ancillas.","proof_lines":[131,135]},{"name":"QuantumComputation.Specs.StoppingPower.fermionicProjector","line":208,"end_line":217,"module":"QuantumComputationDiscoveries.Algorithms.StoppingPower","plain":"Projector onto same-spin antisymmetric states","lines":[208,209],"exact_lines":false,"relation":"states","note":"","annotation":"Multiplying `fermionicProjector` by a same-spin exchange reindexes the signed permutation sum and reverses every sign. A vector in the range therefore changes sign under that exchange. Applying the same one-electron basis change to all electron registers commutes with the exchanges, so the antisymmetry condition persists in the position basis.","proof_lines":[210,217]},{"name":"QuantumComputation.Specs.StoppingPowerSolution.ComposableLiveEndpoint.gqsp_hTotErr11","line":822,"end_line":828,"module":"QuantumComputationDiscoveries.Algorithms.StoppingPower","plain":"Total error at most 10⁻² for each evolution time","lines":[822,828],"exact_lines":true,"relation":"states","note":"","annotation":"Among the ten certified upper bounds in `gqsp_hTotErr11`, the largest is at $t=3$. Three segment errors contribute about $0.000391997217$, the block-encoding term contributes $0.009607998$, and phase-gradient preparation and its inverse together contribute $4.6\\times10^{-9}$. Their sum is about $0.009999999817$, below $10^{-2}$.","proof_lines":[827,828]}],"role":"statement","lean":true,"name":"QuantumComputation.Specs.stoppingPower_correctness","module":"QuantumComputationDiscoveries.Algorithms.StoppingPower","lines":[935,942],"plain":"One compiled unitary for every spin partition","relation":"states","anchor":"block-S2.SS3-block-3","at":"b26506-26606","origin":"ai","explanation":{"text":"","citations":[{"ref":"fusion/time-evolution/082e3d885061","title":"Passage in the authors’ arXiv text","url":"https://arxiv.org/html/2611.09822v3#S2.SS3.p2.1"},{"ref":"https://dx.doi.org/10.1073/pnas.2317772121","title":"10.1073/pnas.2317772121","url":"https://dx.doi.org/10.1073/pnas.2317772121"}]}},{"record":"fusion/repeats","phrase":"fusion/repeats/cc6f9c2ff0f8","topic":"fusion","part":0,"tone":3,"rows":[{"name":"QuantumComputation.Specs.stoppingPower_const_cost","line":982,"end_line":996,"module":"QuantumComputationDiscoveries.Algorithms.StoppingPower","plain":"Spacetime bound for 500 evolutions","lines":[982,987],"exact_lines":false,"relation":"states","note":"","annotation":"The second conjunct sums the ten circuits’ $T$-gate bounds, taking the larger count at each conditional. It multiplies this sum by 50 for the repeated evolutions and by the common logical width to bound the spacetime volume.","proof_lines":[988,996]},{"name":"QuantumComputation.Specs.stoppingPowerProgram","line":915,"end_line":924,"module":"QuantumComputationDiscoveries.Algorithms.StoppingPower","plain":"Circuit for evolution to t = j + 1","lines":[915,917],"exact_lines":false,"relation":"states","note":"","annotation":"`stoppingPowerProgram` constructs just the evolution circuit at one index $j$. For example, $j=4$ gives the circuit for $t=5$ a.u., which the sampling protocol runs 50 times on fresh inputs.","proof_lines":[918,924]}],"role":"statement","lean":true,"name":"QuantumComputation.Specs.stoppingPower_const_cost","module":"QuantumComputationDiscoveries.Algorithms.StoppingPower","lines":[982,987],"plain":"Spacetime bound for 500 evolutions","relation":"states","anchor":"block-S2.SS3-block-3","at":"b26607-26678","origin":"ai","explanation":{"text":"","citations":[{"ref":"fusion/repeats/cc6f9c2ff0f8","title":"Passage in the authors’ arXiv text","url":"https://arxiv.org/html/2611.09822v3#S2.SS3.p2.1"},{"ref":"https://dx.doi.org/10.1073/pnas.2317772121","title":"10.1073/pnas.2317772121","url":"https://dx.doi.org/10.1073/pnas.2317772121"}]}},{"record":"fusion/comparison","phrase":"fusion/comparison/d3929f878c4f","topic":"fusion","part":0,"tone":3,"rows":[{"name":"QuantumComputation.Specs.stoppingPower_const_cost","line":982,"end_line":996,"module":"QuantumComputationDiscoveries.Algorithms.StoppingPower","plain":"Spacetime bound for 500 evolutions","lines":[982,987],"exact_lines":true,"relation":"part","note":"","annotation":"Appendix G.4 reports about $12.8$ times fewer walk steps, $1.42$ times the $T$ gates per step and $1.30$ times fewer logical qubits. These rounded figures account for the scale of the $11.8$ ratio. The exact comparison uses the full cost cap, which also includes initialization and cleanup, and the reconstructed baseline.","proof_lines":[988,996],"annotation_references":[{"start":0,"end":12,"key":"appendix:g.4"}]},{"name":"QuantumComputation.Specs.stoppingPowerConstCost","line":974,"end_line":976,"module":"QuantumComputationDiscoveries.Algorithms.StoppingPower","plain":"Spacetime cost cap for 500 evolutions","lines":[974,974],"exact_lines":true,"relation":"part","note":"","annotation":"Dividing the proved cap by 500 gives $4.5872\\times10^{14}$ per run. Appendix G.2 gives about $5.42\\times10^{15}$ per run for the reconstructed baseline. Dividing the latter by the former gives about $11.8$.","proof_lines":[975,976],"annotation_references":[{"start":68,"end":80,"key":"appendix:g.2"}]}],"role":"derivation","lean":true,"name":"QuantumComputation.Specs.stoppingPower_const_cost","module":"QuantumComputationDiscoveries.Algorithms.StoppingPower","lines":[982,987],"plain":"Spacetime bound for 500 evolutions","relation":"part","anchor":"block-S2.SS3-block-5","at":"b27484-27517","origin":"ai","explanation":{"text":"","citations":[{"ref":"fusion/comparison/d3929f878c4f","title":"Passage in the authors’ arXiv text","url":"https://arxiv.org/html/2611.09822v3#S2.SS3.p4.1"},{"ref":"https://pmc.ncbi.nlm.nih.gov/articles/PMC11161767/#t03","title":"Table 3 (p. 10)","url":"https://pmc.ncbi.nlm.nih.gov/articles/PMC11161767/#t03"}]}},{"record":"fusion/pauli","phrase":"fusion/pauli/6d203fcaaf6e","topic":"fusion","part":0,"tone":3,"rows":[{"name":"QuantumComputation.Specs.StoppingPowerSolution.SingleAnchorFermionicPauliCap.nSub_cubic_mul_fermionicProjector_zero","line":358,"end_line":375,"module":"QuantumComputationDiscoveries.Algorithms.StoppingPower.Solution.SingleAnchorPauliCap","plain":"At most two electrons per spatial orbital","lines":[358,375],"exact_lines":true,"relation":"states","note":"","annotation":"Let $N$ count electrons in a normalized orbital by summing a rank-one projector over any chosen subset of electron registers. The product of two same-spin orbital projectors has a range fixed by exchanging those electrons. An antisymmetric input changes sign under that exchange, so its projection onto that range is zero. This removes the cross terms when either spin count is squared. The counts commute, giving $N(N-1)(N-2)|\\psi\\rangle=0$ on antisymmetric grid states. Appendix G.3 explains how this occupancy cap reduces the short-range interaction’s LCU normalization.","proof_lines":[362,375],"annotation_references":[{"start":472,"end":484,"key":"appendix:g.3"}]}],"role":"statement","lean":true,"name":"QuantumComputation.Specs.StoppingPowerSolution.SingleAnchorFermionicPauliCap.nSub_cubic_mul_fermionicProjector_zero","module":"QuantumComputationDiscoveries.Algorithms.StoppingPower.Solution.SingleAnchorPauliCap","lines":[358,375],"plain":"At most two electrons per spatial orbital","relation":"states","anchor":"block-S2.SS3-block-5","at":"b28073-28140","origin":"ai","explanation":{"text":"","citations":[{"ref":"fusion/pauli/6d203fcaaf6e","title":"Passage in the authors’ arXiv text","url":"https://arxiv.org/html/2611.09822v3#S2.SS3.p4.1"},{"ref":"https://dx.doi.org/10.1103/PRXQuantum.2.040332","title":"10.1103/PRXQuantum.2.040332","url":"https://dx.doi.org/10.1103/PRXQuantum.2.040332"}]}},{"record":"fusion/momentum","phrase":"fusion/momentum/5771f029a305","topic":"fusion","part":0,"tone":3,"rows":[{"name":"QuantumComputation.Specs.stoppingPowerProgram","line":915,"end_line":924,"module":"QuantumComputationDiscoveries.Algorithms.StoppingPower","plain":"Circuit for evolution to t = j + 1","lines":[915,917],"exact_lines":false,"relation":"part","note":"","annotation":"The phase for translating all electrons by $-R_\\ell$ depends on $P=\\sum_i k_{p_i}$ because the individual plane-wave phases multiply. The same $P$ can therefore be used for the shifts at each proton. The master program receives `stream42ExtInitSpecBest_poly` to initialize the register holding this sum.","proof_lines":[918,924]},{"name":"QuantumComputation.Specs.StoppingPowerSolution.InterWalkRSum42Hoist.E_stream42_eq_streamProjOp","line":853,"end_line":909,"module":"QuantumComputationDiscoveries.Algorithms.StoppingPower.Solution.InterWalkSum42Hoist","plain":"Momentum sum from a zeroed register","lines":[853,859],"exact_lines":true,"relation":"part","note":"","annotation":"In the internal two's-complement encoding, flipping the top bit of a six-bit component represents $p+32$. Each component sum is at most $218\\cdot63=13{,}734<2^{14}$. `streamTarget42` stores the three sums in separate 14-bit fields. Subtracting $218\\cdot32$ from each field recovers the sum of the integer momentum labels.","proof_lines":[854,909]}],"role":"explanation","lean":true,"name":"QuantumComputation.Specs.stoppingPowerProgram","module":"QuantumComputationDiscoveries.Algorithms.StoppingPower","lines":[915,917],"plain":"Circuit for evolution to t = j + 1","relation":"part","anchor":"block-S2.SS3-block-6","at":"b28769-28813","origin":"ai","explanation":{"text":"","citations":[{"ref":"fusion/momentum/5771f029a305","title":"Passage in the authors’ arXiv text","url":"https://arxiv.org/html/2611.09822v3#S2.SS3.p5.1"}]}},{"record":"photochemistry/model","phrase":"photochemistry/model/ea5d2eab989f","topic":"photochemistry","part":0,"tone":4,"rows":[{"name":"QuantumComputation.Specs.Photochemistry.hamiltonian","line":584,"end_line":584,"module":"QuantumComputationDiscoveries.Algorithms.Photochemistry","plain":"Discretized Hamiltonian H = T + V","lines":[584,584],"exact_lines":false,"relation":"states","note":"","annotation":"The nuclear coordinates are part of the wavefunction. In a superposition of nuclear configurations, `potentialEnergy` evaluates the Coulomb energy using the coordinates in each configuration. The nuclear kinetic terms also act on those coordinates, with the corresponding nuclear masses in their coefficients."},{"name":"QuantumComputation.Specs.Photochemistry.systemQubits","line":516,"end_line":516,"module":"QuantumComputationDiscoveries.Algorithms.Photochemistry","plain":"5,616 system qubits","lines":[516,516],"exact_lines":false,"relation":"states","note":"","annotation":"The neutral molecule has $23\\cdot6+20+3\\cdot7+8=187$ electrons. In first quantization each particle gets its own position register. The electrons use $187\\cdot24=4{,}488$ qubits and the nuclei use $47\\cdot24=1{,}128$, for 5,616 system qubits."}],"role":"statement","lean":true,"name":"QuantumComputation.Specs.Photochemistry.hamiltonian","module":"QuantumComputationDiscoveries.Algorithms.Photochemistry","lines":[584,584],"plain":"Discretized Hamiltonian H = T + V","relation":"states","anchor":"block-S2.SS4-block-2","at":"b30791-30869","origin":"ai","explanation":{"text":"","citations":[{"ref":"photochemistry/model/ea5d2eab989f","title":"Passage in the authors’ arXiv text","url":"https://arxiv.org/html/2611.09822v3#S2.SS4.p2.1"},{"ref":"https://arxiv.org/abs/2602.11272","title":"2602.11272 [quant-ph]","url":"https://arxiv.org/abs/2602.11272"}]}},{"record":"photochemistry/time-evolution","phrase":"photochemistry/time-evolution/02f975b5fea6","topic":"photochemistry","part":0,"tone":4,"rows":[{"name":"QuantumComputation.Specs.photochemistry_correctness","line":620,"end_line":640,"module":"QuantumComputationDiscoveries.Algorithms.Photochemistry","plain":"Error at most 0.01 for every system state at t = 1 fs","lines":[620,625],"exact_lines":true,"relation":"states","note":"","annotation":"The theorem chooses one joint unitary $W$ for each disjoint placement of the registers. In the approximation statement the system projector is $I$, and the realization statement uses `Finset.univ` for the allowed system basis outcomes. The guarantee covers every normalized system state with zero initial ancillas, including states outside the antisymmetric sector.","proof_lines":[626,640],"fidelity":"same","fidelity_source":"ai"},{"name":"QuantumComputationSpecs.Algorithms.StoppingPower:QuantumComputation.Specs.ApproximatesTimeEvolution","line":72,"end_line":78,"module":"QuantumComputationSpecs.Algorithms.StoppingPower","plain":"Full-output operator-norm error on clean inputs","lines":[76,78],"exact_lines":true,"relation":"states","note":"","annotation":"The projector on the right selects all system states with ancillas initially zero. The ideal output still has zero ancillas, so the component with nonzero output ancillas is part of the error vector. Its squared norm, the probability of seeing nonzero ancillas, is at most $\\varepsilon^2=10^{-4}$. One global phase works for all of these inputs. Equation (15) gives the orthogonal decomposition into block error and ancilla leakage.","proof_lines":[74,78],"annotation_references":[{"start":346,"end":359,"key":"equation:15"}]},{"name":"QuantumComputation.Specs.Photochemistry.evolutionTime","line":526,"end_line":526,"module":"QuantumComputationDiscoveries.Algorithms.Photochemistry","plain":"One femtosecond in atomic units","lines":[526,526],"exact_lines":true,"relation":"states","note":"","annotation":"One femtosecond is $100\\times10^{-17}$ s and the atomic unit of time is $2.4188843265864\\times10^{-17}$ s. Their ratio defines `evolutionTime`, approximately $41.34$ in atomic units. That value multiplies $H$ in the target exponential."}],"role":"statement","lean":true,"name":"QuantumComputation.Specs.photochemistry_correctness","module":"QuantumComputationDiscoveries.Algorithms.Photochemistry","lines":[620,625],"plain":"Error at most 0.01 for every system state at t = 1 fs","relation":"states","anchor":"block-S2.SS4-block-2","at":"b30963-31039","origin":"ai","explanation":{"text":"","citations":[{"ref":"photochemistry/time-evolution/02f975b5fea6","title":"Passage in the authors’ arXiv text","url":"https://arxiv.org/html/2611.09822v3#S2.SS4.p2.1"},{"ref":"https://arxiv.org/abs/2602.11272","title":"2602.11272 [quant-ph]","url":"https://arxiv.org/abs/2602.11272"}]}},{"record":"photochemistry/baseline","phrase":"photochemistry/baseline/ac2f7655fac8","topic":"photochemistry","part":0,"tone":4,"rows":[{"name":"QuantumComputation.Specs.photochemistry_const_cost","line":649,"end_line":664,"module":"QuantumComputationDiscoveries.Algorithms.Photochemistry","plain":"Circuit spacetime bound and primitive Toffoli count","lines":[649,654],"exact_lines":false,"relation":"part","note":"","annotation":"The denominator is the certified cost bound for the new circuit. The numerator comes from rescaling the published baseline at its original ancilla-zero block tolerance. Its larger step count and higher cost per step account for most of the ratio. Equation (17) gives the rescaled baseline cost. The logical widths differ by a factor of $6{,}198/6{,}033\\approx1.027$.","proof_lines":[655,664],"annotation_references":[{"start":247,"end":260,"key":"equation:17"}]}],"role":"derivation","lean":true,"name":"QuantumComputation.Specs.photochemistry_const_cost","module":"QuantumComputationDiscoveries.Algorithms.Photochemistry","lines":[649,654],"plain":"Circuit spacetime bound and primitive Toffoli count","relation":"part","anchor":"block-S2.SS4-block-3","at":"b31480-31507","origin":"ai","explanation":{"text":"","citations":[{"ref":"photochemistry/baseline/ac2f7655fac8","title":"Passage in the authors’ arXiv text","url":"https://arxiv.org/html/2611.09822v3#S2.SS4.p3.1"},{"ref":"https://arxiv.org/html/2602.11272v1#S1.T1.2.6","title":"Table I, Reaction 5 resource estimate","url":"https://arxiv.org/html/2602.11272v1#S1.T1.2.6"},{"ref":"https://arxiv.org/html/2602.11272v1#A3.E178","title":"Appendix C, time-evolution block-encoding error budget","url":"https://arxiv.org/html/2602.11272v1#A3.E178"},{"ref":"https://arxiv.org/html/2602.11272v1#A3.T3.2.3","title":"Table III, polynomial approximation error","url":"https://arxiv.org/html/2602.11272v1#A3.T3.2.3"},{"ref":"https://arxiv.org/html/2602.11272v1#A7.T4.2.6","title":"Table IV, Reaction 5 error allocation","url":"https://arxiv.org/html/2602.11272v1#A7.T4.2.6"},{"ref":"https://arxiv.org/abs/2608.02734","title":"2608.02734 [quant-ph]","url":"https://arxiv.org/abs/2608.02734"}]}},{"record":"p450/fixed-model","phrase":"p450/fixed-model/d3150c9109a0","topic":"p450","part":0,"tone":5,"rows":[{"name":"QuantumComputation.Specs.p450GroundEnergy_correctness","line":720,"end_line":728,"module":"QuantumComputationDiscoveries.Algorithms.P450GroundEnergy","plain":"Energy error of the compiled circuit","lines":[723,725],"exact_lines":true,"relation":"defines","note":"","annotation":"`thcHamiltonian dfthc` uses the rounded factors. Each group of 14 squares shares 29 orbital vectors. Expanding the squares puts the linear terms in `h1eMod` and quadratic terms in `zeta`. The printed right-hand side of Equation (18) also contains the constant $\\frac12\\sum_{r,c}(W^{(rc)})^2$, about 118.728 Ha. Lean subtracts it and uses the resulting energy convention for the bounds and decoder.","proof_lines":[726,728],"fidelity":"same","fidelity_source":"ai","annotation_references":[{"start":219,"end":232,"key":"equation:18"}]}],"role":"definition","lean":true,"name":"QuantumComputation.Specs.p450GroundEnergy_correctness","module":"QuantumComputationDiscoveries.Algorithms.P450GroundEnergy","lines":[723,725],"plain":"Energy error of the compiled circuit","relation":"defines","anchor":"block-S2.SS5-block-2","at":"b34250-34326","origin":"ai","explanation":{"text":"","citations":[{"ref":"p450/fixed-model/d3150c9109a0","title":"Passage in the authors’ arXiv text","url":"https://arxiv.org/html/2611.09822v3#S2.SS5.p2.1"},{"ref":"https://dx.doi.org/10.1073/pnas.2203533119","title":"10.1073/pnas.2203533119","url":"https://dx.doi.org/10.1073/pnas.2203533119"},{"ref":"https://dx.doi.org/10.5281/zenodo.17066718","title":"10.5281/zenodo.17066718","url":"https://dx.doi.org/10.5281/zenodo.17066718"}]}},{"record":"p450/energy-window","phrase":"p450/energy-window/77522555701c","topic":"p450","part":0,"tone":5,"rows":[{"name":"QuantumComputation.Specs.p450GroundEnergy_correctness","line":720,"end_line":728,"module":"QuantumComputationDiscoveries.Algorithms.P450GroundEnergy","plain":"Energy error of the compiled circuit","lines":[723,723],"exact_lines":true,"relation":"states","note":"","annotation":"The arguments `63 0.1 0.001` give the electron number, the window width and the RMS tolerance. Both energies are in hartrees. The left-hand side of `MeasuresLowEnergies` is a mean of squared differences, so its bound is `ε ^ 2`. The 1 mHa bound includes the Hamiltonian perturbation and phase-estimation circuit errors.","proof_lines":[726,728],"fidelity":"same","fidelity_source":"ai"},{"name":"QuantumComputation.Specs.MeasuresLowEnergies","line":131,"end_line":142,"module":"QuantumComputationDiscoveries.Algorithms.P450GroundEnergy","plain":"RMS error after capping both energies","lines":[139,140],"exact_lines":true,"relation":"states","note":"","annotation":"A cutoff $T$ is admissible when $T\\le E'+\\Delta$ for every 63-electron eigenvalue $E'$. This is equivalent to $T\\le E_0+\\Delta$. After both energies are capped at the largest cutoff, applying $x\\mapsto\\min(x,T)$ to them can only decrease their absolute difference.","proof_lines":[133,142]}],"role":"statement","lean":true,"name":"QuantumComputation.Specs.p450GroundEnergy_correctness","module":"QuantumComputationDiscoveries.Algorithms.P450GroundEnergy","lines":[723,723],"plain":"Energy error of the compiled circuit","relation":"states","anchor":"block-S2.SS5-block-2","at":"b34389-34452","origin":"ai","explanation":{"text":"","citations":[{"ref":"p450/energy-window/77522555701c","title":"Passage in the authors’ arXiv text","url":"https://arxiv.org/html/2611.09822v3#S2.SS5.p2.1"},{"ref":"https://dx.doi.org/10.1103/PhysRevX.8.041015","title":"10.1103/PhysRevX.8.041015","url":"https://dx.doi.org/10.1103/PhysRevX.8.041015"},{"ref":"https://dx.doi.org/10.1103/pb2g-j9cw","title":"10.1103/pb2g-j9cw","url":"https://dx.doi.org/10.1103/pb2g-j9cw"}]}},{"record":"p450/verified-cost","phrase":"p450/verified-cost/4857dc60f309","topic":"p450","part":0,"tone":5,"rows":[{"name":"QuantumComputation.Specs.p450GroundEnergy_const_cost","line":737,"end_line":744,"module":"QuantumComputationDiscoveries.Algorithms.P450GroundEnergy","plain":"Worst-case T count and logical spacetime bound","lines":[739,742],"exact_lines":true,"relation":"states","note":"","annotation":"The first conjunct gives zero primitive Toffolis. The second bounds peak logical width times worst-branch T count. The width includes all $116+217$ wires, even when part of the workspace is idle.","proof_lines":[743,744],"fidelity":"same","fidelity_source":"ai"},{"name":"QuantumComputation.Specs.p450GroundEnergyConstCost","line":731,"end_line":731,"module":"QuantumComputationDiscoveries.Algorithms.P450GroundEnergy","plain":"Spacetime bound of 436,509,499,221 qubit–T","lines":[731,731],"exact_lines":true,"relation":"states","note":"","annotation":"The Lean bound is $333\\times1{,}310{,}839{,}337=436{,}509{,}499{,}221$ qubit–T. Appendix I.2 calculates the numerator from 481 qubits, 49,056 steps and $4\\times11{,}517=46{,}068$ T gates per step. Dividing gives about 2.49025.","annotation_references":[{"start":80,"end":92,"key":"appendix:i.2"}]}],"role":"statement","lean":true,"name":"QuantumComputation.Specs.p450GroundEnergy_const_cost","module":"QuantumComputationDiscoveries.Algorithms.P450GroundEnergy","lines":[739,742],"plain":"Worst-case T count and logical spacetime bound","relation":"states","anchor":"block-S2.SS5-block-4","at":"b35359-35408","origin":"ai","explanation":{"text":"","citations":[{"ref":"p450/verified-cost/4857dc60f309","title":"Passage in the authors’ arXiv text","url":"https://arxiv.org/html/2611.09822v3#S2.SS5.p4.1"}]}},{"record":"verification/hybrid-language","phrase":"verification/hybrid-language/283202371040","topic":"verification","part":0,"tone":0,"rows":[{"name":"interp","line":129,"end_line":139,"module":"QuantumComputation.QuantumHoareLogic.Syntax","plain":"Classical–quantum program semantics","lines":[129,139],"exact_lines":true,"relation":"part","note":"","annotation":"In `qSeq`, the second command receives the output of the first. With a measurement first and `qIf` second, the guard tests the outcome already recorded in each store. Each branch then acts on the state restricted to the stores that take that branch.","proof_lines":[130,139]},{"name":"CQState.qMeasurement","line":125,"end_line":128,"module":"QuantumComputation.QuantumHoareLogic.Semantics","plain":"Measurement outcomes and partial density operators","lines":[125,128],"exact_lines":true,"relation":"part","note":"","annotation":"`assign x (↑o.1)` replaces the old value of $x$ with the outcome index. When that update brings two histories to the same store, Lean adds their partial density operators. For contributions $p\\rho_1$ and $q\\rho_2$ of traces $p$ and $q$, the combined trace is $p+q$.","proof_lines":[127,128]}],"role":"explanation","lean":true,"name":"interp","module":"QuantumComputation.QuantumHoareLogic.Syntax","lines":[129,139],"plain":"Classical–quantum program semantics","relation":"part","anchor":"block-A1-block-3","at":"b87786-87885","origin":"ai","explanation":{"text":"","citations":[{"ref":"verification/hybrid-language/283202371040","title":"Passage in the authors’ arXiv text","url":"https://arxiv.org/html/2611.09822v3#A1.p2.1"},{"ref":"https://dx.doi.org/10.1145/3456877","title":"10.1145/3456877","url":"https://dx.doi.org/10.1145/3456877"}]}},{"record":"verification/termination","phrase":"verification/termination/791c4161fab5","topic":"verification","part":0,"tone":0,"rows":[{"name":"Triple","line":504,"end_line":509,"module":"QuantumComputation.QuantumHoareLogic.WP","plain":"The expectation inequality in a Hoare triple","lines":[504,506],"exact_lines":true,"relation":"states","note":"","annotation":"The right-hand side of `Triple` is bounded above by the output trace, which is at most one. A precondition with expectation one therefore forces both the output trace and the postcondition expectation to be one. On such an input the program terminates and satisfies the postcondition with probability one.","proof_lines":[506,509]}],"role":"statement","lean":true,"name":"Triple","module":"QuantumComputation.QuantumHoareLogic.WP","lines":[504,506],"plain":"The expectation inequality in a Hoare triple","relation":"states","anchor":"block-A1-block-4","at":"b88037-88102","origin":"ai","explanation":{"text":"","citations":[{"ref":"verification/termination/791c4161fab5","title":"Passage in the authors’ arXiv text","url":"https://arxiv.org/html/2611.09822v3#A1.p3.1"},{"ref":"https://dx.doi.org/10.1145/3456877","title":"10.1145/3456877","url":"https://dx.doi.org/10.1145/3456877"}]}},{"record":"verification/termination","phrase":"verification/termination/fbee2d31d340","topic":"verification","part":0,"tone":0,"rows":[{"name":"Triple","line":504,"end_line":509,"module":"QuantumComputation.QuantumHoareLogic.WP","plain":"The expectation inequality in a Hoare triple","lines":[504,506],"exact_lines":true,"relation":"defines","note":"","annotation":"The right-hand side uses `(interp c).toStateFun Δ` as returned. If a program aborts on a branch of mass $1/2$ and preserves the other half, the output trace is $1/2$. Even the identity postcondition has expectation only $1/2$ on that output, so a precondition of expectation one cannot establish this triple.","proof_lines":[506,509],"fidelity":"same","fidelity_source":"ai"},{"name":"expect_top","line":81,"end_line":84,"module":"QuantumComputation.QuantumHoareLogic.Expectation","plain":"Total trace from the identity assertion","lines":[81,81],"exact_lines":true,"relation":"defines","note":"","annotation":"By `expect_top`, the expectation of $\\top$ on the output is its trace. A total triple with $\\top$ on both sides therefore requires the program to preserve the input trace. On a trace-one input, this gives probability-one termination.","proof_lines":[82,84]}],"role":"definition","lean":true,"name":"Triple","module":"QuantumComputation.QuantumHoareLogic.WP","lines":[504,506],"plain":"The expectation inequality in a Hoare triple","relation":"defines","anchor":"block-A1-block-4","at":"b88782-88820","origin":"ai","explanation":{"text":"","citations":[{"ref":"verification/termination/fbee2d31d340","title":"Passage in the authors’ arXiv text","url":"https://arxiv.org/html/2611.09822v3#A1.p3.1"},{"ref":"grover/find-any/55bd90d0c86f","title":"Finding one marked index","url":"?l=b128034-128062","supports":"The Find-Any postcondition asserts that the returned index belongs to the marked set $S$. If the initial expectation is one, the output has trace one and all its probability mass is on outcomes satisfying the postcondition."},{"ref":"https://dx.doi.org/10.1145/3456877","title":"10.1145/3456877","url":"https://dx.doi.org/10.1145/3456877"}]}},{"record":"verification/state-and-assertions","phrase":"verification/state-and-assertions/2c947697d84e","topic":"verification","part":0,"tone":0,"rows":[{"name":"CQState","line":55,"end_line":58,"module":"QuantumComputation.QuantumHoareLogic.CQState","plain":"Partial density operators indexed by classical stores","lines":[55,56],"exact_lines":true,"relation":"part","note":"","annotation":"The subtype in `CQState` requires the sum of the traces to exist and be at most one. For a positive integer $n$, at most $n$ stores can each have trace at least $1/n$. Every nonzero positive semidefinite operator has positive trace, so taking the union of these finite sets accounts for every store in the support.","proof_lines":[56,58]}],"role":"explanation","lean":true,"name":"CQState","module":"QuantumComputation.QuantumHoareLogic.CQState","lines":[55,56],"plain":"Partial density operators indexed by classical stores","relation":"part","anchor":"block-A1.SS0.SSS0.Px2-block-3","at":"b92173-92221","origin":"ai","explanation":{"text":"","citations":[{"ref":"verification/state-and-assertions/2c947697d84e","title":"Passage in the authors’ arXiv text","url":"https://arxiv.org/html/2611.09822v3#A1.SS0.SSS0.Px2.p1.3"},{"ref":"https://arxiv.org/html/2008.06812v2#S3.Thmtheorem1","title":"Definition 3.1, classical-quantum states","url":"https://arxiv.org/html/2008.06812v2#S3.Thmtheorem1"},{"ref":"https://arxiv.org/html/2008.06812v2#S3.Thmtheorem5","title":"Definition 3.5, classical-quantum assertions","url":"https://arxiv.org/html/2008.06812v2#S3.Thmtheorem5"},{"ref":"https://arxiv.org/html/2008.06812v2#S3.Thmtheorem7","title":"Definition 3.7, expectation of satisfaction","url":"https://arxiv.org/html/2008.06812v2#S3.Thmtheorem7"},{"ref":"https://dx.doi.org/10.1145/229542.229547","title":"10.1145/229542.229547","url":"https://dx.doi.org/10.1145/229542.229547"}]}},{"record":"verification/state-and-assertions","phrase":"verification/state-and-assertions/e310e3873df0","topic":"verification","part":0,"tone":0,"rows":[{"name":"CQAssertion","line":50,"end_line":50,"module":"QuantumComputation.QuantumHoareLogic.CQAssertion","plain":"An observable for each classical store","lines":[50,50],"exact_lines":false,"relation":"defines","note":"","annotation":"A store can test a quantum state with the projector $|+\\rangle\\langle+|$. Its expectation is one on $|+\\rangle$ and zero on $Z|+\\rangle$. Those states have identical computational-basis outcome probabilities."}],"role":"definition","lean":true,"name":"CQAssertion","module":"QuantumComputation.QuantumHoareLogic.CQAssertion","lines":[50,50],"plain":"An observable for each classical store","relation":"defines","anchor":"block-A1.SS0.SSS0.Px3-block-1","at":"b92659-92677","origin":"ai","explanation":{"text":"","citations":[{"ref":"verification/state-and-assertions/e310e3873df0","title":"Passage in the authors’ arXiv text","url":"https://arxiv.org/html/2611.09822v3#A1.SS0.SSS0.Px3.p1.1"},{"ref":"https://arxiv.org/html/2008.06812v2#S3.Thmtheorem1","title":"Definition 3.1, classical-quantum states","url":"https://arxiv.org/html/2008.06812v2#S3.Thmtheorem1"},{"ref":"https://arxiv.org/html/2008.06812v2#S3.Thmtheorem5","title":"Definition 3.5, classical-quantum assertions","url":"https://arxiv.org/html/2008.06812v2#S3.Thmtheorem5"},{"ref":"https://arxiv.org/html/2008.06812v2#S3.Thmtheorem7","title":"Definition 3.7, expectation of satisfaction","url":"https://arxiv.org/html/2008.06812v2#S3.Thmtheorem7"},{"ref":"https://dx.doi.org/10.1145/229542.229547","title":"10.1145/229542.229547","url":"https://dx.doi.org/10.1145/229542.229547"}]}},{"record":"verification/state-and-assertions","phrase":"verification/state-and-assertions/2a837af838dc","topic":"verification","part":0,"tone":0,"rows":[{"name":"ofReal_expect_eq_tsum_support_trace_mul","line":59,"end_line":68,"module":"QuantumComputation.QuantumHoareLogic.Expectation","plain":"Expectation as a sum of traces","lines":[59,60],"exact_lines":true,"relation":"part","note":"","annotation":"For a store with mass $p_\\sigma=\\operatorname{tr}(\\Delta(\\sigma))>0$, the contribution is $p_\\sigma$ times the expectation of $\\Theta(\\sigma)$ in the normalized state $\\Delta(\\sigma)/p_\\sigma$. Each contribution is bounded by $p_\\sigma$, and the $p_\\sigma$ sum to at most one. The theorem writes the same sum over the support of $\\Delta$.","proof_lines":[61,68],"fidelity":"same","fidelity_source":"ai"}],"role":"explanation","lean":true,"name":"ofReal_expect_eq_tsum_support_trace_mul","module":"QuantumComputation.QuantumHoareLogic.Expectation","lines":[59,60],"plain":"Expectation as a sum of traces","relation":"part","anchor":"block-A1.SS0.SSS0.Px4-block-3","at":"b97780-97826","origin":"ai","explanation":{"text":"","citations":[{"ref":"verification/state-and-assertions/2a837af838dc","title":"Passage in the authors’ arXiv text","url":"https://arxiv.org/html/2611.09822v3#A1.SS0.SSS0.Px4.p1.2"},{"ref":"p450/energy-window/0ddc38797538","title":"Capped energies and the 1 mHa RMS bound","url":"?l=b195237-195306","supports":"In a classical-quantum state recording measurement outcomes, each outcome probability is the trace of its partial density operator. The P450 error criterion weights the squared difference between the decoded estimate and the eigenvalue, each capped at $E_{\\mathrm{top}}$, by these probabilities."},{"ref":"https://arxiv.org/html/2008.06812v2#S3.Thmtheorem1","title":"Definition 3.1, classical-quantum states","url":"https://arxiv.org/html/2008.06812v2#S3.Thmtheorem1"},{"ref":"https://arxiv.org/html/2008.06812v2#S3.Thmtheorem5","title":"Definition 3.5, classical-quantum assertions","url":"https://arxiv.org/html/2008.06812v2#S3.Thmtheorem5"},{"ref":"https://arxiv.org/html/2008.06812v2#S3.Thmtheorem7","title":"Definition 3.7, expectation of satisfaction","url":"https://arxiv.org/html/2008.06812v2#S3.Thmtheorem7"},{"ref":"https://dx.doi.org/10.1145/229542.229547","title":"10.1145/229542.229547","url":"https://dx.doi.org/10.1145/229542.229547"}]}},{"record":"verification/hybrid-language","phrase":"verification/hybrid-language/952690bef57d","topic":"verification","part":0,"tone":0,"rows":[{"name":"QProg","line":41,"end_line":85,"module":"QuantumComputation.QuantumHoareLogic.Syntax","plain":"Commands of the classical-quantum while-language","lines":[41,85],"exact_lines":false,"relation":"defines","note":"","annotation":"To encode $x\\coloneqq x+1$, pass `assign` the expression $\\sigma\\mapsto\\sigma(x)+1$. A condition such as $x>0$ is a predicate on the store. `qIf` and `qWhile` both take predicates of that kind."}],"role":"definition","lean":true,"name":"QProg","module":"QuantumComputation.QuantumHoareLogic.Syntax","lines":[41,85],"plain":"Commands of the classical-quantum while-language","relation":"defines","anchor":"block-A1.SS0.SSS0.Px5-block-3","at":"b100260-100293","origin":"ai","explanation":{"text":"","citations":[{"ref":"verification/hybrid-language/952690bef57d","title":"Passage in the authors’ arXiv text","url":"https://arxiv.org/html/2611.09822v3#A1.SS0.SSS0.Px5.p2.1"},{"ref":"https://dx.doi.org/10.1145/3456877","title":"10.1145/3456877","url":"https://dx.doi.org/10.1145/3456877"}]}},{"record":"verification/backwards-reasoning","phrase":"verification/backwards-reasoning/dfda281dea74","topic":"verification","part":0,"tone":0,"rows":[{"name":"expect_wp","line":457,"end_line":468,"module":"QuantumComputation.QuantumHoareLogic.WP","plain":"Equal expectations before and after execution","lines":[457,458],"exact_lines":false,"relation":"defines","note":"","annotation":"By `expect_wp`, a valid precondition must have expectation at most that of `wp c Ψ` on every input. Test this inequality on a pure state at a single store. As the vector varies, it gives the Löwner inequality at that store, so the weakest precondition is the largest valid assertion in that order.","proof_lines":[459,468]}],"role":"definition","lean":true,"name":"expect_wp","module":"QuantumComputation.QuantumHoareLogic.WP","lines":[457,458],"plain":"Equal expectations before and after execution","relation":"defines","anchor":"block-A1.SS0.SSS0.Px6-block-1","at":"b101770-101832","origin":"ai","explanation":{"text":"","citations":[{"ref":"verification/backwards-reasoning/dfda281dea74","title":"Passage in the authors’ arXiv text","url":"https://arxiv.org/html/2611.09822v3#A1.SS0.SSS0.Px6.p1.1"},{"ref":"https://arxiv.org/html/2008.06812v2#S4.T3","title":"Table 3, weakest precondition rules","url":"https://arxiv.org/html/2008.06812v2#S4.T3"},{"ref":"https://arxiv.org/html/2008.06812v2#S4.I10.i2","title":"Lemma 4.14(2), weakest precondition duality","url":"https://arxiv.org/html/2008.06812v2#S4.I10.i2"}]}},{"record":"verification/backwards-reasoning","phrase":"verification/backwards-reasoning/e3aa24f7da3d","topic":"verification","part":0,"tone":0,"rows":[{"name":"expect_wp","line":457,"end_line":468,"module":"QuantumComputation.QuantumHoareLogic.WP","plain":"Equal expectations before and after execution","lines":[457,458],"exact_lines":true,"relation":"states","note":"","annotation":"For an outcome $o$, the postcondition uses $\\Psi(\\sigma[x\\mapsto o])$ on $M_o\\Delta(\\sigma)M_o^\\dagger$. Cyclicity of trace puts the same expectation on the input state by moving the measurement operators to the observable. The measurement rule in Figure S3 sums these observables over $o$.","proof_lines":[459,468],"fidelity":"same","fidelity_source":"ai","annotation_references":[{"start":248,"end":257,"key":"figure:s3"}]}],"role":"statement","lean":true,"name":"expect_wp","module":"QuantumComputation.QuantumHoareLogic.WP","lines":[457,458],"plain":"Equal expectations before and after execution","relation":"states","anchor":"block-A1.SS0.SSS0.Px6-block-8","at":"b103852-103877","origin":"ai","explanation":{"text":"","citations":[{"ref":"verification/backwards-reasoning/e3aa24f7da3d","title":"Passage in the authors’ arXiv text","url":"https://arxiv.org/html/2611.09822v3#A1.SS0.SSS0.Px6.p4.3"},{"ref":"https://arxiv.org/html/2008.06812v2#S4.T3","title":"Table 3, weakest precondition rules","url":"https://arxiv.org/html/2008.06812v2#S4.T3"},{"ref":"https://arxiv.org/html/2008.06812v2#S4.I10.i2","title":"Lemma 4.14(2), weakest precondition duality","url":"https://arxiv.org/html/2008.06812v2#S4.I10.i2"}]}},{"record":"verification/expected-resources","phrase":"verification/expected-resources/e777255b5772","topic":"verification","part":0,"tone":0,"rows":[{"name":"ResourceCounting.expectedCost","line":142,"end_line":157,"module":"QuantumComputation.QuantumHoareLogic.ResourceCounting","plain":"Resource charges weighted by branch probability","lines":[150,157],"exact_lines":true,"relation":"part","note":"","annotation":"The `qIf` case adds the costs on the two restricted states. If only one branch runs four $T$ gates and that branch has mass $1/2$, the conditional contributes two gates in expectation with unit $T$ weights. For a loop, the `qWhile` case takes the supremum over finite unrolling costs.","proof_lines":[143,157]}],"role":"explanation","lean":true,"name":"ResourceCounting.expectedCost","module":"QuantumComputation.QuantumHoareLogic.ResourceCounting","lines":[150,157],"plain":"Resource charges weighted by branch probability","relation":"part","anchor":"block-A1.SS0.SSS0.Px7-block-1","at":"b104660-104752","origin":"ai","explanation":{"text":"","citations":[{"ref":"verification/expected-resources/e777255b5772","title":"Passage in the authors’ arXiv text","url":"https://arxiv.org/html/2611.09822v3#A1.SS0.SSS0.Px7.p1.1"},{"ref":"https://github.com/google-deepmind/formal-quantum-computation","title":"https://github.com/google-deepmind/formal-quantum-computation","url":"https://github.com/google-deepmind/formal-quantum-computation"}]}},{"record":"verification/expected-resources","phrase":"verification/expected-resources/2d887f0aa383","topic":"verification","part":0,"tone":0,"rows":[{"name":"ResourceCounting.expectedCost","line":142,"end_line":157,"module":"QuantumComputation.QuantumHoareLogic.ResourceCounting","plain":"Resource charges weighted by branch probability","lines":[145,149],"exact_lines":true,"relation":"part","note":"","annotation":"The `qAssign` case multiplies `model.unitaryCost unitary` by `state.trace`, the mass the paper calls `stateMass`. In a search that always makes one oracle call and makes a second only on an outcome of probability $1/4$, the two calls contribute $1$ and $1/4$ rounds respectively.","proof_lines":[143,157],"fidelity":"same","fidelity_source":"ai"}],"role":"explanation","lean":true,"name":"ResourceCounting.expectedCost","module":"QuantumComputation.QuantumHoareLogic.ResourceCounting","lines":[145,149],"plain":"Resource charges weighted by branch probability","relation":"part","anchor":"block-A1.SS0.SSS0.Px7-block-5","at":"b107629-107691","origin":"ai","explanation":{"text":"","citations":[{"ref":"verification/expected-resources/2d887f0aa383","title":"Passage in the authors’ arXiv text","url":"https://arxiv.org/html/2611.09822v3#A1.SS0.SSS0.Px7.p3.3"},{"ref":"grover/parallel-model/6f0a68187927","title":"Parallel queries and query rounds","url":"?l=b129110-129186","supports":"For a fixed marked set $S$, each oracle round contributes the trace of the state reaching that round to the expected cost. The average over marked sets uses these expected costs."},{"ref":"https://github.com/google-deepmind/formal-quantum-computation","title":"https://github.com/google-deepmind/formal-quantum-computation","url":"https://github.com/google-deepmind/formal-quantum-computation"}]}},{"record":"verification/expected-resources","phrase":"verification/expected-resources/3d8260596da2","topic":"verification","part":0,"tone":0,"rows":[{"name":"ResourceCounting.CostBound.qWhile","line":118,"end_line":125,"module":"QuantumComputation.QuantumHoareLogic.ResourceCounting.Loops","plain":"Expected iteration count times the body cost bound","lines":[118,122],"exact_lines":true,"relation":"states","note":"","annotation":"`activeIter` at index $j$ is the state entering iteration $j+1$. Its trace is the mass charged for that iteration. A body cost bound $B$ gives a charge of at most $B$ times that trace. The bound `iterations` is measured per unit of input trace, so a loop starting at trace $t$ costs at most $t\\,\\mathtt{iterations}\\,B$.","proof_lines":[123,125],"fidelity":"same","fidelity_source":"ai"}],"role":"statement","lean":true,"name":"ResourceCounting.CostBound.qWhile","module":"QuantumComputation.QuantumHoareLogic.ResourceCounting.Loops","lines":[118,122],"plain":"Expected iteration count times the body cost bound","relation":"states","anchor":"block-A1.SS0.SSS0.Px7-block-5","at":"b107876-107934","origin":"ai","explanation":{"text":"","citations":[{"ref":"verification/expected-resources/3d8260596da2","title":"Passage in the authors’ arXiv text","url":"https://arxiv.org/html/2611.09822v3#A1.SS0.SSS0.Px7.p3.3"},{"ref":"https://github.com/google-deepmind/formal-quantum-computation","title":"https://github.com/google-deepmind/formal-quantum-computation","url":"https://github.com/google-deepmind/formal-quantum-computation"}]}},{"record":"verification/frozen-specification","phrase":"verification/frozen-specification/0cbed8030d9d","topic":"verification","part":0,"tone":0,"rows":[{"name":"QuantumComputationSpecs.Primitives.Arcsin:QuantumComputation.Specs.arcsin_k25_const_cost","line":162,"end_line":163,"module":"QuantumComputationSpecs.Primitives.Arcsin","plain":"Frozen statement of the 25-bit arcsin cost theorem","lines":[162,163],"exact_lines":false,"relation":"part","note":"","annotation":"The challenge leaves a typed proof placeholder after `arcsin_k25_const_cost`. Its statement already fixes the 25-bit instance and the requirement `SatisfiesArcsinSpacetimeBound`. The configuration separately names `arcsinAncillas`, `arcsinProgram`, and `arcsinK25ConstCost` as definitions whose bodies the candidate supplies."}],"role":"explanation","lean":true,"name":"QuantumComputationSpecs.Primitives.Arcsin:QuantumComputation.Specs.arcsin_k25_const_cost","module":"QuantumComputationSpecs.Primitives.Arcsin","lines":[162,163],"plain":"Frozen statement of the 25-bit arcsin cost theorem","relation":"part","anchor":"block-A2-block-1","at":"b111184-111239","origin":"ai","explanation":{"text":"","citations":[{"ref":"verification/frozen-specification/0cbed8030d9d","title":"Passage in the authors’ arXiv text","url":"https://arxiv.org/html/2611.09822v3#A2.p1.1"},{"ref":"grover/variant-specific-check/41861d37ce35","title":"Separate Find-Any and Find-All checks","url":"?l=b112000-112100","supports":"The Grover challenge specifies the theorem types for Find-Any and Find-All. Each Comparator configuration lists the theorems to check and the definitions whose bodies come from the candidate."},{"ref":"https://github.com/leanprover/comparator","title":"https://github.com/leanprover/comparator","url":"https://github.com/leanprover/comparator"}]}},{"record":"grover/variant-specific-check","phrase":"grover/variant-specific-check/41861d37ce35","topic":"grover","part":0,"tone":1,"rows":[{"name":"QuantumComputation.Specs.groverFindAny_correctness","line":160,"end_line":166,"module":"QuantumComputationDiscoveries.Algorithms.GroverFindAny","plain":"Find-Any correctness theorem","lines":[160,165],"exact_lines":false,"relation":"part","note":"","annotation":"The frozen statement compiles the circuit chosen from $n,m,k$ with the standard marking oracle for $S$. This is what makes the theorem a black-box search guarantee for every marked set of the given size.","proof_lines":[166,166]},{"name":"QuantumComputation.Specs.groverFindAll_correctness","line":218,"end_line":224,"module":"QuantumComputationDiscoveries.Algorithms.GroverFindAll","plain":"Find-All correctness theorem","lines":[218,223],"exact_lines":false,"relation":"part","note":"","annotation":"The challenge fixes the decoder in `decodeTargets n k (σ res) = S`. A candidate may choose its circuit and workspace, but the final output must encode all of $S$ under that decoder.","proof_lines":[224,224]},{"name":"QuantumComputation.Specs.groverFindAny_rel_cost","line":175,"end_line":181,"module":"QuantumComputationDiscoveries.Algorithms.GroverFindAny","plain":"Find-Any round bound for large domains","lines":[175,180],"exact_lines":false,"relation":"part","note":"","annotation":"The challenge fixes the cost predicate and the Find-Any reference scale. A candidate may submit a smaller value of `groverFindAnyRelCost` if its proof establishes the tighter bound for all sufficiently large $n$.","proof_lines":[181,181]},{"name":"QuantumComputation.Specs.groverFindAll_rel_cost","line":233,"end_line":239,"module":"QuantumComputationDiscoveries.Algorithms.GroverFindAll","plain":"Find-All round bound for large domains","lines":[233,238],"exact_lines":false,"relation":"part","note":"","annotation":"The cost and correctness statements use the same Find-All program, supplied with the oracle for each $S$. Cost takes a uniform mean of the expected rounds at each marked set. Random relabeling can turn that mean into a bound uniform over marked sets for a symmetrized program.","proof_lines":[239,239]}],"role":"mention","lean":true,"name":"QuantumComputation.Specs.groverFindAny_correctness","module":"QuantumComputationDiscoveries.Algorithms.GroverFindAny","lines":[160,165],"plain":"Find-Any correctness theorem","relation":"part","anchor":"block-A2-block-2","at":"b112000-112100","origin":"ai","explanation":{"text":"","citations":[{"ref":"grover/variant-specific-check/41861d37ce35","title":"Passage in the authors’ arXiv text","url":"https://arxiv.org/html/2611.09822v3#A2.p2.1"},{"ref":"verification/frozen-specification/0cbed8030d9d","title":"Lean Comparator and the candidate definition holes","url":"?l=b111184-111239","supports":"The Grover challenge specifies the theorem types for Find-Any and Find-All. Each Comparator configuration lists the theorems to check and the definitions whose bodies come from the candidate."}]}},{"record":"verification/frozen-specification","phrase":"verification/frozen-specification/41861d37ce35","topic":"verification","part":0,"tone":0,"rows":[{"name":"QuantumComputationSpecs.Primitives.Arcsin:QuantumComputation.Specs.arcsin_k25_const_cost","line":162,"end_line":163,"module":"QuantumComputationSpecs.Primitives.Arcsin","plain":"Frozen statement of the 25-bit arcsin cost theorem","lines":[162,163],"exact_lines":false,"relation":"part","note":"","annotation":"`ArcsinK25ConstCost.json` names both correctness and cost as targets. It allows the candidate to supply `arcsinProgram`, `arcsinAncillas`, and `arcsinK25ConstCost`. Both target statements use the same `arcsinProgram` definition, so the cost bound must hold for the circuit used in the correctness theorem."}],"role":"explanation","lean":true,"name":"QuantumComputationSpecs.Primitives.Arcsin:QuantumComputation.Specs.arcsin_k25_const_cost","module":"QuantumComputationSpecs.Primitives.Arcsin","lines":[162,163],"plain":"Frozen statement of the 25-bit arcsin cost theorem","relation":"part","anchor":"block-A2-block-2","at":"b112000-112100","origin":"ai","explanation":{"text":"","citations":[{"ref":"verification/frozen-specification/41861d37ce35","title":"Passage in the authors’ arXiv text","url":"https://arxiv.org/html/2611.09822v3#A2.p2.1"},{"ref":"https://github.com/leanprover/comparator","title":"https://github.com/leanprover/comparator","url":"https://github.com/leanprover/comparator"}]}},{"record":"verification/frozen-specification","phrase":"verification/frozen-specification/7383e5506cbf","topic":"verification","part":0,"tone":0,"rows":[{"name":"QuantumComputationDiscoveries.Primitives.Arcsin:QuantumComputation.Specs.arcsin_k25_const_cost","line":482,"end_line":504,"module":"QuantumComputationDiscoveries.Primitives.Arcsin","plain":"Spacetime bound for the 25-bit arcsin circuit","lines":[482,504],"exact_lines":true,"relation":"part","note":"","annotation":"The proof rewrites the program to `k25DynCircuit` and the ancilla count to 50. `count_TOFF_k25DynCircuit` supplies the zero-Toffoli conjunct. `count_T_k25DynCircuit` bounds the $T$ count by $3{,}698$, and `hmul` multiplies that bound by $2\\cdot25+50$ to give $369{,}800$.","proof_lines":[484,504]},{"name":"QuantumComputation.Specs.SatisfiesArcsinSpacetimeBound","line":472,"end_line":477,"module":"QuantumComputationDiscoveries.Primitives.Arcsin","plain":"Zero primitive Toffoli count and a spacetime bound","lines":[472,477],"exact_lines":true,"relation":"part","note":"","annotation":"For every pair of register arguments of the specified widths, `SatisfiesArcsinSpacetimeBound` requires zero primitive Toffoli gates and bounds the declared width times the primitive $T$ count. The first conjunct prevents a primitive Toffoli from going uncharged in the $T$-only metric. The register disjointness hypothesis belongs to the correctness theorem.","proof_lines":[473,477]},{"name":"QuantumComputation.Specs.arcsinK25ConstCost","line":480,"end_line":480,"module":"QuantumComputationDiscoveries.Primitives.Arcsin","plain":"Numerical bound of 369,800 for the 25-bit circuit","lines":[480,480],"exact_lines":true,"relation":"part","note":"","annotation":"`arcsinK25ConstCost` is the candidate’s numerical bound, $369{,}800$. The fixed predicate uses it as the right-hand side of a cost inequality. A candidate that supplies a smaller number must prove the same inequality with the smaller bound."}],"role":"derivation","lean":true,"name":"QuantumComputationDiscoveries.Primitives.Arcsin:QuantumComputation.Specs.arcsin_k25_const_cost","module":"QuantumComputationDiscoveries.Primitives.Arcsin","lines":[482,504],"plain":"Spacetime bound for the 25-bit arcsin circuit","relation":"part","anchor":"block-A2-block-2","at":"b112257-112324","origin":"ai","explanation":{"text":"","citations":[{"ref":"verification/frozen-specification/7383e5506cbf","title":"Passage in the authors’ arXiv text","url":"https://arxiv.org/html/2611.09822v3#A2.p2.1"},{"ref":"https://github.com/leanprover/comparator","title":"https://github.com/leanprover/comparator","url":"https://github.com/leanprover/comparator"}]}},{"record":"verification/logical-spacetime","phrase":"verification/logical-spacetime/5395d1fba769","topic":"verification","part":0,"tone":0,"rows":[{"name":"QuantumComputation.Specs.arcsinSpacetime","line":457,"end_line":460,"module":"QuantumComputationDiscoveries.Primitives.Arcsin","plain":"T-gate count times data and ancilla width","lines":[457,460],"exact_lines":true,"relation":"defines","note":"","annotation":"In `arcsinSpacetime`, the width factor $2k+m$ counts the two data registers and the declared clean workspace once. In Figure S11(a) the circuit reuses wires cleared from $A$ to compute $t^2$. Those wires contribute once to the width, and the $T$ gates for both uses contribute to the circuit count.","proof_lines":[460,460],"annotation_references":[{"start":118,"end":131,"key":"figure:s11"}]}],"role":"definition","lean":true,"name":"QuantumComputation.Specs.arcsinSpacetime","module":"QuantumComputationDiscoveries.Primitives.Arcsin","lines":[457,460],"plain":"T-gate count times data and ancilla width","relation":"defines","anchor":"block-A4.SS1-block-1","at":"b117539-117573","origin":"ai","explanation":{"text":"","citations":[{"ref":"verification/logical-spacetime/5395d1fba769","title":"Passage in the authors’ arXiv text","url":"https://arxiv.org/html/2611.09822v3#A4.SS1.p1.1"},{"ref":"arcsin/benchmark-cost/c73ca9660617","title":"Spacetime bound of 369,800 on 100 qubits","url":"?l=b153198-153245","supports":"The benchmark uses 25 input qubits, 25 output qubits and 50 clean ancillas. The logical spacetime volume is their total width multiplied by the compiled circuit’s $T$-gate count."},{"ref":"fusion/repeats/f9e2a4220d8a","title":"50 evolutions at each of ten times","url":"?l=b165528-165618","supports":"Multiply each horizon’s $T$-gate count by its 50 runs, sum over the ten horizons, and multiply by the common logical width, including workspace."},{"ref":"https://dx.doi.org/10.22331/q-2018-06-18-74","title":"10.22331/q-2018-06-18-74","url":"https://dx.doi.org/10.22331/q-2018-06-18-74"},{"ref":"https://dx.doi.org/10.22331/q-2019-03-05-128","title":"10.22331/q-2019-03-05-128","url":"https://dx.doi.org/10.22331/q-2019-03-05-128"}]}},{"record":"grover/parallel-model","phrase":"grover/parallel-model/ca3324ee21b2","topic":"grover","part":0,"tone":1,"rows":[{"name":"QuantumComputationSpecs.Algorithms.Grover:QuantumComputation.Specs.groverParallelMarkingOracle","line":78,"end_line":82,"module":"QuantumComputationSpecs.Algorithms.Grover","plain":"Parallel marking oracle in the challenge","lines":[78,79],"exact_lines":false,"relation":"part","note":"","annotation":"An oracle call acts within its $m$ chosen query registers. Other unitaries can act across the shared workspace. In Find-Any, for example, the diffusion uses all $mn$ address qubits together, while the same $m$ target qubits are reused for the weak checks and final membership readout.","proof_lines":[80,82]}],"role":"mention","lean":true,"name":"QuantumComputationSpecs.Algorithms.Grover:QuantumComputation.Specs.groverParallelMarkingOracle","module":"QuantumComputationSpecs.Algorithms.Grover","lines":[78,79],"plain":"Parallel marking oracle in the challenge","relation":"part","anchor":"block-A5.SS1-block-1","at":"b127033-127054","origin":"ai","explanation":{"text":"","citations":[{"ref":"grover/parallel-model/ca3324ee21b2","title":"Passage in the authors’ arXiv text","url":"https://arxiv.org/html/2611.09822v3#A5.F6"},{"ref":"https://dx.doi.org/10.1103/PhysRevA.60.2746","title":"10.1103/PhysRevA.60.2746","url":"https://dx.doi.org/10.1103/PhysRevA.60.2746"},{"ref":"https://dx.doi.org/10.1007/s00453-016-0206-z","title":"10.1007/s00453-016-0206-z","url":"https://dx.doi.org/10.1007/s00453-016-0206-z"}]}},{"record":"grover/grid","phrase":"grover/grid/efca025d9738","topic":"grover","part":0,"tone":1,"rows":[{"name":"QuantumComputation.Specs.GroverSolution.gridCells","line":114,"end_line":115,"module":"QuantumComputationDiscoveries.Algorithms.Grover.Solution.Defs","plain":"Grid test for two parameters","lines":[114,115],"exact_lines":true,"relation":"defines","note":"","annotation":"Each coordinate is chosen independently from eleven powers of two. This gives 21 settings with $m=1$ or $k=1$ and 100 settings with both coordinates at least $2$.","proof_lines":[115,115],"fidelity":"same","fidelity_source":"ai"},{"name":"QuantumComputation.Specs.GroverFindAll.gridElem_iff","line":103,"end_line":120,"module":"QuantumComputationDiscoveries.Algorithms.Grover.Solution.GridRouter","plain":"Grid test for one parameter","lines":[103,104],"exact_lines":false,"relation":"defines","note":"","annotation":"The challenge asks for at least one selected setting and grid membership of every selected setting. Here `gridElem_iff` identifies each coordinate test exactly, so the submitted Find-All selector covers all 121 pairs.","proof_lines":[105,120]}],"role":"definition","lean":true,"name":"QuantumComputation.Specs.GroverSolution.gridCells","module":"QuantumComputationDiscoveries.Algorithms.Grover.Solution.Defs","lines":[114,115],"plain":"Grid test for two parameters","relation":"defines","anchor":"block-A5.SS1-block-2","at":"b127964-127980","origin":"ai","explanation":{"text":"","citations":[{"ref":"grover/grid/efca025d9738","title":"Passage in the authors’ arXiv text","url":"https://arxiv.org/html/2611.09822v3#A5.SS1.p1.1"}]}},{"record":"grover/find-any","phrase":"grover/find-any/55bd90d0c86f","topic":"grover","part":0,"tone":1,"rows":[{"name":"QuantumComputation.Specs.groverFindAny_correctness","line":160,"end_line":166,"module":"QuantumComputationDiscoveries.Algorithms.GroverFindAny","plain":"Find-Any correctness theorem","lines":[160,165],"exact_lines":true,"relation":"defines","note":"","annotation":"The existential quantifier is evaluated on each final store. For $S=\\{1,6\\}$, any mix of outputs $1$ and $6$ satisfies the postcondition, provided their probabilities sum to one.","proof_lines":[166,166]},{"name":"QuantumComputation.Specs.groverTargetSets","line":86,"end_line":87,"module":"QuantumComputationDiscoveries.Algorithms.GroverFindAny","plain":"All marked sets of size k","lines":[86,86],"exact_lines":false,"relation":"defines","note":"","annotation":"The hypothesis includes both sets concentrated in a small part of the domain and sets spread throughout it. Find-Any works with ordered tuples sampled from the whole domain. Their odd-parity fraction depends on $S$ only through its cardinality $k$.","proof_lines":[87,87]},{"name":"QuantumComputation.Specs.GroverSolution.FindAny.correctness","line":1240,"end_line":1364,"module":"QuantumComputationDiscoveries.Algorithms.Grover.Solution.FindAny","plain":"Find-Any correctness for any result variable","lines":[1240,1245],"exact_lines":false,"relation":"defines","note":"","annotation":"`FindAny.correctness` works for any supplied result variable. When every address is marked, its circuit returns $0$. In the small-domain branch with $0<k<N$, fresh trials accept odd hit parity, which has positive probability. This proves that a marked address is eventually returned with probability one before the large-domain cost estimate applies.","proof_lines":[1246,1364]}],"role":"definition","lean":true,"name":"QuantumComputation.Specs.groverFindAny_correctness","module":"QuantumComputationDiscoveries.Algorithms.GroverFindAny","lines":[160,165],"plain":"Find-Any correctness theorem","relation":"defines","anchor":"block-A5.SS1-block-2","at":"b128034-128062","origin":"ai","explanation":{"text":"","citations":[{"ref":"grover/find-any/55bd90d0c86f","title":"Passage in the authors’ arXiv text","url":"https://arxiv.org/html/2611.09822v3#A5.SS1.p1.1"},{"ref":"verification/termination/fbee2d31d340","title":"Total Hoare triples and probability-one termination","url":"?l=b88782-88820","supports":"The Find-Any postcondition asserts that the returned index belongs to the marked set $S$. If the initial expectation is one, the output has trace one and all its probability mass is on outcomes satisfying the postcondition."}]}},{"record":"grover/find-all","phrase":"grover/find-all/afe1a150f25d","topic":"grover","part":0,"tone":1,"rows":[{"name":"QuantumComputation.Specs.groverFindAll_correctness","line":218,"end_line":224,"module":"QuantumComputationDiscoveries.Algorithms.GroverFindAll","plain":"Find-All correctness theorem","lines":[218,223],"exact_lines":true,"relation":"defines","note":"","annotation":"The decoder reads $k$ fields. Since $S$ also has $k$ elements, equality with $S$ forces the fields to contain $k$ distinct marked addresses. Returning an address twice would leave another missing.","proof_lines":[224,224],"fidelity":"same","fidelity_source":"ai"},{"name":"QuantumComputation.Specs.decodeTargets","line":91,"end_line":93,"module":"QuantumComputationDiscoveries.Algorithms.GroverFindAll","plain":"Decoding the marked set","lines":[91,93],"exact_lines":true,"relation":"defines","note":"","annotation":"The decoder takes the lowest $k$ base-$2^n$ digits of `z.toNat` and forms their finite set. At $n=3$ and $k=2$, the outputs $49=6\\cdot8+1$ and $14=1\\cdot8+6$ both decode to $\\{1,6\\}$.","proof_lines":[92,93]}],"role":"definition","lean":true,"name":"QuantumComputation.Specs.groverFindAll_correctness","module":"QuantumComputationDiscoveries.Algorithms.GroverFindAll","lines":[218,223],"plain":"Find-All correctness theorem","relation":"defines","anchor":"block-A5.SS1-block-2","at":"b128120-128154","origin":"ai","explanation":{"text":"","citations":[{"ref":"grover/find-all/afe1a150f25d","title":"Passage in the authors’ arXiv text","url":"https://arxiv.org/html/2611.09822v3#A5.SS1.p1.1"}]}},{"record":"grover/find-all","phrase":"grover/find-all/560dabc764a6","topic":"grover","part":0,"tone":1,"rows":[{"name":"QuantumComputation.Specs.groverFindAll_correctness","line":218,"end_line":224,"module":"QuantumComputationDiscoveries.Algorithms.GroverFindAll","plain":"Find-All correctness theorem","lines":[221,223],"exact_lines":true,"relation":"part","note":"","annotation":"On a trace-one input the initial expectation is one. The final expectation is the probability that the program terminates with a correctly decoded set. Thus a program with a positive probability of searching forever fails the triple even if every set it does return is correct.","proof_lines":[224,224],"fidelity":"same","fidelity_source":"ai"},{"name":"QuantumComputation.Specs.groverFindAllProgram","line":211,"end_line":213,"module":"QuantumComputationDiscoveries.Algorithms.GroverFindAll","plain":"Find-All program and reset","lines":[211,213],"exact_lines":true,"relation":"part","note":"","annotation":"The initial `qset` resets the workspace, including the archive. The resulting program includes measurements, retries and any remaining search. Its correctness guarantee holds at every admissible domain size.","proof_lines":[213,213]}],"role":"explanation","lean":true,"name":"QuantumComputation.Specs.groverFindAll_correctness","module":"QuantumComputationDiscoveries.Algorithms.GroverFindAll","lines":[221,223],"plain":"Find-All correctness theorem","relation":"part","anchor":"block-A5.SS1-block-2","at":"b128156-128218","origin":"ai","explanation":{"text":"","citations":[{"ref":"grover/find-all/560dabc764a6","title":"Passage in the authors’ arXiv text","url":"https://arxiv.org/html/2611.09822v3#A5.SS1.p1.1"}]}},{"record":"grover/parallel-model","phrase":"grover/parallel-model/80351fc13617","topic":"grover","part":0,"tone":1,"rows":[{"name":"QuantumComputationSpecs.Algorithms.Grover:QuantumComputation.Specs.groverParallelMarkingOracle","line":78,"end_line":82,"module":"QuantumComputationSpecs.Algorithms.Grover","plain":"Parallel marking oracle in the challenge","lines":[78,79],"exact_lines":false,"relation":"defines","note":"","annotation":"For a single slot the basis index is $2x+b$, where $b$ is the low-order target bit. At $n=3$, marking address $5$ exchanges the basis indices $10$ and $11$. The parallel oracle embeds this permutation into every block starting at wire $i(n+1)$.","proof_lines":[80,82]}],"role":"definition","lean":true,"name":"QuantumComputationSpecs.Algorithms.Grover:QuantumComputation.Specs.groverParallelMarkingOracle","module":"QuantumComputationSpecs.Algorithms.Grover","lines":[78,79],"plain":"Parallel marking oracle in the challenge","relation":"defines","anchor":"block-A5.SS1-block-4","at":"b128664-128733","origin":"ai","explanation":{"text":"","citations":[{"ref":"grover/parallel-model/80351fc13617","title":"Passage in the authors’ arXiv text","url":"https://arxiv.org/html/2611.09822v3#A5.SS1.p1.2"},{"ref":"https://dx.doi.org/10.1103/PhysRevA.60.2746","title":"10.1103/PhysRevA.60.2746","url":"https://dx.doi.org/10.1103/PhysRevA.60.2746"},{"ref":"https://dx.doi.org/10.1007/s00453-016-0206-z","title":"10.1007/s00453-016-0206-z","url":"https://dx.doi.org/10.1007/s00453-016-0206-z"}]}},{"record":"grover/parallel-model","phrase":"grover/parallel-model/6f0a68187927","topic":"grover","part":0,"tone":1,"rows":[{"name":"ResourceCounting.expectedCost","line":142,"end_line":157,"module":"QuantumComputation.QuantumHoareLogic.ResourceCounting","plain":"Cost weighted by branch probability","lines":[149,157],"exact_lines":true,"relation":"defines","note":"","annotation":"If one query is followed by a second on an outcome of probability $1/4$, the expected cost is $1+1/4$ rounds. In `expectedCost`, the state passed to the second query already has trace $1/4$, so the `.qAssign` case multiplies its unit cost by $1/4$.","proof_lines":[143,157]},{"name":"ResourceCounting.whileRecCost_succ","line":130,"end_line":135,"module":"QuantumComputation.QuantumHoareLogic.ResourceCounting","plain":"Expected cost of a guarded loop","lines":[130,135],"exact_lines":true,"relation":"defines","note":"","annotation":"For a loop with one query per iteration, let $T$ be the number of iterations. The guard reaches query $r+1$ with probability $\\Pr(T>r)$. The first $L$ unrollings therefore cost $\\sum_{r=0}^{L-1}\\Pr(T>r)$ in expectation. Taking the supremum counts the whole loop, including a query that succeeds.","fidelity":"same","fidelity_source":"ai"},{"name":"ResourceCounting.CostModel.ofEmbeddedOracle","line":102,"end_line":109,"module":"QuantumComputation.QuantumHoareLogic.ResourceCounting","plain":"Charging one round per embedded oracle","lines":[102,107],"exact_lines":true,"relation":"defines","note":"","annotation":"An embedded marking oracle is a real permutation matrix. To apply a free real unitary $U$ without coinciding with that matrix, the circuit uses the globally phased unitary $iU$ in `phaseTag`. Both give the same evolution of density matrices, and `ofEmbeddedOracle` assigns the phased matrix cost zero.","proof_lines":[104,109]}],"role":"definition","lean":true,"name":"ResourceCounting.expectedCost","module":"QuantumComputation.QuantumHoareLogic.ResourceCounting","lines":[149,157],"plain":"Cost weighted by branch probability","relation":"defines","anchor":"block-A5.SS1-block-6","at":"b129110-129186","origin":"ai","explanation":{"text":"","citations":[{"ref":"grover/parallel-model/6f0a68187927","title":"Passage in the authors’ arXiv text","url":"https://arxiv.org/html/2611.09822v3#A5.SS1.p1.3"},{"ref":"verification/expected-resources/2d887f0aa383","title":"Expected cost along branches and loops","url":"?l=b107629-107691","supports":"For a fixed marked set $S$, each oracle round contributes the trace of the state reaching that round to the expected cost. The average over marked sets uses these expected costs."},{"ref":"https://dx.doi.org/10.1103/PhysRevA.60.2746","title":"10.1103/PhysRevA.60.2746","url":"https://dx.doi.org/10.1103/PhysRevA.60.2746"},{"ref":"https://dx.doi.org/10.1007/s00453-016-0206-z","title":"10.1007/s00453-016-0206-z","url":"https://dx.doi.org/10.1007/s00453-016-0206-z"}]}},{"record":"grover/parallel-model","phrase":"grover/parallel-model/f5bb348ec99e","topic":"grover","part":0,"tone":1,"rows":[{"name":"QuantumComputationSpecs.Algorithms.Grover:QuantumComputation.Specs.groverParallelMarkingOracle","line":78,"end_line":82,"module":"QuantumComputationSpecs.Algorithms.Grover","plain":"Parallel marking oracle in the challenge","lines":[78,79],"exact_lines":false,"relation":"part","note":"","annotation":"A slot can be disabled without knowing any unmarked address. Since $X|+\\rangle=|+\\rangle$, the oracle acts as the identity on that slot whenever its target qubit is prepared in $|+\\rangle$. This also works when its address is entangled with the rest of the workspace.","proof_lines":[80,82]}],"role":"explanation","lean":true,"name":"QuantumComputationSpecs.Algorithms.Grover:QuantumComputation.Specs.groverParallelMarkingOracle","module":"QuantumComputationSpecs.Algorithms.Grover","lines":[78,79],"plain":"Parallel marking oracle in the challenge","relation":"part","anchor":"block-A5.SS1-block-6","at":"b129234-129277","origin":"ai","explanation":{"text":"","citations":[{"ref":"grover/parallel-model/f5bb348ec99e","title":"Passage in the authors’ arXiv text","url":"https://arxiv.org/html/2611.09822v3#A5.SS1.p1.3"},{"ref":"https://dx.doi.org/10.1103/PhysRevA.60.2746","title":"10.1103/PhysRevA.60.2746","url":"https://dx.doi.org/10.1103/PhysRevA.60.2746"},{"ref":"https://dx.doi.org/10.1007/s00453-016-0206-z","title":"10.1007/s00453-016-0206-z","url":"https://dx.doi.org/10.1007/s00453-016-0206-z"}]}},{"record":"grover/find-any-mechanism","phrase":"grover/find-any-mechanism/a51ee2cfd793","topic":"grover","part":0,"tone":1,"rows":[{"name":"QuantumComputation.Specs.GroverSolution.card_oddSet_div_two_pow","line":315,"end_line":348,"module":"QuantumComputationDiscoveries.Algorithms.Grover.Solution.OddParityBridge","plain":"Fraction of ordered tuples with odd parity","lines":[315,316],"exact_lines":false,"relation":"part","note":"","annotation":"The theorem counts the tuples used for the parallel click subspace. Hits are counted by position. If $x$ is marked, the tuple $(x,x)$ has two hits and even parity. An odd-parity tuple always contains at least one marked address.","proof_lines":[317,348]},{"name":"QuantumComputation.Specs.GroverSolution.FindAny.loopState_norms","line":670,"end_line":928,"module":"QuantumComputationDiscoveries.Algorithms.Grover.Solution.FindAny","plain":"Probabilities of repeated misses and a click","lines":[670,675],"exact_lines":false,"relation":"part","note":"","annotation":"`pinHitOp` vanishes outside `oddSet`, so the sum in `loopState_norms` accounts for the entire click probability. A final marking query reads the individual membership flags and supplies the address of a marked entry.","proof_lines":[676,928]}],"role":"explanation","lean":true,"name":"QuantumComputation.Specs.GroverSolution.card_oddSet_div_two_pow","module":"QuantumComputationDiscoveries.Algorithms.Grover.Solution.OddParityBridge","lines":[315,316],"plain":"Fraction of ordered tuples with odd parity","relation":"part","anchor":"block-A5.SS1-block-9","at":"b130713-130754","origin":"ai","explanation":{"text":"","citations":[{"ref":"grover/find-any-mechanism/a51ee2cfd793","title":"Passage in the authors’ arXiv text","url":"https://arxiv.org/html/2611.09822v3#A5.SS1.p2.2"},{"ref":"https://arxiv.org/pdf/2609.39621v1#page=12","title":"Algorithm 1, weak measurement and the no-click branch","url":"https://arxiv.org/pdf/2609.39621v1#page=12"}]}},{"record":"grover/find-any-mechanism","phrase":"grover/find-any-mechanism/2e0b429241a4","topic":"grover","part":0,"tone":1,"rows":[{"name":"QuantumComputation.Specs.GroverSolution.FindAny.eigLockCirc","line":952,"end_line":955,"module":"QuantumComputationDiscoveries.Algorithms.Grover.Solution.FindAny","plain":"Weak measurement loop and readout","lines":[952,953],"exact_lines":false,"relation":"part","note":"","annotation":"For a prepared Grover angle $\\phi$ and initial angle $\\theta$, a miss scales the odd component by the negative of $s=\\tan(\\phi-2\\theta)/\\tan phi$. The diffusion step then restores the prepared direction. The unnormalized state is scaled by $\\cos phi/\\cos(\\phi-2\\theta)$, the value of `nonTargetRatio`.","proof_lines":[954,955]},{"name":"QuantumComputation.Specs.GroverSolution.FindAny.loopState_norms","line":670,"end_line":928,"module":"QuantumComputationDiscoveries.Algorithms.Grover.Solution.FindAny","plain":"Probabilities of repeated misses and a click","lines":[670,675],"exact_lines":true,"relation":"part","note":"","annotation":"For the stated large-domain regime, let $p<1$ be the probability of a miss at each check. The squared norm left after $r$ misses is $p^r$, and the next click has joint probability $(1-p)p^r$. The click probabilities sum to one, and the entering probabilities sum to $1/(1-p)$ expected checks.","proof_lines":[676,928]}],"role":"explanation","lean":true,"name":"QuantumComputation.Specs.GroverSolution.FindAny.eigLockCirc","module":"QuantumComputationDiscoveries.Algorithms.Grover.Solution.FindAny","lines":[952,953],"plain":"Weak measurement loop and readout","relation":"part","anchor":"block-A5.SS1-block-9","at":"b130799-130839","origin":"ai","explanation":{"text":"","citations":[{"ref":"grover/find-any-mechanism/2e0b429241a4","title":"Passage in the authors’ arXiv text","url":"https://arxiv.org/html/2611.09822v3#A5.SS1.p2.2"},{"ref":"https://arxiv.org/pdf/2609.39621v1#page=12","title":"Algorithm 1, weak measurement and the no-click branch","url":"https://arxiv.org/pdf/2609.39621v1#page=12"}]}},{"record":"grover/eventual-cost","phrase":"grover/eventual-cost/e7bf1726a04e","topic":"grover","part":0,"tone":1,"rows":[{"name":"QuantumComputationSpecs.Algorithms.Grover:QuantumComputation.Specs.AvgOracleCostBound","line":96,"end_line":101,"module":"QuantumComputationSpecs.Algorithms.Grover","plain":"Average over marked sets","lines":[99,101],"exact_lines":true,"relation":"defines","note":"","annotation":"`AvgOracleCostBound` asks for a nonnegative bound $q(S)$ on the expected rounds for each $S$. It then requires the arithmetic mean of these bounds to be at most the stated limit. Individual $q(S)$ can differ even when the average meets the limit.","proof_lines":[99,101]},{"name":"QuantumComputationDiscoveries.Algorithms.GroverFindAny:QuantumComputation.Specs.AvgOracleCostBound","line":97,"end_line":102,"module":"QuantumComputationDiscoveries.Algorithms.GroverFindAny","plain":"Average over marked sets in Find-Any","lines":[97,102],"exact_lines":true,"relation":"defines","note":"","annotation":"For a fixed $S$, `CostBound` bounds the expectation over program outcomes, including retries. The outer predicate averages these bounds across marked sets of size $k$. The separate Find-Any correctness theorem requires a marked output with probability one for each of those sets.","proof_lines":[100,102]},{"name":"QuantumComputation.Specs.groverTargetSets","line":86,"end_line":87,"module":"QuantumComputationDiscoveries.Algorithms.GroverFindAny","plain":"All marked sets of size k","lines":[86,86],"exact_lines":false,"relation":"defines","note":"","annotation":"For $N=8$ and $k=2$, `powersetCard k` supplies $\\binom{8}{2}=28$ possible marked sets for the average. For any one of these oracles, the $m$ address registers represent $8^m$ ordered tuples.","proof_lines":[87,87]},{"name":"QuantumComputation.Specs.GroverSolution.FindAny.rel_cost","line":1367,"end_line":1505,"module":"QuantumComputationDiscoveries.Algorithms.Grover.Solution.FindAny","plain":"A shared bound on expected rounds","lines":[1392,1395],"exact_lines":true,"relation":"defines","note":"","annotation":"The witness `fun _ ↦ bd` assigns the same upper bound to every marked set. The initial odd-parity fraction and the per-check miss probability both depend on $n,m,k$. The proof can therefore establish the budget separately for each set before taking the mean.","proof_lines":[1374,1505]}],"role":"definition","lean":true,"name":"QuantumComputationSpecs.Algorithms.Grover:QuantumComputation.Specs.AvgOracleCostBound","module":"QuantumComputationSpecs.Algorithms.Grover","lines":[99,101],"plain":"Average over marked sets","relation":"defines","anchor":"block-A5.SS1-block-10","at":"b131178-131218","origin":"ai","explanation":{"text":"","citations":[{"ref":"grover/eventual-cost/e7bf1726a04e","title":"Passage in the authors’ arXiv text","url":"https://arxiv.org/html/2611.09822v3#A5.SS1.p3.1"}]}},{"record":"grover/eventual-cost","phrase":"grover/eventual-cost/16043b53c42b","topic":"grover","part":0,"tone":1,"rows":[{"name":"QuantumComputationSpecs.Algorithms.Grover:QuantumComputation.Specs.vanillaFindAnyCost","line":110,"end_line":111,"module":"QuantumComputationSpecs.Algorithms.Grover","plain":"Find-Any scale in the challenge","lines":[110,110],"exact_lines":false,"relation":"defines","note":"","annotation":"The Find-Any scale is $(\\pi/4)\\sqrt{N/(mk)}$. For fixed $m,k$ the odd-parity fraction is $mk/N+O(N^{-2})$. The Grover angle is therefore asymptotic to $\\sqrt{mk/N}$, and ordinary amplification to near $\\pi/2$ takes $(\\pi/4)\\sqrt{N/(mk)}$ rounds to leading order.","proof_lines":[111,111]},{"name":"QuantumComputation.Specs.vanillaFindAllCost","line":116,"end_line":117,"module":"QuantumComputationSpecs.Algorithms.Grover","plain":"Find-All reference scale","lines":[116,116],"exact_lines":false,"relation":"defines","note":"","annotation":"As recovered targets are unmarked, the remaining count decreases from $k$ to $1$. The last Find-Any reference term is the largest because it has just one target. Summing the terms gives $(\\pi/4)\\sqrt{N/m}\\sum_{r=1}^k1/\\sqrt r$.","proof_lines":[117,117]},{"name":"QuantumComputationDiscoveries.Algorithms.GroverFindAny:QuantumComputation.Specs.vanillaFindAnyCost","line":111,"end_line":112,"module":"QuantumComputationDiscoveries.Algorithms.GroverFindAny","plain":"Find-Any scale in the solution","lines":[111,111],"exact_lines":false,"relation":"defines","note":"","annotation":"The challenge fixes $D_{\\mathrm{std}}^{\\mathrm{any}}=(\\pi/4)\\sqrt{N/(mk)}$. Quadrupling $m$ at fixed $N,k$ halves the scale. The rational coefficient measures the cost relative to a reference that already accounts for this $\\sqrt m$ factor.","proof_lines":[112,112]}],"role":"definition","lean":true,"name":"QuantumComputationSpecs.Algorithms.Grover:QuantumComputation.Specs.vanillaFindAnyCost","module":"QuantumComputationSpecs.Algorithms.Grover","lines":[110,110],"plain":"Find-Any scale in the challenge","relation":"defines","anchor":"block-A5.SS1-block-10","at":"b131373-131402","origin":"ai","explanation":{"text":"","citations":[{"ref":"grover/eventual-cost/16043b53c42b","title":"Passage in the authors’ arXiv text","url":"https://arxiv.org/html/2611.09822v3#A5.SS1.p3.1"}]}},{"record":"grover/eventual-cost","phrase":"grover/eventual-cost/7a9a6e10dc53","topic":"grover","part":0,"tone":1,"rows":[{"name":"QuantumComputation.Specs.groverFindAny_rel_cost","line":175,"end_line":181,"module":"QuantumComputationDiscoveries.Algorithms.GroverFindAny","plain":"Find-Any round bound for large domains","lines":[175,180],"exact_lines":true,"relation":"states","note":"","annotation":"The large-domain branch and the cost proof have separate thresholds. At $m=k=2$, the circuit begins using weak checks at $n=152$ when $k<N$. The cost theorem may choose a larger $n_0$ to make its inequality valid for every $n\\ge n_0$.","proof_lines":[181,181],"fidelity":"same","fidelity_source":"ai"},{"name":"QuantumComputation.Specs.groverFindAll_rel_cost","line":233,"end_line":239,"module":"QuantumComputationDiscoveries.Algorithms.GroverFindAll","plain":"Find-All round bound for large domains","lines":[233,238],"exact_lines":true,"relation":"states","note":"","annotation":"The theorem first selects $(m,k)$ and then obtains a threshold $n_0$. Because the grid is finite, one can take the maximum of the thresholds if a common one is needed. Figure S8(c) plots the verified upper coefficients relative to the reference scale.","proof_lines":[239,239],"fidelity":"same","fidelity_source":"ai","annotation_references":[{"start":168,"end":180,"key":"figure:s8"}]},{"name":"QuantumComputation.Specs.GroverSolution.FindAny.rel_cost","line":1367,"end_line":1505,"module":"QuantumComputationDiscoveries.Algorithms.Grover.Solution.FindAny","plain":"A shared bound on expected rounds","lines":[1485,1505],"exact_lines":true,"relation":"states","note":"","annotation":"In the weak-check branch the proof has the estimate $(\\pi/8+1/4)\\sqrt{N/(mk)}+5$. It chooses $n$ large enough that $5\\le\\delta\\sqrt{N/(mk)}$, where $\\delta=R(m,k)\\pi/4-(\\pi/8+1/4)>0$. The small excess in the submitted coefficient then pays for the five rounds.","proof_lines":[1374,1505],"fidelity":"same","fidelity_source":"ai"},{"name":"QuantumComputation.Specs.groverFindAnyRelCost","line":170,"end_line":171,"module":"QuantumComputationDiscoveries.Algorithms.GroverFindAny","plain":"Submitted Find-Any coefficient","lines":[170,171],"exact_lines":true,"relation":"states","note":"","annotation":"The rational is constant across domain widths. It is slightly above the weak-measurement coefficient $1/2+1/\\pi$, using a rational lower bound on $\\pi$ to prove the strict inequality. The excess allows the proof to absorb the finite-size remainder at sufficiently large $n$.","proof_lines":[171,171]}],"role":"statement","lean":true,"name":"QuantumComputation.Specs.groverFindAny_rel_cost","module":"QuantumComputationDiscoveries.Algorithms.GroverFindAny","lines":[175,180],"plain":"Find-Any round bound for large domains","relation":"states","anchor":"block-A5.SS1-block-12","at":"b131842-131872","origin":"ai","explanation":{"text":"","citations":[{"ref":"grover/eventual-cost/7a9a6e10dc53","title":"Passage in the authors’ arXiv text","url":"https://arxiv.org/html/2611.09822v3#A5.SS1.p3.2"}]}},{"record":"grover/eventual-cost","phrase":"grover/eventual-cost/4ad7fc51c62b","topic":"grover","part":0,"tone":1,"rows":[{"name":"QuantumComputationSpecs.Algorithms.Grover:QuantumComputation.Specs.vanillaFindAnyCost","line":110,"end_line":111,"module":"QuantumComputationSpecs.Algorithms.Grover","plain":"Find-Any scale in the challenge","lines":[110,110],"exact_lines":false,"relation":"part","note":"","annotation":"The Find-Any scale is the reference depth of rotating the state close to the marked subspace. For expected depth, stopping earlier and continuing or restarting after a miss can reduce the cost below that scale. To report a speedup, the authors divide the prior coefficient by the new one in these same units.","proof_lines":[111,111]},{"name":"QuantumComputation.Specs.vanillaFindAllCost","line":116,"end_line":117,"module":"QuantumComputationSpecs.Algorithms.Grover","plain":"Find-All reference scale","lines":[116,116],"exact_lines":false,"relation":"part","note":"","annotation":"The Find-All reference scale is $\\sqrt{k}\\sum_{r=1}^k1/\\sqrt r$ times the Find-Any scale. At $k=2$ this factor is $1+\\sqrt2$. Multiply each coefficient by its own reference scale to compare the costs in rounds.","proof_lines":[117,117]}],"role":"explanation","lean":true,"name":"QuantumComputationSpecs.Algorithms.Grover:QuantumComputation.Specs.vanillaFindAnyCost","module":"QuantumComputationSpecs.Algorithms.Grover","lines":[110,110],"plain":"Find-Any scale in the challenge","relation":"part","anchor":"block-A5.SS1-block-12","at":"b131904-131958","origin":"ai","explanation":{"text":"","citations":[{"ref":"grover/eventual-cost/4ad7fc51c62b","title":"Passage in the authors’ arXiv text","url":"https://arxiv.org/html/2611.09822v3#A5.SS1.p3.2"}]}},{"record":"grover/all-speedup","phrase":"grover/all-speedup/c4863dac09eb","topic":"grover","part":0,"tone":1,"rows":[{"name":"QuantumComputation.Specs.GroverFindAll.gridRelCost","line":306,"end_line":450,"module":"QuantumComputationDiscoveries.Algorithms.Grover.Solution.GridRouter","plain":"Find-All coefficients by setting","lines":[306,306],"exact_lines":false,"relation":"part","note":"","annotation":"Figure S8c plots each table entry in Find-All reference units. As an example, the $(4,2)$ entry is about $0.59137$, which becomes about $0.39645\\sqrt N$ rounds after multiplication by the reference scale. The plotted labels identify the circuit used to obtain each bound.","proof_lines":[307,450],"annotation_references":[{"start":0,"end":10,"key":"figure:s8"}]}],"role":"mention","lean":true,"name":"QuantumComputation.Specs.GroverFindAll.gridRelCost","module":"QuantumComputationDiscoveries.Algorithms.Grover.Solution.GridRouter","lines":[306,306],"plain":"Find-All coefficients by setting","relation":"part","anchor":"block-A5.SS3-block-1","at":"b141853-141883","origin":"ai","explanation":{"text":"","citations":[{"ref":"grover/all-speedup/c4863dac09eb","title":"Passage in the authors’ arXiv text","url":"https://arxiv.org/html/2611.09822v3#A5.SS3.p1.1"},{"ref":"https://arxiv.org/pdf/quant-ph/0407217v1#page=4","title":"Lemma 1 and Figure 3, search at descending target counts","url":"https://arxiv.org/pdf/quant-ph/0407217v1#page=4"},{"ref":"https://arxiv.org/pdf/quant-ph/0407217v1#page=5","title":"Theorem 3, parallel search by random partition","url":"https://arxiv.org/pdf/quant-ph/0407217v1#page=5"}]}},{"record":"grover/find-any-mechanism","phrase":"grover/find-any-mechanism/e29dcee40ac1","topic":"grover","part":0,"tone":1,"rows":[{"name":"QuantumComputation.Specs.GroverSolution.FindAny.circuit","line":1224,"end_line":1232,"module":"QuantumComputationDiscoveries.Algorithms.Grover.Solution.FindAny","plain":"Choice of Find-Any circuit","lines":[1226,1232],"exact_lines":true,"relation":"part","note":"","annotation":"The large-domain branch runs `eigLockCirc`. It uses the two flag states $|0^m\\rangle$ and $|1^m\\rangle$ as a logical qubit, so measuring the first flag distinguishes them. One phase query acts on the parity of all address slots before that measurement. The small-domain branch instead repeats uniform trials.","proof_lines":[1226,1232]},{"name":"QuantumComputation.Specs.GroverSolution.card_oddSet_div_two_pow","line":315,"end_line":348,"module":"QuantumComputationDiscoveries.Algorithms.Grover.Solution.OddParityBridge","plain":"Fraction of ordered tuples with odd parity","lines":[315,316],"exact_lines":false,"relation":"part","note":"","annotation":"For a uniform ordered tuple the signs in the $m$ slots are independent, each of mean $1-2k/N$. Their product has mean $(1-2k/N)^m$. The probability of odd parity is therefore $[1-(1-2k/N)^m]/2$. At fixed $m,k$ its leading term is $mk/N$.","proof_lines":[317,348]}],"role":"explanation","lean":true,"name":"QuantumComputation.Specs.GroverSolution.FindAny.circuit","module":"QuantumComputationDiscoveries.Algorithms.Grover.Solution.FindAny","lines":[1226,1232],"plain":"Choice of Find-Any circuit","relation":"part","anchor":"block-A5.SS3-block-2","at":"b142070-142126","origin":"ai","explanation":{"text":"","citations":[{"ref":"grover/find-any-mechanism/e29dcee40ac1","title":"Passage in the authors’ arXiv text","url":"https://arxiv.org/html/2611.09822v3#A5.SS3.p2.1"},{"ref":"https://arxiv.org/pdf/2609.39621v1#page=12","title":"Algorithm 1, weak measurement and the no-click branch","url":"https://arxiv.org/pdf/2609.39621v1#page=12"}]}},{"record":"grover/any-speedup","phrase":"grover/any-speedup/d472f9b4823d","topic":"grover","part":0,"tone":1,"rows":[{"name":"QuantumComputation.Specs.GroverSolution.FindAny.relCost","line":96,"end_line":97,"module":"QuantumComputationDiscoveries.Algorithms.Grover.Solution.FindAny","plain":"One coefficient for Find-Any","lines":[96,97],"exact_lines":true,"relation":"states","note":"","annotation":"For an initial Grover angle $\\theta$, the setup approaches $\\pi/4$ in about $\\pi/(8\\theta)$ rounds. The calibrated check has click probability asymptotic to $4\\theta$, so waiting adds about $1/(4\\theta)$ rounds. With $\\theta\\sim\\sqrt{mk/N}$, normalization by Equation (7) gives $1/2+1/\\pi$. Lean proves a rational upper bound slightly above this coefficient.","proof_lines":[97,97],"annotation_references":[{"start":259,"end":271,"key":"equation:7"}]}],"role":"statement","lean":true,"name":"QuantumComputation.Specs.GroverSolution.FindAny.relCost","module":"QuantumComputationDiscoveries.Algorithms.Grover.Solution.FindAny","lines":[96,97],"plain":"One coefficient for Find-Any","relation":"states","anchor":"block-A5.SS3-block-2","at":"b142127-142156","origin":"ai","explanation":{"text":"","citations":[{"ref":"grover/any-speedup/d472f9b4823d","title":"Passage in the authors’ arXiv text","url":"https://arxiv.org/html/2611.09822v3#A5.SS3.p2.1"},{"ref":"https://arxiv.org/pdf/quant-ph/9904049v1#page=9","title":"Equation (32), expected cost of parallel search with restarts","url":"https://arxiv.org/pdf/quant-ph/9904049v1#page=9"},{"ref":"https://arxiv.org/pdf/2609.39621v1#page=13","title":"Equation (14), cost ratio as the target probability tends to zero","url":"https://arxiv.org/pdf/2609.39621v1#page=13"}]}},{"record":"grover/johnson-phase","phrase":"grover/johnson-phase/96ca710f1a5b","topic":"grover","part":0,"tone":1,"rows":[{"name":"QuantumComputation.Specs.DickeSol.u0Vec","line":61,"end_line":61,"module":"QuantumComputationDiscoveries.Algorithms.Grover.Solution.FindAllJohnsonP01","plain":"Uniform superposition over subsets","lines":[61,61],"exact_lines":false,"relation":"part","note":"","annotation":"The encoding uses one increasing tuple of addresses for each subset. For $r$ remaining targets, the initial probability of $w$ hits is $\\binom rw\\binom{N-r}{m-w}/\\binom Nm$. In particular, with two remaining targets the chance that the initial subset contains both is $m(m-1)/(N(N-1))$."}],"role":"explanation","lean":true,"name":"QuantumComputation.Specs.DickeSol.u0Vec","module":"QuantumComputationDiscoveries.Algorithms.Grover.Solution.FindAllJohnsonP01","lines":[61,61],"plain":"Uniform superposition over subsets","relation":"part","anchor":"block-A5.SS3-block-2","at":"b142447-142495","origin":"ai","explanation":{"text":"","citations":[{"ref":"grover/johnson-phase/96ca710f1a5b","title":"Passage in the authors’ arXiv text","url":"https://arxiv.org/html/2611.09822v3#A5.SS3.p2.1"},{"ref":"https://dx.doi.org/10.1007/s00453-016-0206-z","title":"10.1007/s00453-016-0206-z","url":"https://dx.doi.org/10.1007/s00453-016-0206-z"}]}},{"record":"grover/johnson-phase","phrase":"grover/johnson-phase/49dcc02c6f2c","topic":"grover","part":0,"tone":1,"rows":[{"name":"QuantumComputation.Specs.DickeSol.johnsonSingleIter","line":693,"end_line":696,"module":"QuantumComputationDiscoveries.Algorithms.Grover.Solution.FindAllJohnsonP01","plain":"One step of the Johnson walk","lines":[693,696],"exact_lines":true,"relation":"part","note":"","annotation":"`memPrefix k s` specifies which $s$ archive slots have been filled. Only those slots count when unmarking. This matters when zero is a target, because unused slots also contain zero.","proof_lines":[695,696]},{"name":"QuantumComputation.Specs.DickeSol.sDiagM_mulVec_liftSymVec","line":347,"end_line":370,"module":"QuantumComputationDiscoveries.Algorithms.Grover.Solution.FindAllJohnsonP01","plain":"Phase from remaining-target parity","lines":[347,348],"exact_lines":false,"relation":"part","note":"","annotation":"The archive invariant gives $F\\subseteq S$. Flipping a flag for $x\\in F$ after marking cancels the mark on every archived address, giving the bit $[x\\in S]\\oplus[x\\in F]=[x\\in S\\setminus F]$. With flags in $|-\\rangle$, the resulting phase depends on the parity of those remaining hits.","proof_lines":[349,370]}],"role":"explanation","lean":true,"name":"QuantumComputation.Specs.DickeSol.johnsonSingleIter","module":"QuantumComputationDiscoveries.Algorithms.Grover.Solution.FindAllJohnsonP01","lines":[693,696],"plain":"One step of the Johnson walk","relation":"part","anchor":"block-A5.SS3-block-2","at":"b142562-142591","origin":"ai","explanation":{"text":"","citations":[{"ref":"grover/johnson-phase/49dcc02c6f2c","title":"Passage in the authors’ arXiv text","url":"https://arxiv.org/html/2611.09822v3#A5.SS3.p2.1"},{"ref":"https://dx.doi.org/10.1007/s00453-016-0206-z","title":"10.1007/s00453-016-0206-z","url":"https://dx.doi.org/10.1007/s00453-016-0206-z"}]}},{"record":"grover/johnson-phase","phrase":"grover/johnson-phase/ecf071dd56d1","topic":"grover","part":0,"tone":1,"rows":[{"name":"QuantumComputation.Specs.DickeSol.johnsonSingleIter","line":693,"end_line":696,"module":"QuantumComputationDiscoveries.Algorithms.Grover.Solution.FindAllJohnsonP01","plain":"One step of the Johnson walk","lines":[693,694],"exact_lines":false,"relation":"part","note":"","annotation":"`johnsonSingleIter` takes the reflection for the current stage as the supplied orthogonal operator $D$. The phase query is diagonal in the hit-count coordinates, and $D$ can mix them. With two remaining targets the parity signs in the three coordinates are $+1,-1,+1$. A later stage can use a different $D$.","proof_lines":[695,696]},{"name":"QuantumComputation.Specs.DickeSol.eigProj","line":80,"end_line":87,"module":"QuantumComputationDiscoveries.Algorithms.Grover.Solution.FindAllJohnsonRampLift","plain":"Johnson eigenspace projectors from subset inclusion","lines":[80,87],"exact_lines":true,"relation":"part","note":"","annotation":"Johnson eigenspaces come from the subset system. The degree-zero space is the constant functions on subsets. The higher projectors are constructed from subset inclusion without using $S$, so they can act between queries even though the hit-count classes depend on $S$.","proof_lines":[82,87]}],"role":"explanation","lean":true,"name":"QuantumComputation.Specs.DickeSol.johnsonSingleIter","module":"QuantumComputationDiscoveries.Algorithms.Grover.Solution.FindAllJohnsonP01","lines":[693,694],"plain":"One step of the Johnson walk","relation":"part","anchor":"block-A5.SS3-block-2","at":"b142714-142783","origin":"ai","explanation":{"text":"","citations":[{"ref":"grover/johnson-phase/ecf071dd56d1","title":"Passage in the authors’ arXiv text","url":"https://arxiv.org/html/2611.09822v3#A5.SS3.p2.1"},{"ref":"https://dx.doi.org/10.1007/s00453-016-0206-z","title":"10.1007/s00453-016-0206-z","url":"https://dx.doi.org/10.1007/s00453-016-0206-z"}]}},{"record":"grover/johnson-phase","phrase":"grover/johnson-phase/d93cf6ea152c","topic":"grover","part":0,"tone":1,"rows":[{"name":"QuantumComputation.Specs.DickeSol.rmsTagWeightKick_conj_liftSymVec","line":3400,"end_line":3416,"module":"QuantumComputationDiscoveries.Algorithms.Grover.Solution.FindAllJohnsonRampKickMuxBridge","plain":"Phase kick by marking and uncomputing","lines":[3400,3404],"exact_lines":true,"relation":"part","note":"","annotation":"The threshold operation marks the flags, applies a sign conditioned on their count, and uncomputes the flags. The displayed identity gives the resulting phase on each subset. A block of $m$ addresses needs two marking rounds, one in each direction.","proof_lines":[3405,3416]},{"name":"QuantumComputation.Specs.DickeSol.symPrefixKickVec","line":66,"end_line":68,"module":"QuantumComputationDiscoveries.Algorithms.Grover.Solution.FindAllJohnsonMuxRefocusLift","plain":"Sign below or at the cutoff","lines":[66,68],"exact_lines":true,"relation":"part","note":"","annotation":"A phase kick changes the sign of the amplitude in every class $w\\le j_0$. Each class has the same probability immediately before and after the kick. A later mixing operation can turn the change of relative signs into a change in readout probabilities.","proof_lines":[68,68]}],"role":"explanation","lean":true,"name":"QuantumComputation.Specs.DickeSol.rmsTagWeightKick_conj_liftSymVec","module":"QuantumComputationDiscoveries.Algorithms.Grover.Solution.FindAllJohnsonRampKickMuxBridge","lines":[3400,3404],"plain":"Phase kick by marking and uncomputing","relation":"part","anchor":"block-A5.SS3-block-2","at":"b143034-143060","origin":"ai","explanation":{"text":"","citations":[{"ref":"grover/johnson-phase/d93cf6ea152c","title":"Passage in the authors’ arXiv text","url":"https://arxiv.org/html/2611.09822v3#A5.SS3.p2.1"},{"ref":"https://dx.doi.org/10.1007/s00453-016-0206-z","title":"10.1007/s00453-016-0206-z","url":"https://dx.doi.org/10.1007/s00453-016-0206-z"}]}},{"record":"grover/johnson-readout","phrase":"grover/johnson-readout/3d401b0ad46b","topic":"grover","part":0,"tone":1,"rows":[{"name":"QuantumComputation.Specs.DickeSol.johnsonPassFront","line":821,"end_line":832,"module":"QuantumComputationDiscoveries.Algorithms.Grover.Solution.FindAllJohnsonP01","plain":"Batch readout after the walk","lines":[821,823],"exact_lines":false,"relation":"part","note":"","annotation":"`memWriteBatchPerm` adds the list of newly marked addresses modulo $N$ into the next archive fields, which are initially zero. The valid subset encoding gives distinct addresses. If the batch finds $w$ hits, the next stage can use an archive prefix longer by $w$.","proof_lines":[824,832]}],"role":"explanation","lean":true,"name":"QuantumComputation.Specs.DickeSol.johnsonPassFront","module":"QuantumComputationDiscoveries.Algorithms.Grover.Solution.FindAllJohnsonP01","lines":[821,823],"plain":"Batch readout after the walk","relation":"part","anchor":"block-A5.SS3-block-2","at":"b143192-143239","origin":"ai","explanation":{"text":"","citations":[{"ref":"grover/johnson-readout/3d401b0ad46b","title":"Passage in the authors’ arXiv text","url":"https://arxiv.org/html/2611.09822v3#A5.SS3.p2.1"}]}},{"record":"grover/johnson-readout","phrase":"grover/johnson-readout/ef916248b3a1","topic":"grover","part":0,"tone":1,"rows":[{"name":"QuantumComputation.Specs.DickeSol.johnsonRampMuxSparseCircuit_correctness","line":4882,"end_line":4908,"module":"QuantumComputationDiscoveries.Algorithms.Grover.Solution.FindAllJohnsonRampKickMuxBridge","plain":"Correctness of the sparse Johnson circuit","lines":[4882,4888],"exact_lines":false,"relation":"part","note":"","annotation":"When a walk pass finds $w>0$ new targets, the next stage has $w$ fewer to recover. A zero-hit pass uses one retry. Once the retry budget expires, the circuit finishes with probability-one single-target searches. The correctness proof covers that fallback as well as the successful walk branches.","proof_lines":[4889,4908]},{"name":"QuantumComputation.Specs.groverFindAll_correctness","line":218,"end_line":224,"module":"QuantumComputationDiscoveries.Algorithms.GroverFindAll","plain":"Find-All correctness theorem","lines":[218,223],"exact_lines":false,"relation":"part","note":"","annotation":"The archive invariant `MemPrefixValid` says that the filled fields contain distinct members of $S$. When all $k$ fields are filled, their set is a $k$-element subset of the $k$-element set $S$. The final decoded result therefore equals $S$.","proof_lines":[224,224]}],"role":"explanation","lean":true,"name":"QuantumComputation.Specs.DickeSol.johnsonRampMuxSparseCircuit_correctness","module":"QuantumComputationDiscoveries.Algorithms.Grover.Solution.FindAllJohnsonRampKickMuxBridge","lines":[4882,4888],"plain":"Correctness of the sparse Johnson circuit","relation":"part","anchor":"block-A5.SS3-block-2","at":"b143297-143347","origin":"ai","explanation":{"text":"","citations":[{"ref":"grover/johnson-readout/ef916248b3a1","title":"Passage in the authors’ arXiv text","url":"https://arxiv.org/html/2611.09822v3#A5.SS3.p2.1"}]}},{"record":"grover/gate-cost","phrase":"grover/gate-cost/e781ed4bc31d","topic":"grover","part":0,"tone":1,"rows":[{"name":"QuantumComputation.Specs.GroverFindAll.gridQubits","line":727,"end_line":799,"module":"QuantumComputationDiscoveries.Algorithms.Grover.Solution.GridRouter","plain":"Qubits for subsets, flags and archive","lines":[727,743],"exact_lines":true,"relation":"part","note":"","annotation":"The fixed-size walk uses $m(n+1)+kn$ qubits. For the increasing-width family, the working register can hold $L_{\\max}m$ address-and-flag slots. At $(1024,512)$, the cap $L_{\\max}=2$ gives $2560n+2048$ total qubits, while one oracle round still acts on 1,024 slots.","proof_lines":[728,799]}],"role":"mention","lean":true,"name":"QuantumComputation.Specs.GroverFindAll.gridQubits","module":"QuantumComputationDiscoveries.Algorithms.Grover.Solution.GridRouter","lines":[727,743],"plain":"Qubits for subsets, flags and archive","relation":"part","anchor":"block-A5.SS3-block-2","at":"b143438-143482","origin":"ai","explanation":{"text":"","citations":[{"ref":"grover/gate-cost/e781ed4bc31d","title":"Passage in the authors’ arXiv text","url":"https://arxiv.org/html/2611.09822v3#A5.SS3.p2.1"},{"ref":"https://dx.doi.org/10.1145/3313276.3316366","title":"10.1145/3313276.3316366","url":"https://dx.doi.org/10.1145/3313276.3316366"}]}},{"record":"grover/gate-cost","phrase":"grover/gate-cost/67685f84be0e","topic":"grover","part":0,"tone":1,"rows":[{"name":"QuantumComputation.Specs.groverFindAll_rel_cost","line":233,"end_line":239,"module":"QuantumComputationDiscoveries.Algorithms.GroverFindAll","plain":"Find-All round bound for large domains","lines":[233,238],"exact_lines":false,"relation":"part","note":"","annotation":"The theorem uses `CostModel.ofEmbeddedOracle`, which counts a whole parallel query as one operation. A gate bound would also have to account for the elementary operations implementing the unitaries between queries. That gate decomposition is outside the cost statement here.","proof_lines":[239,239],"fidelity":"different","fidelity_source":"ai"},{"name":"QuantumComputation.Specs.DickeSol.eigProj","line":80,"end_line":87,"module":"QuantumComputationDiscoveries.Algorithms.Grover.Solution.FindAllJohnsonRampLift","plain":"Johnson eigenspace projectors from subset inclusion","lines":[80,81],"exact_lines":false,"relation":"part","note":"","annotation":"The inclusion matrix maps between consecutive subset sizes. On degree $j$, the polar step normalizes its transpose by the inverse square root of $(M+1-j)(N-M-j)$. Under $2(M+1)\\le N$ this gives an isometry $\\Psi$. The projector recurrence uses $\\Psi P_j\\Psi^{\\mathsf T}$ and adds the complement $I-\\Psi\\Psi^{\\mathsf T}$.","proof_lines":[82,87]},{"name":"QuantumComputation.Specs.groverFindAnyProgram","line":154,"end_line":156,"module":"QuantumComputationDiscoveries.Algorithms.GroverFindAny","plain":"Find-Any program and reset","lines":[154,156],"exact_lines":true,"relation":"part","note":"","annotation":"The joint reflection about the uniform state on all $mn$ address qubits is one allowed $S$-independent step. The wrapper translates it to a `QProg.qAssign` of an ideal unitary. The resource predicate counts query rounds, so a gate decomposition of the reflection is a separate calculation.","proof_lines":[156,156],"fidelity":"different","fidelity_source":"ai"},{"name":"QuantumComputation.Specs.groverFindAllProgram","line":211,"end_line":213,"module":"QuantumComputationDiscoveries.Algorithms.GroverFindAll","plain":"Find-All program and reset","lines":[211,213],"exact_lines":true,"relation":"part","note":"","annotation":"In the fixed-size Johnson construction, an isometry $J$ embeds the subset coordinates in the work register. Lean lifts an orthogonal subset operator $D$ by $I+J(D-I)J^{\\mathsf T}$, which acts as $D$ on those coordinates and as the identity on their orthogonal complement. The program uses the resulting ideal unitary as an assignment.","proof_lines":[213,213],"fidelity":"different","fidelity_source":"ai"},{"name":"OracleDynamicCircuit.compile","line":196,"end_line":208,"module":"QuantumComputation.Circuits.DynamicCircuit","plain":"Translation to the quantum program semantics","lines":[196,208],"exact_lines":true,"relation":"part","note":"","annotation":"The `.step s` case calls the translation `compileStep s` supplied by the caller. The Grover wrappers supply `QProg.qAssign`, so compilation here means translation to the program semantics with ideal unitary assignments.","proof_lines":[199,208],"fidelity":"different","fidelity_source":"ai"}],"role":"mention","lean":true,"name":"QuantumComputation.Specs.groverFindAll_rel_cost","module":"QuantumComputationDiscoveries.Algorithms.GroverFindAll","lines":[233,238],"plain":"Find-All round bound for large domains","relation":"part","anchor":"block-A5.SS3-block-2","at":"b143542-143558","origin":"ai","explanation":{"text":"","citations":[{"ref":"grover/gate-cost/67685f84be0e","title":"Passage in the authors’ arXiv text","url":"https://arxiv.org/html/2611.09822v3#A5.SS3.p2.1"},{"ref":"https://dx.doi.org/10.1145/3313276.3316366","title":"10.1145/3313276.3316366","url":"https://dx.doi.org/10.1145/3313276.3316366"}]}},{"record":"grover/gate-cost","phrase":"grover/gate-cost/286a320a703b","topic":"grover","part":0,"tone":1,"rows":[{"name":"QuantumComputation.Specs.DickeSol.eigProj","line":80,"end_line":87,"module":"QuantumComputationDiscoveries.Algorithms.Grover.Solution.FindAllJohnsonRampLift","plain":"Johnson eigenspace projectors from subset inclusion","lines":[80,81],"exact_lines":false,"relation":"part","note":"","annotation":"The recursion constructs the exact projectors used by the ideal walk. Under $2M\\le N$ the checked projector products are zero across distinct degrees, so assigning signs by degree gives a reflection. The paper’s QSVT approximation error concerns synthesis of the reflection into gates. Probability-one correctness here refers to the ideal program.","proof_lines":[82,87]}],"role":"mention","lean":true,"name":"QuantumComputation.Specs.DickeSol.eigProj","module":"QuantumComputationDiscoveries.Algorithms.Grover.Solution.FindAllJohnsonRampLift","lines":[80,81],"plain":"Johnson eigenspace projectors from subset inclusion","relation":"part","anchor":"block-A5.SS3-block-2","at":"b143590-143627","origin":"ai","explanation":{"text":"","citations":[{"ref":"grover/gate-cost/286a320a703b","title":"Passage in the authors’ arXiv text","url":"https://arxiv.org/html/2611.09822v3#A5.SS3.p2.1"},{"ref":"https://dx.doi.org/10.1145/3313276.3316366","title":"10.1145/3313276.3316366","url":"https://dx.doi.org/10.1145/3313276.3316366"}]}},{"record":"grover/all-speedup","phrase":"grover/all-speedup/dc1a877376d9","topic":"grover","part":0,"tone":1,"rows":[{"name":"QuantumComputation.Specs.GroverFindAll.findAllGridCircuit","line":1628,"end_line":1852,"module":"QuantumComputationDiscoveries.Algorithms.Grover.Solution.GridRouter","plain":"Find-All circuit selection by parameter pair","lines":[1657,1673],"exact_lines":true,"relation":"part","note":"","annotation":"The router selects a family using $(m,k)$, and that family can choose a schedule for the remaining count. In the increasing-width family, the initial pass at $(128,512)$ goes from 128-element subsets to $7\\cdot128$ elements. At $(1024,512)$ the initial pass keeps 1,024 elements.","proof_lines":[1632,1852]}],"role":"mention","lean":true,"name":"QuantumComputation.Specs.GroverFindAll.findAllGridCircuit","module":"QuantumComputationDiscoveries.Algorithms.Grover.Solution.GridRouter","lines":[1657,1673],"plain":"Find-All circuit selection by parameter pair","relation":"part","anchor":"block-A5.SS3-block-4","at":"b144132-144183","origin":"ai","explanation":{"text":"","citations":[{"ref":"grover/all-speedup/dc1a877376d9","title":"Passage in the authors’ arXiv text","url":"https://arxiv.org/html/2611.09822v3#A5.F8"},{"ref":"https://arxiv.org/pdf/quant-ph/0407217v1#page=4","title":"Lemma 1 and Figure 3, search at descending target counts","url":"https://arxiv.org/pdf/quant-ph/0407217v1#page=4"},{"ref":"https://arxiv.org/pdf/quant-ph/0407217v1#page=5","title":"Theorem 3, parallel search by random partition","url":"https://arxiv.org/pdf/quant-ph/0407217v1#page=5"}]}},{"record":"grover/johnson-readout","phrase":"grover/johnson-readout/425884379210","topic":"grover","part":0,"tone":1,"rows":[{"name":"QuantumComputation.Specs.DickeSol.johnsonPassFront","line":821,"end_line":832,"module":"QuantumComputationDiscoveries.Algorithms.Grover.Solution.FindAllJohnsonP01","plain":"Batch readout after the walk","lines":[830,832],"exact_lines":true,"relation":"part","note":"","annotation":"After the batch write, `hitCodeFn` encodes the number of new hits. In `mapAndMeasureLow` the implementation first measures the full basis state with `qMap`, remaps the measured value, and then measures the low register to obtain that count. This implements the classical batch outcome in Figure S9.","proof_lines":[824,832],"annotation_references":[{"start":288,"end":297,"key":"figure:s9"}]}],"role":"explanation","lean":true,"name":"QuantumComputation.Specs.DickeSol.johnsonPassFront","module":"QuantumComputationDiscoveries.Algorithms.Grover.Solution.FindAllJohnsonP01","lines":[830,832],"plain":"Batch readout after the walk","relation":"part","anchor":"block-A5.SS3-block-5","at":"b145164-145185","origin":"ai","explanation":{"text":"","citations":[{"ref":"grover/johnson-readout/425884379210","title":"Passage in the authors’ arXiv text","url":"https://arxiv.org/html/2611.09822v3#A5.F9"}]}},{"record":"arcsin/reversible-action","phrase":"arcsin/reversible-action/2b565e16d4c6","topic":"arcsin","part":0,"tone":2,"rows":[{"name":"QuantumComputation.Specs.arcsinTableUnitary","line":89,"end_line":91,"module":"QuantumComputationDiscoveries.Primitives.Arcsin","plain":"Unitary for addition of a table entry","lines":[89,91],"exact_lines":true,"relation":"defines","note":"","annotation":"Distinct input codes can give the same approximate angle. The map still permutes the basis because it keeps $y$. Given $y$ and the final value $b'$, subtract $z(y)$ modulo $2^k$ to recover $b$.","proof_lines":[91,91]},{"name":"QuantumComputation.Specs.arcsin_correctness","line":352,"end_line":446,"module":"QuantumComputationDiscoveries.Primitives.Arcsin","plain":"Uniform approximation and exact modular addition","lines":[352,361],"exact_lines":false,"relation":"defines","note":"","annotation":"The table $z$ supplies integer codes for approximate angles. The dynamic circuit, including its measurement and correction steps, must implement addition by those codes exactly. `RealizesCleanSubroutine` also requires the ancilla register to finish at zero when it starts there.","proof_lines":[362,446]}],"role":"definition","lean":true,"name":"QuantumComputation.Specs.arcsinTableUnitary","module":"QuantumComputationDiscoveries.Primitives.Arcsin","lines":[89,91],"plain":"Unitary for addition of a table entry","relation":"defines","anchor":"block-A6.SS1-block-2","at":"b146326-146431","origin":"ai","explanation":{"text":"","citations":[{"ref":"arcsin/reversible-action/2b565e16d4c6","title":"Passage in the authors’ arXiv text","url":"https://arxiv.org/html/2611.09822v3#A6.SS1.p2.1"}]}},{"record":"arcsin/precision","phrase":"arcsin/precision/44a0ba92f28b","topic":"arcsin","part":0,"tone":2,"rows":[{"name":"QuantumComputation.Specs.twosCompFixed","line":70,"end_line":71,"module":"QuantumComputationDiscoveries.Primitives.Arcsin","plain":"Signed two’s-complement fixed-point decoding","lines":[70,71],"exact_lines":true,"relation":"defines","note":"","annotation":"The 25-bit code is interpreted as a signed integer and divided by $2^{23}$. The code with all bits set has signed value $-1$ and decodes to $-2^{-23}$. The signed range is $[-2,2-2^{-23}]$, which contains the output angles from $-\\pi/2$ to $\\pi/2$.","proof_lines":[71,71]}],"role":"definition","lean":true,"name":"QuantumComputation.Specs.twosCompFixed","module":"QuantumComputationDiscoveries.Primitives.Arcsin","lines":[70,71],"plain":"Signed two’s-complement fixed-point decoding","relation":"defines","anchor":"block-A6.SS1-block-2","at":"b147002-147048","origin":"ai","explanation":{"text":"","citations":[{"ref":"arcsin/precision/44a0ba92f28b","title":"Passage in the authors’ arXiv text","url":"https://arxiv.org/html/2611.09822v3#A6.SS1.p2.1"}]}},{"record":"arcsin/precision","phrase":"arcsin/precision/d2509e8402f0","topic":"arcsin","part":0,"tone":2,"rows":[{"name":"QuantumComputation.Specs.twosCompFixed","line":70,"end_line":71,"module":"QuantumComputationDiscoveries.Primitives.Arcsin","plain":"Signed two’s-complement fixed-point decoding","lines":[70,71],"exact_lines":true,"relation":"defines","note":"","annotation":"$2^{-23}$ is the spacing of the entire signed grid and its smallest positive value. The benchmark tolerance is $1.048576$ grid steps. Both grid values bracketing any exact angle on this domain therefore satisfy the bound.","proof_lines":[71,71],"fidelity":"same","fidelity_source":"ai"},{"name":"QuantumComputation.Specs.fallbackZ_satisfies_abs_error","line":288,"end_line":311,"module":"QuantumComputationDiscoveries.Primitives.Arcsin","plain":"Half-grid-step error for the rounded table","lines":[288,310],"exact_lines":true,"relation":"defines","note":"","annotation":"`abs_sub_round` bounds the error by $1/2$ in integer grid units. Dividing by $2^{k-2}$ gives half a grid step in decoded units, which explains the lower bound on the admissible tolerance. The general correctness theorem uses this rounded table outside the optimized benchmark regime.","proof_lines":[291,311]}],"role":"definition","lean":true,"name":"QuantumComputation.Specs.twosCompFixed","module":"QuantumComputationDiscoveries.Primitives.Arcsin","lines":[70,71],"plain":"Signed two’s-complement fixed-point decoding","relation":"defines","anchor":"block-A6.SS1-block-2","at":"b147085-147156","origin":"ai","explanation":{"text":"","citations":[{"ref":"arcsin/precision/d2509e8402f0","title":"Passage in the authors’ arXiv text","url":"https://arxiv.org/html/2611.09822v3#A6.SS1.p2.1"}]}},{"record":"arcsin/precision","phrase":"arcsin/precision/9fe5b001b05d","topic":"arcsin","part":0,"tone":2,"rows":[{"name":"QuantumComputation.Specs.arcsinValidInputs","line":80,"end_line":81,"module":"QuantumComputationDiscoveries.Primitives.Arcsin","plain":"Fixed-point codes for [−1, 1]","lines":[80,81],"exact_lines":true,"relation":"defines","note":"","annotation":"The absolute value filter selects signed integers from $-2^{23}$ through $2^{23}$. In unsigned basis indexing, the same codes lie in two ranges, $[0,2^{23}]$ and $[3\\cdot2^{23},2^{25}-1]$. Both endpoints and zero are included.","proof_lines":[81,81]},{"name":"QuantumComputation.Specs.z25_satisfies_abs_error","line":118,"end_line":196,"module":"QuantumComputationDiscoveries.Primitives.Arcsin","plain":"Uniform absolute error of the implemented table","lines":[118,119],"exact_lines":true,"relation":"defines","note":"","annotation":"The theorem covers each code selected by `arcsinValidInputs 25`. The proof uses a certificate row at each nonnegative code below $2^{23}$ and checks the endpoint $2^{23}$ against $\\pi/2$. Oddness and two’s-complement negation give the corresponding bounds on the negative half.","proof_lines":[120,196]}],"role":"definition","lean":true,"name":"QuantumComputation.Specs.arcsinValidInputs","module":"QuantumComputationDiscoveries.Primitives.Arcsin","lines":[80,81],"plain":"Fixed-point codes for [−1, 1]","relation":"defines","anchor":"block-A6.SS1-block-2","at":"b147303-147359","origin":"ai","explanation":{"text":"","citations":[{"ref":"arcsin/precision/9fe5b001b05d","title":"Passage in the authors’ arXiv text","url":"https://arxiv.org/html/2611.09822v3#A6.SS1.p2.1"}]}},{"record":"arcsin/reversible-action","phrase":"arcsin/reversible-action/7df812fa864c","topic":"arcsin","part":0,"tone":2,"rows":[{"name":"QuantumComputation.Specs.arcsin_correctness","line":352,"end_line":446,"module":"QuantumComputationDiscoveries.Primitives.Arcsin","plain":"Uniform approximation and exact modular addition","lines":[354,361],"exact_lines":true,"relation":"states","note":"","annotation":"`arcsinValidInputs` appears only in the error clause. The one table $z$ applies on all $2^{25}$ input codes, including codes outside $[-1,1]$, and the same entry determines the exact update for every $b$. Thus the unitary clause covers all $2^{50}$ data basis pairs.","proof_lines":[362,446],"fidelity":"same","fidelity_source":"ai"},{"name":"QuantumComputation.Specs.ArcsinImpl.exec_fullK25Ops","line":1499,"end_line":1565,"module":"QuantumComputationDiscoveries.Primitives.Arcsin.Solution.StageProofB","plain":"Input restoration, ancilla cleanup and modular addition","lines":[1499,1507],"exact_lines":true,"relation":"states","note":"","annotation":"`hy_in` identifies the 25 input wires with the bits of their local index. The output is free to start at any $b$. For a negative input, the proof complements $b$ before and after adding the magnitude increment, so the two complements turn that addition into subtraction modulo $2^{25}$.","proof_lines":[1508,1565]}],"role":"statement","lean":true,"name":"QuantumComputation.Specs.arcsin_correctness","module":"QuantumComputationDiscoveries.Primitives.Arcsin","lines":[354,361],"plain":"Uniform approximation and exact modular addition","relation":"states","anchor":"block-A6.SS1-block-2","at":"b147458-147527","origin":"ai","explanation":{"text":"","citations":[{"ref":"arcsin/reversible-action/7df812fa864c","title":"Passage in the authors’ arXiv text","url":"https://arxiv.org/html/2611.09822v3#A6.SS1.p2.1"}]}},{"record":"arcsin/reversible-action","phrase":"arcsin/reversible-action/0e0be6a7d570","topic":"arcsin","part":0,"tone":2,"rows":[{"name":"RealizesCleanSubroutine","line":63,"end_line":71,"module":"QuantumComputation.QuantumHoareLogic.CleanAncilla","plain":"Hoare specification with zero ancillas at entry and return","lines":[63,71],"exact_lines":true,"relation":"states","note":"","annotation":"`RealizesCleanSubroutine` forms its postcondition from an arbitrary observable and restricts it to zero ancillas. The `qAssign` in the precondition pulls that observable back through the target unitary. A second restriction imposes zero ancillas at entry, so the triple specifies both the data action and the final state of the workspace.","proof_lines":[67,71]},{"name":"QuantumComputation.Specs.ArcsinImpl.realizesCleanSubroutine_compileList102","line":2731,"end_line":2780,"module":"QuantumComputationDiscoveries.Primitives.Arcsin.Solution.StageProofB","plain":"Clean unitary action from the phase-aware basis calculation","lines":[2731,2742],"exact_lines":false,"relation":"states","note":"","annotation":"In `hex`, `lift102` places the simulated output back on the ambient wires. The equality with `writeReg β rData` requires that only the data register changes, by the prescribed permutation. In particular, the initially zero ancilla wires and the wires outside the module retain their values.","proof_lines":[2743,2780]}],"role":"statement","lean":true,"name":"RealizesCleanSubroutine","module":"QuantumComputation.QuantumHoareLogic.CleanAncilla","lines":[63,71],"plain":"Hoare specification with zero ancillas at entry and return","relation":"states","anchor":"block-A6.SS1-block-2","at":"b147532-147578","origin":"ai","explanation":{"text":"","citations":[{"ref":"arcsin/reversible-action/0e0be6a7d570","title":"Passage in the authors’ arXiv text","url":"https://arxiv.org/html/2611.09822v3#A6.SS1.p2.1"}]}},{"record":"arcsin/benchmark-cost","phrase":"arcsin/benchmark-cost/c73ca9660617","topic":"arcsin","part":0,"tone":2,"rows":[{"name":"QuantumComputationDiscoveries.Primitives.Arcsin:QuantumComputation.Specs.arcsin_k25_const_cost","line":482,"end_line":504,"module":"QuantumComputationDiscoveries.Primitives.Arcsin","plain":"Benchmark spacetime bound and primitive Toffoli count","lines":[482,503],"exact_lines":true,"relation":"states","note":"","annotation":"The cost predicate has two conjuncts. `count_TOFF_k25DynCircuit` establishes the zero primitive Toffoli count, and `hmul` gives the inequality $100\\,\\mathcal T\\le 100\\cdot3{,}698=369{,}800$. The same argument applies to every placement of the two 50-wire registers.","proof_lines":[484,504],"fidelity":"weaker","fidelity_source":"ai"},{"name":"QuantumComputation.Specs.arcsinAncillas","line":325,"end_line":328,"module":"QuantumComputationDiscoveries.Primitives.Arcsin","plain":"Clean ancillas for the optimized circuit","lines":[325,326],"exact_lines":true,"relation":"states","note":"","annotation":"The definition selects 50 ancillas at the benchmark. In the kickmix schedule in Figure S11(a), seven of the nine bits of $s$ occupy transformed input wires. Two ancillas suffice for storing the remaining index information and the displaced input bit. At peak they are counted alongside 19 high bits of $A$, 24 bits of $B,C$, and five lookup work qubits. Adding and clearing $A$ frees ancillas for $t^2$. The optimized schedule retains the 50-ancilla budget.","proof_lines":[326,328],"annotation_references":[{"start":80,"end":93,"key":"figure:s11"}]},{"name":"QuantumComputation.Specs.ArcsinImpl.count_T_k25DynCircuit","line":2089,"end_line":2093,"module":"QuantumComputationDiscoveries.Primitives.Arcsin.Solution.StageProofB","plain":"Compiled primitive T-count bound of 3,698","lines":[2089,2093],"exact_lines":true,"relation":"states","note":"","annotation":"The two 50-wire registers supply the data and ancillas of `k25DynCircuit`. The dynamic gate count adds sequential counts and charges each conditional the larger of its two branch counts. The theorem bounds this primitive $T$ count by $3{,}698$.","proof_lines":[2092,2093],"fidelity":"weaker","fidelity_source":"ai"},{"name":"QuantumComputation.Specs.ArcsinPrec.k25","line":55,"end_line":57,"module":"QuantumComputationDiscoveries.Primitives.Arcsin","plain":"Benchmark width 25 and tolerance 1.25 × 10⁻⁷","lines":[55,57],"exact_lines":true,"relation":"states","note":"","annotation":"`ArcsinPrec.k25` fixes $k=25$ and $\\varepsilon=1.25\\times10^{-7}$. The optimized branch allows this tolerance or a larger one at the same width. A different width or a smaller tolerance selects the rounded-table construction.","proof_lines":[56,57]}],"role":"statement","lean":true,"name":"QuantumComputationDiscoveries.Primitives.Arcsin:QuantumComputation.Specs.arcsin_k25_const_cost","module":"QuantumComputationDiscoveries.Primitives.Arcsin","lines":[482,503],"plain":"Benchmark spacetime bound and primitive Toffoli count","relation":"states","anchor":"block-A6.SS3-block-2","at":"b153198-153245","origin":"ai","explanation":{"text":"","citations":[{"ref":"arcsin/benchmark-cost/c73ca9660617","title":"Passage in the authors’ arXiv text","url":"https://arxiv.org/html/2611.09822v3#A6.SS3.p2.1"},{"ref":"verification/logical-spacetime/5395d1fba769","title":"Logical spacetime volume in qubits and T gates","url":"?l=b117539-117573","supports":"The benchmark uses 25 input qubits, 25 output qubits and 50 clean ancillas. The logical spacetime volume is their total width multiplied by the compiled circuit’s $T$-gate count."}]}},{"record":"arcsin/breakdown","phrase":"arcsin/breakdown/2daba6432bb8","topic":"arcsin","part":0,"tone":2,"rows":[{"name":"QuantumComputation.Specs.ArcsinImpl.andCount_fullK25Ops","line":4054,"end_line":4061,"module":"QuantumComputationDiscoveries.Primitives.Arcsin.Solution.StageCircuitB","plain":"The 776 temporary AND and relative-phase Toffoli operations","lines":[4054,4054],"exact_lines":false,"relation":"part","note":"","annotation":"The count 776 includes the temporary AND `and4t` and the relative-phase variants `rccx0` and `rccx1`. The execution proof checks each variant’s target condition. Measurement-based erasures and the single-qubit lookup rotations contribute zero to this operation count.","proof_lines":[4055,4061]},{"name":"QuantumComputation.Specs.ArcsinImpl.tCount_fullK25Ops","line":4104,"end_line":4111,"module":"QuantumComputationDiscoveries.Primitives.Arcsin.Solution.StageCircuitB","plain":"Exact symbolic T cost of 3,698","lines":[4104,4104],"exact_lines":false,"relation":"part","note":"","annotation":"The equality in `tCount_fullK25Ops` includes every operation class. Of its $3{,}698$ symbolic $T$ gates, $4\\cdot776=3{,}104$ come from the operations counted by `andCount`. The remaining contribution comes from the inner-product gadgets.","proof_lines":[4105,4111]},{"name":"QuantumComputation.Specs.ArcsinImpl.Op102.tCount","line":969,"end_line":974,"module":"QuantumComputationDiscoveries.Primitives.Arcsin.Solution.StageCircuitB","plain":"Symbolic T cost by operation","lines":[969,969],"exact_lines":false,"relation":"part","note":"","annotation":"Look at the `and4t`, `rccx0` and `rccx1` cases of `Op102.tCount`. Each contributes four, so multiplying the total of 776 by four gives $3{,}104$. This counts the symbolic $T$ cost assigned to the operations.","proof_lines":[970,974]}],"role":"derivation","lean":true,"name":"QuantumComputation.Specs.ArcsinImpl.andCount_fullK25Ops","module":"QuantumComputationDiscoveries.Primitives.Arcsin.Solution.StageCircuitB","lines":[4054,4054],"plain":"The 776 temporary AND and relative-phase Toffoli operations","relation":"part","anchor":"block-A6.SS3-block-4","at":"b154506-154584","origin":"ai","explanation":{"text":"","citations":[{"ref":"arcsin/breakdown/2daba6432bb8","title":"Passage in the authors’ arXiv text","url":"https://arxiv.org/html/2611.09822v3#A6.T2"},{"ref":"https://dx.doi.org/10.22331/q-2018-06-18-74","title":"10.22331/q-2018-06-18-74","url":"https://dx.doi.org/10.22331/q-2018-06-18-74"}]}},{"record":"arcsin/breakdown","phrase":"arcsin/breakdown/ab60e1a9d9ca","topic":"arcsin","part":0,"tone":2,"rows":[{"name":"QuantumComputation.Specs.ArcsinImpl.andCount_fullK25Ops","line":4054,"end_line":4061,"module":"QuantumComputationDiscoveries.Primitives.Arcsin.Solution.StageCircuitB","plain":"The 776 temporary AND and relative-phase Toffoli operations","lines":[4054,4054],"exact_lines":true,"relation":"part","note":"","annotation":"The paper counts 1,038 four-$T$ operations in the earlier circuit. The optimized list has 776, a difference of 262 operations or $1{,}048$ $T$ gates at four each. The 594 new lookup rotations bring the net reported saving to 454.","proof_lines":[4055,4061]},{"name":"QuantumComputation.Specs.ArcsinImpl.tCount_fullK25Ops","line":4104,"end_line":4111,"module":"QuantumComputationDiscoveries.Primitives.Arcsin.Solution.StageCircuitB","plain":"Exact symbolic T cost of 3,698","lines":[4104,4111],"exact_lines":true,"relation":"part","note":"","annotation":"The operation list has exact symbolic cost $3{,}698$. Taking away the $3{,}104$ accounted for by the four-$T$ operations leaves 594 units of cost. `Op102.tCount` assigns those units to entries in the lookup gadgets’ phase lists.","proof_lines":[4105,4111]},{"name":"QuantumComputation.Specs.ArcsinImpl.count_T_hGadgetCircuit","line":1965,"end_line":1972,"module":"QuantumComputationDiscoveries.Primitives.Arcsin.Solution.StageProofB","plain":"T and T† count of one inner-product gadget","lines":[1965,1967],"exact_lines":true,"relation":"part","note":"","annotation":"Every phase-list entry updates the parity with Clifford gates, then applies one $T$ or $T^\\dagger$ on the target. The count is independent of how many control bits enter the parity. The example in Figure S11(c) has three rotations of each sign, for six in all.","proof_lines":[1968,1972],"annotation_references":[{"start":197,"end":210,"key":"figure:s11"}]},{"name":"QuantumComputation.Specs.ArcsinImpl.Op102.tCount","line":969,"end_line":974,"module":"QuantumComputationDiscoveries.Primitives.Arcsin.Solution.StageCircuitB","plain":"Symbolic T cost by operation","lines":[969,974],"exact_lines":true,"relation":"part","note":"","annotation":"The paper’s $r$-product block uses $2r+2$ rotations. At four $T$ gates for each separate temporary AND, the corresponding $r$ products would cost $4r$. For $r=2$ that gives six versus eight gates. The shared control products are charged to their own operations in the full list.","proof_lines":[970,974]},{"name":"QuantumComputation.Specs.ArcsinImpl.s3aAllSeq","line":110,"end_line":110,"module":"QuantumComputationDiscoveries.Primitives.Arcsin.Solution.StageTablesB","plain":"26 inner-product gadgets before adding A","lines":[110,110],"exact_lines":true,"relation":"part","note":"","annotation":"`s3aAllSeq` contains 26 inner-product gadgets with 364 phase rotations. It also includes the preparation of shared products at a cost of 132 $T$ gates. These two contributions sum to 496 for the first lookup stage."},{"name":"QuantumComputation.Specs.ArcsinImpl.s3bPostOps","line":154,"end_line":154,"module":"QuantumComputationDiscoveries.Primitives.Arcsin.Solution.StageTablesB","plain":"15 inner-product gadgets after adding A","lines":[154,154],"exact_lines":true,"relation":"part","note":"","annotation":"`s3bPostOps` contains 15 inner-product gadgets with 230 phase rotations. The post-adder load in Figure S11(b) also spends 64 $T$ gates computing shared products, for a total of 294. `s3bOps` includes the addition of $A$ before this load.","annotation_references":[{"start":96,"end":109,"key":"figure:s11"}]}],"role":"derivation","lean":true,"name":"QuantumComputation.Specs.ArcsinImpl.andCount_fullK25Ops","module":"QuantumComputationDiscoveries.Primitives.Arcsin.Solution.StageCircuitB","lines":[4054,4054],"plain":"The 776 temporary AND and relative-phase Toffoli operations","relation":"part","anchor":"block-A6.SS3-block-4","at":"b154600-154682","origin":"ai","explanation":{"text":"","citations":[{"ref":"arcsin/breakdown/ab60e1a9d9ca","title":"Passage in the authors’ arXiv text","url":"https://arxiv.org/html/2611.09822v3#A6.T2"},{"ref":"https://dx.doi.org/10.22331/q-2018-06-18-74","title":"10.22331/q-2018-06-18-74","url":"https://dx.doi.org/10.22331/q-2018-06-18-74"}]}},{"record":"arcsin/benchmark-cost","phrase":"arcsin/benchmark-cost/0a9ed2680163","topic":"arcsin","part":0,"tone":2,"rows":[{"name":"QuantumComputation.Specs.arcsinSpacetime","line":457,"end_line":460,"module":"QuantumComputationDiscoveries.Primitives.Arcsin","plain":"Spacetime cost from qubit and T counts","lines":[457,460],"exact_lines":true,"relation":"defines","note":"","annotation":"$Q=2k+m$ counts both data registers and the full workspace even if some wires are idle during an operation. The second factor is the primitive $T$ count. At the benchmark the width is $25+25+50=100$.","proof_lines":[460,460],"fidelity":"same","fidelity_source":"ai"},{"name":"QuantumComputation.Specs.SatisfiesArcsinSpacetimeBound","line":472,"end_line":477,"module":"QuantumComputationDiscoveries.Primitives.Arcsin","plain":"Predicate for a spacetime bound and zero primitive Toffolis","lines":[472,477],"exact_lines":true,"relation":"defines","note":"","annotation":"The predicate asks for both a spacetime bound and zero primitive `TOFF` gates. A primitive Toffoli would contribute zero to a count of `PrimitiveGate.T` alone. The temporary ANDs and relative-phase Toffoli operations expand into Clifford and $T$ gates, with measurements where applicable.","proof_lines":[473,477]}],"role":"definition","lean":true,"name":"QuantumComputation.Specs.arcsinSpacetime","module":"QuantumComputationDiscoveries.Primitives.Arcsin","lines":[457,460],"plain":"Spacetime cost from qubit and T counts","relation":"defines","anchor":"block-A6.SS3-block-5","at":"b154848-154884","origin":"ai","explanation":{"text":"","citations":[{"ref":"arcsin/benchmark-cost/0a9ed2680163","title":"Passage in the authors’ arXiv text","url":"https://arxiv.org/html/2611.09822v3#A6.T2.4"}]}},{"record":"arcsin/benchmark-cost","phrase":"arcsin/benchmark-cost/84b7dbb4dfab","topic":"arcsin","part":0,"tone":2,"rows":[{"name":"QuantumComputation.Specs.ArcsinImpl.tCount_fullK25Ops","line":4104,"end_line":4111,"module":"QuantumComputationDiscoveries.Primitives.Arcsin.Solution.StageCircuitB","plain":"Exact symbolic T cost of 3,698","lines":[4104,4111],"exact_lines":true,"relation":"part","note":"","annotation":"`tCount_fullK25Ops` gives the exact list tally $4\\cdot776+594=3{,}698$. The first term comes from temporary AND and relative-phase Toffoli operations. The second sums the lengths of the lookup phase lists. The wire moves between stages contribute zero.","proof_lines":[4105,4111]},{"name":"QuantumComputation.Specs.ArcsinImpl.count_T_k25DynCircuit","line":2089,"end_line":2093,"module":"QuantumComputationDiscoveries.Primitives.Arcsin.Solution.StageProofB","plain":"Compiled primitive T-count bound of 3,698","lines":[2089,2093],"exact_lines":true,"relation":"part","note":"","annotation":"`count_T_compileList102` bounds the primitive gate count of the compiled list by its symbolic cost. `le_of_eq tCount_fullK25Ops` then substitutes the exact list total. Together they give an upper bound of $3{,}698$ on the compiled circuit.","proof_lines":[2092,2093],"fidelity":"weaker","fidelity_source":"ai"}],"role":"derivation","lean":true,"name":"QuantumComputation.Specs.ArcsinImpl.tCount_fullK25Ops","module":"QuantumComputationDiscoveries.Primitives.Arcsin.Solution.StageCircuitB","lines":[4104,4111],"plain":"Exact symbolic T cost of 3,698","relation":"part","anchor":"block-A6.SS3-block-16","at":"b157250-157300","origin":"ai","explanation":{"text":"","citations":[{"ref":"arcsin/benchmark-cost/84b7dbb4dfab","title":"Passage in the authors’ arXiv text","url":"https://arxiv.org/html/2611.09822v3#A6.F11"}]}},{"record":"arcsin/endpoint","phrase":"arcsin/endpoint/a58b9be87d26","topic":"arcsin","part":0,"tone":2,"rows":[{"name":"QuantumComputation.Specs.z25_satisfies_abs_error","line":118,"end_line":196,"module":"QuantumComputationDiscoveries.Primitives.Arcsin","plain":"Uniform absolute error of the implemented table","lines":[166,184],"exact_lines":true,"relation":"part","note":"","annotation":"For a negative interior input, the proof negates the decoded increment and uses $\\arcsin(-x)=-\\arcsin(x)$. The resulting error is the absolute value of minus the positive-input error, so `abs_neg` transfers the bound. The endpoint follows the same sign rule. At $-1$ the code for the increment is $2^{25}-13{,}176{,}795=20{,}377{,}637$.","proof_lines":[120,196]},{"name":"QuantumComputation.Specs.ArcsinImpl.z25Delta","line":1446,"end_line":1450,"module":"QuantumComputationDiscoveries.Primitives.Arcsin.Solution.StageProofB","plain":"Sign restoration by two’s-complement negation","lines":[1446,1450],"exact_lines":true,"relation":"part","note":"","annotation":"For a valid negative input, `testBit 24` selects the branch that recovers the magnitude by subtracting the input code from $2^{25}$. The later subtraction modulo $2^{25}$ encodes the negative of the magnitude result. At $y=-1$ the unsigned input code is $25{,}165{,}824$ and the magnitude code is $8{,}388{,}608$.","proof_lines":[1447,1450]}],"role":"explanation","lean":true,"name":"QuantumComputation.Specs.z25_satisfies_abs_error","module":"QuantumComputationDiscoveries.Primitives.Arcsin","lines":[166,184],"plain":"Uniform absolute error of the implemented table","relation":"part","anchor":"block-A6.SS4-block-2","at":"b157765-157819","origin":"ai","explanation":{"text":"","citations":[{"ref":"arcsin/endpoint/a58b9be87d26","title":"Passage in the authors’ arXiv text","url":"https://arxiv.org/html/2611.09822v3#A6.SS4.p2.1"}]}},{"record":"arcsin/interval-approximation","phrase":"arcsin/interval-approximation/9dd190656298","topic":"arcsin","part":0,"tone":2,"rows":[{"name":"QuantumComputation.Specs.ArcsinImpl.s1AddVal_of_lt","line":213,"end_line":216,"module":"QuantumComputationDiscoveries.Primitives.Arcsin.Solution.StageProofA","plain":"The linear term |y| in the first addition","lines":[213,213],"exact_lines":false,"relation":"part","note":"","annotation":"The decoder uses the same binary scale in the input and output registers. For $|y|<1$, `s1AddVal_of_lt` therefore adds $|y|$ by transferring its fixed-point code exactly. Near zero the remainder starts at order $|y|^3$, since $\\arcsin x-x=x^3/6+O(x^5)$.","proof_lines":[214,216]},{"name":"QuantumComputation.Specs.ArcsinImpl.rawDelta25_pos_lt8388608","line":1417,"end_line":1444,"module":"QuantumComputationDiscoveries.Primitives.Arcsin.Solution.StageProofB","plain":"Unsigned circuit output and its interval formula","lines":[1417,1419],"exact_lines":false,"relation":"part","note":"","annotation":"The first addition contributes the input magnitude code $u$. The expression in `rawMidDelta25Slice` adds the row’s full increment and subtracts $u$ modulo $2^{25}$. Adding the two stages gives the row’s full increment, which is the value used in the error proof.","proof_lines":[1420,1444]}],"role":"explanation","lean":true,"name":"QuantumComputation.Specs.ArcsinImpl.s1AddVal_of_lt","module":"QuantumComputationDiscoveries.Primitives.Arcsin.Solution.StageProofA","lines":[213,213],"plain":"The linear term |y| in the first addition","relation":"part","anchor":"block-A6.SS4-block-2","at":"b157944-157998","origin":"ai","explanation":{"text":"","citations":[{"ref":"arcsin/interval-approximation/9dd190656298","title":"Passage in the authors’ arXiv text","url":"https://arxiv.org/html/2611.09822v3#A6.SS4.p2.1"}]}},{"record":"arcsin/interval-approximation","phrase":"arcsin/interval-approximation/4e5f79150eee","topic":"arcsin","part":0,"tone":2,"rows":[{"name":"QuantumComputation.Specs.ArcsinImpl.rawDelta25_pos_lt8388608","line":1417,"end_line":1444,"module":"QuantumComputationDiscoveries.Primitives.Arcsin.Solution.StageProofB","plain":"Unsigned circuit output and its interval formula","lines":[1417,1419],"exact_lines":true,"relation":"part","note":"","annotation":"The theorem finds a row of `leafData25` for each code $u<2^{23}$. Counting the entries gives 1,064 rows in 440 consecutive groups with the same coefficients and rotation. The first group has 96 rows covering $[0,65{,}536)$, so one polynomial interval can supply many rows of the certificate.","proof_lines":[1420,1444]},{"name":"QuantumComputation.Specs.ArcsinImpl.ptPosOK25_all","line":2597,"end_line":2690,"module":"QuantumComputationDiscoveries.Primitives.Arcsin.Solution.PolyBoundB","plain":"Error and arithmetic bounds on the interior grid","lines":[2597,2602],"exact_lines":true,"relation":"part","note":"","annotation":"The certificate checks each row in blocks where the square lookup is constant. The bits that vary within a block enter the remaining arithmetic as a weighted sum. The proof bounds that sum and its truncation by affine functions, then compares them with lower and upper bounds for $\\arcsin$ to certify the error throughout the block.","proof_lines":[2599,2690]}],"role":"derivation","lean":true,"name":"QuantumComputation.Specs.ArcsinImpl.rawDelta25_pos_lt8388608","module":"QuantumComputationDiscoveries.Primitives.Arcsin.Solution.StageProofB","lines":[1417,1419],"plain":"Unsigned circuit output and its interval formula","relation":"part","anchor":"block-A6.SS4-block-2","at":"b158061-158117","origin":"ai","explanation":{"text":"","citations":[{"ref":"arcsin/interval-approximation/4e5f79150eee","title":"Passage in the authors’ arXiv text","url":"https://arxiv.org/html/2611.09822v3#A6.SS4.p2.1"}]}},{"record":"arcsin/endpoint","phrase":"arcsin/endpoint/e687f4ef5475","topic":"arcsin","part":0,"tone":2,"rows":[{"name":"QuantumComputation.Specs.ArcsinImpl.rawDelta25_8388608","line":1398,"end_line":1398,"module":"QuantumComputationDiscoveries.Primitives.Arcsin.Solution.StageProofB","plain":"The output code 13,176,795 at +1","lines":[1398,1398],"exact_lines":true,"relation":"part","note":"","annotation":"At $|y|=1$, bit 23 of the magnitude code is set and the 23 lower bits are zero. The initial addition `s1AddVal` yields $13{,}176{,}795$ for that code. The remainder computation receives the low bits, which give zero contribution modulo $2^{25}$ at this input."},{"name":"QuantumComputation.Specs.z25_satisfies_abs_error","line":118,"end_line":196,"module":"QuantumComputationDiscoveries.Primitives.Arcsin","plain":"Uniform absolute error of the implemented table","lines":[142,152],"exact_lines":true,"relation":"part","note":"","annotation":"The positive endpoint branch decodes the computed code as $13{,}176{,}795/2^{23}$. After rewriting $\\arcsin(1)=\\pi/2$, the proof uses upper and lower bounds on $\\pi$ to bound the absolute error. The numerical difference is about $4.37\\times10^{-8}$.","proof_lines":[120,196]}],"role":"explanation","lean":true,"name":"QuantumComputation.Specs.ArcsinImpl.rawDelta25_8388608","module":"QuantumComputationDiscoveries.Primitives.Arcsin.Solution.StageProofB","lines":[1398,1398],"plain":"The output code 13,176,795 at +1","relation":"part","anchor":"block-A6.SS4-block-2","at":"b158581-158621","origin":"ai","explanation":{"text":"","citations":[{"ref":"arcsin/endpoint/e687f4ef5475","title":"Passage in the authors’ arXiv text","url":"https://arxiv.org/html/2611.09822v3#A6.SS4.p2.1"}]}},{"record":"arcsin/interval-approximation","phrase":"arcsin/interval-approximation/35ddc0d1ac2d","topic":"arcsin","part":0,"tone":2,"rows":[{"name":"QuantumComputation.Specs.ArcsinImpl.deltaPos25","line":110,"end_line":111,"module":"QuantumComputationDiscoveries.Primitives.Arcsin.Solution.PolyDefs","plain":"Fixed-point interval formula with truncation","lines":[110,111],"exact_lines":true,"relation":"part","note":"","annotation":"The formula uses bit slices for the slope and a nine-bit lookup for the square. At address 511, `sq9Val` gives 508, while $\\lfloor511^2/512\\rfloor=510$. The full numerator includes $16u$ from the initial addition. Dividing by 16 truncates it to the output grid.","proof_lines":[111,111]},{"name":"QuantumComputation.Specs.ArcsinImpl.PtPosOK25","line":887,"end_line":891,"module":"QuantumComputationDiscoveries.Primitives.Arcsin.Solution.PolyBoundA","plain":"Error, subtraction and output-code conditions","lines":[887,891],"exact_lines":true,"relation":"part","note":"","annotation":"The second conjunct requires the positive sum to be at least the negative sum. This ensures subtraction in $\\mathbb N$ gives the intended difference. The third conjunct bounds the output code below $2^{24}$, placing it in the nonnegative half of the signed register. The first conjunct then bounds its error after decoding.","proof_lines":[888,891]},{"name":"QuantumComputation.Specs.ArcsinImpl.rawDelta25_pos_lt8388608","line":1417,"end_line":1444,"module":"QuantumComputationDiscoveries.Primitives.Arcsin.Solution.StageProofB","plain":"Unsigned circuit output and its interval formula","lines":[1417,1424],"exact_lines":true,"relation":"part","note":"","annotation":"The equality links the circuit increment to the formula for a certificate row. The overlap check `checkCubeLeaves` calls `checkLeafMidConst` to compare the circuit’s rotation, loaded bits and effective constant with the row whenever their intervals overlap. The pointwise error theorem can then be applied to that formula.","proof_lines":[1420,1444]},{"name":"QuantumComputation.Specs.ArcsinImpl.leafP_0","line":50,"end_line":148,"module":"QuantumComputationDiscoveries.Primitives.Arcsin.Solution.PolyTables","plain":"First certificate row with three 64-code blocks","lines":[50,51],"exact_lines":true,"relation":"part","note":"","annotation":"The first row covers $[0,192)$ in three 64-code blocks, as recorded by `b_sub = 6` and `nsteps = 3`. Evaluating its integer formula at code 127 gives $(3{,}573-1{,}525)/16=128$. The exact angle in grid units is between 127 and 127.5, so 127 is nearest and the circuit’s 128 meets the error tolerance.","proof_lines":[51,148]}],"role":"derivation","lean":true,"name":"QuantumComputation.Specs.ArcsinImpl.deltaPos25","module":"QuantumComputationDiscoveries.Primitives.Arcsin.Solution.PolyDefs","lines":[110,111],"plain":"Fixed-point interval formula with truncation","relation":"part","anchor":"block-A6.SS4-block-2","at":"b158994-159045","origin":"ai","explanation":{"text":"","citations":[{"ref":"arcsin/interval-approximation/35ddc0d1ac2d","title":"Passage in the authors’ arXiv text","url":"https://arxiv.org/html/2611.09822v3#A6.SS4.p2.1"}]}},{"record":"arcsin/lookup","phrase":"arcsin/lookup/6eb5613cf77a","topic":"arcsin","part":0,"tone":2,"rows":[{"name":"QuantumComputation.Specs.ArcsinImpl.count_T_fixupQuad","line":633,"end_line":637,"module":"QuantumComputationDiscoveries.Primitives.Arcsin.Solution.LowerKraus","plain":"Zero-T correction after measurement","lines":[633,637],"exact_lines":true,"relation":"part","note":"","annotation":"Measuring a scratch qubit holding $f(x)$ in the $X$ basis contributes a sign $(-1)^{mf(x)}$ when the outcome is $m$. For a sum modulo two of quadratic and linear terms, conditional $CZ$ and $Z$ gates cancel the sign. A final $X$ resets the measured qubit in the correction branch. The zero-$T$ theorem covers that correction circuit. Figure S11(a) assigns 84 $T$ gates to the larger block that clears $t^2$.","proof_lines":[635,637],"annotation_references":[{"start":334,"end":347,"key":"figure:s11"}]},{"name":"QuantumComputation.Specs.ArcsinImpl.exec_fullK25Ops","line":1499,"end_line":1565,"module":"QuantumComputationDiscoveries.Primitives.Arcsin.Solution.StageProofB","plain":"Input restoration, ancilla cleanup and modular addition","lines":[1499,1507],"exact_lines":true,"relation":"part","note":"","annotation":"The concluding bit equalities restore the input, clear all 50 ancillas, and give the modular sum in the output register. The phase flag of the full operation list is also zero. These are the basis-state conditions used by `realizesCleanSubroutine_compileList102` to obtain the clean quantum operation including measurements.","proof_lines":[1508,1565]}],"role":"derivation","lean":true,"name":"QuantumComputation.Specs.ArcsinImpl.count_T_fixupQuad","module":"QuantumComputationDiscoveries.Primitives.Arcsin.Solution.LowerKraus","lines":[633,637],"plain":"Zero-T correction after measurement","relation":"part","anchor":"block-A6.SS4-block-2","at":"b159294-159406","origin":"ai","explanation":{"text":"","citations":[{"ref":"arcsin/lookup/6eb5613cf77a","title":"Passage in the authors’ arXiv text","url":"https://arxiv.org/html/2611.09822v3#A6.SS4.p2.1"},{"ref":"https://dx.doi.org/10.22331/q-2018-06-18-74","title":"10.22331/q-2018-06-18-74","url":"https://dx.doi.org/10.22331/q-2018-06-18-74"}]}},{"record":"arcsin/reversible-action","phrase":"arcsin/reversible-action/2137853be433","topic":"arcsin","part":0,"tone":2,"rows":[{"name":"QuantumComputation.Specs.ArcsinImpl.exec_fullK25Ops","line":1499,"end_line":1565,"module":"QuantumComputationDiscoveries.Primitives.Arcsin.Solution.StageProofB","plain":"Input restoration, ancilla cleanup and modular addition","lines":[1499,1507],"exact_lines":false,"relation":"part","note":"","annotation":"In the circuit, some input wires temporarily hold the interval index and the local offset. The final assignment `m7` must agree with `m0` on input wires 25–49 and have zeros on ancilla wires 50–99. Its lower 25 wires contain the modular sum. A separate conjunct gives phase $+1$.","proof_lines":[1508,1565]},{"name":"QuantumComputation.Specs.ArcsinImpl.realizesCleanSubroutine_compileList102","line":2731,"end_line":2780,"module":"QuantumComputationDiscoveries.Primitives.Arcsin.Solution.StageProofB","plain":"Clean unitary action from the phase-aware basis calculation","lines":[2731,2742],"exact_lines":false,"relation":"part","note":"","annotation":"The proof first bounds the measured program’s action using an average of its two corrected branch operators at each measurement. These lower bounds compose through the circuit. The bit and phase calculation identifies the resulting operator on the zero-ancilla subspace with the intended permutation. Injectivity of the underlying basis calculation excludes non-clean inputs from the clean output.","proof_lines":[2743,2780]}],"role":"explanation","lean":true,"name":"QuantumComputation.Specs.ArcsinImpl.exec_fullK25Ops","module":"QuantumComputationDiscoveries.Primitives.Arcsin.Solution.StageProofB","lines":[1499,1507],"plain":"Input restoration, ancilla cleanup and modular addition","relation":"part","anchor":"block-A6.SS4-block-2","at":"b159493-159548","origin":"ai","explanation":{"text":"","citations":[{"ref":"arcsin/reversible-action/2137853be433","title":"Passage in the authors’ arXiv text","url":"https://arxiv.org/html/2611.09822v3#A6.SS4.p2.1"}]}},{"record":"arcsin/lookup","phrase":"arcsin/lookup/8f469a59b411","topic":"arcsin","part":0,"tone":2,"rows":[{"name":"QuantumComputation.Specs.ArcsinImpl.hGadgetCircuit","line":1890,"end_line":1897,"module":"QuantumComputationDiscoveries.Primitives.Arcsin.Solution.StageProofB","plain":"Hadamard and phase sequence for a coefficient bit","lines":[1890,1897],"exact_lines":true,"relation":"part","note":"","annotation":"The first Hadamard creates two terms from a zero target, even when all control wires are in a basis state. The parity gates and the $T$ and $T^\\dagger$ rotations act on that same coefficient qubit. Between the Hadamards the intermediate state is a superposition, which takes this circuit outside kickmix.","proof_lines":[1892,1897]}],"role":"explanation","lean":true,"name":"QuantumComputation.Specs.ArcsinImpl.hGadgetCircuit","module":"QuantumComputationDiscoveries.Primitives.Arcsin.Solution.StageProofB","lines":[1890,1897],"plain":"Hadamard and phase sequence for a coefficient bit","relation":"part","anchor":"block-A6.SS4-block-4","at":"b160360-160434","origin":"ai","explanation":{"text":"","citations":[{"ref":"arcsin/lookup/8f469a59b411","title":"Passage in the authors’ arXiv text","url":"https://arxiv.org/html/2611.09822v3#A6.SS4.p4.1"},{"ref":"https://dx.doi.org/10.22331/q-2018-06-18-74","title":"10.22331/q-2018-06-18-74","url":"https://dx.doi.org/10.22331/q-2018-06-18-74"}]}},{"record":"arcsin/lookup","phrase":"arcsin/lookup/5301f9a38b8f","topic":"arcsin","part":0,"tone":2,"rows":[{"name":"QuantumComputation.Specs.ArcsinImpl.hGadgetCircuit","line":1890,"end_line":1897,"module":"QuantumComputationDiscoveries.Primitives.Arcsin.Solution.StageProofB","plain":"Hadamard and phase sequence for a coefficient bit","lines":[1890,1897],"exact_lines":true,"relation":"part","note":"","annotation":"Figure S11(c) uses the bit identity $2uv=u+v-(u\\oplus v)$. For the branch starting at zero, the first three rotations see $u_1$, $u_1\\oplus v_1$ and $v_1$ with signs $+,-,+$. The second product uses the opposite signs. The phase exponent is $2(u_1v_1-u_2v_2)$ in units of $\\pi/4$.","proof_lines":[1892,1897],"annotation_references":[{"start":0,"end":13,"key":"figure:s11"}]},{"name":"QuantumComputation.Specs.ArcsinImpl.hGadgetCircuit_mulVec_ket","line":2354,"end_line":2390,"module":"QuantumComputationDiscoveries.Primitives.Arcsin.Solution.StageProofB","plain":"Basis-state action and phase of an inner-product gadget","lines":[2354,2358],"exact_lines":false,"relation":"part","note":"","annotation":"The two target values are complementary at every rotation. With equal positive and negative list lengths, a phase exponent $q$ on one branch gives $-q$ on the other. The static check also guarantees that the final parity toggle is zero and $q$ is even. The relative phase is then $(-1)^{q/2}$, the sign that the second Hadamard converts into a bit.","proof_lines":[2359,2390]}],"role":"explanation","lean":true,"name":"QuantumComputation.Specs.ArcsinImpl.hGadgetCircuit","module":"QuantumComputationDiscoveries.Primitives.Arcsin.Solution.StageProofB","lines":[1890,1897],"plain":"Hadamard and phase sequence for a coefficient bit","relation":"part","anchor":"block-A6.SS4-block-4","at":"b160436-160534","origin":"ai","explanation":{"text":"","citations":[{"ref":"arcsin/lookup/5301f9a38b8f","title":"Passage in the authors’ arXiv text","url":"https://arxiv.org/html/2611.09822v3#A6.SS4.p4.1"},{"ref":"https://dx.doi.org/10.22331/q-2018-06-18-74","title":"10.22331/q-2018-06-18-74","url":"https://dx.doi.org/10.22331/q-2018-06-18-74"}]}},{"record":"arcsin/lookup","phrase":"arcsin/lookup/8905cf9b792f","topic":"arcsin","part":0,"tone":2,"rows":[{"name":"QuantumComputation.Specs.ArcsinImpl.hGadgetCircuit_mulVec_ket","line":2354,"end_line":2390,"module":"QuantumComputationDiscoveries.Primitives.Arcsin.Solution.StageProofB","plain":"Basis-state action and phase of an inner-product gadget","lines":[2354,2358],"exact_lines":false,"relation":"part","note":"","annotation":"For a zero target, the relative sign $(-1)^{q/2}$ before the second Hadamard gives the bit $(q/2)\\bmod2$. In Figure S11(c) that bit is $u_1v_1\\oplus u_2v_2$. `Function.update` writes it into the target. The multiplier `hGadgetPhase` records the scalar on the resulting basis state.","proof_lines":[2359,2390],"annotation_references":[{"start":109,"end":122,"key":"figure:s11"}]}],"role":"explanation","lean":true,"name":"QuantumComputation.Specs.ArcsinImpl.hGadgetCircuit_mulVec_ket","module":"QuantumComputationDiscoveries.Primitives.Arcsin.Solution.StageProofB","lines":[2354,2358],"plain":"Basis-state action and phase of an inner-product gadget","relation":"part","anchor":"block-A6.SS4-block-4","at":"b160540-160600","origin":"ai","explanation":{"text":"","citations":[{"ref":"arcsin/lookup/8905cf9b792f","title":"Passage in the authors’ arXiv text","url":"https://arxiv.org/html/2611.09822v3#A6.SS4.p4.1"},{"ref":"https://dx.doi.org/10.22331/q-2018-06-18-74","title":"10.22331/q-2018-06-18-74","url":"https://dx.doi.org/10.22331/q-2018-06-18-74"}]}},{"record":"arcsin/lookup","phrase":"arcsin/lookup/199bdb4fc55d","topic":"arcsin","part":0,"tone":2,"rows":[{"name":"QuantumComputation.Specs.ArcsinImpl.hGadgetCircuit_mulVec_ket","line":2354,"end_line":2390,"module":"QuantumComputationDiscoveries.Primitives.Arcsin.Solution.StageProofB","plain":"Basis-state action and phase of an inner-product gadget","lines":[2354,2362],"exact_lines":true,"relation":"part","note":"","annotation":"The pairs of products $(1,0)$ and $(0,1)$ in Figure S11(c) give exponents $2$ and $-2$. Both write a one to the coefficient qubit. After the final $S^\\dagger$ their phases are $+1$ and $-1$. The scalar in the theorem distinguishes the two outputs even though their target bits agree.","proof_lines":[2359,2390],"fidelity":"same","fidelity_source":"ai","annotation_references":[{"start":45,"end":58,"key":"figure:s11"}]},{"name":"QuantumComputation.Specs.ArcsinImpl.hGadgetPhase","line":2126,"end_line":2128,"module":"QuantumComputationDiscoveries.Primitives.Arcsin.Solution.StageProofB","plain":"Residual phase of an inner-product gadget","lines":[2126,2128],"exact_lines":true,"relation":"part","note":"","annotation":"Write the even exponent modulo eight as $2f+4g$. For a zero target, the second Hadamard produces the bit $f$ with phase $i^f(-1)^g$, and the final $S^\\dagger$ removes $i^f$. The Boolean lookup execution requires that zero-target case. With a target initially one, `hGadgetPhase` includes a factor of $i$ or $-i$.","proof_lines":[2127,2128]}],"role":"explanation","lean":true,"name":"QuantumComputation.Specs.ArcsinImpl.hGadgetCircuit_mulVec_ket","module":"QuantumComputationDiscoveries.Primitives.Arcsin.Solution.StageProofB","lines":[2354,2362],"plain":"Basis-state action and phase of an inner-product gadget","relation":"part","anchor":"block-A6.SS4-block-4","at":"b160611-160692","origin":"ai","explanation":{"text":"","citations":[{"ref":"arcsin/lookup/199bdb4fc55d","title":"Passage in the authors’ arXiv text","url":"https://arxiv.org/html/2611.09822v3#A6.SS4.p4.1"},{"ref":"https://dx.doi.org/10.22331/q-2018-06-18-74","title":"10.22331/q-2018-06-18-74","url":"https://dx.doi.org/10.22331/q-2018-06-18-74"}]}},{"record":"arcsin/lookup","phrase":"arcsin/lookup/34b4f9e9fce5","topic":"arcsin","part":0,"tone":2,"rows":[{"name":"QuantumComputation.Specs.ArcsinImpl.exec_preOps102_slice","line":2005,"end_line":2121,"module":"QuantumComputationDiscoveries.Primitives.Arcsin.Solution.StageProofA","plain":"Sign cancellation in each lookup pass","lines":[2059,2089],"exact_lines":true,"relation":"part","note":"","annotation":"The phase check adds the sign contributions as a bit mask over the reachable input slice. The first operation list includes $CZ$ corrections before its first inner-product gadget. A zero final mask gives sign $+1$ for each input in the slice. The proof applies the checker again to the lookup after adding $A$.","proof_lines":[2041,2121]},{"name":"QuantumComputation.Specs.ArcsinImpl.Op102.count_T_compile","line":2001,"end_line":2033,"module":"QuantumComputationDiscoveries.Primitives.Arcsin.Solution.StageProofB","plain":"Primitive T-count bound for a compiled operation","lines":[2001,2010],"exact_lines":true,"relation":"part","note":"","annotation":"The $Z$ and $CZ$ cases contribute zero to the primitive $T$ count. On wires holding $x$ and $x'$ a $CZ$ multiplies the state by $(-1)^{xx'}$. If one wire already holds a shared product of index bits, this gate can correct a sign of higher degree as a function of the index. A separate phase check proves cancellation for the actual lookup.","proof_lines":[2004,2033]}],"role":"derivation","lean":true,"name":"QuantumComputation.Specs.ArcsinImpl.exec_preOps102_slice","module":"QuantumComputationDiscoveries.Primitives.Arcsin.Solution.StageProofA","lines":[2059,2089],"plain":"Sign cancellation in each lookup pass","relation":"part","anchor":"block-A6.SS4-block-4","at":"b160694-160777","origin":"ai","explanation":{"text":"","citations":[{"ref":"arcsin/lookup/34b4f9e9fce5","title":"Passage in the authors’ arXiv text","url":"https://arxiv.org/html/2611.09822v3#A6.SS4.p4.1"},{"ref":"https://dx.doi.org/10.22331/q-2018-06-18-74","title":"10.22331/q-2018-06-18-74","url":"https://dx.doi.org/10.22331/q-2018-06-18-74"}]}},{"record":"arcsin/breakdown","phrase":"arcsin/breakdown/0e14093de706","topic":"arcsin","part":0,"tone":2,"rows":[{"name":"QuantumComputation.Specs.ArcsinImpl.tCount_s3a","line":4067,"end_line":4067,"module":"QuantumComputationDiscoveries.Primitives.Arcsin.Solution.StageCircuitB","plain":"First lookup stage with symbolic T cost 496","lines":[4067,4067],"exact_lines":true,"relation":"part","note":"","annotation":"Figure S11(b) gives 132 $T$ gates for preparing shared products in both circuits. The early lookup drops from $1{,}008$ to 364 $T$ gates in the figure’s accounting. The new symbolic total for this stage is $132+364=496$, a reduction of 644.","annotation_references":[{"start":0,"end":13,"key":"figure:s11"}]},{"name":"QuantumComputation.Specs.ArcsinImpl.tCount_s3b","line":4068,"end_line":4068,"module":"QuantumComputationDiscoveries.Primitives.Arcsin.Solution.StageCircuitB","plain":"Adding A and the second lookup at symbolic T cost 398","lines":[4068,4068],"exact_lines":true,"relation":"part","note":"","annotation":"The theorem totals 398 for adding $A$ and running the second lookup. Figure S11(b) separates that into 104 for the addition and 294 for the later load. With the first stage at 496, the optimized lookup-and-add cost is 894. The paper’s earlier cost for these three blocks is $1{,}348$.","annotation_references":[{"start":69,"end":82,"key":"figure:s11"}]}],"role":"derivation","lean":true,"name":"QuantumComputation.Specs.ArcsinImpl.tCount_s3a","module":"QuantumComputationDiscoveries.Primitives.Arcsin.Solution.StageCircuitB","lines":[4067,4067],"plain":"First lookup stage with symbolic T cost 496","relation":"part","anchor":"block-A6.SS4-block-4","at":"b161049-161116","origin":"ai","explanation":{"text":"","citations":[{"ref":"arcsin/breakdown/0e14093de706","title":"Passage in the authors’ arXiv text","url":"https://arxiv.org/html/2611.09822v3#A6.SS4.p4.1"},{"ref":"https://dx.doi.org/10.22331/q-2018-06-18-74","title":"10.22331/q-2018-06-18-74","url":"https://dx.doi.org/10.22331/q-2018-06-18-74"}]}},{"record":"fusion/model","phrase":"fusion/model/3b02681a8d6d","topic":"fusion","part":0,"tone":3,"rows":[{"name":"QuantumComputation.Specs.StoppingPower.IsGridState","line":195,"end_line":198,"module":"QuantumComputationDiscoveries.Algorithms.StoppingPower","plain":"Valid grid encodings and negative zero","lines":[195,196],"exact_lines":true,"relation":"defines","note":"","annotation":"The sign bit and zero magnitude give two bit strings for zero. `IsGridState` removes $(1,0)$ in every coordinate, leaving one string per integer. Six qubits then give the 63 electron values from $-31$ to $31$, and eight give the 255 projectile values from $-127$ to $127$.","proof_lines":[196,198]}],"role":"definition","lean":true,"name":"QuantumComputation.Specs.StoppingPower.IsGridState","module":"QuantumComputationDiscoveries.Algorithms.StoppingPower","lines":[195,196],"plain":"Valid grid encodings and negative zero","relation":"defines","anchor":"block-A7.SS1-block-1","at":"b162339-162406","origin":"ai","explanation":{"text":"","citations":[{"ref":"fusion/model/3b02681a8d6d","title":"Passage in the authors’ arXiv text","url":"https://arxiv.org/html/2611.09822v3#A7.SS1.p1.1"},{"ref":"https://dx.doi.org/10.1073/pnas.2317772121","title":"10.1073/pnas.2317772121","url":"https://dx.doi.org/10.1073/pnas.2317772121"},{"ref":"https://dx.doi.org/10.1103/PRXQuantum.2.040332","title":"10.1103/PRXQuantum.2.040332","url":"https://dx.doi.org/10.1103/PRXQuantum.2.040332"}]}},{"record":"fusion/model","phrase":"fusion/model/fd64c27da1f0","topic":"fusion","part":0,"tone":3,"rows":[{"name":"QuantumComputation.Specs.StoppingPower.hamiltonian","line":257,"end_line":267,"module":"QuantumComputationDiscoveries.Algorithms.StoppingPower","plain":"Discretized Hamiltonian on the plane-wave grid","lines":[257,267],"exact_lines":true,"relation":"defines","note":"","annotation":"Lean tests both indices of $\\langle x|H|y\\rangle$ before evaluating the kinetic and Coulomb terms. The resulting matrix is $H_{\\mathrm{grid}}\\oplus 0$, so the ideal evolution is $e^{-iH_{\\mathrm{grid}}t}\\oplus I$. In particular, it preserves the valid grid subspace.","proof_lines":[258,267],"fidelity":"same","fidelity_source":"ai"},{"name":"QuantumComputation.Specs.StoppingPower.IsGridState","line":195,"end_line":198,"module":"QuantumComputationDiscoveries.Algorithms.StoppingPower","plain":"Valid grid encodings and negative zero","lines":[195,196],"exact_lines":true,"relation":"defines","note":"","annotation":"`IsGridState` checks each momentum coordinate of one basis index. The Hamiltonian applies this test to both indices, then compares their decoded integer momenta to determine the transfer. For example, an electron at coordinate 30 cannot be transferred by $+2$ in that coordinate, since 32 is outside the electron grid.","proof_lines":[196,198]}],"role":"definition","lean":true,"name":"QuantumComputation.Specs.StoppingPower.hamiltonian","module":"QuantumComputationDiscoveries.Algorithms.StoppingPower","lines":[257,267],"plain":"Discretized Hamiltonian on the plane-wave grid","relation":"defines","anchor":"block-A7.SS1-block-4","at":"b163853-163902","origin":"ai","explanation":{"text":"","citations":[{"ref":"fusion/model/fd64c27da1f0","title":"Passage in the authors’ arXiv text","url":"https://arxiv.org/html/2611.09822v3#A7.SS1.p2.3"},{"ref":"https://dx.doi.org/10.1073/pnas.2317772121","title":"10.1073/pnas.2317772121","url":"https://dx.doi.org/10.1073/pnas.2317772121"},{"ref":"https://dx.doi.org/10.1103/PRXQuantum.2.040332","title":"10.1103/PRXQuantum.2.040332","url":"https://dx.doi.org/10.1103/PRXQuantum.2.040332"}]}},{"record":"fusion/time-evolution","phrase":"fusion/time-evolution/c6b5ceb3c34a","topic":"fusion","part":0,"tone":3,"rows":[{"name":"QuantumComputation.Specs.StoppingPower.fermionicProjector","line":208,"end_line":217,"module":"QuantumComputationDiscoveries.Algorithms.StoppingPower","plain":"Projector onto same-spin antisymmetric states","lines":[210,217],"exact_lines":true,"relation":"defines","note":"","annotation":"`spinUp` is the set of spin-up registers, and the other registers are spin-down. The condition `g i ∈ spinUp ↔ i ∈ spinUp` allows permutation of electrons within each set. If the first set has size $s$, there are $s!(218-s)!$ such permutations, the denominator of the signed average.","proof_lines":[210,217]},{"name":"QuantumComputation.Specs.stoppingPower_correctness","line":935,"end_line":971,"module":"QuantumComputationDiscoveries.Algorithms.StoppingPower","plain":"One compiled unitary for every spin partition","lines":[935,942],"exact_lines":false,"relation":"defines","note":"","annotation":"`stoppingPowerProgram` uses the same circuit for every spin assignment. The assignment appears through `fermionicProjector spinUp` in the approximation theorem and selects which input vectors enter the bound. A short-range subroutine can count electrons of both spins together because the occupation bound holds for every partition.","proof_lines":[943,971]}],"role":"definition","lean":true,"name":"QuantumComputation.Specs.StoppingPower.fermionicProjector","module":"QuantumComputationDiscoveries.Algorithms.StoppingPower","lines":[210,217],"plain":"Projector onto same-spin antisymmetric states","relation":"defines","anchor":"block-A7.SS1-block-5","at":"b164362-164438","origin":"ai","explanation":{"text":"","citations":[{"ref":"fusion/time-evolution/c6b5ceb3c34a","title":"Passage in the authors’ arXiv text","url":"https://arxiv.org/html/2611.09822v3#A7.SS1.p3.1"},{"ref":"https://dx.doi.org/10.1073/pnas.2317772121","title":"10.1073/pnas.2317772121","url":"https://dx.doi.org/10.1073/pnas.2317772121"}]}},{"record":"fusion/time-evolution","phrase":"fusion/time-evolution/267ef86a5ced","topic":"fusion","part":0,"tone":3,"rows":[{"name":"QuantumComputation.Specs.stoppingPower_correctness","line":935,"end_line":971,"module":"QuantumComputationDiscoveries.Algorithms.StoppingPower","plain":"One compiled unitary for every spin partition","lines":[935,942],"exact_lines":true,"relation":"states","note":"","annotation":"The same $W$ appears in both conjuncts of `stoppingPower_correctness`. The first compares $W$ with the target evolution in each spin sector. The second requires the compiled circuit, including any mid-circuit measurements and feed-forward, to realize the action of that $W$ on valid grid inputs with clean ancillas.","proof_lines":[943,971],"fidelity":"same","fidelity_source":"ai"},{"name":"RealizesUnitaryFromBasisOutcomesAndZeroWorkspace","line":78,"end_line":90,"module":"QuantumComputation.QuantumHoareLogic.CleanAncilla","plain":"Unitary realization on selected basis inputs","lines":[78,84],"exact_lines":false,"relation":"states","note":"","annotation":"For each joint output observable $M$, Lean compares the program's weakest precondition with $W^\\dagger M W$. It applies the same input projector to both expressions, then requires the program's expression to be at least as large in the positive-semidefinite order. The quantifier includes observables with off-diagonal entries, so the statement checks coherence between valid momentum configurations as well as their outcome probabilities.","proof_lines":[85,90]},{"name":"QuantumComputationDiscoveries.Algorithms.StoppingPower:QuantumComputation.Specs.ApproximatesTimeEvolution","line":129,"end_line":135,"module":"QuantumComputationDiscoveries.Algorithms.StoppingPower","plain":"Operator-norm error with zero ancillas","lines":[133,135],"exact_lines":true,"relation":"states","note":"","annotation":"The phase $\\varphi$ is chosen before taking the operator norm, so it is fixed across all input vectors of the given spin partition. Adding a scalar $cI$ to the Hamiltonian multiplies $e^{-iHt}$ by $e^{-ict}$, which can be absorbed into this phase. This is the freedom used when Appendix G.3 reproduces the interaction up to a constant.","proof_lines":[131,135],"annotation_references":[{"start":278,"end":290,"key":"appendix:g.3"}]}],"role":"statement","lean":true,"name":"QuantumComputation.Specs.stoppingPower_correctness","module":"QuantumComputationDiscoveries.Algorithms.StoppingPower","lines":[935,942],"plain":"One compiled unitary for every spin partition","relation":"states","anchor":"block-A7.SS1-block-5","at":"b164506-164564","origin":"ai","explanation":{"text":"","citations":[{"ref":"fusion/time-evolution/267ef86a5ced","title":"Passage in the authors’ arXiv text","url":"https://arxiv.org/html/2611.09822v3#A7.SS1.p3.1"},{"ref":"https://dx.doi.org/10.1073/pnas.2317772121","title":"10.1073/pnas.2317772121","url":"https://dx.doi.org/10.1073/pnas.2317772121"}]}},{"record":"fusion/time-evolution","phrase":"fusion/time-evolution/41bf909bdbe3","topic":"fusion","part":0,"tone":3,"rows":[{"name":"QuantumComputationDiscoveries.Algorithms.StoppingPower:QuantumComputation.Specs.ApproximatesTimeEvolution","line":129,"end_line":135,"module":"QuantumComputationDiscoveries.Algorithms.StoppingPower","plain":"Operator-norm error with zero ancillas","lines":[129,130],"exact_lines":false,"relation":"defines","note":"","annotation":"In `ApproximatesTimeEvolution` the zero-ancilla projector multiplies the operator difference on the right and fixes the input. The norm is on the joint output, so any amplitude in a nonzero ancilla state contributes to the error. The ideal output has ancillas in $|0\\rangle^{\\otimes m}$.","proof_lines":[131,135]},{"name":"RealizesUnitaryFromBasisOutcomesAndZeroWorkspace","line":78,"end_line":90,"module":"QuantumComputation.QuantumHoareLogic.CleanAncilla","plain":"Unitary realization on selected basis inputs","lines":[78,84],"exact_lines":false,"relation":"defines","note":"","annotation":"`restrictToZeroAncilla` fixes the workspace independently of `restrictToBasisOutcomes`, which allows superpositions of valid grid states. Every run therefore begins with zero workspace. The circuit prepares its own phase-gradient state during initialization and applies the inverse preparation during cleanup.","proof_lines":[85,90]}],"role":"definition","lean":true,"name":"QuantumComputationDiscoveries.Algorithms.StoppingPower:QuantumComputation.Specs.ApproximatesTimeEvolution","module":"QuantumComputationDiscoveries.Algorithms.StoppingPower","lines":[129,130],"plain":"Operator-norm error with zero ancillas","relation":"defines","anchor":"block-A7.SS1-block-7","at":"b164982-165039","origin":"ai","explanation":{"text":"","citations":[{"ref":"fusion/time-evolution/41bf909bdbe3","title":"Passage in the authors’ arXiv text","url":"https://arxiv.org/html/2611.09822v3#A7.SS1.p3.2"},{"ref":"https://dx.doi.org/10.1073/pnas.2317772121","title":"10.1073/pnas.2317772121","url":"https://dx.doi.org/10.1073/pnas.2317772121"}]}},{"record":"fusion/resource","phrase":"fusion/resource/7831c7fbf956","topic":"fusion","part":0,"tone":3,"rows":[{"name":"DynamicCircuit.count","line":200,"end_line":205,"module":"QuantumComputation.Circuits.ResourceCounting","plain":"Gate count with a maximum at each conditional","lines":[200,205],"exact_lines":true,"relation":"defines","note":"","annotation":"In `DynamicCircuit.count` a measurement adds zero to a $T$ count. A conditional with branches of cost 3 and 7 contributes 7, and consecutive pieces contribute the sum of their counts. Taking each maximum separately bounds every execution, even when the most expensive branches cannot all occur together.","proof_lines":[202,205]}],"role":"definition","lean":true,"name":"DynamicCircuit.count","module":"QuantumComputation.Circuits.ResourceCounting","lines":[200,205],"plain":"Gate count with a maximum at each conditional","relation":"defines","anchor":"block-A7.SS1-block-7","at":"b165356-165416","origin":"ai","explanation":{"text":"","citations":[{"ref":"fusion/resource/7831c7fbf956","title":"Passage in the authors’ arXiv text","url":"https://arxiv.org/html/2611.09822v3#A7.SS1.p3.2"}]}},{"record":"fusion/repeats","phrase":"fusion/repeats/f9e2a4220d8a","topic":"fusion","part":0,"tone":3,"rows":[{"name":"QuantumComputation.Specs.stoppingPower_const_cost","line":982,"end_line":996,"module":"QuantumComputationDiscoveries.Algorithms.StoppingPower","plain":"Spacetime bound for 500 evolutions","lines":[982,987],"exact_lines":true,"relation":"states","note":"","annotation":"Write $T_j$ for the $T$-gate bound at time $t=j+1$ and $Q$ for the common logical width. The formula in `stoppingPower_const_cost` counts $50Q\\sum_jT_j$ for all 500 evolutions. Dividing by 500 yields the arithmetic mean $Q\\sum_jT_j/10$ for the ten times.","proof_lines":[988,996]},{"name":"QuantumComputation.Specs.stoppingPowerProgram","line":915,"end_line":924,"module":"QuantumComputationDiscoveries.Algorithms.StoppingPower","plain":"Circuit for evolution to t = j + 1","lines":[915,924],"exact_lines":true,"relation":"states","note":"","annotation":"The index $j$ picks both the number of segments and how each segment is constructed. For example, the Hamiltonian error cap for the block encoding decreases from $0.009762677$ Ha at $t=1$ to $0.000892$ Ha at $t=10$. The 50 runs at any one time all use the same circuit.","proof_lines":[918,924]}],"role":"statement","lean":true,"name":"QuantumComputation.Specs.stoppingPower_const_cost","module":"QuantumComputationDiscoveries.Algorithms.StoppingPower","lines":[982,987],"plain":"Spacetime bound for 500 evolutions","relation":"states","anchor":"block-A7.SS1-block-8","at":"b165528-165618","origin":"ai","explanation":{"text":"","citations":[{"ref":"fusion/repeats/f9e2a4220d8a","title":"Passage in the authors’ arXiv text","url":"https://arxiv.org/html/2611.09822v3#A7.SS1.p4.1"},{"ref":"verification/logical-spacetime/5395d1fba769","title":"Logical spacetime volume in qubits and T gates","url":"?l=b117539-117573","supports":"Multiply each horizon’s $T$-gate count by its 50 runs, sum over the ten horizons, and multiply by the common logical width, including workspace."},{"ref":"https://dx.doi.org/10.1073/pnas.2317772121","title":"10.1073/pnas.2317772121","url":"https://dx.doi.org/10.1073/pnas.2317772121"}]}},{"record":"fusion/basis","phrase":"fusion/basis/8b402209c9cd","topic":"fusion","part":0,"tone":3,"rows":[{"name":"QuantumComputation.Specs.StoppingPowerSolution.PosMod4FermionicBounds.slot2_headMod4_conj_mul_fermionicProjector","line":4002,"end_line":4061,"module":"QuantumComputationDiscoveries.Algorithms.StoppingPower.Solution.PosPhaseMod4Bnds","plain":"Branch average 1 − N in the displaced orbital","lines":[4002,4008],"exact_lines":true,"relation":"part","note":"","annotation":"The 63 electron momenta per coordinate generate transfers from $-62$ to $62$. A 64-point Fourier grid identifies transfers such as 40 and $-24$, which differ by 64. The underlying grid with 128 points per coordinate separates them. Lean averages over the eight parity subgrids of that grid, and the displayed equality handles one proton and one subgrid with a 48-bit displacement phase.","proof_lines":[4009,4061]}],"role":"explanation","lean":true,"name":"QuantumComputation.Specs.StoppingPowerSolution.PosMod4FermionicBounds.slot2_headMod4_conj_mul_fermionicProjector","module":"QuantumComputationDiscoveries.Algorithms.StoppingPower.Solution.PosPhaseMod4Bnds","lines":[4002,4008],"plain":"Branch average 1 − N in the displaced orbital","relation":"part","anchor":"block-A7.SS3-block-2","at":"b169379-169442","origin":"ai","explanation":{"text":"","citations":[{"ref":"fusion/basis/8b402209c9cd","title":"Passage in the authors’ arXiv text","url":"https://arxiv.org/html/2611.09822v3#A7.SS3.p2.1"},{"ref":"https://dx.doi.org/10.1103/PRXQuantum.2.040332","title":"10.1103/PRXQuantum.2.040332","url":"https://dx.doi.org/10.1103/PRXQuantum.2.040332"}]}},{"record":"fusion/pauli","phrase":"fusion/pauli/101c710b28fc","topic":"fusion","part":0,"tone":3,"rows":[{"name":"QuantumComputation.Specs.StoppingPowerSolution.PosMod4FermionicBounds.slot2HeadMod4Bit","line":3968,"end_line":3970,"module":"QuantumComputationDiscoveries.Algorithms.StoppingPower.Solution.PosPhaseMod4Bnds","plain":"Real branch signs from occupation modulo four","lines":[3968,3970],"exact_lines":true,"relation":"part","note":"","annotation":"`slot2HeadMod4Bit` produces two real signs once the occupation $n$ is known. The pairs for $n$ modulo four are $(+,+)$, $(+,-)$, $(-,-)$ and $(+,-)$. Their averages are $1,0,-1,0$, the same as averaging the paper's two phases $i^n$ and $(-i)^n$.","proof_lines":[3969,3970]},{"name":"QuantumComputation.Specs.StoppingPowerSolution.PosMod4FermionicBounds.slot2HeadMod4Bit_pauliCap_eq","line":3972,"end_line":4000,"module":"QuantumComputationDiscoveries.Algorithms.StoppingPower.Solution.PosPhaseMod4Bnds","plain":"Branch average 1 − n for at most two electrons","lines":[3972,3976],"exact_lines":true,"relation":"part","note":"","annotation":"Lean checks $n=0,1,2$, for which the signs average to $1-n$. For example, an attractive interaction $-vn$ with $v\\geq0$ then equals $v\\cos(\\pi n/2)-v$. The term after omitting the constant is a linear combination of two unitary branches with weight $v/2$ each. The LCU normalization includes $v$ once for the selected point.","proof_lines":[3977,4000]},{"name":"QuantumComputation.Specs.StoppingPowerSolution.PosMod4FermionicBounds.slot2_headMod4_conj_mul_fermionicProjector","line":4002,"end_line":4061,"module":"QuantumComputationDiscoveries.Algorithms.StoppingPower.Solution.PosPhaseMod4Bnds","plain":"Branch average 1 − N in the displaced orbital","lines":[4002,4008],"exact_lines":true,"relation":"part","note":"","annotation":"Let $U$ apply the 48-bit proton displacement followed by the real-space basis change, and let $D$ be the diagonal count at the chosen grid point. Conjugating gives the orbital number operator $N=U^\\dagger D U$. The Pauli polynomial then implies that rows of $UP_{\\mathrm{ferm}}$ with diagonal occupation at least three vanish. The sign average agrees with $I-D$ on the remaining rows, giving $(I-N)P_{\\mathrm{ferm}}$ in the original basis.","proof_lines":[4009,4061]}],"role":"explanation","lean":true,"name":"QuantumComputation.Specs.StoppingPowerSolution.PosMod4FermionicBounds.slot2HeadMod4Bit","module":"QuantumComputationDiscoveries.Algorithms.StoppingPower.Solution.PosPhaseMod4Bnds","lines":[3968,3970],"plain":"Real branch signs from occupation modulo four","relation":"part","anchor":"block-A7.SS3-block-2","at":"b170177-170252","origin":"ai","explanation":{"text":"","citations":[{"ref":"fusion/pauli/101c710b28fc","title":"Passage in the authors’ arXiv text","url":"https://arxiv.org/html/2611.09822v3#A7.SS3.p2.1"},{"ref":"https://dx.doi.org/10.1103/PRXQuantum.2.040332","title":"10.1103/PRXQuantum.2.040332","url":"https://dx.doi.org/10.1103/PRXQuantum.2.040332"}]}},{"record":"fusion/momentum","phrase":"fusion/momentum/9b003b4e236e","topic":"fusion","part":0,"tone":3,"rows":[{"name":"QuantumComputation.Specs.stoppingPowerProgram","line":915,"end_line":924,"module":"QuantumComputationDiscoveries.Algorithms.StoppingPower","plain":"Circuit for evolution to t = j + 1","lines":[915,924],"exact_lines":true,"relation":"part","note":"","annotation":"In an electron–electron term the transfers $+\\nu$ and $-\\nu$ cancel in the total electron momentum. Electron–proton and electron–projectile terms can change it. The walk's SELECT proof checks that applying the extended operation to data with the correct sum gives the same result as applying the original operation and then computing the output sum.","proof_lines":[918,924]},{"name":"QuantumComputation.Specs.StoppingPowerSolution.InterWalkRSum42Hoist.E_stream42_eq_streamProjOp","line":853,"end_line":909,"module":"QuantumComputationDiscoveries.Algorithms.StoppingPower.Solution.InterWalkSum42Hoist","plain":"Momentum sum from a zeroed register","lines":[853,859],"exact_lines":true,"relation":"part","note":"","annotation":"`E_stream42_eq_streamProjOp` identifies the forward sum computation on inputs whose sum register is zero. The initialization unitary can also be inverted on data carrying the correct sum. This supplies the operations used to clear the old sum and write the new one. Appendix G.3 describes their placement in the walk.","proof_lines":[854,909],"annotation_references":[{"start":266,"end":278,"key":"appendix:g.3"}]}],"role":"explanation","lean":true,"name":"QuantumComputation.Specs.stoppingPowerProgram","module":"QuantumComputationDiscoveries.Algorithms.StoppingPower","lines":[915,924],"plain":"Circuit for evolution to t = j + 1","relation":"part","anchor":"block-A7.SS3-block-3","at":"b171866-171929","origin":"ai","explanation":{"text":"","citations":[{"ref":"fusion/momentum/9b003b4e236e","title":"Passage in the authors’ arXiv text","url":"https://arxiv.org/html/2611.09822v3#A7.SS3.p3.1"}]}},{"record":"fusion/resource","phrase":"fusion/resource/b17e8ac660c6","topic":"fusion","part":0,"tone":3,"rows":[{"name":"QuantumComputation.Specs.stoppingPowerAncillas","line":908,"end_line":911,"module":"QuantumComputationDiscoveries.Algorithms.StoppingPower","plain":"390 clean ancillas","lines":[908,908],"exact_lines":false,"relation":"states","note":"","annotation":"Appendix G.4 divides the 390 ancillas into 42 for total electron momentum, 48 for the phase-gradient state, 87 for block-encoding control and data, and 213 for workspace. The first two registers retain data used across walk steps. All 390 qubits start clean at the beginning of each evolution.","proof_lines":[909,911],"annotation_references":[{"start":0,"end":12,"key":"appendix:g.4"}]},{"name":"QuantumComputation.Specs.StoppingPower.systemQubits","line":151,"end_line":151,"module":"QuantumComputationDiscoveries.Algorithms.StoppingPower","plain":"3,948 system qubits","lines":[151,151],"exact_lines":false,"relation":"states","note":"","annotation":"The solution and the baseline both use the same $3(218\\cdot6+8)=3{,}948$ system qubits. The ancilla counts are 1,702 and 390, respectively, for the baseline and the solution. The ratio of total widths is $5{,}650/4{,}338\\approx1.30$."}],"role":"statement","lean":true,"name":"QuantumComputation.Specs.stoppingPowerAncillas","module":"QuantumComputationDiscoveries.Algorithms.StoppingPower","lines":[908,908],"plain":"390 clean ancillas","relation":"states","anchor":"block-A7.SS4-block-1","at":"b172179-172227","origin":"ai","explanation":{"text":"","citations":[{"ref":"fusion/resource/b17e8ac660c6","title":"Passage in the authors’ arXiv text","url":"https://arxiv.org/html/2611.09822v3#A7.SS4.p1.1"}]}},{"record":"fusion/segments","phrase":"fusion/segments/710b28ec70dd","topic":"fusion","part":0,"tone":3,"rows":[{"name":"QuantumComputation.Specs.StoppingPowerSolution.ComposableLiveEndpoint.gqsp_HorizonCertTable11","line":686,"end_line":717,"module":"QuantumComputationDiscoveries.Algorithms.StoppingPower","plain":"Generalized QSP certificates of degree 135,867","lines":[686,687],"exact_lines":false,"relation":"part","note":"","annotation":"The block encoding uses $\\lambda=135{,}598$ Ha. The preparation certificate compares $\\lambda$ times the selection probability of each of six channels with that channel's target weight, summing the absolute errors. With segment duration $t/R_j=1$ a.u., the resulting QSP argument is $\\lambda t/R_j=135{,}598$.","proof_lines":[688,717]}],"role":"derivation","lean":true,"name":"QuantumComputation.Specs.StoppingPowerSolution.ComposableLiveEndpoint.gqsp_HorizonCertTable11","module":"QuantumComputationDiscoveries.Algorithms.StoppingPower","lines":[686,687],"plain":"Generalized QSP certificates of degree 135,867","relation":"part","anchor":"block-A7.SS4-block-1","at":"b172560-172626","origin":"ai","explanation":{"text":"","citations":[{"ref":"fusion/segments/710b28ec70dd","title":"Passage in the authors’ arXiv text","url":"https://arxiv.org/html/2611.09822v3#A7.SS4.p1.1"},{"ref":"https://dx.doi.org/10.1103/PRXQuantum.5.020368","title":"10.1103/PRXQuantum.5.020368","url":"https://dx.doi.org/10.1103/PRXQuantum.5.020368"},{"ref":"https://dx.doi.org/10.1103/PhysRevA.110.012612","title":"10.1103/PhysRevA.110.012612","url":"https://dx.doi.org/10.1103/PhysRevA.110.012612"}]}},{"record":"fusion/segments","phrase":"fusion/segments/ac9472ef24d5","topic":"fusion","part":0,"tone":3,"rows":[{"name":"QuantumComputation.Specs.StoppingPowerSolution.TierTightSpine.gqsp_ScheduleK1_135598","line":490,"end_line":491,"module":"QuantumComputationDiscoveries.Algorithms.StoppingPower.Solution.TightCoins135598","plain":"One segment per atomic unit of evolution","lines":[490,491],"exact_lines":true,"relation":"states","note":"","annotation":"`gqsp_ScheduleK1_135598` gives $R_j=j+1=t$, so the duration $t/R_j$ is 1 a.u. for every segment. The ten circuit choices together use $1+\\cdots+10=55$ segments when run once each.","proof_lines":[491,491],"fidelity":"same","fidelity_source":"ai"},{"name":"QuantumComputation.Specs.StoppingPowerSolution.SpecsAux.runScheduleCircuitAdaptive","line":4512,"end_line":4515,"module":"QuantumComputationDiscoveries.Algorithms.StoppingPower.Solution.OctaSelectSwapQrom","plain":"Segment repetition between initialization and cleanup","lines":[4512,4515],"exact_lines":true,"relation":"states","note":"","annotation":"`runScheduleCircuitAdaptive` runs `dInit`, repeats `dSeg j` exactly `R j` times, then runs `dUninit`. The final program supplies a clean-basis schedule that wraps the segments in encoding conversions and in preparation and cleanup of the momentum sum and phase-gradient registers.","proof_lines":[4515,4515]},{"name":"QuantumComputation.Specs.stoppingPowerProgram","line":915,"end_line":924,"module":"QuantumComputationDiscoveries.Algorithms.StoppingPower","plain":"Circuit for evolution to t = j + 1","lines":[915,924],"exact_lines":true,"relation":"states","note":"","annotation":"The constructor uses both the segment certificate and the repetition count at the same index. With disjoint registers, the five-unit evolution uses five copies of the segment chosen for $j=4$. The proof adds the five one-segment approximation bounds and accounts separately for the Hamiltonian perturbation over the five atomic units.","proof_lines":[918,924]}],"role":"statement","lean":true,"name":"QuantumComputation.Specs.StoppingPowerSolution.TierTightSpine.gqsp_ScheduleK1_135598","module":"QuantumComputationDiscoveries.Algorithms.StoppingPower.Solution.TightCoins135598","lines":[490,491],"plain":"One segment per atomic unit of evolution","relation":"states","anchor":"block-A7.SS4-block-1","at":"b172627-172688","origin":"ai","explanation":{"text":"","citations":[{"ref":"fusion/segments/ac9472ef24d5","title":"Passage in the authors’ arXiv text","url":"https://arxiv.org/html/2611.09822v3#A7.SS4.p1.1"},{"ref":"https://dx.doi.org/10.1103/PRXQuantum.5.020368","title":"10.1103/PRXQuantum.5.020368","url":"https://dx.doi.org/10.1103/PRXQuantum.5.020368"},{"ref":"https://dx.doi.org/10.1103/PhysRevA.110.012612","title":"10.1103/PhysRevA.110.012612","url":"https://dx.doi.org/10.1103/PhysRevA.110.012612"}]}},{"record":"fusion/segments","phrase":"fusion/segments/166013a75550","topic":"fusion","part":0,"tone":3,"rows":[{"name":"QuantumComputation.Specs.StoppingPowerSolution.ComposableLiveEndpoint.gqsp_HorizonCertTable11","line":686,"end_line":717,"module":"QuantumComputationDiscoveries.Algorithms.StoppingPower","plain":"Generalized QSP certificates of degree 135,867","lines":[686,705],"exact_lines":true,"relation":"states","note":"","annotation":"The table fixes degree $135{,}867$ and chooses certified rotations and error bounds by time. At $t=10$, the per-segment error is bounded by $30{,}399{,}124{,}305/2^{48}\\approx1.08\\times10^{-4}$. Ten segments contribute about $1.08\\times10^{-3}$ to the error cap. The table records the rotation-cost bound separately in `rotToffSum`.","proof_lines":[688,717],"fidelity":"same","fidelity_source":"ai"},{"name":"QuantumComputation.Specs.stoppingPowerProgram","line":915,"end_line":924,"module":"QuantumComputationDiscoveries.Algorithms.StoppingPower","plain":"Circuit for evolution to t = j + 1","lines":[915,924],"exact_lines":true,"relation":"states","note":"","annotation":"The degree gives $135{,}867$ main walk steps per segment. The segment cost formula has separate terms for the two controlled walk endpoints, $135{,}868$ reflection guards, and synthesized rotations. The paper's reported $T$ gates per walk step summarize this cost, including terms beyond the repeated walk itself.","proof_lines":[918,924]}],"role":"statement","lean":true,"name":"QuantumComputation.Specs.StoppingPowerSolution.ComposableLiveEndpoint.gqsp_HorizonCertTable11","module":"QuantumComputationDiscoveries.Algorithms.StoppingPower","lines":[686,705],"plain":"Generalized QSP certificates of degree 135,867","relation":"states","anchor":"block-A7.SS4-block-1","at":"b172690-172868","origin":"ai","explanation":{"text":"","citations":[{"ref":"fusion/segments/166013a75550","title":"Passage in the authors’ arXiv text","url":"https://arxiv.org/html/2611.09822v3#A7.SS4.p1.1"},{"ref":"https://dx.doi.org/10.1103/PRXQuantum.5.020368","title":"10.1103/PRXQuantum.5.020368","url":"https://dx.doi.org/10.1103/PRXQuantum.5.020368"},{"ref":"https://dx.doi.org/10.1103/PhysRevA.110.012612","title":"10.1103/PhysRevA.110.012612","url":"https://dx.doi.org/10.1103/PhysRevA.110.012612"}]}},{"record":"fusion/resource","phrase":"fusion/resource/a75e5b08e361","topic":"fusion","part":0,"tone":3,"rows":[{"name":"QuantumComputation.Specs.stoppingPower_const_cost","line":982,"end_line":996,"module":"QuantumComputationDiscoveries.Algorithms.StoppingPower","plain":"Spacetime bound for 500 evolutions","lines":[982,987],"exact_lines":true,"relation":"states","note":"","annotation":"The cost calculation charges $59{,}572$ $T$ gates per run outside the repeated segments. This is $21{,}072$ for encoding conversions, $7{,}300$ for phase-gradient preparation and cleanup, and $31{,}200$ for the momentum sum and its cleanup. The theorem bounds $4{,}338\\cdot50$ times the sum of these costs and the segment costs over the ten times. It also gives zero primitive `TOFF` gates at each time.","proof_lines":[988,996],"fidelity":"same","fidelity_source":"ai"},{"name":"QuantumComputation.Specs.stoppingPowerConstCost","line":974,"end_line":976,"module":"QuantumComputationDiscoveries.Algorithms.StoppingPower","plain":"Spacetime cost cap for 500 evolutions","lines":[974,974],"exact_lines":true,"relation":"states","note":"","annotation":"Dividing `stoppingPowerConstCost` by $50\\cdot4{,}338$ gives $1{,}057{,}436{,}149{,}731$, the $T$-count cap for one execution at each of the ten times. Dividing by ten gives the reported average of about $1.06\\times10^{11}$ $T$ gates per run.","proof_lines":[975,976]}],"role":"statement","lean":true,"name":"QuantumComputation.Specs.stoppingPower_const_cost","module":"QuantumComputationDiscoveries.Algorithms.StoppingPower","lines":[982,987],"plain":"Spacetime bound for 500 evolutions","relation":"states","anchor":"block-A7.SS4-block-2","at":"b173209-173264","origin":"ai","explanation":{"text":"","citations":[{"ref":"fusion/resource/a75e5b08e361","title":"Passage in the authors’ arXiv text","url":"https://arxiv.org/html/2611.09822v3#A7.SS4.p2.1"}]}},{"record":"photochemistry/model","phrase":"photochemistry/model/f7875c25cb0d","topic":"photochemistry","part":0,"tone":4,"rows":[{"name":"QuantumComputation.Specs.Photochemistry.systemQubits","line":516,"end_line":516,"module":"QuantumComputationDiscoveries.Algorithms.Photochemistry","plain":"5,616 system qubits","lines":[516,516],"exact_lines":true,"relation":"defines","note":"","annotation":"Each particle occupies three coordinate registers of width eight. In `coordinateRegister`, coordinate $w$ of particle $i$ starts at wire $8(3i+w)$, with indices starting at zero. The first 1,128 system wires encode the 47 nuclei, followed by the 4,488 wires for the electrons."},{"name":"QuantumComputation.Specs.Photochemistry.gridBits","line":510,"end_line":510,"module":"QuantumComputationDiscoveries.Algorithms.Photochemistry","plain":"Eight qubits per Cartesian coordinate","lines":[510,510],"exact_lines":true,"relation":"defines","note":"","annotation":"An eight-qubit axis has one basis state for each of its 256 positions. The three axes give $256^3$ possible positions for one particle. Two particles may occupy the same grid point, where the saturation distance keeps the Coulomb potential finite."},{"name":"QuantumComputation.Specs.Photochemistry.boxWidth","line":520,"end_line":520,"module":"QuantumComputationDiscoveries.Algorithms.Photochemistry","plain":"44 Å box width in Bohr radii","lines":[520,520],"exact_lines":true,"relation":"defines","note":"","annotation":"The definition `44 / 0.529177210544` divides the box side length in ångströms by the Bohr radius in ångströms. Thus $L\\approx83.15\\,a_0$. The same $L$ enters the grid spacing and the $2\\pi^2/L^2$ prefactor of the kinetic operator."},{"name":"QuantumComputation.Specs.Photochemistry.gridSpacing","line":523,"end_line":523,"module":"QuantumComputationDiscoveries.Algorithms.Photochemistry","plain":"Grid spacing across 255 intervals","lines":[523,523],"exact_lines":true,"relation":"defines","note":"","annotation":"The endpoints $-128\\Delta$ and $127\\Delta$ differ by $255\\Delta=L$, giving $\\Delta\\approx0.17255$ Å. The Coulomb term uses $\\Delta$ to convert integer separations to lengths, and the Fourier kinetic prefactor uses $L$."},{"name":"QuantumComputation.Specs.Photochemistry.twosComplement","line":556,"end_line":556,"module":"QuantumComputationDiscoveries.Algorithms.Photochemistry","plain":"Signed two’s-complement coordinates","lines":[556,556],"exact_lines":true,"relation":"defines","note":"","annotation":"The balanced remainder `bmod` maps indices 127, 128 and 255 to $127$, $-128$ and $-1$. Thus positions stored as 127 and 128 have a separation of $255\\Delta$. The potential subtracts the decoded integers before squaring, and the kinetic term uses the same decoding for its Fourier indices."}],"role":"definition","lean":true,"name":"QuantumComputation.Specs.Photochemistry.systemQubits","module":"QuantumComputationDiscoveries.Algorithms.Photochemistry","lines":[516,516],"plain":"5,616 system qubits","relation":"defines","anchor":"block-A8.SS1-block-1","at":"b174112-174159","origin":"ai","explanation":{"text":"","citations":[{"ref":"photochemistry/model/f7875c25cb0d","title":"Passage in the authors’ arXiv text","url":"https://arxiv.org/html/2611.09822v3#A8.SS1.p1.1"},{"ref":"https://arxiv.org/abs/2602.11272","title":"2602.11272 [quant-ph]","url":"https://arxiv.org/abs/2602.11272"}]}},{"record":"photochemistry/model","phrase":"photochemistry/model/126aeb354d6c","topic":"photochemistry","part":0,"tone":4,"rows":[{"name":"QuantumComputation.Specs.Photochemistry.mass","line":546,"end_line":547,"module":"QuantumComputationDiscoveries.Algorithms.Photochemistry","plain":"Isotopic nuclear masses and electron mass","lines":[546,547],"exact_lines":true,"relation":"defines","note":"","annotation":"The branch `i < 47` is for nuclei. The isotopic masses are neutral-atom masses in daltons, so the definition divides by the electron mass in daltons and subtracts $Z_i$. For hydrogen the result is about $1{,}836.15$ electron masses. The formula neglects electronic binding energies, and the electron branch sets $m_i=1$.","proof_lines":[547,547]}],"role":"definition","lean":true,"name":"QuantumComputation.Specs.Photochemistry.mass","module":"QuantumComputationDiscoveries.Algorithms.Photochemistry","lines":[546,547],"plain":"Isotopic nuclear masses and electron mass","relation":"defines","anchor":"block-A8.SS1-block-1","at":"b174697-174725","origin":"ai","explanation":{"text":"","citations":[{"ref":"photochemistry/model/126aeb354d6c","title":"Passage in the authors’ arXiv text","url":"https://arxiv.org/html/2611.09822v3#A8.SS1.p1.1"},{"ref":"https://arxiv.org/abs/2602.11272","title":"2602.11272 [quant-ph]","url":"https://arxiv.org/abs/2602.11272"}]}},{"record":"photochemistry/model","phrase":"photochemistry/model/e8903738b640","topic":"photochemistry","part":0,"tone":4,"rows":[{"name":"QuantumComputation.Specs.Photochemistry.hamiltonian","line":584,"end_line":584,"module":"QuantumComputationDiscoveries.Algorithms.Photochemistry","plain":"Discretized Hamiltonian H = T + V","lines":[584,584],"exact_lines":false,"relation":"defines","note":"","annotation":"In Appendix H.1 the kinetic energy uses the squared norm $\\lVert k\\rVert_2^2$ of a three-dimensional Fourier index. Lean writes it as a sum over the three coordinates, conjugating each diagonal array of squared signed indices by its one-coordinate QFT. The definition `hamiltonian` adds this operator to the Coulomb potential, which is diagonal in the position basis.","annotation_references":[{"start":3,"end":15,"key":"appendix:h.1"}]}],"role":"definition","lean":true,"name":"QuantumComputation.Specs.Photochemistry.hamiltonian","module":"QuantumComputationDiscoveries.Algorithms.Photochemistry","lines":[584,584],"plain":"Discretized Hamiltonian H = T + V","relation":"defines","anchor":"block-A8.SS1-block-2","at":"b174776-174837","origin":"ai","explanation":{"text":"","citations":[{"ref":"photochemistry/model/e8903738b640","title":"Passage in the authors’ arXiv text","url":"https://arxiv.org/html/2611.09822v3#A8.SS1.p2.1"},{"ref":"https://arxiv.org/abs/2602.11272","title":"2602.11272 [quant-ph]","url":"https://arxiv.org/abs/2602.11272"}]}},{"record":"photochemistry/model","phrase":"photochemistry/model/4a2c16c7ee94","topic":"photochemistry","part":0,"tone":4,"rows":[{"name":"QuantumComputation.Specs.Photochemistry.potentialEnergy","line":578,"end_line":581,"module":"QuantumComputationDiscoveries.Algorithms.Photochemistry","plain":"Coulomb potential with pair-specific saturation distances","lines":[578,581],"exact_lines":true,"relation":"defines","note":"","annotation":"The cap applies to the reciprocal distance before multiplication by the signed charge product. Two carbon nuclei at separation $2\\Delta$ therefore contribute $36/(\\sqrt{8}\\Delta)$ to $V$. A coincident electron and carbon nucleus contribute $-6/\\Delta$. The two orders of each pair each carry a factor of $1/2$.","proof_lines":[579,581]}],"role":"definition","lean":true,"name":"QuantumComputation.Specs.Photochemistry.potentialEnergy","module":"QuantumComputationDiscoveries.Algorithms.Photochemistry","lines":[578,581],"plain":"Coulomb potential with pair-specific saturation distances","relation":"defines","anchor":"block-A8.SS1-block-4","at":"b175598-175687","origin":"ai","explanation":{"text":"","citations":[{"ref":"photochemistry/model/4a2c16c7ee94","title":"Passage in the authors’ arXiv text","url":"https://arxiv.org/html/2611.09822v3#A8.SS1.p2.2"},{"ref":"https://arxiv.org/abs/2602.11272","title":"2602.11272 [quant-ph]","url":"https://arxiv.org/abs/2602.11272"}]}},{"record":"photochemistry/time-evolution","phrase":"photochemistry/time-evolution/35fd819721bb","topic":"photochemistry","part":0,"tone":4,"rows":[{"name":"QuantumComputation.Specs.photochemistry_correctness","line":620,"end_line":640,"module":"QuantumComputationDiscoveries.Algorithms.Photochemistry","plain":"Error at most 0.01 for every system state at t = 1 fs","lines":[620,625],"exact_lines":true,"relation":"defines","note":"","annotation":"The same $W$ occurs in both conjuncts. The compiled program realizes its action on clean inputs, with measurements and classically controlled gates included in the semantics. The approximation conjunct bounds the full output’s deviation from ideal evolution and zero ancillas. The zero-ancilla condition itself is on the input.","proof_lines":[626,640],"fidelity":"same","fidelity_source":"ai"},{"name":"RealizesUnitaryFromBasisOutcomesAndZeroWorkspace","line":78,"end_line":90,"module":"QuantumComputation.QuantumHoareLogic.CleanAncilla","plain":"Unitary action on selected system states with zero ancillas","lines":[85,90],"exact_lines":true,"relation":"defines","note":"","annotation":"The definition embeds $W$ on the concatenated system and ancilla registers. It compares the weakest preconditions for the unitary assignment and the compiled program for every joint output observable. The restrictions apply to the input. In this example `Finset.univ` permits every system basis state, and the ancillas start at zero.","proof_lines":[85,90]},{"name":"QuantumComputation.Specs.photochemistryProgram","line":602,"end_line":610,"module":"QuantumComputationDiscoveries.Algorithms.Photochemistry","plain":"Clifford+T simulation of one femtosecond","lines":[602,603],"exact_lines":false,"relation":"defines","note":"","annotation":"The circuit definition passes the clean-walk certificate and Hamiltonian block approximation to the same outer construction. The walk bound concerns evolution under the implemented block. The block approximation contributes a separate term after time rescaling, about $0.00711$ of the final tolerance $0.01$.","proof_lines":[604,610]}],"role":"definition","lean":true,"name":"QuantumComputation.Specs.photochemistry_correctness","module":"QuantumComputationDiscoveries.Algorithms.Photochemistry","lines":[620,625],"plain":"Error at most 0.01 for every system state at t = 1 fs","relation":"defines","anchor":"block-A8.SS1-block-5","at":"b175791-175834","origin":"ai","explanation":{"text":"","citations":[{"ref":"photochemistry/time-evolution/35fd819721bb","title":"Passage in the authors’ arXiv text","url":"https://arxiv.org/html/2611.09822v3#A8.SS1.p3.1"},{"ref":"https://arxiv.org/abs/2602.11272","title":"2602.11272 [quant-ph]","url":"https://arxiv.org/abs/2602.11272"}]}},{"record":"photochemistry/time-evolution","phrase":"photochemistry/time-evolution/fcd4e5cecea8","topic":"photochemistry","part":0,"tone":4,"rows":[{"name":"QuantumComputation.Specs.photochemistryProgram","line":602,"end_line":610,"module":"QuantumComputationDiscoveries.Algorithms.Photochemistry","plain":"Clifford+T simulation of one femtosecond","lines":[602,610],"exact_lines":true,"relation":"part","note":"","annotation":"The outer circuit prepares the five low-bit factors of an eight-qubit phase-gradient state. The proof removes the other three preparations because they commute through the intervening unitary and cancel with their inverses. The retained preparation and its inverse each cost 174 T gates and are part of the circuit.","proof_lines":[604,610]}],"role":"explanation","lean":true,"name":"QuantumComputation.Specs.photochemistryProgram","module":"QuantumComputationDiscoveries.Algorithms.Photochemistry","lines":[602,610],"plain":"Clifford+T simulation of one femtosecond","relation":"part","anchor":"block-A8.SS1-block-5","at":"b176408-176492","origin":"ai","explanation":{"text":"","citations":[{"ref":"photochemistry/time-evolution/fcd4e5cecea8","title":"Passage in the authors’ arXiv text","url":"https://arxiv.org/html/2611.09822v3#A8.SS1.p3.1"},{"ref":"https://arxiv.org/abs/2602.11272","title":"2602.11272 [quant-ph]","url":"https://arxiv.org/abs/2602.11272"}]}},{"record":"photochemistry/spacetime","phrase":"photochemistry/spacetime/482e7c3b4417","topic":"photochemistry","part":0,"tone":4,"rows":[{"name":"DynamicCircuit.count","line":200,"end_line":205,"module":"QuantumComputation.Circuits.ResourceCounting","plain":"T-gate count across measurements and conditionals","lines":[200,205],"exact_lines":true,"relation":"defines","note":"","annotation":"Measurement contributes zero T gates, a conditional takes the maximum of its branch counts, and sequencing adds counts. If two conditionals use the same bit and their counts are $(4,0)$ and $(0,4)$, the structural count is 8 even though each execution uses 4 T gates.","proof_lines":[202,205],"fidelity":"same","fidelity_source":"ai"},{"name":"QuantumComputation.Specs.photochemistry_const_cost","line":649,"end_line":664,"module":"QuantumComputationDiscoveries.Algorithms.Photochemistry","plain":"Circuit spacetime bound and primitive Toffoli count","lines":[651,654],"exact_lines":true,"relation":"defines","note":"","annotation":"The first conjunct rules out primitive Toffoli gates, which would be counted separately from T gates. A temporary-AND compute, for example, contributes four T gates, and its measurement-based uncomputation contributes zero. The second conjunct multiplies the structural T count by all 6,033 logical qubits.","proof_lines":[655,664]}],"role":"definition","lean":true,"name":"DynamicCircuit.count","module":"QuantumComputation.Circuits.ResourceCounting","lines":[200,205],"plain":"T-gate count across measurements and conditionals","relation":"defines","anchor":"block-A8.SS1-block-5","at":"b176663-176714","origin":"ai","explanation":{"text":"","citations":[{"ref":"photochemistry/spacetime/482e7c3b4417","title":"Passage in the authors’ arXiv text","url":"https://arxiv.org/html/2611.09822v3#A8.SS1.p3.1"}]}},{"record":"photochemistry/copy-uncompute","phrase":"photochemistry/copy-uncompute/8d44d86ff158","topic":"photochemistry","part":0,"tone":4,"rows":[{"name":"QuantumComputation.Specs.PhotochemistrySolution.XMeasLinearCleanStep.subspaceStep_xUnloadCzPairsSeqDyn","line":383,"end_line":399,"module":"QuantumComputationDiscoveries.Algorithms.Photochemistry.Solution.DynQromMeasureUncompute","plain":"X-basis reset of an ancilla holding a parity of products","lines":[383,388],"exact_lines":false,"relation":"part","note":"","annotation":"The potential is diagonal in the position basis, so it can be applied using copies of the selected coordinates. A copied bit can take the form $\\bigoplus_i c_i x_i$, where $c_i$ indicates the selected particle and $x_i$ is that particle’s coordinate bit. A parity of products is the form assumed by the one-ancilla uncomputation lemma.","proof_lines":[389,399]},{"name":"QuantumComputation.Specs.PhotochemistrySolution.WalkCostStack.htUsel_stack","line":394,"end_line":406,"module":"QuantumComputationDiscoveries.Algorithms.Photochemistry","plain":"30,116 T-gate bound for an uncontrolled walk step","lines":[394,396],"exact_lines":false,"relation":"part","note":"","annotation":"The two coordinate loaders contribute 19,156 and 5,038 T gates, giving 24,194 for copying. The next term, 908, is the cost of clearing the copies. Those terms account for the 25,102 T gates that Appendix H.4 assigns to coordinate routing.","proof_lines":[397,406],"annotation_references":[{"start":195,"end":207,"key":"appendix:h.4"}]}],"role":"explanation","lean":true,"name":"QuantumComputation.Specs.PhotochemistrySolution.XMeasLinearCleanStep.subspaceStep_xUnloadCzPairsSeqDyn","module":"QuantumComputationDiscoveries.Algorithms.Photochemistry.Solution.DynQromMeasureUncompute","lines":[383,388],"plain":"X-basis reset of an ancilla holding a parity of products","relation":"part","anchor":"block-A8.SS3-block-2","at":"b183174-183284","origin":"ai","explanation":{"text":"","citations":[{"ref":"photochemistry/copy-uncompute/8d44d86ff158","title":"Passage in the authors’ arXiv text","url":"https://arxiv.org/html/2611.09822v3#A8.SS3.p2.1"},{"ref":"https://dx.doi.org/10.22331/q-2018-06-18-74","title":"10.22331/q-2018-06-18-74","url":"https://dx.doi.org/10.22331/q-2018-06-18-74"}]}},{"record":"photochemistry/copy-uncompute","phrase":"photochemistry/copy-uncompute/c0acb9d8bd8f","topic":"photochemistry","part":0,"tone":4,"rows":[{"name":"QuantumComputation.Specs.PhotochemistrySolution.XMeasLinearCleanStep.subspaceStep_xUnloadCzPairsSeqDyn","line":383,"end_line":399,"module":"QuantumComputationDiscoveries.Algorithms.Photochemistry.Solution.DynQromMeasureUncompute","plain":"X-basis reset of an ancilla holding a parity of products","lines":[385,393],"exact_lines":true,"relation":"part","note":"","annotation":"On a normalized input $\\sum_x a_x|x\\rangle|f(x)\\rangle$, each $X$-basis outcome $m$ has probability $1/2$. The data amplitudes after measurement are $a_x(-1)^{mf(x)}$. For $m=1$, a $CZ$ for each pair in the parity supplies the same sign and cancels it, and a conditional $X$ resets the destination. The continuation receives the original data state coherently.","proof_lines":[389,399]},{"name":"QuantumComputation.Specs.PhotochemistrySolution.XMeasLinearCleanStep.count_xUnloadCzPairsSeqDyn","line":370,"end_line":378,"module":"QuantumComputationDiscoveries.Algorithms.Photochemistry.Solution.DynQromMeasureUncompute","plain":"Zero T gates for one-bit X-basis uncomputation","lines":[370,373],"exact_lines":true,"relation":"part","note":"","annotation":"Applying the phase $(-1)^{c_i x_i}$ uses a $CZ$ on $c_i$ and $x_i$. The product of these Clifford gates gives the phase for the full parity. Each measurement branch contributes zero T gates and zero primitive Toffoli gates before the continuation `rest`. The selection bits are inputs to this step.","proof_lines":[374,378]}],"role":"explanation","lean":true,"name":"QuantumComputation.Specs.PhotochemistrySolution.XMeasLinearCleanStep.subspaceStep_xUnloadCzPairsSeqDyn","module":"QuantumComputationDiscoveries.Algorithms.Photochemistry.Solution.DynQromMeasureUncompute","lines":[385,393],"plain":"X-basis reset of an ancilla holding a parity of products","relation":"part","anchor":"block-A8.SS3-block-2","at":"b183349-183427","origin":"ai","explanation":{"text":"","citations":[{"ref":"photochemistry/copy-uncompute/c0acb9d8bd8f","title":"Passage in the authors’ arXiv text","url":"https://arxiv.org/html/2611.09822v3#A8.SS3.p2.1"},{"ref":"https://dx.doi.org/10.22331/q-2018-06-18-74","title":"10.22331/q-2018-06-18-74","url":"https://dx.doi.org/10.22331/q-2018-06-18-74"}]}},{"record":"photochemistry/bernstein","phrase":"photochemistry/bernstein/0eb34a015242","topic":"photochemistry","part":0,"tone":4,"rows":[{"name":"QuantumComputation.Specs.PhotochemistrySolution.Coulomb18K2.popBernJK2","line":969,"end_line":978,"module":"QuantumComputationDiscoveries.Algorithms.Photochemistry.Solution.MidTap29Coul18Stage4K2","plain":"Bernstein lookup index from finite comparisons","lines":[973,978],"exact_lines":true,"relation":"part","note":"","annotation":"For three independent comparisons at local position $p=\\tilde r^2$, the weight of $w_1$ is $3p(1-p)^2$. In `popBernJK2`, the three two-bit comparisons use borrows computed from shared bits. Their sum gives the finite lookup index. The implemented expectation uses the actual finite weights, which are checked separately. Figure 4(f) illustrates the ideal weighting.","proof_lines":[970,978],"annotation_references":[{"start":321,"end":332,"key":"figure:4:f"}]}],"role":"explanation","lean":true,"name":"QuantumComputation.Specs.PhotochemistrySolution.Coulomb18K2.popBernJK2","module":"QuantumComputationDiscoveries.Algorithms.Photochemistry.Solution.MidTap29Coul18Stage4K2","lines":[973,978],"plain":"Bernstein lookup index from finite comparisons","relation":"part","anchor":"block-A8.SS3-block-3","at":"b185069-185153","origin":"ai","explanation":{"text":"","citations":[{"ref":"photochemistry/bernstein/0eb34a015242","title":"Passage in the authors’ arXiv text","url":"https://arxiv.org/html/2611.09822v3#A8.SS3.p3.1"},{"ref":"https://dx.doi.org/10.1145/2133390.2133396","title":"10.1145/2133390.2133396","url":"https://dx.doi.org/10.1145/2133390.2133396"}]}},{"record":"photochemistry/bernstein","phrase":"photochemistry/bernstein/2639d4f0e4af","topic":"photochemistry","part":0,"tone":4,"rows":[{"name":"QuantumComputation.Specs.PhotochemistrySolution.SubCoin62Certs.sub62_pol_ulp","line":5752,"end_line":5792,"module":"QuantumComputationDiscoveries.Algorithms.Photochemistry.Solution.Stage25PolyCoinCoul18","plain":"Inverse-distance error of the finite lookup","lines":[5752,5759],"exact_lines":true,"relation":"part","note":"","annotation":"The checker sums the rounded lookup values with their actual finite weights. After scaling and shifting, the error against the saturated reciprocal square root in units of $2^{-35}$ is at most 36.075 for electron pairs and 25.760 for nuclear pairs, for either polarity. The excluded residue $r^2\\equiv7\\pmod 8$ cannot occur because each of the three squared coordinate differences is 0, 1 or 4 modulo 8.","proof_lines":[5755,5792]},{"name":"QuantumComputation.Specs.PhotochemistrySolution.SubCoin62Certs.blockApprox_wstate_subCoin_sub62","line":205,"end_line":280,"module":"QuantumComputationDiscoveries.Algorithms.Photochemistry","plain":"Operator-norm distance from the shifted, scaled Hamiltonian","lines":[205,211],"exact_lines":false,"relation":"part","note":"","annotation":"The three pair sectors have separate pointwise inverse-distance bounds. The proof uses `sub62_pol_ulp` for electron–electron and nucleus–nucleus pairs and `channel_ulp_k2_fast` for electron–nucleus pairs. The pair errors are weighted by the charge products in $V$. Since the potential is diagonal, a uniform bound on those sums gives an operator-norm bound.","proof_lines":[212,280]}],"role":"explanation","lean":true,"name":"QuantumComputation.Specs.PhotochemistrySolution.SubCoin62Certs.sub62_pol_ulp","module":"QuantumComputationDiscoveries.Algorithms.Photochemistry.Solution.Stage25PolyCoinCoul18","lines":[5752,5759],"plain":"Inverse-distance error of the finite lookup","relation":"part","anchor":"block-A8.SS3-block-3","at":"b185277-185317","origin":"ai","explanation":{"text":"","citations":[{"ref":"photochemistry/bernstein/2639d4f0e4af","title":"Passage in the authors’ arXiv text","url":"https://arxiv.org/html/2611.09822v3#A8.SS3.p3.1"},{"ref":"https://dx.doi.org/10.1145/2133390.2133396","title":"10.1145/2133390.2133396","url":"https://dx.doi.org/10.1145/2133390.2133396"}]}},{"record":"photochemistry/multiplicities","phrase":"photochemistry/multiplicities/7c07e878b8c9","topic":"photochemistry","part":0,"tone":4,"rows":[{"name":"QuantumComputation.Specs.PhotochemistrySolution.Stage1CoinDecode.validOuterW11_decodeTier1W11Opt1424Coin","line":4749,"end_line":4758,"module":"QuantumComputationDiscoveries.Algorithms.Photochemistry.Solution.AlwaysLoStage1DualGlfa","plain":"Interaction counts and conditional basis-state weights","lines":[4749,4758],"exact_lines":true,"relation":"part","note":"","annotation":"The two overlaps with the uniform state on a 41-bit register give a term with $m$ basis labels a weight $m/2^{41}$. The certified total for an electron–nucleus pair with nuclear charge $Z_i$ is $6{,}258{,}516Z_i$ labels. This gives a carbon pair six times the weight of a hydrogen pair under the same normalization.","proof_lines":[4753,4758]}],"role":"explanation","lean":true,"name":"QuantumComputation.Specs.PhotochemistrySolution.Stage1CoinDecode.validOuterW11_decodeTier1W11Opt1424Coin","module":"QuantumComputationDiscoveries.Algorithms.Photochemistry.Solution.AlwaysLoStage1DualGlfa","lines":[4749,4758],"plain":"Interaction counts and conditional basis-state weights","relation":"part","anchor":"block-A8.SS3-block-4","at":"b185737-185862","origin":"ai","explanation":{"text":"","citations":[{"ref":"photochemistry/multiplicities/7c07e878b8c9","title":"Passage in the authors’ arXiv text","url":"https://arxiv.org/html/2611.09822v3#A8.SS3.p4.1"},{"ref":"https://dx.doi.org/10.1103/PhysRevX.8.041015","title":"10.1103/PhysRevX.8.041015","url":"https://dx.doi.org/10.1103/PhysRevX.8.041015"}]}},{"record":"photochemistry/multiplicities","phrase":"photochemistry/multiplicities/5a60e02e2167","topic":"photochemistry","part":0,"tone":4,"rows":[{"name":"QuantumComputation.Specs.PhotochemistrySolution.Stage1CoinDecode.validOuterW11_decodeTier1W11Opt1424Coin","line":4749,"end_line":4758,"module":"QuantumComputationDiscoveries.Algorithms.Photochemistry.Solution.AlwaysLoStage1DualGlfa","plain":"Interaction counts and conditional basis-state weights","lines":[4749,4758],"exact_lines":true,"relation":"part","note":"","annotation":"Some decoder bits are reused in the potential calculation. For an electron–nucleus pair, the first 401 values of the 11-bit word occur $3072Z_i$ times each, and the remaining 1,647 occur $3052Z_i$ times each. `potExpectStratW11` averages the finite lookup using each word’s count divided by the total count for that pair.","proof_lines":[4753,4758]},{"name":"QuantumComputation.Specs.PhotochemistrySolution.SubCoin62Certs.blockApprox_wstate_subCoin_sub62","line":205,"end_line":280,"module":"QuantumComputationDiscoveries.Algorithms.Photochemistry","plain":"Operator-norm distance from the shifted, scaled Hamiltonian","lines":[205,211],"exact_lines":false,"relation":"part","note":"","annotation":"The integer multiplicities enter the implemented linear combination. The field `aImpl_approx` of the resulting block-encoding certificate bounds its operator-norm error relative to $(H-cI)/\\alpha$, where $c$ is the potential shift and $\\alpha$ is the block-encoding scale. That inequality checks the full block after the weights and the term approximations are combined.","proof_lines":[212,280]}],"role":"derivation","lean":true,"name":"QuantumComputation.Specs.PhotochemistrySolution.Stage1CoinDecode.validOuterW11_decodeTier1W11Opt1424Coin","module":"QuantumComputationDiscoveries.Algorithms.Photochemistry.Solution.AlwaysLoStage1DualGlfa","lines":[4749,4758],"plain":"Interaction counts and conditional basis-state weights","relation":"part","anchor":"block-A8.SS3-block-4","at":"b186044-186111","origin":"ai","explanation":{"text":"","citations":[{"ref":"photochemistry/multiplicities/5a60e02e2167","title":"Passage in the authors’ arXiv text","url":"https://arxiv.org/html/2611.09822v3#A8.SS3.p4.1"},{"ref":"https://dx.doi.org/10.1103/PhysRevX.8.041015","title":"10.1103/PhysRevX.8.041015","url":"https://dx.doi.org/10.1103/PhysRevX.8.041015"}]}},{"record":"photochemistry/spacetime","phrase":"photochemistry/spacetime/912bffbfcafc","topic":"photochemistry","part":0,"tone":4,"rows":[{"name":"QuantumComputation.Specs.photochemistryAncillas","line":599,"end_line":599,"module":"QuantumComputationDiscoveries.Algorithms.Photochemistry","plain":"417 clean ancillas after removing idle wires","lines":[599,599],"exact_lines":true,"relation":"states","note":"","annotation":"The construction first uses a larger ancillary layout and then removes its idle wires. The retained count is $(62-23)+314+(62+2)=417$, which is the width required by `photochemistryProgram`. Adding the 5,616 system qubits gives $Q=6{,}033$."}],"role":"statement","lean":true,"name":"QuantumComputation.Specs.photochemistryAncillas","module":"QuantumComputationDiscoveries.Algorithms.Photochemistry","lines":[599,599],"plain":"417 clean ancillas after removing idle wires","relation":"states","anchor":"block-A8.SS4-block-1","at":"b186297-186387","origin":"ai","explanation":{"text":"","citations":[{"ref":"photochemistry/spacetime/912bffbfcafc","title":"Passage in the authors’ arXiv text","url":"https://arxiv.org/html/2611.09822v3#A8.SS4.p1.1"}]}},{"record":"photochemistry/qsp","phrase":"photochemistry/qsp/bfc8a71dfd45","topic":"photochemistry","part":0,"tone":4,"rows":[{"name":"QuantumComputation.Specs.PhotochemistrySolution.Stage5StackCerts.alphaTier1WalkFull","line":1008,"end_line":1008,"module":"QuantumComputationDiscoveries.Algorithms.Photochemistry.Solution.DualBellReflStage5Stack","plain":"Hamiltonian block-encoding scale α","lines":[1008,1008],"exact_lines":true,"relation":"states","note":"","annotation":"`alphaTier1WalkFull` multiplies the base scale by $167085/167340$ and $100000/100155$. The base scale is inversely proportional to the grid spacing. The resulting $\\alpha$ is about $80{,}449.41$ Hartree, the value rounded in Appendix H.4. It divides the shifted Hamiltonian and multiplies the evolution time.","fidelity":"same","fidelity_source":"ai","annotation_references":[{"start":225,"end":237,"key":"appendix:h.4"}]},{"name":"QuantumComputation.Specs.PhotochemistrySolution.Stage5StackCerts.hs_tier1Walk_full_le_sMax","line":1013,"end_line":1016,"module":"QuantumComputationDiscoveries.Algorithms.Photochemistry.Solution.DualBellReflStage5Stack","plain":"Scaled time for the polynomial approximation","lines":[1013,1016],"exact_lines":true,"relation":"states","note":"","annotation":"The time supplied to the polynomial is $\\alpha t$. Multiplying the exact scale by the atomic-unit value of one femtosecond gives the bound $\\alpha t\\leq3{,}325{,}889.1316$. This is the upper endpoint in the polynomial remainder estimate.","proof_lines":[1015,1016]},{"name":"QuantumComputation.Specs.PhotochemistrySolution.SubCoin62Certs.blockApprox_wstate_subCoin_sub62","line":205,"end_line":280,"module":"QuantumComputationDiscoveries.Algorithms.Photochemistry","plain":"Operator-norm distance from the shifted, scaled Hamiltonian","lines":[205,211],"exact_lines":true,"relation":"states","note":"","annotation":"The certificate states $\\lVert A-(H-cI)/\\alpha\\rVert_{\\mathrm{op}}\\leq\\varepsilon_{\\mathrm{block}}$, where $A$ is the implemented block and $c$ is the scalar potential shift. It also proves that $A$ is Hermitian and has operator norm at most one. Those properties allow the walk polynomial to approximate evolution under $A$.","proof_lines":[212,280]},{"name":"QuantumComputation.Specs.PhotochemistrySolution.DiagShiftSpecBridge.approximatesTimeEvolution_of_rescaled_blockEncoding","line":54,"end_line":89,"module":"QuantumComputationDiscoveries.Algorithms.Photochemistry.Solution.DiagonalShiftBridge","plain":"Evolution error from the Hamiltonian block approximation","lines":[54,59],"exact_lines":true,"relation":"states","note":"","annotation":"Set $\\widetilde H=\\alpha A+cI$, where $A$ is the implemented block. The block error gives $\\|\\widetilde H-H\\|_{\\mathrm{op}}\\leq\\alpha\\varepsilon_{\\mathrm{block}}$. The operator-norm difference of the two Hermitian propagators is bounded by $t$ times that energy error. The proof adds this to the walk error and absorbs the scalar shift into the global phase.","proof_lines":[59,89]}],"role":"statement","lean":true,"name":"QuantumComputation.Specs.PhotochemistrySolution.Stage5StackCerts.alphaTier1WalkFull","module":"QuantumComputationDiscoveries.Algorithms.Photochemistry.Solution.DualBellReflStage5Stack","lines":[1008,1008],"plain":"Hamiltonian block-encoding scale α","relation":"states","anchor":"block-A8.SS4-block-1","at":"b186465-186516","origin":"ai","explanation":{"text":"","citations":[{"ref":"photochemistry/qsp/bfc8a71dfd45","title":"Passage in the authors’ arXiv text","url":"https://arxiv.org/html/2611.09822v3#A8.SS4.p1.1"},{"ref":"https://dx.doi.org/10.1103/PRXQuantum.5.020368","title":"10.1103/PRXQuantum.5.020368","url":"https://dx.doi.org/10.1103/PRXQuantum.5.020368"},{"ref":"https://dx.doi.org/10.1103/PhysRevA.110.012612","title":"10.1103/PhysRevA.110.012612","url":"https://dx.doi.org/10.1103/PhysRevA.110.012612"}]}},{"record":"photochemistry/qsp","phrase":"photochemistry/qsp/ed40d467ac8a","topic":"photochemistry","part":0,"tone":4,"rows":[{"name":"QuantumComputation.Specs.PhotochemistrySolution.CompactCauchy.cleanWalkCertHalf_subCoin_3326847","line":17772,"end_line":17786,"module":"QuantumComputationDiscoveries.Algorithms.Photochemistry.Solution.HalfPlaneCauchyWalkCore","plain":"Clean-ancilla error from the Jacobi–Anger tail","lines":[17772,17776],"exact_lines":true,"relation":"states","note":"","annotation":"The certificate bounds the Jacobi–Anger tail on the unit circle and then bounds the error of the rescaled evolution block by $\\varepsilon_{\\mathrm{block}}$. The final condition uses $2\\varepsilon_{\\mathrm{block}}\\leq\\varepsilon_{\\mathrm{clean}}^2$ to bound the full-output error for clean inputs. Here $\\varepsilon_{\\mathrm{clean}}=0.000226054601$.","proof_lines":[17774,17786],"fidelity":"same","fidelity_source":"ai"},{"name":"QuantumComputation.Specs.photochemistryProgram","line":602,"end_line":610,"module":"QuantumComputationDiscoveries.Algorithms.Photochemistry","plain":"Clifford+T simulation of one femtosecond","lines":[602,610],"exact_lines":true,"relation":"states","note":"","annotation":"The call to the outer construction uses the degree-$3{,}326{,}847$ polynomial certificate and the inequality for the actual scaled time. The same program definition appears in the correctness theorem and the resource theorem, so both results refer to this choice of degree and walk.","proof_lines":[604,610]}],"role":"statement","lean":true,"name":"QuantumComputation.Specs.PhotochemistrySolution.CompactCauchy.cleanWalkCertHalf_subCoin_3326847","module":"QuantumComputationDiscoveries.Algorithms.Photochemistry.Solution.HalfPlaneCauchyWalkCore","lines":[17772,17776],"plain":"Clean-ancilla error from the Jacobi–Anger tail","relation":"states","anchor":"block-A8.SS4-block-1","at":"b186521-186561","origin":"ai","explanation":{"text":"","citations":[{"ref":"photochemistry/qsp/ed40d467ac8a","title":"Passage in the authors’ arXiv text","url":"https://arxiv.org/html/2611.09822v3#A8.SS4.p1.1"},{"ref":"https://dx.doi.org/10.1103/PRXQuantum.5.020368","title":"10.1103/PRXQuantum.5.020368","url":"https://dx.doi.org/10.1103/PRXQuantum.5.020368"},{"ref":"https://dx.doi.org/10.1103/PhysRevA.110.012612","title":"10.1103/PhysRevA.110.012612","url":"https://dx.doi.org/10.1103/PhysRevA.110.012612"}]}},{"record":"photochemistry/per-walk","phrase":"photochemistry/per-walk/fcee111a8819","topic":"photochemistry","part":0,"tone":4,"rows":[{"name":"QuantumComputation.Specs.PhotochemistrySolution.WalkCostStack.htUsel_stack","line":394,"end_line":406,"module":"QuantumComputationDiscoveries.Algorithms.Photochemistry","plain":"30,116 T-gate bound for an uncontrolled walk step","lines":[394,398],"exact_lines":true,"relation":"states","note":"","annotation":"The components other than reflection sum to 29,864 T gates. Reflection adds $4(62+1)=252$ T gates for the temporary-AND zero test. The resulting 30,116-T budget is an upper bound used for every uncontrolled step.","proof_lines":[397,406],"fidelity":"weaker","fidelity_source":"ai"},{"name":"QuantumComputation.Specs.PhotochemistrySolution.WalkCostStack.htCsel_stack","line":407,"end_line":422,"module":"QuantumComputationDiscoveries.Algorithms.Photochemistry","plain":"30,132 T-gate bound for a controlled walk step","lines":[407,411],"exact_lines":true,"relation":"states","note":"","annotation":"The two walk budgets use the same coordinate copying and clearing costs. The boundary control changes the potential allowance from 3,060 to 3,072 T gates and the kinetic allowance from 446 to 450. Together those changes account for the entire 16-T difference.","proof_lines":[410,422],"fidelity":"weaker","fidelity_source":"ai"}],"role":"statement","lean":true,"name":"QuantumComputation.Specs.PhotochemistrySolution.WalkCostStack.htUsel_stack","module":"QuantumComputationDiscoveries.Algorithms.Photochemistry","lines":[394,398],"plain":"30,116 T-gate bound for an uncontrolled walk step","relation":"states","anchor":"block-A8.SS4-block-2","at":"b186599-186705","origin":"ai","explanation":{"text":"","citations":[{"ref":"photochemistry/per-walk/fcee111a8819","title":"Passage in the authors’ arXiv text","url":"https://arxiv.org/html/2611.09822v3#A8.SS4.p2.1"}]}},{"record":"photochemistry/copy-uncompute","phrase":"photochemistry/copy-uncompute/eac6bf70d554","topic":"photochemistry","part":0,"tone":4,"rows":[{"name":"QuantumComputation.Specs.PhotochemistrySolution.Stage5W298.counts_pStage5AlwaysLoInPlaceW298_908","line":4811,"end_line":4828,"module":"QuantumComputationDiscoveries.Algorithms.Photochemistry.Solution.CoulombMid36Stage5W298","plain":"908 T gates for coordinate uncomputation","lines":[4811,4813],"exact_lines":true,"relation":"states","note":"","annotation":"The equalities here apply to the full coordinate uncomputation subroutine. Its circuits for the low electron bits, shared high bits and low nuclear bits contribute $368+452+88=908$ T gates, with zero primitive Toffoli gates. The zero-cost result for the one-bit parity correction applies to that correction alone.","proof_lines":[4814,4828],"fidelity":"same","fidelity_source":"ai"},{"name":"QuantumComputation.Specs.PhotochemistrySolution.WalkCostStack.htUsel_stack","line":394,"end_line":406,"module":"QuantumComputationDiscoveries.Algorithms.Photochemistry","plain":"30,116 T-gate bound for an uncontrolled walk step","lines":[394,396],"exact_lines":true,"relation":"states","note":"","annotation":"The uncomputation follows the potential operation once per walk step and clears the coordinates of the coherently selected pair. Both walk budgets include the same $24{,}194+908$ T allowance for copying and clearing the coordinates.","proof_lines":[397,406]}],"role":"statement","lean":true,"name":"QuantumComputation.Specs.PhotochemistrySolution.Stage5W298.counts_pStage5AlwaysLoInPlaceW298_908","module":"QuantumComputationDiscoveries.Algorithms.Photochemistry.Solution.CoulombMid36Stage5W298","lines":[4811,4813],"plain":"908 T gates for coordinate uncomputation","relation":"states","anchor":"block-A8.SS4-block-2","at":"b186849-186897","origin":"ai","explanation":{"text":"","citations":[{"ref":"photochemistry/copy-uncompute/eac6bf70d554","title":"Passage in the authors’ arXiv text","url":"https://arxiv.org/html/2611.09822v3#A8.SS4.p2.1"},{"ref":"https://dx.doi.org/10.22331/q-2018-06-18-74","title":"10.22331/q-2018-06-18-74","url":"https://dx.doi.org/10.22331/q-2018-06-18-74"}]}},{"record":"photochemistry/bernstein","phrase":"photochemistry/bernstein/b8a5743e3af3","topic":"photochemistry","part":0,"tone":4,"rows":[{"name":"QuantumComputation.Specs.PhotochemistrySolution.WalkCostStack.htUsel_stack","line":394,"end_line":406,"module":"QuantumComputationDiscoveries.Algorithms.Photochemistry","plain":"30,116 T-gate bound for an uncontrolled walk step","lines":[394,396],"exact_lines":false,"relation":"states","note":"","annotation":"In the walk budget, the term 3,060 is the T count allowed for the 512-entry Bernstein evaluation of the potential. It appears beside 446 for the QFT kinetic term. Putting the two terms in the same sum accounts for the contributions of $V$ and $T$ to the walk-step cost.","proof_lines":[397,406]}],"role":"statement","lean":true,"name":"QuantumComputation.Specs.PhotochemistrySolution.WalkCostStack.htUsel_stack","module":"QuantumComputationDiscoveries.Algorithms.Photochemistry","lines":[394,396],"plain":"30,116 T-gate bound for an uncontrolled walk step","relation":"states","anchor":"block-A8.SS4-block-2","at":"b186986-187028","origin":"ai","explanation":{"text":"","citations":[{"ref":"photochemistry/bernstein/b8a5743e3af3","title":"Passage in the authors’ arXiv text","url":"https://arxiv.org/html/2611.09822v3#A8.SS4.p2.1"},{"ref":"https://dx.doi.org/10.1145/2133390.2133396","title":"10.1145/2133390.2133396","url":"https://dx.doi.org/10.1145/2133390.2133396"}]}},{"record":"photochemistry/per-walk","phrase":"photochemistry/per-walk/b5ba278f28a8","topic":"photochemistry","part":0,"tone":4,"rows":[{"name":"QuantumComputation.Specs.PhotochemistrySolution.WalkCostStack.hCost_stack_eq","line":463,"end_line":474,"module":"QuantumComputationDiscoveries.Algorithms.Photochemistry","plain":"Exact product of 6,033 qubits and the T-gate budget","lines":[464,466],"exact_lines":true,"relation":"states","note":"","annotation":"The factor $30{,}116+76$ includes the walk and the rotation allowance for each of the $d=3{,}326{,}847$ uncontrolled steps. The two controlled steps contribute $2\\cdot30{,}132$ and the one-time term contributes 245. The sum is $100{,}444{,}225{,}133$ T gates before multiplication by $Q$.","proof_lines":[467,474]},{"name":"QuantumComputation.Specs.photochemistry_const_cost","line":649,"end_line":664,"module":"QuantumComputationDiscoveries.Algorithms.Photochemistry","plain":"Circuit spacetime bound and primitive Toffoli count","lines":[649,654],"exact_lines":false,"relation":"states","note":"","annotation":"The one-time term includes 76 T gates for the initial word, 73 for the final correction, and 174 each for phase-gradient preparation and its inverse. One 252-T reflection already included in the step allowances is omitted. The net term is therefore $76+73+2\\cdot174-252=245$ T gates.","proof_lines":[655,664]}],"role":"statement","lean":true,"name":"QuantumComputation.Specs.PhotochemistrySolution.WalkCostStack.hCost_stack_eq","module":"QuantumComputationDiscoveries.Algorithms.Photochemistry","lines":[464,466],"plain":"Exact product of 6,033 qubits and the T-gate budget","relation":"states","anchor":"block-A8.SS4-block-2","at":"b187124-187192","origin":"ai","explanation":{"text":"","citations":[{"ref":"photochemistry/per-walk/b5ba278f28a8","title":"Passage in the authors’ arXiv text","url":"https://arxiv.org/html/2611.09822v3#A8.SS4.p2.1"}]}},{"record":"photochemistry/qsp","phrase":"photochemistry/qsp/869b34eba0aa","topic":"photochemistry","part":0,"tone":4,"rows":[{"name":"QuantumComputation.Specs.PhotochemistrySolution.HalfWalk.exists_bidir_of_cleanWalkCertHalf","line":15333,"end_line":15346,"module":"QuantumComputationDiscoveries.Algorithms.Photochemistry.Solution.HalfPlaneCauchyWalkCore","plain":"Existence of ideal generalized QSP rotations","lines":[15333,15345],"exact_lines":true,"relation":"states","note":"","annotation":"The theorem makes the generalized QSP factorization an existence statement. Its witnesses are an initial $2\\times2$ unitary $R_0$, a list of $d$ further unitaries and a complementary polynomial. The equation `Rs.length = d` gives $d+1=3{,}326{,}848$ ideal rotations at the chosen degree.","proof_lines":[15341,15346],"fidelity":"same","fidelity_source":"ai"},{"name":"QuantumComputation.Specs.PhotochemistrySolution.LaplaceHalfTurnkey.exists_jung87_tophad_walk_of_cleanCertHalf","line":17047,"end_line":17116,"module":"QuantumComputationDiscoveries.Algorithms.Photochemistry.Solution.HalfPlaneCauchyWalkCore","plain":"Existence of gate sequences with bounded T counts and walk error","lines":[17058,17074],"exact_lines":true,"relation":"states","note":"","annotation":"The synthesis proof controls the error of the rotation product. It supplies candidate words whose weighted operator average is closer to the target rotation than the individual word guarantees. A deterministic selection argument bounds the accumulated error uniformly over walk phases. The same selected words have bounded T counts.","proof_lines":[17066,17116]}],"role":"statement","lean":true,"name":"QuantumComputation.Specs.PhotochemistrySolution.HalfWalk.exists_bidir_of_cleanWalkCertHalf","module":"QuantumComputationDiscoveries.Algorithms.Photochemistry.Solution.HalfPlaneCauchyWalkCore","lines":[15333,15345],"plain":"Existence of ideal generalized QSP rotations","relation":"states","anchor":"block-A8.SS4-block-2","at":"b187212-187268","origin":"ai","explanation":{"text":"","citations":[{"ref":"photochemistry/qsp/869b34eba0aa","title":"Passage in the authors’ arXiv text","url":"https://arxiv.org/html/2611.09822v3#A8.SS4.p2.1"},{"ref":"https://dx.doi.org/10.1103/PRXQuantum.5.020368","title":"10.1103/PRXQuantum.5.020368","url":"https://dx.doi.org/10.1103/PRXQuantum.5.020368"},{"ref":"https://dx.doi.org/10.1103/PhysRevA.110.012612","title":"10.1103/PhysRevA.110.012612","url":"https://dx.doi.org/10.1103/PhysRevA.110.012612"}]}},{"record":"photochemistry/qsp","phrase":"photochemistry/qsp/b49474685a66","topic":"photochemistry","part":0,"tone":4,"rows":[{"name":"QuantumComputation.Specs.PhotochemistrySolution.LaplaceHalfTurnkey.jung87TopHadWordsPackHalf_walkCert","line":17118,"end_line":17130,"module":"QuantumComputationDiscoveries.Algorithms.Photochemistry.Solution.HalfPlaneCauchyWalkCore","plain":"Classical choice of the rotation circuits","lines":[17128,17130],"exact_lines":true,"relation":"part","note":"","annotation":"The definition is a `Classical.choose` applied to the existence proof. The result is the tuple of initial circuit, final circuit and a circuit for each of the $d$ step indices. The count and error lemmas use properties of this tuple without evaluating its gate sequences.","proof_lines":[17130,17130]},{"name":"QuantumComputation.Specs.PhotochemistrySolution.LaplaceHalfTurnkey.jung87TopHadWordsPackHalf_walkCert_counts","line":17132,"end_line":17149,"module":"QuantumComputationDiscoveries.Algorithms.Photochemistry.Solution.HalfPlaneCauchyWalkCore","plain":"T-count bounds for the chosen Clifford+T words","lines":[17143,17149],"exact_lines":true,"relation":"part","note":"","annotation":"The chosen initial and per-step words each use at most 76 T gates. The final word has a separate 73-T bound for the unitary family given by the product of a Hadamard and a diagonal phase rotation. Each word has zero primitive Toffoli gates.","proof_lines":[17144,17149]},{"name":"QuantumComputation.Specs.PhotochemistrySolution.LaplaceHalfTurnkey.hwalk_of_cleanWalkCertHalf_jung87_tophad_walkCert","line":17150,"end_line":17167,"module":"QuantumComputationDiscoveries.Algorithms.Photochemistry.Solution.HalfPlaneCauchyWalkCore","plain":"Evolution error under the implemented Hamiltonian block","lines":[17161,17167],"exact_lines":true,"relation":"part","note":"","annotation":"The time-evolution guarantee for the selected words uses the implemented block $A$ and time $\\alpha t$. The error bound combines phase-gradient preparation and its inverse, rotation synthesis and the ideal walk approximation. The input ancillas start at zero and the norm includes every joint output component.","proof_lines":[17162,17167]},{"name":"QuantumComputation.Specs.photochemistry_correctness","line":620,"end_line":640,"module":"QuantumComputationDiscoveries.Algorithms.Photochemistry","plain":"Error at most 0.01 for every system state at t = 1 fs","lines":[631,640],"exact_lines":true,"relation":"part","note":"","annotation":"The theorem combines the walk guarantee with the bound on $\\alpha t\\varepsilon_{\\mathrm{block}}$. The scalar shift is absorbed into the global phase. The final guarantee concerns evolution under $H$ at $t=1$ fs with full-output error at most $0.01$ on the zero-ancilla input subspace.","proof_lines":[626,640]},{"name":"QuantumComputation.Specs.PhotochemistrySolution.CompactCauchy.tot_err_subCoin_3326847","line":17788,"end_line":17791,"module":"QuantumComputationDiscoveries.Algorithms.Photochemistry.Solution.HalfPlaneCauchyWalkCore","plain":"Sum of the four evolution error bounds","lines":[17788,17791],"exact_lines":true,"relation":"part","note":"","annotation":"The four contributions are $0.007108616859$ for the Hamiltonian approximation over time, $0.002658383638$ for rotation synthesis, $0.000226054601$ for the ideal walk and $2(0.000001512885)$ for the two phase-gradient operations. Their sum is $0.009996080868$, leaving a certified margin of $0.000003919132$ below $0.01$.","proof_lines":[17791,17791]},{"name":"QuantumComputation.Specs.photochemistry_const_cost","line":649,"end_line":664,"module":"QuantumComputationDiscoveries.Algorithms.Photochemistry","plain":"Circuit spacetime bound and primitive Toffoli count","lines":[649,654],"exact_lines":true,"relation":"part","note":"","annotation":"The resource proof bounds the dynamic circuit containing the chosen Clifford+T words. Its T budget already includes the bounds for their rotations, and each conditional is counted at its more expensive branch. The conclusion bounds this count times $Q$ and gives zero primitive Toffoli gates.","proof_lines":[655,664]}],"role":"derivation","lean":true,"name":"QuantumComputation.Specs.PhotochemistrySolution.LaplaceHalfTurnkey.jung87TopHadWordsPackHalf_walkCert","module":"QuantumComputationDiscoveries.Algorithms.Photochemistry.Solution.HalfPlaneCauchyWalkCore","lines":[17128,17130],"plain":"Classical choice of the rotation circuits","relation":"part","anchor":"block-A8.SS4-block-2","at":"b187658-187720","origin":"ai","explanation":{"text":"","citations":[{"ref":"photochemistry/qsp/b49474685a66","title":"Passage in the authors’ arXiv text","url":"https://arxiv.org/html/2611.09822v3#A8.SS4.p2.1"},{"ref":"https://dx.doi.org/10.1103/PRXQuantum.5.020368","title":"10.1103/PRXQuantum.5.020368","url":"https://dx.doi.org/10.1103/PRXQuantum.5.020368"},{"ref":"https://dx.doi.org/10.1103/PhysRevA.110.012612","title":"10.1103/PhysRevA.110.012612","url":"https://dx.doi.org/10.1103/PhysRevA.110.012612"}]}},{"record":"photochemistry/spacetime","phrase":"photochemistry/spacetime/73ebdfcc1bc3","topic":"photochemistry","part":0,"tone":4,"rows":[{"name":"QuantumComputation.Specs.photochemistry_const_cost","line":649,"end_line":664,"module":"QuantumComputationDiscoveries.Algorithms.Photochemistry","plain":"Circuit spacetime bound and primitive Toffoli count","lines":[651,654],"exact_lines":true,"relation":"states","note":"","annotation":"The theorem bounds the structural T count of the program used in the correctness theorem by $100{,}444{,}225{,}133$. The proof can add one 76-T allowance per step from the existence proof for the rotation circuits without evaluating their gate words.","proof_lines":[655,664],"fidelity":"weaker","fidelity_source":"ai"},{"name":"QuantumComputation.Specs.photochemistryConstCost","line":643,"end_line":643,"module":"QuantumComputationDiscoveries.Algorithms.Photochemistry","plain":"Logical spacetime bound of 605,980,010,227,389","lines":[643,643],"exact_lines":false,"relation":"states","note":"","annotation":"The decimal numeral is the definition of `photochemistryConstCost`, the right-hand side of the resource inequality. The arithmetic lemma computes the same number from $Q$ and the per-step T-gate budgets, which explains why the inequality uses this particular integer."},{"name":"QuantumComputation.Specs.PhotochemistrySolution.WalkCostStack.hCost_stack_eq","line":463,"end_line":474,"module":"QuantumComputationDiscoveries.Algorithms.Photochemistry","plain":"Exact product of 6,033 qubits and the T-gate budget","lines":[463,466],"exact_lines":true,"relation":"states","note":"","annotation":"The equality evaluates $6{,}033[d(30{,}116+76)+2\\cdot30{,}132+245]$ at $d=3{,}326{,}847$. The one-time term is a net allowance. The initial and final word bounds and the two phase-gradient operations contribute $76+73+2\\cdot174$ T gates, and one 252-T reflection already included in the step allowances is omitted.","proof_lines":[467,474],"fidelity":"same","fidelity_source":"ai"}],"role":"statement","lean":true,"name":"QuantumComputation.Specs.photochemistry_const_cost","module":"QuantumComputationDiscoveries.Algorithms.Photochemistry","lines":[651,654],"plain":"Circuit spacetime bound and primitive Toffoli count","relation":"states","anchor":"block-A8.SS4-block-2","at":"b188361-188407","origin":"ai","explanation":{"text":"","citations":[{"ref":"photochemistry/spacetime/73ebdfcc1bc3","title":"Passage in the authors’ arXiv text","url":"https://arxiv.org/html/2611.09822v3#A8.SS4.p2.1"}]}},{"record":"p450/fixed-model","phrase":"p450/fixed-model/3ec91e382c8c","topic":"p450","part":0,"tone":5,"rows":[{"name":"QuantumComputation.Specs.P450.systemQubits","line":145,"end_line":147,"module":"QuantumComputationDiscoveries.Algorithms.P450GroundEnergy","plain":"116 Jordan–Wigner system qubits","lines":[145,145],"exact_lines":false,"relation":"defines","note":"","annotation":"Qubit $2p+\\sigma$ gives the occupation of spin orbital $(p,\\sigma)$, so `systemQubits` is $2\\times58=116$. The 63-electron projector selects the span of the basis strings with exactly 63 occupied bits. This subspace has dimension $\\binom{116}{63}$.","proof_lines":[146,147]}],"role":"definition","lean":true,"name":"QuantumComputation.Specs.P450.systemQubits","module":"QuantumComputationDiscoveries.Algorithms.P450GroundEnergy","lines":[145,145],"plain":"116 Jordan–Wigner system qubits","relation":"defines","anchor":"block-A9.SS1-block-1","at":"b188883-188929","origin":"ai","explanation":{"text":"","citations":[{"ref":"p450/fixed-model/3ec91e382c8c","title":"Passage in the authors’ arXiv text","url":"https://arxiv.org/html/2611.09822v3#A9.SS1.p1.1"},{"ref":"https://dx.doi.org/10.1073/pnas.2203533119","title":"10.1073/pnas.2203533119","url":"https://dx.doi.org/10.1073/pnas.2203533119"},{"ref":"https://dx.doi.org/10.5281/zenodo.17066718","title":"10.5281/zenodo.17066718","url":"https://dx.doi.org/10.5281/zenodo.17066718"}]}},{"record":"p450/input-and-initialization","phrase":"p450/input-and-initialization/fb928e6c216b","topic":"p450","part":0,"tone":5,"rows":[{"name":"QuantumComputation.Specs.p450GroundEnergy_correctness","line":720,"end_line":728,"module":"QuantumComputationDiscoveries.Algorithms.P450GroundEnergy","plain":"Energy error of the compiled circuit","lines":[720,725],"exact_lines":false,"relation":"states","note":"","annotation":"The last line names the circuit for one execution on a supplied eigenstate. The error bound is for the resulting ancilla outcome distribution. Appendix I.1 accounts separately for preparing a trial state and repeating the run to sample its ground-state component.","proof_lines":[726,728],"annotation_references":[{"start":143,"end":155,"key":"appendix:i.1"}]},{"name":"QuantumComputation.Specs.p450GroundEnergyProgram","line":706,"end_line":708,"module":"QuantumComputationDiscoveries.Algorithms.P450GroundEnergy","plain":"Phase-estimation program with measurements","lines":[706,707],"exact_lines":false,"relation":"states","note":"","annotation":"`p450GroundEnergyProgram` takes the system and ancilla register placements. The walk length and 16-qubit phase register are fixed by the solution. The inverse QFT produces the outcome distribution from the accumulated phases without a classical energy input.","proof_lines":[708,708]}],"role":"statement","lean":true,"name":"QuantumComputation.Specs.p450GroundEnergy_correctness","module":"QuantumComputationDiscoveries.Algorithms.P450GroundEnergy","lines":[720,725],"plain":"Energy error of the compiled circuit","relation":"states","anchor":"block-A9.SS1-block-6","at":"b191656-191718","origin":"ai","explanation":{"text":"","citations":[{"ref":"p450/input-and-initialization/fb928e6c216b","title":"Passage in the authors’ arXiv text","url":"https://arxiv.org/html/2611.09822v3#A9.SS1.p4.1"},{"ref":"https://dx.doi.org/10.1103/PhysRevLett.83.5162","title":"10.1103/PhysRevLett.83.5162","url":"https://dx.doi.org/10.1103/PhysRevLett.83.5162"}]}},{"record":"p450/input-and-initialization","phrase":"p450/input-and-initialization/474d200ec901","topic":"p450","part":0,"tone":5,"rows":[{"name":"QuantumComputation.Specs.MeasuresLowEnergies","line":131,"end_line":142,"module":"QuantumComputationDiscoveries.Algorithms.P450GroundEnergy","plain":"RMS error after capping both energies","lines":[137,140],"exact_lines":true,"relation":"defines","note":"","annotation":"`IsEigen` requires $H\\psi=E\\psi$ and $P_{63}\\psi=\\psi$. It also requires a nonzero vector, since the zero vector would qualify for every real eigenvalue and make the cutoff impossible. For the eigenvector used as input, the predicate separately requires norm one.","proof_lines":[133,142]}],"role":"definition","lean":true,"name":"QuantumComputation.Specs.MeasuresLowEnergies","module":"QuantumComputationDiscoveries.Algorithms.P450GroundEnergy","lines":[137,140],"plain":"RMS error after capping both energies","relation":"defines","anchor":"block-A9.SS1-block-6","at":"b191720-191772","origin":"ai","explanation":{"text":"","citations":[{"ref":"p450/input-and-initialization/474d200ec901","title":"Passage in the authors’ arXiv text","url":"https://arxiv.org/html/2611.09822v3#A9.SS1.p4.1"},{"ref":"https://dx.doi.org/10.1103/PhysRevLett.83.5162","title":"10.1103/PhysRevLett.83.5162","url":"https://dx.doi.org/10.1103/PhysRevLett.83.5162"}]}},{"record":"p450/energy-window","phrase":"p450/energy-window/d6461289e6c2","topic":"p450","part":0,"tone":5,"rows":[{"name":"QuantumComputation.Specs.PhaseDecoder.energy","line":121,"end_line":123,"module":"QuantumComputationDiscoveries.Algorithms.P450GroundEnergy","plain":"Energy from bits of the phase register","lines":[122,123],"exact_lines":true,"relation":"part","note":"","annotation":"The absolute cosine is unchanged when halving either phase $\\pm2\\varphi$ modulo $2\\pi$. With perfect phase information the decoder gives $E_{\\rm off}-|E-E_{\\rm off}|$. On the upper branch it reflects the energies about $E_{\\rm off}$. The bound of 48 Ha on the spectrum keeps the reflected energy above the cutoff, with room for the effective Hamiltonian perturbation.","proof_lines":[122,123]}],"role":"explanation","lean":true,"name":"QuantumComputation.Specs.PhaseDecoder.energy","module":"QuantumComputationDiscoveries.Algorithms.P450GroundEnergy","lines":[122,123],"plain":"Energy from bits of the phase register","relation":"part","anchor":"block-A9.SS1-block-8","at":"b194151-194190","origin":"ai","explanation":{"text":"","citations":[{"ref":"p450/energy-window/d6461289e6c2","title":"Passage in the authors’ arXiv text","url":"https://arxiv.org/html/2611.09822v3#A9.SS1.p4.2"},{"ref":"https://dx.doi.org/10.1103/PhysRevX.8.041015","title":"10.1103/PhysRevX.8.041015","url":"https://dx.doi.org/10.1103/PhysRevX.8.041015"},{"ref":"https://dx.doi.org/10.1103/pb2g-j9cw","title":"10.1103/pb2g-j9cw","url":"https://dx.doi.org/10.1103/pb2g-j9cw"}]}},{"record":"p450/energy-window","phrase":"p450/energy-window/39dcef0e69e4","topic":"p450","part":0,"tone":5,"rows":[{"name":"QuantumComputation.Specs.p450GroundEnergy_correctness","line":720,"end_line":728,"module":"QuantumComputationDiscoveries.Algorithms.P450GroundEnergy","plain":"Energy error of the compiled circuit","lines":[720,725],"exact_lines":false,"relation":"states","note":"","annotation":"For each disjoint register placement, the decoder is fixed and the theorem supplies a unitary $W$. The first conjunct gives the error bound on all the qualifying eigenstates with that $W$. The second conjunct relates the same $W$ to the compiled program with zero-initialized ancillas.","proof_lines":[726,728]},{"name":"QuantumComputation.Specs.MeasuresLowEnergies","line":131,"end_line":142,"module":"QuantumComputationDiscoveries.Algorithms.P450GroundEnergy","plain":"RMS error after capping both energies","lines":[131,132],"exact_lines":false,"relation":"states","note":"","annotation":"An input-independent capped estimate would have RMS distance at most 1 mHa from both $E_0$ and $E_0+\\Delta$. The triangle inequality would give $\\Delta\\le2$ mHa, while $\\Delta=100$ mHa. This instance has an above-window eigenvalue. Averaging the one-body term over the sector and using the nonnegative squares gives a mean sector energy of at least −111.655 Ha, above the cutoff bound of −130.0526 Ha.","proof_lines":[133,142]}],"role":"statement","lean":true,"name":"QuantumComputation.Specs.p450GroundEnergy_correctness","module":"QuantumComputationDiscoveries.Algorithms.P450GroundEnergy","lines":[720,725],"plain":"Energy error of the compiled circuit","relation":"states","anchor":"block-A9.SS1-block-9","at":"b194524-194581","origin":"ai","explanation":{"text":"","citations":[{"ref":"p450/energy-window/39dcef0e69e4","title":"Passage in the authors’ arXiv text","url":"https://arxiv.org/html/2611.09822v3#A9.SS1.p5.1"},{"ref":"https://dx.doi.org/10.1103/PhysRevX.8.041015","title":"10.1103/PhysRevX.8.041015","url":"https://dx.doi.org/10.1103/PhysRevX.8.041015"},{"ref":"https://dx.doi.org/10.1103/pb2g-j9cw","title":"10.1103/pb2g-j9cw","url":"https://dx.doi.org/10.1103/pb2g-j9cw"}]}},{"record":"p450/energy-window","phrase":"p450/energy-window/0ddc38797538","topic":"p450","part":0,"tone":5,"rows":[{"name":"QuantumComputation.Specs.MeasuresLowEnergies","line":131,"end_line":142,"module":"QuantumComputationDiscoveries.Algorithms.P450GroundEnergy","plain":"RMS error after capping both energies","lines":[142,142],"exact_lines":true,"relation":"part","note":"","annotation":"For $E\\ge T$, the squared difference is $\\max(T-\\hat E,0)^2$. A shortfall of at least $d$ contributes at least $d^2$ to that outcome's squared error. Thus its probability is at most $(\\varepsilon/d)^2$. For $d=10$ mHa the probability is at most 1%.","proof_lines":[133,142]}],"role":"explanation","lean":true,"name":"QuantumComputation.Specs.MeasuresLowEnergies","module":"QuantumComputationDiscoveries.Algorithms.P450GroundEnergy","lines":[142,142],"plain":"RMS error after capping both energies","relation":"part","anchor":"block-A9.SS1-block-11","at":"b195237-195306","origin":"ai","explanation":{"text":"","citations":[{"ref":"p450/energy-window/0ddc38797538","title":"Passage in the authors’ arXiv text","url":"https://arxiv.org/html/2611.09822v3#A9.SS1.p5.2"},{"ref":"verification/state-and-assertions/2a837af838dc","title":"Classical–quantum states, assertions and expectation","url":"?l=b97780-97826","supports":"In a classical-quantum state recording measurement outcomes, each outcome probability is the trace of its partial density operator. The P450 error criterion weights the squared difference between the decoded estimate and the eigenvalue, each capped at $E_{\\mathrm{top}}$, by these probabilities."},{"ref":"https://dx.doi.org/10.1103/PhysRevX.8.041015","title":"10.1103/PhysRevX.8.041015","url":"https://dx.doi.org/10.1103/PhysRevX.8.041015"},{"ref":"https://dx.doi.org/10.1103/pb2g-j9cw","title":"10.1103/pb2g-j9cw","url":"https://dx.doi.org/10.1103/pb2g-j9cw"}]}},{"record":"p450/input-and-initialization","phrase":"p450/input-and-initialization/ff11f67dd91e","topic":"p450","part":0,"tone":5,"rows":[{"name":"QuantumComputation.Specs.p450GroundEnergy_correctness","line":720,"end_line":728,"module":"QuantumComputationDiscoveries.Algorithms.P450GroundEnergy","plain":"Energy error of the compiled circuit","lines":[722,725],"exact_lines":true,"relation":"defines","note":"","annotation":"`Finset.univ` is the full set of system basis states. Their span is the whole system register, so the realization applies to every system state with zero-initialized ancillas. The separate energy predicate requires a unit eigenvector in the 63-electron sector.","proof_lines":[726,728],"fidelity":"same","fidelity_source":"ai"},{"name":"QuantumComputationSpecs.Algorithms.P450GroundEnergy.Solution.SevenGearWalk333.fast7gUnitProg","line":198,"end_line":209,"module":"QuantumComputationDiscoveries.Algorithms.P450GroundEnergy.Solution.SevenGearWalk333","plain":"The 47,487-step phase-estimation circuit","lines":[198,199],"exact_lines":false,"relation":"defines","note":"","annotation":"The circuit prepares the 11-qubit phase-gradient register from zero with `approxPhaseGrad11Ray`, using at most 1,036 T gates once in the run. An ideal phase-gradient state is an eigenstate of modular addition, so an addition induces a phase and leaves the gradient state available for later rotations.","proof_lines":[200,209]},{"name":"QuantumComputation.Specs.MeasuresLowEnergies","line":131,"end_line":142,"module":"QuantumComputationDiscoveries.Algorithms.P450GroundEnergy","plain":"RMS error after capping both energies","lines":[140,142],"exact_lines":true,"relation":"defines","note":"","annotation":"`Pi.single 0 1` is the zero ancilla ket. The Lean sum uses full ancilla outcomes $a$. The decoder uses only the phase bits obtained by `extractIndex`. Summing the probabilities of outcomes with the same phase index $y$ gives the $p(y\\mid\\psi)$ in Equation (20).","proof_lines":[133,142],"fidelity":"same","fidelity_source":"ai","annotation_references":[{"start":247,"end":260,"key":"equation:20"}]},{"name":"RealizesUnitaryFromBasisOutcomesAndZeroWorkspace","line":78,"end_line":90,"module":"QuantumComputation.QuantumHoareLogic.CleanAncilla","plain":"Unitary realization on zero-ancilla inputs","lines":[81,90],"exact_lines":true,"relation":"defines","note":"","annotation":"The restriction to zero ancillas applies to the input. The final observable $M$ can act on the full output, including the phase register. Applying the precondition inequality to $M$ and its complement gives equality of expectations on the restricted input subspace.","proof_lines":[85,90]}],"role":"definition","lean":true,"name":"QuantumComputation.Specs.p450GroundEnergy_correctness","module":"QuantumComputationDiscoveries.Algorithms.P450GroundEnergy","lines":[722,725],"plain":"Energy error of the compiled circuit","relation":"defines","anchor":"block-A9.SS1-block-12","at":"b196135-196180","origin":"ai","explanation":{"text":"","citations":[{"ref":"p450/input-and-initialization/ff11f67dd91e","title":"Passage in the authors’ arXiv text","url":"https://arxiv.org/html/2611.09822v3#A9.SS1.p6.1"},{"ref":"https://dx.doi.org/10.1103/PhysRevLett.83.5162","title":"10.1103/PhysRevLett.83.5162","url":"https://dx.doi.org/10.1103/PhysRevLett.83.5162"}]}},{"record":"p450/verified-cost","phrase":"p450/verified-cost/59063a03382a","topic":"p450","part":0,"tone":5,"rows":[{"name":"QuantumComputation.Specs.p450GroundEnergy_const_cost","line":737,"end_line":744,"module":"QuantumComputationDiscoveries.Algorithms.P450GroundEnergy","plain":"Worst-case T count and logical spacetime bound","lines":[739,742],"exact_lines":true,"relation":"defines","note":"","annotation":"`.count PrimitiveGate.TOFF = 0` excludes uncompiled Toffolis, which would contribute zero to the T count. The compiled temporary AND uses four T gates to compute and zero T gates to uncompute by measurement and Clifford correction. A conditional contributes the larger branch count.","proof_lines":[743,744]}],"role":"definition","lean":true,"name":"QuantumComputation.Specs.p450GroundEnergy_const_cost","module":"QuantumComputationDiscoveries.Algorithms.P450GroundEnergy","lines":[739,742],"plain":"Worst-case T count and logical spacetime bound","relation":"defines","anchor":"block-A9.SS1-block-12","at":"b196268-196317","origin":"ai","explanation":{"text":"","citations":[{"ref":"p450/verified-cost/59063a03382a","title":"Passage in the authors’ arXiv text","url":"https://arxiv.org/html/2611.09822v3#A9.SS1.p6.1"}]}},{"record":"p450/paired-one-hot","phrase":"p450/paired-one-hot/05202d2849f6","topic":"p450","part":0,"tone":5,"rows":[{"name":"QuantumComputationSpecs.Algorithms.P450GroundEnergy.Solution.Pi145CompactRouter.r55Branch_twoBody","line":1299,"end_line":1337,"module":"QuantumComputationDiscoveries.Algorithms.P450GroundEnergy.Solution.Pi145CompactRouter","plain":"Signed SELECT on admissible two-body branches","lines":[1299,1304],"exact_lines":false,"relation":"part","note":"","annotation":"The signed branch assumes `xo'.val < 126`, `b.val < 30` and the prescribed sign `negInPadded`. For $b<29$ the row $58+29r+b$ depends on the orbital vector, while its coefficient depends on the square $(r,c)$. The extra address $b=29$ is a scalar term, so the signed branch applies only the coefficient sign there. The compiled walk handles that sign separately.","proof_lines":[1305,1337]},{"name":"QuantumComputationSpecs.Algorithms.P450GroundEnergy.Solution.SevenGearWalk333.fast7gSevenGearCert","line":391,"end_line":447,"module":"QuantumComputationDiscoveries.Algorithms.P450GroundEnergy.Solution.SevenGearWalk333","plain":"Walk blocks at the scheduled workspace widths","lines":[391,400],"exact_lines":false,"relation":"part","note":"","annotation":"The five inner bits allow 32 addresses. `mainPrepMid_vanish_ge30` gives zero amplitude at 30 and 31, so the block proof uses the SELECT equality on the supported addresses. The zero implementation errors in the walk certificate are relative to the walk with the same prepared weights.","proof_lines":[401,447]}],"role":"explanation","lean":true,"name":"QuantumComputationSpecs.Algorithms.P450GroundEnergy.Solution.Pi145CompactRouter.r55Branch_twoBody","module":"QuantumComputationDiscoveries.Algorithms.P450GroundEnergy.Solution.Pi145CompactRouter","lines":[1299,1304],"plain":"Signed SELECT on admissible two-body branches","relation":"part","anchor":"block-A9.SS3-block-1","at":"b202202-202298","origin":"ai","explanation":{"text":"","citations":[{"ref":"p450/paired-one-hot/05202d2849f6","title":"Passage in the authors’ arXiv text","url":"https://arxiv.org/html/2611.09822v3#A9.SS3.p1.1"},{"ref":"https://dx.doi.org/10.1103/yngp-5fpm","title":"10.1103/yngp-5fpm","url":"https://dx.doi.org/10.1103/yngp-5fpm"},{"ref":"https://dx.doi.org/10.1103/PhysRevX.8.041015","title":"10.1103/PhysRevX.8.041015","url":"https://dx.doi.org/10.1103/PhysRevX.8.041015"}]}},{"record":"p450/paired-one-hot","phrase":"p450/paired-one-hot/076c77b13e93","topic":"p450","part":0,"tone":5,"rows":[{"name":"QuantumComputationSpecs.Algorithms.P450GroundEnergy.Solution.CompactCore145Bundle.compactCoreTCount","line":74,"end_line":74,"module":"QuantumComputationDiscoveries.Algorithms.P450GroundEnergy.Solution.CompactCore145Spec","plain":"T count of one SELECT core by workspace","lines":[74,74],"exact_lines":false,"relation":"part","note":"","annotation":"The two rotations nearest the orbital reflection combine into a doubled-angle rotation. At full workspace the other 112 rotations cost 102 T each, the middle rotation costs 98 T, and computing and erasing the one-hot register costs 296 T. The sum is 11,818 T. With $d$ fewer workspace qubits the formula adds $448d+4\\max(d-1,0)$ T for $0\\le d\\le10$."},{"name":"QuantumComputationSpecs.Algorithms.P450GroundEnergy.Solution.Pi145CompactRouter.r55Branch_twoBody","line":1299,"end_line":1337,"module":"QuantumComputationDiscoveries.Algorithms.P450GroundEnergy.Solution.Pi145CompactRouter","plain":"Signed SELECT on admissible two-body branches","lines":[1299,1304],"exact_lines":false,"relation":"part","note":"","annotation":"The two passes share 145 pair addresses with pass-dependent angle masks for the one-body rows. The proof invokes `ctrl10_pair8_lt145` for the eight-bit address, then checks the activity flag separately and matches the selected orbital row on the active branch.","proof_lines":[1305,1337]}],"role":"derivation","lean":true,"name":"QuantumComputationSpecs.Algorithms.P450GroundEnergy.Solution.CompactCore145Bundle.compactCoreTCount","module":"QuantumComputationDiscoveries.Algorithms.P450GroundEnergy.Solution.CompactCore145Spec","lines":[74,74],"plain":"T count of one SELECT core by workspace","relation":"part","anchor":"block-A9.SS3-block-3","at":"b203463-203521","origin":"ai","explanation":{"text":"","citations":[{"ref":"p450/paired-one-hot/076c77b13e93","title":"Passage in the authors’ arXiv text","url":"https://arxiv.org/html/2611.09822v3#A9.SS3.p3.1"},{"ref":"https://dx.doi.org/10.1103/yngp-5fpm","title":"10.1103/yngp-5fpm","url":"https://dx.doi.org/10.1103/yngp-5fpm"},{"ref":"https://dx.doi.org/10.1103/PhysRevX.8.041015","title":"10.1103/PhysRevX.8.041015","url":"https://dx.doi.org/10.1103/PhysRevX.8.041015"}]}},{"record":"p450/paired-one-hot","phrase":"p450/paired-one-hot/abfe76096cee","topic":"p450","part":0,"tone":5,"rows":[{"name":"QuantumComputationSpecs.Algorithms.P450GroundEnergy.Solution.Pi145CompactRouter.r55Branch_twoBody","line":1299,"end_line":1337,"module":"QuantumComputationDiscoveries.Algorithms.P450GroundEnergy.Solution.Pi145CompactRouter","plain":"Signed SELECT on admissible two-body branches","lines":[1299,1304],"exact_lines":false,"relation":"part","note":"","annotation":"Expanding Equation (23) gives $\\alpha\\beta\\oplus\\alpha M_0\\oplus\\beta M_1\\oplus M_0M_1\\oplus M_{01}$. The controls give $\\alpha\\beta=0$, and one-hotness cancels the last two terms. The result is zero when the rotation control is off and gives the selected angle bit when it is on. The linked theorem proves the full signed two-body branch equality.","proof_lines":[1305,1337],"annotation_references":[{"start":10,"end":23,"key":"equation:23"}]}],"role":"explanation","lean":true,"name":"QuantumComputationSpecs.Algorithms.P450GroundEnergy.Solution.Pi145CompactRouter.r55Branch_twoBody","module":"QuantumComputationDiscoveries.Algorithms.P450GroundEnergy.Solution.Pi145CompactRouter","lines":[1299,1304],"plain":"Signed SELECT on admissible two-body branches","relation":"part","anchor":"block-A9.SS3-block-5","at":"b204176-204215","origin":"ai","explanation":{"text":"","citations":[{"ref":"p450/paired-one-hot/abfe76096cee","title":"Passage in the authors’ arXiv text","url":"https://arxiv.org/html/2611.09822v3#A9.SS3.p3.2"},{"ref":"https://dx.doi.org/10.1103/yngp-5fpm","title":"10.1103/yngp-5fpm","url":"https://dx.doi.org/10.1103/yngp-5fpm"},{"ref":"https://dx.doi.org/10.1103/PhysRevX.8.041015","title":"10.1103/PhysRevX.8.041015","url":"https://dx.doi.org/10.1103/PhysRevX.8.041015"}]}},{"record":"p450/paired-one-hot","phrase":"p450/paired-one-hot/e5812c433021","topic":"p450","part":0,"tone":5,"rows":[{"name":"QuantumComputationSpecs.Algorithms.P450GroundEnergy.Solution.Pi145CompactRouter.r55Branch_twoBody","line":1299,"end_line":1337,"module":"QuantumComputationDiscoveries.Algorithms.P450GroundEnergy.Solution.Pi145CompactRouter","plain":"Signed SELECT on admissible two-body branches","lines":[1299,1304],"exact_lines":false,"relation":"part","note":"","annotation":"The two-body branch proof checks a single active row. For each angle bit, the active pair determines whether neither vector, only the first, only the second, or both have that bit set. Both parities equal 1 exactly in the last case. Thus $M_0M_1=M_{01}$ on each one-hot basis word.","proof_lines":[1305,1337]}],"role":"explanation","lean":true,"name":"QuantumComputationSpecs.Algorithms.P450GroundEnergy.Solution.Pi145CompactRouter.r55Branch_twoBody","module":"QuantumComputationDiscoveries.Algorithms.P450GroundEnergy.Solution.Pi145CompactRouter","lines":[1299,1304],"plain":"Signed SELECT on admissible two-body branches","relation":"part","anchor":"block-A9.SS3-block-5","at":"b204285-204317","origin":"ai","explanation":{"text":"","citations":[{"ref":"p450/paired-one-hot/e5812c433021","title":"Passage in the authors’ arXiv text","url":"https://arxiv.org/html/2611.09822v3#A9.SS3.p3.2"},{"ref":"https://dx.doi.org/10.1103/yngp-5fpm","title":"10.1103/yngp-5fpm","url":"https://dx.doi.org/10.1103/yngp-5fpm"},{"ref":"https://dx.doi.org/10.1103/PhysRevX.8.041015","title":"10.1103/PhysRevX.8.041015","url":"https://dx.doi.org/10.1103/PhysRevX.8.041015"}]}},{"record":"p450/bell-spin-swaps","phrase":"p450/bell-spin-swaps/3d6f7ee405ed","topic":"p450","part":0,"tone":5,"rows":[{"name":"QuantumComputationSpecs.Algorithms.P450GroundEnergy.Solution.BellAsymCore.cleanRealizesSet_bellFiveStepNoNegCoreSliceDyn_asym","line":322,"end_line":411,"module":"QuantumComputationDiscoveries.Algorithms.P450GroundEnergy.Solution.BellAsymCore","plain":"Two clean SELECT calls with shared Bell parity","lines":[322,365],"exact_lines":false,"relation":"part","note":"","annotation":"The swap multiplies the antisymmetric Bell state by −1 and fixes the three symmetric Bell states. A CNOT and a Hadamard send the antisymmetric state to $|11\\rangle$. Computing the parity of such pairs and applying a controlled Z implements the block of controlled swaps. The Lean statement verifies the clean composition of two SELECT calls with an intervening reflection.","proof_lines":[366,411]}],"role":"derivation","lean":true,"name":"QuantumComputationSpecs.Algorithms.P450GroundEnergy.Solution.BellAsymCore.cleanRealizesSet_bellFiveStepNoNegCoreSliceDyn_asym","module":"QuantumComputationDiscoveries.Algorithms.P450GroundEnergy.Solution.BellAsymCore","lines":[322,365],"plain":"Two clean SELECT calls with shared Bell parity","relation":"part","anchor":"block-A9.SS3-block-7","at":"b205901-205971","origin":"ai","explanation":{"text":"","citations":[{"ref":"p450/bell-spin-swaps/3d6f7ee405ed","title":"Passage in the authors’ arXiv text","url":"https://arxiv.org/html/2611.09822v3#A9.SS3.p5.1"}]}},{"record":"p450/bell-spin-swaps","phrase":"p450/bell-spin-swaps/b377a275c326","topic":"p450","part":0,"tone":5,"rows":[{"name":"QuantumComputationSpecs.Algorithms.P450GroundEnergy.Solution.BellAsymCore.cleanRealizesSet_bellFiveStepNoNegCoreSliceDyn_asym","line":322,"end_line":411,"module":"QuantumComputationDiscoveries.Algorithms.P450GroundEnergy.Solution.BellAsymCore","plain":"Two clean SELECT calls with shared Bell parity","lines":[322,365],"exact_lines":false,"relation":"part","note":"","annotation":"`hTurnSupp` excludes the system wires and the wire holding the Bell parity. The intervening circuit can change the spin control, so the second controlled Z uses that control and the stored parity. An X-basis measurement erases the parity with a phase corrected by Clifford gates on the transformed pairs.","proof_lines":[366,411]},{"name":"QuantumComputationSpecs.Algorithms.P450GroundEnergy.Solution.SevenGearWalk333.fast7gSevenGearCert","line":391,"end_line":447,"module":"QuantumComputationDiscoveries.Algorithms.P450GroundEnergy.Solution.SevenGearWalk333","plain":"Walk blocks at the scheduled workspace widths","lines":[391,400],"exact_lines":false,"relation":"part","note":"","annotation":"The certificate checks the scheduled implementations. Within a block the circuit shares Bell parity between SELECT calls and across adjacent steps. The accounting charges $464K+232$ T gates for spin swaps in a $K$-step block, including the ordinary endpoint swaps. The $K-1$ intervening reflections add 84 T gates each.","proof_lines":[401,447]}],"role":"explanation","lean":true,"name":"QuantumComputationSpecs.Algorithms.P450GroundEnergy.Solution.BellAsymCore.cleanRealizesSet_bellFiveStepNoNegCoreSliceDyn_asym","module":"QuantumComputationDiscoveries.Algorithms.P450GroundEnergy.Solution.BellAsymCore","lines":[322,365],"plain":"Two clean SELECT calls with shared Bell parity","relation":"part","anchor":"block-A9.SS3-block-7","at":"b206311-206344","origin":"ai","explanation":{"text":"","citations":[{"ref":"p450/bell-spin-swaps/b377a275c326","title":"Passage in the authors’ arXiv text","url":"https://arxiv.org/html/2611.09822v3#A9.SS3.p5.1"}]}},{"record":"p450/verified-cost","phrase":"p450/verified-cost/939bccabd0c3","topic":"p450","part":0,"tone":5,"rows":[{"name":"QuantumComputationSpecs.Algorithms.P450GroundEnergy.Solution.SevenGearWalk333.fast7gProg_const_cost","line":216,"end_line":253,"module":"QuantumComputationDiscoveries.Algorithms.P450GroundEnergy.Solution.SevenGearWalk333","plain":"T-count bounds for the walk and phase estimation","lines":[223,227],"exact_lines":true,"relation":"states","note":"","annotation":"The cost lemma has separate bounds for blocks and single steps. For one 128-step block, `tM` is $128\\times31{,}010+127\\times84+232=3{,}980{,}180$ T gates with intervening reflections and the boundary swap. The sum counts this block seven times and adds preparation, inverse QFT and control costs.","proof_lines":[221,253]},{"name":"QuantumComputationSpecs.Algorithms.P450GroundEnergy.Solution.SevenGearWalk333.mainAncillas","line":195,"end_line":195,"module":"QuantumComputationDiscoveries.Algorithms.P450GroundEnergy.Solution.SevenGearWalk333","plain":"217 ancillas for the 333-qubit circuit","lines":[195,195],"exact_lines":true,"relation":"states","note":"","annotation":"The 217 ancillas comprise 16 phase-estimation qubits, 11 phase-gradient qubits, 17 and 24 for state preparation, and 149 workspace qubits. The first eight blocks borrow 11 unprepared phase bits, giving 160 workspace qubits within the same width of 333."}],"role":"statement","lean":true,"name":"QuantumComputationSpecs.Algorithms.P450GroundEnergy.Solution.SevenGearWalk333.fast7gProg_const_cost","module":"QuantumComputationDiscoveries.Algorithms.P450GroundEnergy.Solution.SevenGearWalk333","lines":[223,227],"plain":"T-count bounds for the walk and phase estimation","relation":"states","anchor":"block-A9.SS4-block-1","at":"b206459-206554","origin":"ai","explanation":{"text":"","citations":[{"ref":"p450/verified-cost/939bccabd0c3","title":"Passage in the authors’ arXiv text","url":"https://arxiv.org/html/2611.09822v3#A9.SS4.p1.1"}]}},{"record":"p450/approximation-budget","phrase":"p450/approximation-budget/ca5d68a45ec6","topic":"p450","part":0,"tone":5,"rows":[{"name":"QuantumComputationSpecs.Algorithms.P450GroundEnergy.Solution.SevenGearWalk333.fast7gUnitProg","line":198,"end_line":209,"module":"QuantumComputationDiscoveries.Algorithms.P450GroundEnergy.Solution.SevenGearWalk333","plain":"The 47,487-step phase-estimation circuit","lines":[198,209],"exact_lines":true,"relation":"states","note":"","annotation":"The schedule runs 45,440 steps with 160 workspace qubits, 1,024 with 159, seven blocks of 128 with 156, and 127 single steps with 149. Removing one borrowed qubit adds $2\\times448=896$ T across two SELECT calls. The final single steps use a different implementation to fit the smaller workspace.","proof_lines":[200,209]},{"name":"QuantumComputation.Specs.P450GroundEnergy.TopBridge.solution_fg_correctness","line":644,"end_line":688,"module":"QuantumComputationDiscoveries.Algorithms.P450GroundEnergy","plain":"Correctness of the 47,487-step circuit","lines":[656,663],"exact_lines":true,"relation":"states","note":"","annotation":"The ideal sine window has support on indices 0 through $M=47{,}487$ of the 16-bit phase register. The forward and backward schedule applies $U^{2m-M}$ at supported index $m$. On an eigenstate of walk phase $\\varphi$, this gives phase $2m\\varphi$ up to a factor common to the supported indices. The inverse QFT estimates the doubled phase. The energy decoder in Equation (19) uses half that phase.","proof_lines":[648,688],"annotation_references":[{"start":361,"end":374,"key":"equation:19"}]}],"role":"statement","lean":true,"name":"QuantumComputationSpecs.Algorithms.P450GroundEnergy.Solution.SevenGearWalk333.fast7gUnitProg","module":"QuantumComputationDiscoveries.Algorithms.P450GroundEnergy.Solution.SevenGearWalk333","lines":[198,209],"plain":"The 47,487-step phase-estimation circuit","relation":"states","anchor":"block-A9.SS4-block-2","at":"b207295-207336","origin":"ai","explanation":{"text":"","citations":[{"ref":"p450/approximation-budget/ca5d68a45ec6","title":"Passage in the authors’ arXiv text","url":"https://arxiv.org/html/2611.09822v3#A9.SS4.p2.1"}]}},{"record":"p450/approximation-budget","phrase":"p450/approximation-budget/428df077100b","topic":"p450","part":0,"tone":5,"rows":[{"name":"QuantumComputationSpecs.Algorithms.P450GroundEnergy.Solution.TightGapDeep63.p450RefVarBound_tightGapDeep63","line":189,"end_line":196,"module":"QuantumComputationDiscoveries.Algorithms.P450GroundEnergy.Solution.TightGapDeep63Cert","plain":"Variational upper bound on the cutoff","lines":[190,196],"exact_lines":true,"relation":"part","note":"","annotation":"The reference certificate gives $E_0\\le-130.1526$ Ha, so the top of the window is at most −130.0526 Ha. Subtracting the sum-of-squares lower bound gives an energy-window gap at most 4.834842 Ha. In Equation (21) that gap bounds the energy slope and determines the walk length.","proof_lines":[196,196],"fidelity":"same","fidelity_source":"ai","annotation_references":[{"start":198,"end":211,"key":"equation:21"}]}],"role":"derivation","lean":true,"name":"QuantumComputationSpecs.Algorithms.P450GroundEnergy.Solution.TightGapDeep63.p450RefVarBound_tightGapDeep63","module":"QuantumComputationDiscoveries.Algorithms.P450GroundEnergy.Solution.TightGapDeep63Cert","lines":[190,196],"plain":"Variational upper bound on the cutoff","relation":"part","anchor":"block-A9.SS4-block-2","at":"b207346-207386","origin":"ai","explanation":{"text":"","citations":[{"ref":"p450/approximation-budget/428df077100b","title":"Passage in the authors’ arXiv text","url":"https://arxiv.org/html/2611.09822v3#A9.SS4.p2.1"}]}},{"record":"p450/approximation-budget","phrase":"p450/approximation-budget/9649b8efdaaf","topic":"p450","part":0,"tone":5,"rows":[{"name":"QuantumComputation.Specs.P450GroundEnergy.TopBridge.mainHeff_agree","line":210,"end_line":233,"module":"QuantumComputationDiscoveries.Algorithms.P450GroundEnergy","plain":"Operator error on the 63-electron sector","lines":[210,233],"exact_lines":true,"relation":"part","note":"","annotation":"In `mainHeff_agree`, the outer preparation changes its probability distribution by a sum of absolute differences at most $24\\times10^{-11}$. Combining this with the inner bound gives $\\|P_{63}(H_{\\rm eff}-H_{\\rm blocked})P_{63}\\|\\le4\\times10^{-7}$ Ha. The effective Hamiltonian also commutes with $P_{63}$.","proof_lines":[212,233]},{"name":"QuantumComputationSpecs.Algorithms.P450GroundEnergy.Solution.TailShiftBox.dh4000","line":40,"end_line":40,"module":"QuantumComputationDiscoveries.Algorithms.P450GroundEnergy.Solution.TailShiftBox47487","plain":"Hamiltonian error allowance of 4 × 10⁻⁷ Ha","lines":[40,40],"exact_lines":true,"relation":"part","note":"","annotation":"`dh4000` is $4000/10^{10}$ Ha. It bounds the change in the Hamiltonian whose energies are estimated and appears once in the RMS budget. The proof checks that the effective spectral upper bound $48+\\delta_H$ Ha stays below the threshold at which the absolute cosine would reflect an energy into the low-energy window."},{"name":"QuantumComputationSpecs.Algorithms.P450GroundEnergy.Solution.TightGapDeep63.p450RefVarBound_tightGapDeep63","line":189,"end_line":196,"module":"QuantumComputationDiscoveries.Algorithms.P450GroundEnergy.Solution.TightGapDeep63Cert","plain":"Variational upper bound on the cutoff","lines":[190,196],"exact_lines":true,"relation":"part","note":"","annotation":"The proof bounds the energy expectation of the reference state and obtains a sector eigenvalue no larger than it. Substituting this eigenvalue into $T\\le E'+0.1$ gives $T\\le-130.0526$ Ha. The circuit has no cutoff input.","proof_lines":[196,196]},{"name":"QuantumComputationSpecs.Algorithms.P450GroundEnergy.Solution.TailShiftBox.g_deep63","line":44,"end_line":44,"module":"QuantumComputationDiscoveries.Algorithms.P450GroundEnergy.Solution.TailShiftBox47487","plain":"Upper bound on the range of capped energies","lines":[44,44],"exact_lines":true,"relation":"part","note":"","annotation":"Both the true and decoded energies are at least the sum-of-squares lower bound. A higher cutoff puts their capped values in the interval from that lower bound to $T$, of width at most 4.834842 Ha. At a cutoff below the lower bound both capped values equal $T$."},{"name":"QuantumComputationSpecs.Algorithms.P450GroundEnergy.Solution.mse_impl_le_of_ideal_and_perturbation","line":517,"end_line":570,"module":"QuantumComputationDiscoveries.Algorithms.P450GroundEnergy.Solution.MeasuresLowEnergiesAux","plain":"RMS energy bound for the implemented output state","lines":[527,568],"exact_lines":true,"relation":"part","note":"","annotation":"`scaleVec` multiplies each output amplitude by the capped energy difference for its ancilla outcome. Its squared norm is the mean squared error. Every multiplier has magnitude at most $E_{\\rm gap}$, so the triangle inequality adds at most $E_{\\rm gap}\\delta_W$ to the ideal RMS bound for an output-state error of norm at most $\\delta_W$.","proof_lines":[527,570]},{"name":"QuantumComputationSpecs.Algorithms.P450GroundEnergy.Solution.TwoGearQPEPhase5.capped_perturbed_measuresLowEnergiesAt_box_tg","line":7185,"end_line":7369,"module":"QuantumComputationDiscoveries.Algorithms.P450GroundEnergy.Solution.TwoGearQPE","plain":"Phase estimation, Hamiltonian and circuit errors","lines":[7191,7206],"exact_lines":true,"relation":"part","note":"","annotation":"Expand the input eigenstate in an orthonormal basis of effective eigenvectors with coefficients $c_j$. The spread $\\sum_j|c_j|^2(\\tilde E_j-E)^2$ equals $\\|(H_{\\rm eff}-E)\\psi\\|_2^2\\le\\delta_H^2$. At each ideal outcome the branches remain orthogonal, so their probabilities add with weights $|c_j|^2$. Capping can only decrease each difference. The RMS triangle inequality adds $\\delta_H$ to the ideal bound.","proof_lines":[7207,7369]},{"name":"QuantumComputation.Specs.P450GroundEnergy.TopBridge.fast7g_estTransferHyp","line":573,"end_line":594,"module":"QuantumComputationDiscoveries.Algorithms.P450GroundEnergy","plain":"From spin-blocked orbitals to the fixed Hamiltonian","lines":[581,592],"exact_lines":true,"relation":"part","note":"","annotation":"The proof undoes the spin-blocked order by a fermionic permutation. Each fermionic swap has the extra sign on $|11\\rangle$ and preserves electron number. The permutation acts on the system alone, leaving the phase probabilities unchanged. Embedding the active ancillas and extracting the same bits preserves the estimate.","proof_lines":[578,594]},{"name":"QuantumComputation.Specs.P450GroundEnergy.TopBridge.solution_fg_correctness","line":644,"end_line":688,"module":"QuantumComputationDiscoveries.Algorithms.P450GroundEnergy","plain":"Correctness of the 47,487-step circuit","lines":[671,682],"exact_lines":true,"relation":"part","note":"","annotation":"The rational certificate bounds the ideal sine-window term by 0.997240 mHa. The Hamiltonian perturbation contributes 0.000400 mHa. The state error from phase-gradient preparation, window preparation and inverse QFT is at most $4.958\\times10^{-8}$. Multiplication by the gap bound gives less than 0.000240 mHa. The scheduled walk blocks add zero relative to their effective walk. The total is below 0.998 mHa.","proof_lines":[648,688]}],"role":"explanation","lean":true,"name":"QuantumComputation.Specs.P450GroundEnergy.TopBridge.mainHeff_agree","module":"QuantumComputationDiscoveries.Algorithms.P450GroundEnergy","lines":[210,233],"plain":"Operator error on the 63-electron sector","relation":"part","anchor":"block-A9.SS4-block-2","at":"b208032-208091","origin":"ai","explanation":{"text":"","citations":[{"ref":"p450/approximation-budget/9649b8efdaaf","title":"Passage in the authors’ arXiv text","url":"https://arxiv.org/html/2611.09822v3#A9.SS4.p2.1"}]}}],"segments":[[11015,11068,[0]],[11153,11199,[1]],[11580,11631,[2]],[19211,19266,[3]],[19435,19482,[4]],[19507,19543,[5]],[19545,19587,[6]],[20345,20396,[7]],[20486,20533,[8]],[20729,20768,[9]],[21056,21125,[10]],[21276,21311,[11]],[21497,21533,[12]],[21772,21868,[13]],[23055,23101,[14]],[23164,23194,[15]],[26341,26427,[16]],[26506,26606,[17]],[26607,26678,[18]],[27484,27517,[19]],[28073,28140,[20]],[28769,28813,[21]],[30791,30869,[22]],[30963,31039,[23]],[31480,31507,[24]],[34250,34326,[25]],[34389,34452,[26]],[35359,35408,[27]],[87786,87885,[28]],[88037,88102,[29]],[88782,88820,[30]],[92173,92221,[31]],[92659,92677,[32]],[97780,97826,[33]],[100260,100293,[34]],[101770,101832,[35]],[103852,103877,[36]],[104660,104752,[37]],[107629,107691,[38]],[107876,107934,[39]],[111184,111239,[40]],[112000,112100,[41,42]],[112257,112324,[43]],[117539,117573,[44]],[127033,127054,[45]],[127964,127980,[46]],[128034,128062,[47]],[128120,128154,[48]],[128156,128218,[49]],[128664,128733,[50]],[129110,129186,[51]],[129234,129277,[52]],[130713,130754,[53]],[130799,130839,[54]],[131178,131218,[55]],[131373,131402,[56]],[131842,131872,[57]],[131904,131958,[58]],[141853,141883,[59]],[142070,142126,[60]],[142127,142156,[61]],[142447,142495,[62]],[142562,142591,[63]],[142714,142783,[64]],[143034,143060,[65]],[143192,143239,[66]],[143297,143347,[67]],[143438,143482,[68]],[143542,143558,[69]],[143590,143627,[70]],[144132,144183,[71]],[145164,145185,[72]],[146326,146431,[73]],[147002,147048,[74]],[147085,147182,[75]],[147303,147359,[76]],[147458,147527,[77]],[147532,147578,[78]],[153198,153245,[79]],[154506,154584,[80]],[154600,154682,[81]],[154848,154884,[82]],[157250,157300,[83]],[157765,157819,[84]],[157944,157998,[85]],[158061,158117,[86]],[158581,158621,[87]],[158994,159045,[88]],[159294,159406,[89]],[159493,159548,[90]],[160360,160434,[91]],[160436,160534,[92]],[160540,160600,[93]],[160611,160692,[94]],[160694,160777,[95]],[161049,161116,[96]],[162339,162406,[97]],[163853,163902,[98]],[164362,164438,[99]],[164506,164564,[100]],[164982,165039,[101]],[165356,165416,[102]],[165528,165618,[103]],[169379,169442,[104]],[170177,170252,[105]],[171866,171929,[106]],[172179,172227,[107]],[172560,172626,[108]],[172627,172688,[109]],[172690,172868,[110]],[173209,173264,[111]],[174112,174159,[112]],[174697,174725,[113]],[174776,174837,[114]],[175598,175687,[115]],[175791,175834,[116]],[176408,176492,[117]],[176663,176714,[118]],[183174,183284,[119]],[183349,183427,[120]],[185069,185153,[121]],[185277,185317,[122]],[185737,185862,[123]],[186044,186111,[124]],[186297,186387,[125]],[186465,186516,[126]],[186521,186561,[127]],[186599,186705,[128]],[186849,186897,[129]],[186986,187028,[130]],[187124,187192,[131]],[187212,187268,[132]],[187658,187720,[133]],[188361,188434,[134]],[188883,188929,[135]],[191656,191718,[136]],[191720,191772,[137]],[194151,194190,[138]],[194524,194581,[139]],[195237,195306,[140]],[196135,196180,[141]],[196268,196317,[142]],[202202,202298,[143]],[203463,203521,[144]],[204176,204215,[145]],[204285,204317,[146]],[205901,205971,[147]],[206311,206344,[148]],[206459,206554,[149]],[207295,207336,[150]],[207346,207386,[151]],[208032,208091,[152]]],"canonical":{"verification/unbounded-loop":[0,11015,11068],"verification/hybrid-language":[1,11153,11199],"grover/parallel-model":[3,19211,19266],"grover/find-any":[4,19435,19482],"grover/eventual-cost":[5,19507,19543],"grover/grid":[6,19545,19587],"grover/any-speedup":[7,20345,20396],"grover/all-speedup":[8,20486,20533],"grover/find-any-mechanism":[9,20729,20768],"grover/johnson-phase":[10,21056,21125],"grover/johnson-readout":[11,21276,21311],"arcsin/reversible-action":[12,21497,21533],"arcsin/precision":[13,21772,21868],"arcsin/comparison":[14,23055,23101],"fusion/model":[16,26341,26427],"fusion/time-evolution":[17,26506,26606],"fusion/repeats":[18,26607,26678],"fusion/baseline":[null,26715,26752],"fusion/comparison":[19,27484,27517],"fusion/pauli":[20,28073,28140],"fusion/momentum":[21,28769,28813],"photochemistry/model":[22,30791,30869],"photochemistry/time-evolution":[23,30963,31039],"p450/fixed-model":[25,34250,34326],"p450/energy-window":[26,34389,34452],"p450/adjusted-baseline":[null,35146,35222],"p450/verified-cost":[27,35359,35408],"verification/collaboration-gains":[null,38752,38816],"verification/termination":[29,88037,88102],"verification/state-and-assertions":[31,92173,92221],"verification/backwards-reasoning":[36,103852,103877],"verification/expected-resources":[39,107876,107934],"grover/variant-specific-check":[41,112000,112100],"verification/frozen-specification":[null,112107,112169],"verification/wiki-and-conference":[null,114335,114394],"verification/logical-spacetime":[44,117539,117573],"verification/hardware-horizon":[null,124872,124902],"grover/find-all":[48,128120,128154],"grover/baseline":[null,133912,133952],"grover/gate-cost":[68,143438,143482],"arcsin/baseline":[null,148699,148787],"arcsin/restricted-search":[null,151303,151362],"arcsin/benchmark-cost":[79,153198,153245],"arcsin/breakdown":[80,154506,154584],"arcsin/endpoint":[84,157765,157819],"arcsin/interval-approximation":[85,157944,157998],"arcsin/lookup":[91,160360,160434],"fusion/basis":[104,169379,169442],"fusion/resource":[107,172179,172227],"fusion/segments":[109,172627,172688],"photochemistry/baseline":[null,176752,176809],"photochemistry/copy-uncompute":[119,183174,183284],"photochemistry/bernstein":[121,185069,185153],"photochemistry/multiplicities":[123,185737,185862],"photochemistry/spacetime":[125,186297,186387],"photochemistry/qsp":[126,186465,186516],"photochemistry/per-walk":[128,186599,186705],"p450/input-and-initialization":[136,191656,191718],"p450/paired-one-hot":[143,202202,202298],"p450/inner-loading-share":[null,204907,204996],"p450/bell-spin-swaps":[147,205901,205971],"p450/approximation-budget":[150,207295,207336]},"passages":[[10102,11286,["verification/hybrid-language","verification/unbounded-loop"],"block-S1.SS1-block-1"],[11323,12267,["verification/backwards-reasoning"],"block-S1.SS1-block-2"],[13610,15075,["verification/wiki-and-conference"],"block-S1.SS2-block-1"],[18764,20194,["grover/parallel-model","grover/grid","grover/find-any","grover/eventual-cost"],"block-S2.SS1-block-1"],[20231,21375,["grover/any-speedup","grover/all-speedup","grover/find-any-mechanism","grover/johnson-phase","grover/johnson-readout"],"block-S2.SS1-block-2"],[21461,22131,["arcsin/precision","arcsin/reversible-action"],"block-S2.SS2-block-1"],[22168,23256,["arcsin/comparison"],"block-S2.SS2-block-2"],[26341,26678,["fusion/model","fusion/time-evolution","fusion/repeats"],"block-S2.SS3-block-3"],[26715,27362,["fusion/baseline"],"block-S2.SS3-block-4"],[27399,28603,["fusion/comparison","fusion/pauli"],"block-S2.SS3-block-5"],[28640,29034,["fusion/momentum"],"block-S2.SS3-block-6"],[30349,31040,["photochemistry/model","photochemistry/time-evolution"],"block-S2.SS4-block-2"],[31077,31565,["photochemistry/baseline"],"block-S2.SS4-block-3"],[34103,34583,["p450/fixed-model","p450/energy-window"],"block-S2.SS5-block-2"],[34620,35280,["p450/adjusted-baseline"],"block-S2.SS5-block-3"],[35317,36636,["p450/verified-cost"],"block-S2.SS5-block-4"],[38607,39288,["verification/collaboration-gains"],"block-S2.SS6-block-3"],[41963,42910,["verification/hardware-horizon"],"block-S3-block-3"],[87447,88004,["verification/hybrid-language"],"block-A1-block-3"],[88037,88910,["verification/termination"],"block-A1-block-4"],[92016,92439,["verification/state-and-assertions"],"block-A1.SS0.SSS0.Px2-block-3"],[92550,93207,["verification/state-and-assertions"],"block-A1.SS0.SSS0.Px3-block-1"],[97697,98006,["verification/state-and-assertions"],"block-A1.SS0.SSS0.Px4-block-3"],[99852,100294,["verification/hybrid-language"],"block-A1.SS0.SSS0.Px5-block-3"],[101565,101833,["verification/backwards-reasoning"],"block-A1.SS0.SSS0.Px6-block-1"],[103572,103960,["verification/backwards-reasoning"],"block-A1.SS0.SSS0.Px6-block-8"],[104506,105911,["verification/expected-resources"],"block-A1.SS0.SSS0.Px7-block-1"],[107487,108106,["verification/expected-resources"],"block-A1.SS0.SSS0.Px7-block-5"],[111025,111741,["verification/frozen-specification"],"block-A2-block-1"],[111774,112709,["verification/frozen-specification","grover/variant-specific-check"],"block-A2-block-2"],[113719,115183,["verification/wiki-and-conference"],"block-A3.SS0.SSS0.Px2-block-1"],[115683,116516,["verification/wiki-and-conference"],"block-A3.SS0.SSS0.Px3-block-1"],[117284,120502,["verification/logical-spacetime"],"block-A4.SS1-block-1"],[124644,125060,["verification/hardware-horizon"],"block-A4.SS2-block-3"],[126708,127682,["grover/parallel-model"],"block-A5.SS1-block-1"],[127719,128514,["grover/grid","grover/find-any","grover/find-all"],"block-A5.SS1-block-2"],[128664,128964,["grover/parallel-model"],"block-A5.SS1-block-4"],[129065,129408,["grover/parallel-model"],"block-A5.SS1-block-6"],[130671,130908,["grover/find-any-mechanism"],"block-A5.SS1-block-9"],[130946,131402,["grover/eventual-cost"],"block-A5.SS1-block-10"],[131719,132078,["grover/eventual-cost"],"block-A5.SS1-block-12"],[132171,134441,["grover/baseline"],"block-A5.SS2-block-1"],[136936,137833,["grover/baseline"],"block-A5.SS2.SSS0.Px1-block-4"],[138365,139139,["grover/baseline"],"block-A5.SS2.SSS0.Px2-block-1"],[139753,141117,["grover/baseline"],"block-A5.SS2.SSS0.Px3-block-1"],[141228,141892,["grover/baseline","grover/all-speedup"],"block-A5.SS3-block-1"],[141929,143629,["grover/any-speedup","grover/find-any-mechanism","grover/johnson-phase","grover/johnson-readout","grover/gate-cost"],"block-A5.SS3-block-2"],[143699,144242,["grover/all-speedup"],"block-A5.SS3-block-4"],[144312,145279,["grover/johnson-readout"],"block-A5.SS3-block-5"],[146292,147579,["arcsin/precision","arcsin/reversible-action"],"block-A6.SS1-block-2"],[148167,150384,["arcsin/baseline"],"block-A6.SS2-block-1"],[150421,150786,["arcsin/baseline"],"block-A6.SS2-block-2"],[150871,152059,["arcsin/restricted-search"],"block-A6.SS3-block-1"],[152096,153398,["arcsin/benchmark-cost","arcsin/restricted-search"],"block-A6.SS3-block-2"],[153913,154682,["arcsin/breakdown"],"block-A6.SS3-block-4"],[154719,155612,["arcsin/benchmark-cost"],"block-A6.SS3-block-5"],[155685,157480,["arcsin/benchmark-cost"],"block-A6.SS3-block-16"],[157765,159549,["arcsin/reversible-action","arcsin/endpoint","arcsin/interval-approximation","arcsin/lookup"],"block-A6.SS4-block-2"],[160196,161228,["arcsin/lookup","arcsin/breakdown"],"block-A6.SS4-block-4"],[161403,163091,["fusion/model"],"block-A7.SS1-block-1"],[163853,164183,["fusion/model"],"block-A7.SS1-block-4"],[164220,164631,["fusion/time-evolution"],"block-A7.SS1-block-5"],[164857,165416,["fusion/time-evolution","fusion/resource"],"block-A7.SS1-block-7"],[165453,166456,["fusion/repeats"],"block-A7.SS1-block-8"],[166532,167193,["fusion/baseline"],"block-A7.SS2-block-1"],[167230,167668,["fusion/segments"],"block-A7.SS2-block-2"],[169150,171101,["fusion/pauli","fusion/basis"],"block-A7.SS3-block-2"],[171138,172050,["fusion/momentum"],"block-A7.SS3-block-3"],[172133,172930,["fusion/resource","fusion/segments"],"block-A7.SS4-block-1"],[172967,173486,["fusion/resource"],"block-A7.SS4-block-2"],[173670,174739,["photochemistry/model"],"block-A8.SS1-block-1"],[174776,174843,["photochemistry/model"],"block-A8.SS1-block-2"],[175229,175688,["photochemistry/model"],"block-A8.SS1-block-4"],[175725,176715,["photochemistry/time-evolution","photochemistry/spacetime"],"block-A8.SS1-block-5"],[176752,177383,["photochemistry/baseline"],"block-A8.SS1-block-6"],[180954,181652,["photochemistry/baseline"],"block-A8.SS2-block-5"],[182875,183728,["photochemistry/copy-uncompute"],"block-A8.SS3-block-2"],[183765,185375,["photochemistry/bernstein"],"block-A8.SS3-block-3"],[185412,186169,["photochemistry/multiplicities"],"block-A8.SS3-block-4"],[186252,186562,["photochemistry/spacetime","photochemistry/qsp"],"block-A8.SS4-block-1"],[186599,188465,["photochemistry/spacetime","photochemistry/copy-uncompute","photochemistry/bernstein","photochemistry/per-walk","photochemistry/qsp"],"block-A8.SS4-block-2"],[188621,188930,["p450/fixed-model"],"block-A9.SS1-block-1"],[188967,189997,["p450/fixed-model"],"block-A9.SS1-block-2"],[191656,193064,["p450/input-and-initialization"],"block-A9.SS1-block-6"],[193178,194266,["p450/energy-window"],"block-A9.SS1-block-8"],[194303,194790,["p450/energy-window"],"block-A9.SS1-block-9"],[194964,196097,["p450/energy-window"],"block-A9.SS1-block-11"],[196135,196489,["p450/input-and-initialization","p450/verified-cost"],"block-A9.SS1-block-12"],[196565,197201,["p450/adjusted-baseline"],"block-A9.SS2-block-1"],[202092,202600,["p450/paired-one-hot"],"block-A9.SS3-block-1"],[203169,203937,["p450/paired-one-hot"],"block-A9.SS3-block-3"],[204091,204834,["p450/paired-one-hot"],"block-A9.SS3-block-5"],[204871,205313,["p450/inner-loading-share"],"block-A9.SS3-block-6"],[205350,206345,["p450/bell-spin-swaps"],"block-A9.SS3-block-7"],[206428,207258,["p450/verified-cost"],"block-A9.SS4-block-1"],[207295,208142,["p450/approximation-budget"],"block-A9.SS4-block-2"]],"topics":[{"id":"verification","name":"Quantum Hoare logic and formal verification","description":"The authors specify quantum programs with classical control in Lean. They use Hoare triples to state correctness and give separate rules for resource costs. Lean Comparator checks candidate proofs against the frozen specifications.","family":null,"part":0,"tone":0,"light":"#475569","dark":"color-mix(in srgb,#475569 70%,white)"},{"id":"grover","name":"Parallel Grover search","description":"In a domain of size $N=2^n$, Find-Any returns one marked index and Find-All returns the whole marked set. Lean proves both guarantees with probability one. For all 121 combinations of query limit $m$ and marked count $k$, Lean also bounds the expected rounds averaged over marked sets, for sufficiently large $N$. For large domains, Find-Any uses weak measurements. Some Find-All settings use a quantum walk over subsets of the domain.","family":null,"part":0,"tone":1,"light":"#185A9D","dark":"color-mix(in srgb,#185A9D 70%,white)"},{"id":"arcsin","name":"Reversible fixed-point arcsin","description":"The circuit approximates $\\arcsin(y)$ on a signed 25-bit grid and adds its code to the output register modulo $2^{25}$. It preserves the input and returns the ancillas to zero. The Lean theorems give a uniform absolute error of at most $1.25\\times10^{-7}$ on the grid in $[-1,1]$ and a spacetime cost of at most $369{,}800$.","family":null,"part":0,"tone":2,"light":"#6D3AC7","dark":"color-mix(in srgb,#6D3AC7 70%,white)"},{"id":"fusion","name":"Stopping power in inertial-confinement fusion","description":"Stopping power is the mean kinetic energy a projectile loses per unit distance traveled. The benchmark simulates an $\\alpha$ particle and 218 electrons moving among 216 fixed protons. For each of ten evolution times the compiled circuit approximates $e^{-iHt}$ to error $10^{-2}$ on grid states antisymmetric under exchange of same-spin electrons. Lean bounds the logical qubit count times the sum of the $T$-gate bounds for the 500 evolutions.","family":null,"part":0,"tone":3,"light":"#AD3C12","dark":"color-mix(in srgb,#AD3C12 70%,white)"},{"id":"photochemistry","name":"Non-Born–Oppenheimer dynamics of C₂₃H₂₀N₃O","description":"The circuit approximates one femtosecond of time evolution for C₂₃H₂₀N₃O on a grid with quantum nuclei and electrons. Lean bounds the error on every system input with zero ancillas and the product of the logical qubit count and T count.","family":null,"part":0,"tone":4,"light":"#047354","dark":"color-mix(in srgb,#047354 70%,white)"},{"id":"p450","name":"Cytochrome P450 Compound I","description":"The authors compile a phase-estimation circuit for the fixed Hamiltonian of Compound I in active space X. Lean bounds the capped root-mean-square energy error by 1 mHa on the 63-electron sector and the cost by 436,509,499,221 qubit–T. The adjusted baseline in Appendix I.2 is about 2.49 times that cost bound.","family":null,"part":0,"tone":5,"light":"#A02569","dark":"color-mix(in srgb,#A02569 70%,white)"}],"families":[],"parts":[{"name":"","start_byte":0,"end_byte":250593}],"meaning":"The authors’ reported verification and the reader’s editorial comparisons are separate evidence."}