{"records":{"verification/unbounded-loop":{"short":"While loops as suprema of finite unrollings","lean":[{"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.","proof_lines":[130,139],"fidelity":"same","fidelity_source":"ai"},{"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]}],"statements":[{"paper":"short","anchor":"block-S1.SS1-block-1","at":"b11015-11068","role":"statement","origin":"ai","start_byte":11015,"end_byte":11068,"section":"1.1 Formal Verification of Quantum Algorithms","lean":[{"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.","proof_lines":[130,139],"fidelity":"same","fidelity_source":"ai"},{"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]}],"markdown":"assignment, conditional branching and unbounded loops"}]},"verification/hybrid-language":{"short":"Classical control of quantum programs","lean":[{"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."},{"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]},{"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]}],"statements":[{"paper":"short","anchor":"block-S1.SS1-block-1","at":"b11153-11199","role":"statement","origin":"ai","start_byte":11153,"end_byte":11199,"section":"1.1 Formal Verification of Quantum Algorithms","lean":[{"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]}],"markdown":"mid-program qubit measurement, and state reset"},{"paper":"short","anchor":"block-A1-block-3","at":"b87817-87916","role":"explanation","origin":"ai","start_byte":87817,"end_byte":87916,"section":"Appendix A Formal Quantum Computation Library","lean":[{"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]}],"markdown":"interleave quantum operations with classical arithmetic, loops, and measurement-dependent branching"},{"paper":"short","anchor":"block-A1.SS0.SSS0.Px5-block-3","at":"b100291-100324","role":"definition","origin":"ai","start_byte":100291,"end_byte":100324,"section":"Syntax.","lean":[{"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."}],"markdown":"with the commands as constructors"}]},"verification/backwards-reasoning":{"short":"Weakest preconditions and expectation duality","lean":[{"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]},{"name":"Triple.infer","line":519,"end_line":523,"module":"QuantumComputation.QuantumHoareLogic.WP","plain":"A Hoare triple from an expectation bound","lines":[519,523],"exact_lines":true,"relation":"part","note":"","annotation":"`Triple.infer` starts with the bound on precondition expectation in every input state. Its last line composes that bound with `wp_soundness` to reach the postcondition expectation after execution.","proof_lines":[523,523]},{"name":"wp_soundness","line":470,"end_line":472,"module":"QuantumComputation.QuantumHoareLogic.WP","plain":"Soundness of the weakest precondition","lines":[470,472],"exact_lines":true,"relation":"part","note":"","annotation":"The inequality needed by `Triple.infer` is the forward direction of the expectation equality in `expect_wp`. The one-line proof takes that direction with `.le`.","proof_lines":[472,472]},{"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 Fig. S3 sums these observables over $o$.","proof_lines":[459,468],"fidelity":"same","fidelity_source":"ai"}],"statements":[{"paper":"short","anchor":"block-S1.SS1-block-2","at":"b11580-11631","role":"explanation","origin":"ai","start_byte":11580,"end_byte":11631,"section":"1.1 Formal Verification of Quantum Algorithms","lean":[{"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]},{"name":"Triple.infer","line":519,"end_line":523,"module":"QuantumComputation.QuantumHoareLogic.WP","plain":"A Hoare triple from an expectation bound","lines":[519,523],"exact_lines":true,"relation":"part","note":"","annotation":"`Triple.infer` starts with the bound on precondition expectation in every input state. Its last line composes that bound with `wp_soundness` to reach the postcondition expectation after execution.","proof_lines":[523,523]},{"name":"wp_soundness","line":470,"end_line":472,"module":"QuantumComputation.QuantumHoareLogic.WP","plain":"Soundness of the weakest precondition","lines":[470,472],"exact_lines":true,"relation":"part","note":"","annotation":"The inequality needed by `Triple.infer` is the forward direction of the expectation equality in `expect_wp`. The one-line proof takes that direction with `.le`.","proof_lines":[472,472]}],"markdown":"Triples are proved backwards from the postcondition"},{"paper":"short","anchor":"block-A1.SS0.SSS0.Px6-block-1","at":"b101801-101863","role":"definition","origin":"ai","start_byte":101801,"end_byte":101863,"section":"Weakest Preconditions.","lean":[{"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]}],"markdown":"computes the weakest assertion that must hold before execution"},{"paper":"short","anchor":"block-A1.SS0.SSS0.Px6-block-8","at":"b103883-103908","role":"statement","origin":"ai","start_byte":103883,"end_byte":103908,"section":"Weakest Preconditions.","lean":[{"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 Fig. S3 sums these observables over $o$.","proof_lines":[459,468],"fidelity":"same","fidelity_source":"ai"}],"markdown":"exact expectation duality"}]},"verification/wiki-and-conference":{"short":"How teams exchanged and verified candidate circuits","lean":[],"statements":[{"paper":"short","anchor":"block-S1.SS2-block-1","at":"b14973-15030","role":"mention","origin":"ai","start_byte":14973,"end_byte":15030,"section":"1.2 Multi-Agent Discovery Architecture","lean":[],"markdown":"All large-scale experimental runs of autonomous discovery","note":"The authors used Gemini 4 Carbon for the large-scale autonomous discovery runs. The reporting here concerns which model generated candidates. Acceptance of those candidates used the Lean checks described in Appendix B."},{"paper":"short","anchor":"block-A3.SS0.SSS0.Px2-block-1","at":"b114366-114425","role":"mention","origin":"ai","start_byte":114366,"end_byte":114425,"section":"Shared wiki.","lean":[],"markdown":"idea notes are reviewed summaries rather than formal proofs","note":"The wiki stored verified solutions, helper Lean files that could be reused, and reviewed notes on ideas. Section 2.6 gives an example of a helper first imported by one team and then reused by another team’s stopping-power run. The authors also report that one dead-end note stopped two later proposals."},{"paper":"short","anchor":"block-A3.SS0.SSS0.Px3-block-1","at":"b115776-115819","role":"mention","origin":"ai","start_byte":115776,"end_byte":115819,"section":"Conferences.","lean":[],"markdown":"teams convene periodically every four hours","note":"Teams exchanged proposals and questions in a shared forum every four hours. In Fig. S5, Team 3 proposed a $109$-Toffoli subroutine with blocks of $47$, $15$, and $47$ Toffolis. Team 1 suggested proving the conjugation identity before substituting the clean ancillas, which would avoid repeating the proof for all $47$ inverse operations."},{"paper":"short","anchor":"block-A3.SS0.SSS0.Px3-block-1","at":"b116436-116520","role":"mention","origin":"ai","start_byte":116436,"end_byte":116520,"section":"Conferences.","lean":[],"markdown":"cost projections posted in a conference carry no weight until independently verified","note":"Appendix C gives the rule for admitting a verified candidate to the shared wiki. The default requires a cost reduction of at least $5\\%$. For an established solution, the authors also accepted a strictly cheaper candidate with at least $20\\%$ less Lean code."}]},"grover/eventual-cost":{"short":"Expected round bounds for large domains","lean":[{"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 plots the verified upper coefficients relative to the reference scale.","proof_lines":[239,239],"fidelity":"same","fidelity_source":"ai"},{"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$.","proof_lines":[104,109]},{"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":"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":"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]},{"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]},{"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]}],"statements":[{"paper":"short","anchor":"block-S2-block-2","at":"b17595-17724","role":"derivation","origin":"ai","start_byte":17595,"end_byte":17724,"section":"2 Results","lean":[{"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":"part","note":"","annotation":"For a selected $(m,k)$, the Find-Any theorem gives a threshold $n_0$ and bounds the expected rounds averaged over $k$-element marked sets for every $n\\geq n_0$ with $k\\leq 2^n$. Its right-hand side is the submitted coefficient times the reference scale. Shirobokov et al. use this upper bound on the solution side of Figure 3d and evaluate the published baselines separately in Appendix E.2.","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":true,"relation":"part","note":"","annotation":"The Find-All theorem gives an eventual upper bound of the same form, with the Find-All reference scale and a coefficient chosen for each pair $(m,k)$. Figure 3d uses the authors’ separately evaluated baseline at that pair to turn the upper bound into a speedup comparison.","proof_lines":[239,239]}],"markdown":"Speedup in expected number of rounds for large $N$ of our verified parallel Grover circuits over the strongest published baseline"},{"paper":"short","anchor":"block-S2.SS1-block-1","at":"b19538-19574","role":"statement","origin":"ai","start_byte":19538,"end_byte":19574,"section":"2.1 Parallel Grover Search","lean":[{"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$.","proof_lines":[104,109]},{"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]}],"markdown":"expected oracle rounds for large $N$"},{"paper":"short","anchor":"block-A5.SS1-block-10","at":"b131209-131249","role":"definition","origin":"ai","start_byte":131209,"end_byte":131249,"section":"E.1 Problem specification and oracle model","lean":[{"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]}],"markdown":"its average over all $k$-element subsets"},{"paper":"short","anchor":"block-A5.SS1-block-10","at":"b131308-131365","role":"mention","origin":"ai","start_byte":131308,"end_byte":131365,"section":"E.1 Problem specification and oracle model","lean":[],"markdown":"since indices can be randomly permuted at zero query cost","note":"For fixed $S$, a uniform permutation $\\pi$ makes $\\pi(S)$ a uniform $k$-element set. Apply $\\pi^{-1}$ to the query addresses before each call to $O_S$ and apply $\\pi$ afterwards. At output, apply $\\pi^{-1}$ to the reported addresses. The randomized circuit then has the original uniform mean as its expected depth on every fixed marked set."},{"paper":"short","anchor":"block-A5.SS1-block-10","at":"b131404-131433","role":"definition","origin":"ai","start_byte":131404,"end_byte":131433,"section":"E.1 Problem specification and oracle model","lean":[{"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]}],"markdown":"by the fixed reference scales"},{"paper":"short","anchor":"block-A5.SS1-block-12","at":"b131873-131903","role":"statement","origin":"ai","start_byte":131873,"end_byte":131903,"section":"E.1 Problem specification and oracle model","lean":[{"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 plots the verified upper coefficients relative to the reference scale.","proof_lines":[239,239],"fidelity":"same","fidelity_source":"ai"},{"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]}],"markdown":"for all sufficiently large $n$"},{"paper":"short","anchor":"block-A5.SS1-block-12","at":"b131935-131989","role":"explanation","origin":"ai","start_byte":131935,"end_byte":131989,"section":"E.1 Problem specification and oracle model","lean":[{"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]}],"markdown":"only a fixed reference scale rather than a lower bound"}]},"grover/parallel-model":{"short":"Parallel queries and query rounds","lean":[{"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]},{"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":"The Find-Any solution uses the same product of embedded single-slot unitaries. The input is one shared state of the $m$ slots, so its addresses may be entangled across slots.","proof_lines":[81,83],"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]},{"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":"QuantumComputationSpecs.Algorithms.Grover:QuantumComputation.Specs.groverSetMarkingOracle","line":65,"end_line":67,"module":"QuantumComputationSpecs.Algorithms.Grover","plain":"Single-slot marking oracle in the challenge","lines":[65,66],"exact_lines":false,"relation":"defines","note":"","annotation":"`tableAddPerm` adds one to the one-bit target exactly when the address belongs to $S$. The address is unchanged, so the action on each basis state is a controlled bit flip.","proof_lines":[67,67]}],"statements":[{"paper":"short","anchor":"block-S2.SS1-block-1","at":"b19242-19297","role":"definition","origin":"ai","start_byte":19242,"end_byte":19297,"section":"2.1 Parallel Grover Search","lean":[{"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]}],"markdown":"parallel queries per round on a shared quantum register"},{"paper":"short","anchor":"block-A5.SS1-block-1","at":"b127064-127085","role":"mention","origin":"ai","start_byte":127064,"end_byte":127085,"section":"E.1 Problem specification and oracle model","lean":[{"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]}],"markdown":"across all $Q$ qubits"},{"paper":"short","anchor":"block-A5.SS1-block-1","at":"b127087-127111","role":"definition","origin":"ai","start_byte":127087,"end_byte":127111,"section":"E.1 Problem specification and oracle model","lean":[{"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":"In the challenge specification, `QRegister.block` places the single-slot marking unitary on wires $i(n+1)$ through $i(n+1)+n$. The product over all $m$ slots is the unitary in the caption.","proof_lines":[80,82],"fidelity":"same","fidelity_source":"ai"},{"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":"The Find-Any solution uses the same product of embedded single-slot unitaries. The input is one shared state of the $m$ slots, so its addresses may be entangled across slots.","proof_lines":[81,83],"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":"The cost model tests a unitary against an embedding of the entire supplied parallel oracle. When it matches, the charge is one round for the product of all $m$ slot operations.","proof_lines":[104,109],"fidelity":"same","fidelity_source":"ai"}],"markdown":"Parallel oracle querying"},{"paper":"short","anchor":"block-A5.SS1-block-1","at":"b127551-127578","role":"explanation","origin":"ai","start_byte":127551,"end_byte":127578,"section":"E.1 Problem specification and oracle model","lean":[{"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":"part","note":"","annotation":"For each unitary assignment, `expectedCost` multiplies the charge by the trace of its input state. In a loop, that state descends from the part satisfying the classical guard, so the trace carries the probability of reaching this round.","proof_lines":[143,157],"fidelity":"same","fidelity_source":"ai"},{"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":"part","note":"","annotation":"The recursion restricts the state to outcomes satisfying the guard before evaluating the body cost. It passes the body’s output from those outcomes into the next unrolling.","fidelity":"same","fidelity_source":"ai"}],"markdown":"weighting each oracle round"},{"paper":"short","anchor":"block-A5.SS1-block-4","at":"b128695-128764","role":"definition","origin":"ai","start_byte":128695,"end_byte":128764,"section":"E.1 Problem specification and oracle model","lean":[{"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]},{"name":"QuantumComputationSpecs.Algorithms.Grover:QuantumComputation.Specs.groverSetMarkingOracle","line":65,"end_line":67,"module":"QuantumComputationSpecs.Algorithms.Grover","plain":"Single-slot marking oracle in the challenge","lines":[65,66],"exact_lines":false,"relation":"defines","note":"","annotation":"`tableAddPerm` adds one to the one-bit target exactly when the address belongs to $S$. The address is unchanged, so the action on each basis state is a controlled bit flip.","proof_lines":[67,67]}],"markdown":"where $b$ is a single-qubit target bit and $x$ is the $n$-qubit index"},{"paper":"short","anchor":"block-A5.SS1-block-6","at":"b129141-129217","role":"definition","origin":"ai","start_byte":129141,"end_byte":129217,"section":"E.1 Problem specification and oracle model","lean":[{"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]}],"markdown":"weighted in expectation by the probability of being in an active loop branch"},{"paper":"short","anchor":"block-A5.SS1-block-6","at":"b129265-129308","role":"explanation","origin":"ai","start_byte":129265,"end_byte":129308,"section":"E.1 Problem specification and oracle model","lean":[{"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]}],"markdown":"the remaining target qubits are prepared in"}]},"grover/find-any":{"short":"Finding one marked index","lean":[{"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.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]},{"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]}],"statements":[{"paper":"short","anchor":"block-S2.SS1-block-1","at":"b19466-19513","role":"statement","origin":"ai","start_byte":19466,"end_byte":19513,"section":"2.1 Parallel Grover Search","lean":[{"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]}],"markdown":"we require algorithms to succeed with certainty"},{"paper":"short","anchor":"block-A5.SS1-block-2","at":"b128065-128093","role":"definition","origin":"ai","start_byte":128065,"end_byte":128093,"section":"E.1 Problem specification and oracle model","lean":[{"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]}],"markdown":"and output an index $x\\in S$"}]},"grover/grid":{"short":"Parallel-query and target-count grid","lean":[{"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]},{"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]}],"statements":[{"paper":"short","anchor":"block-S2.SS1-block-1","at":"b19576-19618","role":"statement","origin":"ai","start_byte":19576,"end_byte":19618,"section":"2.1 Parallel Grover Search","lean":[{"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]}],"markdown":"evaluated at powers of two up to $1{,}024$"},{"paper":"short","anchor":"block-A5.SS1-block-2","at":"b127995-128011","role":"definition","origin":"ai","start_byte":127995,"end_byte":128011,"section":"E.1 Problem specification and oracle model","lean":[{"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]}],"markdown":"($121$ settings)"}]},"grover/any-speedup":{"short":"Find-Any speedups","lean":[{"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. For $m=k=2$, the reported comparison is about $0.942/0.81831\\approx1.15$.","proof_lines":[181,181]},{"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,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 Eq. (7) gives $1/2+1/\\pi$. Lean proves a rational upper bound slightly above this coefficient.","proof_lines":[97,97]}],"statements":[{"paper":"short","anchor":"block-S2.SS1-block-2","at":"b20376-20427","role":"statement","origin":"ai","start_byte":20376,"end_byte":20427,"section":"2.1 Parallel Grover Search","lean":[{"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. For $m=k=2$, the reported comparison is about $0.942/0.81831\\approx1.15$.","proof_lines":[181,181]},{"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]}],"markdown":"outperform it at all multi-target parallel settings"},{"paper":"short","anchor":"block-A5.SS3-block-2","at":"b142193-142222","role":"statement","origin":"ai","start_byte":142193,"end_byte":142222,"section":"E.3 Algorithmic mechanisms in verified circuits","lean":[{"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 Eq. (7) gives $1/2+1/\\pi$. Lean proves a rational upper bound slightly above this coefficient.","proof_lines":[97,97]}],"markdown":"extends the boundary constant"}]},"grover/all-speedup":{"short":"Find-All bounds and baseline speedups","lean":[{"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 Eq. (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]},{"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]},{"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]},{"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]}],"statements":[{"paper":"short","anchor":"block-S2.SS1-block-2","at":"b20517-20564","role":"statement","origin":"ai","start_byte":20517,"end_byte":20564,"section":"2.1 Parallel Grover Search","lean":[{"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 Eq. (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]},{"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 Eq. (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]},{"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]}],"markdown":"they outperform it at all multi-target settings"},{"paper":"short","anchor":"block-A5.SS3-block-1","at":"b141919-141949","role":"mention","origin":"ai","start_byte":141919,"end_byte":141949,"section":"E.3 Algorithmic mechanisms in verified circuits","lean":[{"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]}],"markdown":"winning circuit regimes across"},{"paper":"short","anchor":"block-A5.SS3-block-4","at":"b144198-144249","role":"mention","origin":"ai","start_byte":144198,"end_byte":144249,"section":"E.3 Algorithmic mechanisms in verified circuits","lean":[{"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]}],"markdown":"labels marking the winning mechanism in each region"}]},"grover/find-any-mechanism":{"short":"Find-Any weak measurements","lean":[{"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.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]},{"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]},{"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]}],"statements":[{"paper":"short","anchor":"block-S2.SS1-block-2","at":"b20760-20799","role":"explanation","origin":"ai","start_byte":20760,"end_byte":20799,"section":"2.1 Parallel Grover Search","lean":[{"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 Eq. (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]}],"markdown":"which collapse coherence only partially"},{"paper":"short","anchor":"block-A5.SS1-block-9","at":"b130744-130785","role":"explanation","origin":"ai","start_byte":130744,"end_byte":130785,"section":"E.1 Problem specification and oracle model","lean":[{"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]}],"markdown":"projects onto $S$ with no false positives"},{"paper":"short","anchor":"block-A5.SS1-block-9","at":"b130830-130870","role":"explanation","origin":"ai","start_byte":130830,"end_byte":130870,"section":"E.1 Problem specification and oracle model","lean":[{"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]}],"markdown":"only slightly damps the marked amplitude"},{"paper":"short","anchor":"block-A5.SS3-block-2","at":"b142136-142192","role":"explanation","origin":"ai","start_byte":142136,"end_byte":142192,"section":"E.3 Algorithmic mechanisms in verified circuits","lean":[{"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]}],"markdown":"coupling all $m$ slots via odd-parity fanout in Find-Any"}]},"grover/johnson-phase":{"short":"Parity and reflections in the Johnson walk","lean":[{"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":"Lean writes $R$ for the remaining targets and proves that the diagonal operator acts on an encoded subset $E$ by the sign $(-1)^{|E\\cap R|}$. In this diagram $R=S\\setminus F$. An archived target contributes a factor of $+1$. Two still-unfound targets each contribute $-1$, for a product of $+1$.","proof_lines":[349,370],"fidelity":"same","fidelity_source":"ai"},{"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))$."},{"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]},{"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]}],"statements":[{"paper":"short","anchor":"block-S2.SS1-block-2","at":"b21087-21156","role":"explanation","origin":"ai","start_byte":21087,"end_byte":21156,"section":"2.1 Parallel Grover Search","lean":[{"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.","proof_lines":[349,370]}],"markdown":"a sign set by the parity of how many remaining targets a set contains"},{"paper":"short","anchor":"block-A5.SS3-block-2","at":"b142513-142561","role":"explanation","origin":"ai","start_byte":142513,"end_byte":142561,"section":"E.3 Algorithmic mechanisms in verified circuits","lean":[{"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))$."}],"markdown":"a uniform superposition over $m$-element subsets"},{"paper":"short","anchor":"block-A5.SS3-block-2","at":"b142628-142657","role":"explanation","origin":"ai","start_byte":142628,"end_byte":142657,"section":"E.3 Algorithmic mechanisms in verified circuits","lean":[{"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]}],"markdown":"(unmarking archived hits $F$)"},{"paper":"short","anchor":"block-A5.SS3-block-2","at":"b142780-142849","role":"explanation","origin":"ai","start_byte":142780,"end_byte":142849,"section":"E.3 Algorithmic mechanisms in verified circuits","lean":[{"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]}],"markdown":"a fixed, $S$-independent reflection on the Johnson-scheme eigenspaces"},{"paper":"short","anchor":"block-A5.SS3-block-2","at":"b143100-143126","role":"explanation","origin":"ai","start_byte":143100,"end_byte":143126,"section":"E.3 Algorithmic mechanisms in verified circuits","lean":[{"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]}],"markdown":"plus a terminal phase kick"},{"paper":"short","anchor":"block-A5.SS3-block-5","at":"b144977-145034","role":"explanation","origin":"ai","start_byte":144977,"end_byte":145034,"section":"E.3 Algorithmic mechanisms in verified circuits","lean":[{"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":"Lean writes $R$ for the remaining targets and proves that the diagonal operator acts on an encoded subset $E$ by the sign $(-1)^{|E\\cap R|}$. In this diagram $R=S\\setminus F$. An archived target contributes a factor of $+1$. Two still-unfound targets each contribute $-1$, for a product of $+1$.","proof_lines":[349,370],"fidelity":"same","fidelity_source":"ai"}],"markdown":"unmarks slots already in $F$, so the dotted block applies"}]},"grover/johnson-readout":{"short":"Batch readout and recovery of remaining targets","lean":[{"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]},{"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]}],"statements":[{"paper":"short","anchor":"block-S2.SS1-block-2","at":"b21307-21342","role":"explanation","origin":"ai","start_byte":21307,"end_byte":21342,"section":"2.1 Parallel Grover Search","lean":[{"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]}],"markdown":"which a final query records at once"},{"paper":"short","anchor":"block-A5.SS3-block-2","at":"b143258-143305","role":"explanation","origin":"ai","start_byte":143258,"end_byte":143305,"section":"E.3 Algorithmic mechanisms in verified circuits","lean":[{"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]}],"markdown":"batch readout, where one final query writes all"},{"paper":"short","anchor":"block-A5.SS3-block-2","at":"b143363-143413","role":"explanation","origin":"ai","start_byte":143363,"end_byte":143413,"section":"E.3 Algorithmic mechanisms in verified circuits","lean":[{"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]}],"markdown":"retrying or clearing any remainder via exact loops"},{"paper":"short","anchor":"block-A5.SS3-block-5","at":"b145230-145251","role":"explanation","origin":"ai","start_byte":145230,"end_byte":145251,"section":"E.3 Algorithmic mechanisms in verified circuits","lean":[{"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]}],"markdown":"records new hits into"}]},"arcsin/reversible-action":{"short":"Exact modular addition with clean ancillas","lean":[{"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.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]},{"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]},{"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.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":"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]}],"statements":[{"paper":"short","anchor":"block-S2.SS2-block-1","at":"b21528-21564","role":"statement","origin":"ai","start_byte":21528,"end_byte":21564,"section":"2.2 Fixed-Point arcsin","lean":[{"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]}],"markdown":"on a quantum superposition of inputs"},{"paper":"short","anchor":"block-A6.SS1-block-2","at":"b146392-146497","role":"definition","origin":"ai","start_byte":146392,"end_byte":146497,"section":"F.1 Problem and specification","lean":[{"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]}],"markdown":"$|y\\rangle|b\\rangle|0\\rangle^{\\otimes m}\\mapsto|y\\rangle|(b+z(y))\\bmod 2^{k}\\rangle|0\\rangle^{\\otimes m}$"},{"paper":"short","anchor":"block-A6.SS1-block-2","at":"b147524-147593","role":"statement","origin":"ai","start_byte":147524,"end_byte":147593,"section":"F.1 Problem and specification","lean":[{"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]}],"markdown":"must apply this exact action across all $2^{50}$ basis states $(y,b)$"},{"paper":"short","anchor":"block-A6.SS1-block-2","at":"b147598-147644","role":"statement","origin":"ai","start_byte":147598,"end_byte":147644,"section":"F.1 Problem and specification","lean":[{"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]}],"markdown":"return all ancillas to $|0\\rangle^{\\otimes m}$"},{"paper":"short","anchor":"block-A6.SS4-block-2","at":"b159559-159614","role":"explanation","origin":"ai","start_byte":159559,"end_byte":159614,"section":"F.4 Interpretation","lean":[{"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]}],"markdown":"restoring $y$ and returning all ancillas to $|0\\rangle$"}]},"arcsin/precision":{"short":"Uniform absolute error on the 25-bit grid","lean":[{"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":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]},{"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]},{"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]},{"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]}],"statements":[{"paper":"short","anchor":"block-S2.SS2-block-1","at":"b21803-21899","role":"statement","origin":"ai","start_byte":21803,"end_byte":21899,"section":"2.2 Fixed-Point arcsin","lean":[{"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]}],"markdown":"the output must be accurate to an error $\\leq 1.25\\times 10^{-7}$ across the domain $y\\in[-1,1]$"},{"paper":"short","anchor":"block-A6.SS1-block-2","at":"b147068-147114","role":"definition","origin":"ai","start_byte":147068,"end_byte":147114,"section":"F.1 Problem and specification","lean":[{"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]}],"markdown":"$1$ sign, $1$ integer and $23$ fractional bits"},{"paper":"short","anchor":"block-A6.SS1-block-2","at":"b147151-147222","role":"definition","origin":"ai","start_byte":147151,"end_byte":147222,"section":"F.1 Problem and specification","lean":[{"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]}],"markdown":"With $23$ fractional bits, the smallest representable value is $2^{-23}"},{"paper":"short","anchor":"block-A6.SS1-block-2","at":"b147369-147425","role":"definition","origin":"ai","start_byte":147369,"end_byte":147425,"section":"F.1 Problem and specification","lean":[{"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]}],"markdown":"across all $2^{24}+1=16{,}777{,}217$ inputs $y\\in[-1,1]$"}]},"arcsin/comparison":{"short":"Reported spacetime savings over kickmix and Häner","lean":[{"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]},{"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.","proof_lines":[362,446]}],"statements":[{"paper":"short","anchor":"block-S2.SS2-block-2","at":"b23086-23132","role":"derivation","origin":"ai","start_byte":23086,"end_byte":23132,"section":"2.2 Fixed-Point arcsin","lean":[{"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 Fig. 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]}],"markdown":"leading to a further overall $11\\%$ lower cost"},{"paper":"short","anchor":"block-S2.SS2-block-2","at":"b23195-23225","role":"derivation","origin":"ai","start_byte":23195,"end_byte":23225,"section":"2.2 Fixed-Point arcsin","lean":[{"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]},{"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.","proof_lines":[362,446]}],"markdown":"$290\\times$ below the baseline"}]},"fusion/model":{"short":"Plane-wave Hamiltonian for α + hydrogen","lean":[{"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}}$."},{"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]},{"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"}],"statements":[{"paper":"short","anchor":"block-S2.SS3-block-3","at":"b26372-26458","role":"definition","origin":"ai","start_byte":26372,"end_byte":26458,"section":"2.3 Stopping Power in Inertial-Confinement Fusion","lean":[{"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}}$."}],"markdown":"We consider an $\\alpha$ particle and $218$ electrons moving among $216$ fixed protons."},{"paper":"short","anchor":"block-A7.SS1-block-1","at":"b162405-162472","role":"definition","origin":"ai","start_byte":162405,"end_byte":162472,"section":"G.1 Hamiltonian and specification","lean":[{"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]}],"markdown":"The valid grid subspace excludes the signed-magnitude negative zero"},{"paper":"short","anchor":"block-A7.SS1-block-4","at":"b163919-163968","role":"definition","origin":"ai","start_byte":163919,"end_byte":163968,"section":"G.1 Hamiltonian and specification","lean":[{"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]}],"markdown":"and acts as zero outside the valid grid subspace."}]},"fusion/time-evolution":{"short":"Time evolution on same-spin antisymmetric grid states","lean":[{"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":"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":"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.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]},{"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]}],"statements":[{"paper":"short","anchor":"block-S2.SS3-block-3","at":"b26537-26637","role":"statement","origin":"ai","start_byte":26537,"end_byte":26637,"section":"2.3 Stopping Power in Inertial-Confinement Fusion","lean":[{"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.","proof_lines":[943,971],"fidelity":"same","fidelity_source":"ai"},{"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]}],"markdown":"with error $\\varepsilon=10^{-2}$ on every state antisymmetric under exchange of same-spin electrons."},{"paper":"short","anchor":"block-A7.SS1-block-5","at":"b164428-164504","role":"definition","origin":"ai","start_byte":164428,"end_byte":164504,"section":"G.1 Hamiltonian and specification","lean":[{"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]}],"markdown":"partition of the $218$ electron registers into spin-up and spin-down subsets"},{"paper":"short","anchor":"block-A7.SS1-block-5","at":"b164572-164630","role":"statement","origin":"ai","start_byte":164572,"end_byte":164630,"section":"G.1 Hamiltonian and specification","lean":[{"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]}],"markdown":"using $m$ ancilla qubits must realize a single unitary $W$"},{"paper":"short","anchor":"block-A7.SS1-block-7","at":"b165048-165105","role":"definition","origin":"ai","start_byte":165048,"end_byte":165105,"section":"G.1 Hamiltonian and specification","lean":[{"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]}],"markdown":"All ancillas begin in $|0\\rangle^{\\otimes m}$ in each run"}]},"fusion/repeats":{"short":"50 evolutions at each of ten times","lean":[{"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]}],"statements":[{"paper":"short","anchor":"block-S2.SS3-block-3","at":"b26638-26709","role":"statement","origin":"ai","start_byte":26638,"end_byte":26709,"section":"2.3 Stopping Power in Inertial-Confinement Fusion","lean":[{"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]}],"markdown":"The full stopping-power calculation repeats this evolution $500$ times."},{"paper":"short","anchor":"block-A7.SS1-block-8","at":"b165594-165684","role":"statement","origin":"ai","start_byte":165594,"end_byte":165684,"section":"G.1 Hamiltonian and specification","lean":[{"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]}],"markdown":"the protocol repeats time evolution $50$ times at each of $t=1,\\dots,10$ a.u. ($500$ runs)"},{"paper":"short","anchor":"block-A7.SS1-block-8","at":"b165685-165800","role":"mention","origin":"ai","start_byte":165685,"end_byte":165800,"section":"G.1 Hamiltonian and specification","lean":[],"markdown":"to estimate the mean projectile kinetic energy, omitting state preparation and readout as their cost is negligible.","note":"The measured observable is the projectile kinetic energy $\\|k_p-k_{\\mathrm{proj}}\\|_2^2/(2M_{\\mathrm{proj}})$, which is diagonal in the projectile momentum basis. The 50 measurements give one mean at each time, and fitting the ten means gives an estimate of the rate of energy loss. State preparation, readout and the error of the fit are outside the evolution theorem."}]},"fusion/baseline":{"short":"Reconstructed momentum-space QSP baseline","lean":[],"statements":[{"paper":"short","anchor":"block-S2.SS3-block-4","at":"b26746-26783","role":"mention","origin":"ai","start_byte":26746,"end_byte":26783,"section":"2.3 Stopping Power in Inertial-Confinement Fusion","lean":[],"markdown":"Our baseline is constructed from Ref.","note":"Rubin et al.'s Table 2 supplies $\\lambda=1{,}744{,}784.42$ Ha, $24{,}980$ Toffolis per walk step and $5{,}650$ logical qubits. Appendix G.2 recomputes the query count at the ten evolution times. This gives about $1.20\\times10^{14}$ Toffolis over 500 runs. The full-size QSP row in Rubin et al.'s Table 3 reports $9.960\\times10^{16}$."},{"paper":"short","anchor":"block-A7.SS2-block-1","at":"b166743-166827","role":"mention","origin":"ai","start_byte":166743,"end_byte":166827,"section":"G.2 Baseline","lean":[],"markdown":"a block-encoding cost of $C_{\\mathrm{BE}}=2.498\\times 10^{4}$ Toffolis per walk step","note":"The block-encoding cost is charged once per query. The size of $\\lambda$ determines the leading query count. The $22.53$ Ha per electron–proton or electron–electron pair is a sum over nonzero momentum transfers. The $218\\cdot216$ electron–proton pairs and $\\binom{218}{2}$ electron pairs account for about $91.4\\%$ of the normalization."}]},"fusion/comparison":{"short":"11.8-fold reduction in spacetime cost","lean":[{"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]},{"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]}],"statements":[{"paper":"short","anchor":"block-S2.SS3-block-5","at":"b27515-27548","role":"derivation","origin":"ai","start_byte":27515,"end_byte":27548,"section":"2.3 Stopping Power in Inertial-Confinement Fusion","lean":[{"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]},{"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]}],"markdown":"$11.8\\times$ lower spacetime cost"}]},"fusion/pauli":{"short":"Pauli exclusion in the short-range interaction","lean":[{"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.","proof_lines":[362,375]},{"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]}],"statements":[{"paper":"short","anchor":"block-S2.SS3-block-5","at":"b28104-28171","role":"statement","origin":"ai","start_byte":28104,"end_byte":28171,"section":"2.3 Stopping Power in Inertial-Confinement Fusion","lean":[{"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.","proof_lines":[362,375]}],"markdown":"which allows at most two opposite spin electrons on any grid point."},{"paper":"short","anchor":"block-A7.SS3-block-2","at":"b170243-170318","role":"explanation","origin":"ai","start_byte":170243,"end_byte":170318,"section":"G.3 Main improvements","lean":[{"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]}],"markdown":"which equals $1-n$ for $n\\leq 2$ and has magnitude at most one for any $n$."}]},"fusion/momentum":{"short":"Total electron momentum between walk steps","lean":[{"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]}],"statements":[{"paper":"short","anchor":"block-S2.SS3-block-6","at":"b28800-28844","role":"explanation","origin":"ai","start_byte":28800,"end_byte":28844,"section":"2.3 Stopping Power in Inertial-Confinement Fusion","lean":[{"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]}],"markdown":"in a $42$-qubit register between walk steps."},{"paper":"short","anchor":"block-A7.SS3-block-3","at":"b171932-171995","role":"explanation","origin":"ai","start_byte":171932,"end_byte":171995,"section":"G.3 Main improvements","lean":[{"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]}],"markdown":"clearing it before the real-space step and rebuilding it after."},{"paper":"short","anchor":"block-A7.SS3-block-3","at":"b172021-172058","role":"mention","origin":"ai","start_byte":172021,"end_byte":172058,"section":"G.3 Main improvements","lean":[],"markdown":"cuts the $T$ gates per step by $10\\%$","note":"In the earlier real-space circuit, four sums of the 218 electron momenta accounted for about a fifth of the $T$ gates per walk step. The paper attributes the 10% reduction to halving the number of these sums. The 42-qubit register is included in the final logical width."}]},"photochemistry/model":{"short":"Grid Hamiltonian for 47 nuclei and 187 electrons","lean":[{"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."},{"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."},{"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]},{"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]}],"statements":[{"paper":"short","anchor":"block-S2.SS4-block-2","at":"b30822-30900","role":"statement","origin":"ai","start_byte":30822,"end_byte":30900,"section":"2.4 Non-Born–Oppenheimer Dynamics of C₂₃H₂₀N₃O","lean":[{"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."}],"markdown":"all $47$ nuclei are treated quantum mechanically alongside the $187$ electrons"},{"paper":"short","anchor":"block-A8.SS1-block-1","at":"b174178-174225","role":"definition","origin":"ai","start_byte":174178,"end_byte":174225,"section":"H.1 Hamiltonian and specification","lean":[{"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."}],"markdown":"Each Cartesian coordinate is stored as a signed"},{"paper":"short","anchor":"block-A8.SS1-block-1","at":"b174763-174791","role":"definition","origin":"ai","start_byte":174763,"end_byte":174791,"section":"H.1 Hamiltonian and specification","lean":[{"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]}],"markdown":"isotopic atomic masses minus"},{"paper":"short","anchor":"block-A8.SS1-block-2","at":"b174842-174903","role":"definition","origin":"ai","start_byte":174842,"end_byte":174903,"section":"H.1 Hamiltonian and specification","lean":[{"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."}],"markdown":"The discretized non-Born–Oppenheimer Hamiltonian is $H=T+V$"},{"paper":"short","anchor":"block-A8.SS1-block-4","at":"b175664-175753","role":"definition","origin":"ai","start_byte":175664,"end_byte":175753,"section":"H.1 Hamiltonian and specification","lean":[{"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]}],"markdown":"capping electron interactions at $1/\\Delta$ and nuclear repulsion at $1/(\\sqrt{8}\\Delta)$"}]},"photochemistry/time-evolution":{"short":"One femtosecond of evolution with full-output error at most 0.01","lean":[{"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":"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.","proof_lines":[74,78]},{"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."},{"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,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]}],"statements":[{"paper":"short","anchor":"block-S2.SS4-block-2","at":"b30994-31070","role":"statement","origin":"ai","start_byte":30994,"end_byte":31070,"section":"2.4 Non-Born–Oppenheimer Dynamics of C₂₃H₂₀N₃O","lean":[{"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.","proof_lines":[74,78]},{"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."}],"markdown":"for $t=1$ fs, to within error $\\varepsilon=10^{-2}$, for every initial state"},{"paper":"short","anchor":"block-A8.SS1-block-5","at":"b175857-175900","role":"definition","origin":"ai","start_byte":175857,"end_byte":175900,"section":"H.1 Hamiltonian and specification","lean":[{"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]}],"markdown":"must realize a single clean-ancilla unitary"},{"paper":"short","anchor":"block-A8.SS1-block-5","at":"b176474-176558","role":"explanation","origin":"ai","start_byte":176474,"end_byte":176558,"section":"H.1 Hamiltonian and specification","lean":[{"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]}],"markdown":"so resource states such as phase-gradient states must be prepared within the circuit"}]},"photochemistry/baseline":{"short":"Baseline walk-step rescaling and 8.22-fold cost reduction","lean":[{"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. The logical widths differ by a factor of $6{,}198/6{,}033\\approx1.027$.","proof_lines":[655,664]}],"statements":[{"paper":"short","anchor":"block-S2.SS4-block-3","at":"b31511-31538","role":"derivation","origin":"ai","start_byte":31511,"end_byte":31538,"section":"2.4 Non-Born–Oppenheimer Dynamics of C₂₃H₂₀N₃O","lean":[{"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. The logical widths differ by a factor of $6{,}198/6{,}033\\approx1.027$.","proof_lines":[655,664]}],"markdown":"a reduction of $8.22\\times$"},{"paper":"short","anchor":"block-A8.SS1-block-6","at":"b176818-176875","role":"mention","origin":"ai","start_byte":176818,"end_byte":176875,"section":"H.1 Hamiltonian and specification","lean":[],"markdown":"The baseline instead bounds only the block-encoding error","note":"The full squared error includes the squared error in the zero-ancilla block and the squared norm of the orthogonal output. For the baseline QSP construction, the second term is bounded by $2\\epsilon_{\\mathrm{exp}}$. With $\\epsilon_{\\mathrm{BE}}=0.01$ and $\\epsilon_{\\mathrm{exp}}=\\epsilon_{\\mathrm{BE}}/12.95$ from Pocrnic et al., the resulting full-output bound is $\\sqrt{0.01^2+2(0.01/12.95)}\\approx0.041$. The cost comparison uses the baseline at its published error allocation."},{"paper":"short","anchor":"block-A8.SS2-block-5","at":"b181647-181717","role":"mention","origin":"ai","start_byte":181647,"end_byte":181717,"section":"H.2 Baseline","lean":[],"markdown":"Rescaling the published Toffoli count by this ratio gives our baseline","note":"Appendix H.2 rescales the published Toffoli estimate by the degree ratio $8{,}930{,}416/12{,}136{,}779$. The doubled QSP construction uses the degree plus two queries, and the baseline resource estimate approximates this query count by the degree. The rescaling takes the published total from about $2.73\\times10^{11}$ to $2.01\\times10^{11}$ Toffoli gates. At four T gates per Toffoli and a width of 6,198 qubits, the revised spacetime estimate is about $4.98\\times10^{15}$."}]},"p450/fixed-model":{"short":"Fixed rounded DFTHC Hamiltonian","lean":[{"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 Eq. (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"},{"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]}],"statements":[{"paper":"short","anchor":"block-S2.SS5-block-2","at":"b34281-34357","role":"definition","origin":"ai","start_byte":34281,"end_byte":34357,"section":"2.5 Cytochrome P450 Compound I","lean":[{"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 Eq. (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"}],"markdown":"with the fixed double-factorized tensor-hypercontraction (DFTHC) Hamiltonian"},{"paper":"short","anchor":"block-A9.SS1-block-1","at":"b188949-188995","role":"definition","origin":"ai","start_byte":188949,"end_byte":188995,"section":"I.1 Hamiltonian and specification","lean":[{"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]}],"markdown":"giving $Q_{\\mathrm{sys}}=2N=116$ system qubits"},{"paper":"short","anchor":"block-A9.SS1-block-2","at":"b189229-189278","role":"mention","origin":"ai","start_byte":189229,"end_byte":189278,"section":"I.1 Hamiltonian and specification","lean":[],"markdown":"leave the physical spin-state ordering unresolved","note":"Omitted orbitals can contribute enough correlation to change the order of the doublet and quartet. The reported 0.28 mHa difference from fitting the DFTHC factors concerns a correlation-energy calculation. The benchmark fixes the orbital space and factors, so the 1 mHa bound is on the circuit error for that model."}]},"p450/energy-window":{"short":"Capped energies and the 1 mHa RMS bound","lean":[{"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":[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]},{"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]}],"statements":[{"paper":"short","anchor":"block-S2.SS5-block-2","at":"b34420-34483","role":"statement","origin":"ai","start_byte":34420,"end_byte":34483,"section":"2.5 Cytochrome P450 Compound I","lean":[{"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]}],"markdown":"For every eigenstate within $\\Delta=0.1$ Ha of the ground state"},{"paper":"short","anchor":"block-A9.SS1-block-8","at":"b194217-194256","role":"explanation","origin":"ai","start_byte":194217,"end_byte":194256,"section":"I.1 Hamiltonian and specification","lean":[{"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]}],"markdown":"$2\\pi y/2^{b}$ estimates $\\pm 2\\varphi$"},{"paper":"short","anchor":"block-A9.SS1-block-9","at":"b194590-194647","role":"statement","origin":"ai","start_byte":194590,"end_byte":194647,"section":"I.1 Hamiltonian and specification","lean":[{"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]}],"markdown":"the same circuit and decoder to work for every eigenstate"},{"paper":"short","anchor":"block-A9.SS1-block-11","at":"b195303-195372","role":"explanation","origin":"ai","start_byte":195303,"end_byte":195372,"section":"I.1 Hamiltonian and specification","lean":[{"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]}],"markdown":"with estimates above $E_{\\mathrm{top}}$ counted as $E_{\\mathrm{top}}$"}]},"p450/adjusted-baseline":{"short":"Spectral amplification baseline for the energy window","lean":[],"statements":[{"paper":"short","anchor":"block-S2.SS5-block-3","at":"b35177-35253","role":"mention","origin":"ai","start_byte":35177,"end_byte":35253,"section":"2.5 Cytochrome P450 Compound I","lean":[],"markdown":"giving a cumulative baseline of $1.09\\times 10^{12}$ on $481$ logical qubits","note":"The published cost is 1,150 × 4 × 9,535 × 51,510 qubit–T. The energy window, consistent Hamiltonian and quartet reference give 49,056 steps in the adjusted calculation. Batching Givens angles and the other compilation changes give 481 qubits and 11,517 Toffolis per step."},{"paper":"short","anchor":"block-A9.SS2-block-1","at":"b196631-196706","role":"mention","origin":"ai","start_byte":196631,"end_byte":196706,"section":"I.2 Baseline","lean":[],"markdown":"Our baseline starts from the sum-of-squares spectral amplification estimate","note":"The gap in Eq. (21) runs from the sum-of-squares lower bound to an upper bound on the cutoff. For $x=E-E_{\\mathrm{SOS}}=\\Lambda(1+\\cos\\varphi)$, the slope has magnitude $\\sqrt{x(2\\Lambda-x)}$. This increases up to $x=\\Lambda$, so the low-energy window bounds it by its value at the gap. In the doubled phase the slope is half as large."}]},"p450/verified-cost":{"short":"Logical spacetime bound for one 333-qubit run","lean":[{"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]},{"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."},{"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."}],"statements":[{"paper":"short","anchor":"block-S2.SS5-block-4","at":"b35390-35439","role":"statement","origin":"ai","start_byte":35390,"end_byte":35439,"section":"2.5 Cytochrome P450 Compound I","lean":[{"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."}],"markdown":"achieves a spacetime cost of $4.37\\times 10^{11}$"},{"paper":"short","anchor":"block-A9.SS1-block-12","at":"b196334-196383","role":"definition","origin":"ai","start_byte":196334,"end_byte":196383,"section":"I.1 Hamiltonian and specification","lean":[{"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]}],"markdown":"Every Toffoli is compiled into Clifford+$T$ gates"},{"paper":"short","anchor":"block-A9.SS4-block-1","at":"b206525-206620","role":"statement","origin":"ai","start_byte":206525,"end_byte":206620,"section":"I.4 Resource counts","lean":[{"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."}],"markdown":"$Q=333$ logical qubits and $\\mathcal{T}=1{,}310{,}839{,}337\\approx 1.31\\times 10^{9}$ $T$ gates"}]},"verification/collaboration-gains":{"short":"Attribution of cost reductions to teams, the wiki, and conferences","lean":[],"statements":[{"paper":"short","anchor":"block-S2.SS6-block-3","at":"b38783-38847","role":"mention","origin":"ai","start_byte":38783,"end_byte":38847,"section":"2.6 Collaboration Across Agent Teams","lean":[],"markdown":"we classify every verified gain by where its new idea originated","note":"In Fig. 5b, a drop from cost $C_i$ to $C_{i+1}$ contributes $\\log(C_i/C_{i+1})$. Two successive halvings get equal weight under that measure. The authors compute shares within each application after both channels were in use and average the shares across the three applications."},{"paper":"short","anchor":"block-S2.SS6-block-3","at":"b39189-39229","role":"mention","origin":"ai","start_byte":39189,"end_byte":39229,"section":"2.6 Collaboration Across Agent Teams","lean":[],"markdown":"Credit is often hard to separate cleanly","note":"In the stopping-power example in Fig. 5c, Teams 2 and 3 reduced a shared register from $288$ to $231$ ancillas over five wiki records, with conference input from Team 1. The proof certifies the resource count. The attribution also uses the sequence of exchanges recorded by the teams."}]},"verification/hardware-horizon":{"short":"Qubit and T-gate budgets for fault-tolerant hardware","lean":[],"statements":[{"paper":"short","anchor":"block-S3-block-3","at":"b42293-42370","role":"mention","origin":"ai","start_byte":42293,"end_byte":42370,"section":"3 Discussion and Outlook","lean":[],"markdown":"reaching early hardware will require further orders-of-magnitude improvements","note":"The non-Born–Oppenheimer benchmark uses $5{,}616$ qubits for the system register before workspace. Table S1 gives a teraquop ceiling range of $500$ to $2{,}000$ logical qubits. Even a circuit with a smaller $T$ count would need a different system encoding to fit that qubit range."},{"paper":"short","anchor":"block-A4.SS2-block-3","at":"b124903-124933","role":"mention","origin":"ai","start_byte":124903,"end_byte":124933,"section":"D.2 Fault-tolerant capability regimes and hardware horizons","lean":[],"markdown":"upper-bound resource envelopes","note":"The teraquop midpoint in Table S1 is $1{,}000$ qubits and $10^9$ $T$ gates. The P450 circuit uses $333$ qubits and has a $T$-count bound of about $1.31\\times10^9$. Its product is below $10^{12}$, while its $T$-count bound exceeds the midpoint of the corresponding gate budget."}]},"verification/termination":{"short":"Total Hoare triples and probability-one termination","lean":[{"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]}],"statements":[{"paper":"short","anchor":"block-A1-block-4","at":"b88068-88133","role":"statement","origin":"ai","start_byte":88068,"end_byte":88133,"section":"Appendix A Formal Quantum Computation Library","lean":[{"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]}],"markdown":"Correctness in this work is expressed through total Hoare triples"},{"paper":"short","anchor":"block-A1-block-4","at":"b88813-88851","role":"definition","origin":"ai","start_byte":88813,"end_byte":88851,"section":"Appendix A Formal Quantum Computation Library","lean":[{"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]}],"markdown":"the expectation of the resulting state"}]},"verification/state-and-assertions":{"short":"Classical–quantum states, assertions and expectation","lean":[{"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]},{"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."},{"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"}],"statements":[{"paper":"short","anchor":"block-A1.SS0.SSS0.Px2-block-3","at":"b92204-92252","role":"explanation","origin":"ai","start_byte":92204,"end_byte":92252,"section":"Classical-quantum states.","lean":[{"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]}],"markdown":"countable support need not be separately imposed"},{"paper":"short","anchor":"block-A1.SS0.SSS0.Px3-block-1","at":"b92690-92708","role":"definition","origin":"ai","start_byte":92690,"end_byte":92708,"section":"Classical-quantum assertions.","lean":[{"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."}],"markdown":"quantum predicates"},{"paper":"short","anchor":"block-A1.SS0.SSS0.Px4-block-3","at":"b97811-97857","role":"explanation","origin":"ai","start_byte":97811,"end_byte":97857,"section":"Expectation.","lean":[{"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"}],"markdown":"averaging over all possible classical branches"}]},"verification/expected-resources":{"short":"Expected cost along branches and loops","lean":[{"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"},{"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"}],"statements":[{"paper":"short","anchor":"block-A1.SS0.SSS0.Px7-block-1","at":"b104691-104783","role":"explanation","origin":"ai","start_byte":104691,"end_byte":104783,"section":"Resource Counting and Cost Models.","lean":[{"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]}],"markdown":"semantic expected-cost accounting over program executions with branching and unbounded loops"},{"paper":"short","anchor":"block-A1.SS0.SSS0.Px7-block-5","at":"b107660-107722","role":"explanation","origin":"ai","start_byte":107660,"end_byte":107722,"section":"Resource Counting and Cost Models.","lean":[{"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"}],"markdown":"probability mass of entering the current branch of the program"},{"paper":"short","anchor":"block-A1.SS0.SSS0.Px7-block-5","at":"b107907-107965","role":"statement","origin":"ai","start_byte":107907,"end_byte":107965,"section":"Resource Counting and Cost Models.","lean":[{"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"}],"markdown":"per-iteration cost times the expected number of iterations"}]},"verification/frozen-specification":{"short":"Lean Comparator and the candidate definition holes","lean":[{"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."},{"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."}],"statements":[{"paper":"short","anchor":"block-A2-block-1","at":"b111215-111270","role":"explanation","origin":"ai","start_byte":111215,"end_byte":111270,"section":"Appendix B Verification Pipeline","lean":[{"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."}],"markdown":"typed sorry placeholders for the candidate construction"},{"paper":"short","anchor":"block-A2-block-2","at":"b112031-112131","role":"explanation","origin":"ai","start_byte":112031,"end_byte":112131,"section":"Appendix B Verification Pipeline","lean":[{"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."}],"markdown":"all target theorem statements and every transitive definition they depend on match the specification"},{"paper":"short","anchor":"block-A2-block-2","at":"b112138-112200","role":"mention","origin":"ai","start_byte":112138,"end_byte":112200,"section":"Appendix B Verification Pipeline","lean":[],"markdown":"the compiled proof terms depend solely on standard Lean axioms","note":"The three permitted axioms are `propext`, `Quot.sound`, and `Classical.choice`. Comparator checks the axiom dependencies of the target proofs, including admitted helpers that introduce `sorryAx`. The reader retains successful local runs for arcsin and Grover Find-Any using the original configurations with sandboxing disabled. Appendix B reports the authors’ separate clean-sandbox procedure."},{"paper":"short","anchor":"block-A2-block-2","at":"b112288-112355","role":"derivation","origin":"ai","start_byte":112288,"end_byte":112355,"section":"Appendix B Verification Pipeline","lean":[{"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."}],"markdown":"the proved resource theorem reduces to the claimed closed-form cost"}]},"grover/variant-specific-check":{"short":"Separate Find-Any and Find-All checks","lean":[{"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]}],"statements":[{"paper":"short","anchor":"block-A2-block-2","at":"b112031-112131","role":"mention","origin":"ai","start_byte":112031,"end_byte":112131,"section":"Appendix B Verification Pipeline","lean":[{"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]}],"markdown":"all target theorem statements and every transitive definition they depend on match the specification"},{"paper":"short","anchor":"block-A2-block-2","at":"b112142-112200","role":"mention","origin":"ai","start_byte":112142,"end_byte":112200,"section":"Appendix B Verification Pipeline","lean":[],"markdown":"compiled proof terms depend solely on standard Lean axioms","note":"The two Comparator configurations share a challenge module and select separate theorem statements and candidate definitions. The retained accepted replay is for Find-Any. The paper reports verification for Find-All."}]},"verification/logical-spacetime":{"short":"Logical spacetime volume in qubits and T gates","lean":[{"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 Fig. S11 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]}],"statements":[{"paper":"short","anchor":"block-A4.SS1-block-1","at":"b117370-117472","role":"mention","origin":"ai","start_byte":117370,"end_byte":117472,"section":"D.1 Logical spacetime volume and architectural assumptions","lean":[],"markdown":"candidate circuits and literature baselines are compared at matched system encodings and error budgets","note":"Appendix F.2 gives a lower-bound cost estimate for the Häner et al. baseline, whose estimated maximum error is about $10^{-6}$. The Lean candidate’s bound is $1.25\\times10^{-7}$ on the valid input grid. In Appendix H.1, the dynamics baseline assigns $0.01$ to the ancilla-zero block error. The authors derive a bound of about $0.041$ for the baseline’s full-output error. The candidate’s full-output bound is $0.01$."},{"paper":"short","anchor":"block-A4.SS1-block-1","at":"b117570-117604","role":"definition","origin":"ai","start_byte":117570,"end_byte":117604,"section":"D.1 Logical spacetime volume and architectural assumptions","lean":[{"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 Fig. S11 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]}],"markdown":"including clean workspace ancillas"}]},"grover/find-all":{"short":"Exact recovery of the marked set","lean":[{"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.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]},{"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]}],"statements":[{"paper":"short","anchor":"block-A5.SS1-block-2","at":"b128151-128185","role":"definition","origin":"ai","start_byte":128151,"end_byte":128185,"section":"E.1 Problem specification and oracle model","lean":[{"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]}],"markdown":"and output all $k$ elements of $S$"},{"paper":"short","anchor":"block-A5.SS1-block-2","at":"b128187-128249","role":"explanation","origin":"ai","start_byte":128187,"end_byte":128249,"section":"E.1 Problem specification and oracle model","lean":[{"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]}],"markdown":"so algorithms cannot trade error probability for fewer queries"}]},"grover/baseline":{"short":"Baselines for zero-error search","lean":[],"statements":[{"paper":"short","anchor":"block-A5.SS2-block-1","at":"b133943-133983","role":"statement","origin":"ai","start_byte":133943,"end_byte":133983,"section":"E.2 Published prior baselines","lean":[],"markdown":"the strongest published protocol in each","note":"At $k=1$ and sufficiently large $N$, exactly one of Zalka’s $m$ blocks contains a target. It has marked fraction $m/N$, which fixes the weak-check schedule even though the block is unknown. The same schedule can run in every block, and empty blocks never click. Figure S7 reports the combined ZK+WG baseline."},{"paper":"short","anchor":"block-A5.SS2-block-3","at":"b134778-134870","role":"mention","origin":"ai","start_byte":134778,"end_byte":134870,"section":"E.2 Published prior baselines","lean":[],"markdown":"the bottom rows summarize our Lean-verified circuits and speedups over the baseline envelope","note":"In Figure S7, Shirobokov et al. compare the prior protocols in the same asymptotic, zero-error metric and choose the lowest baseline coefficient at each setting. They divide it by the solution’s upper coefficient to report the speedup."},{"paper":"short","anchor":"block-A5.SS2.SSS0.Px1-block-4","at":"b137247-137310","role":"explanation","origin":"ai","start_byte":137247,"end_byte":137310,"section":"Boundary regime (m = 1 or k = 1; BBHT, ZK, WG).","lean":[],"markdown":"which avoids discarding the amplified state when a check misses","note":"Fang and Heunen’s calibrated weak check retains an amplified state after a miss. Amplifying to a smaller angle costs fewer setup rounds but makes each click less likely. In the small-target-fraction limit, the minimum leading expected cost occurs when the amplification angle is $\\pi/4$."},{"paper":"short","anchor":"block-A5.SS2.SSS0.Px2-block-1","at":"b138839-138899","role":"explanation","origin":"ai","start_byte":138839,"end_byte":138899,"section":"Interior Find-Any (m,k ≥ 2; GW).","lean":[],"markdown":"running all $m$ registers independently over the full domain","note":"Each of the $m$ registers searches the full domain and returns a candidate at the same stopping angle. One parallel membership round can check all the candidates. Restarting when all fail adds only a bounded expected number of checking rounds at fixed $m$, so those checks do not change the leading $\\sqrt N$ coefficient."},{"paper":"short","anchor":"block-A5.SS2.SSS0.Px3-block-1","at":"b140873-140913","role":"definition","origin":"ai","start_byte":140873,"end_byte":140913,"section":"Interior Find-All (m,k ≥ 2; GR0).","lean":[],"markdown":"we evaluate a concrete two-pass schedule","note":"After the first pass, the total remainder $R_1$ bounds the remaining count in every block. At a stage set to $s$, any block with exactly $s$ targets yields one with certainty. Every block then has at most $s-1$ targets. Induction down from $R_1$ shows that the second pass clears them all."},{"paper":"short","anchor":"block-A5.SS3-block-1","at":"b141780-141807","role":"mention","origin":"ai","start_byte":141780,"end_byte":141807,"section":"E.3 Algorithmic mechanisms in verified circuits","lean":[],"markdown":"reports only joint speedups","note":"The Find-Any circuit combines joint amplification of the odd-parity component with a weak check that continues from a miss. The reported gain compares the resulting algorithm with the published baseline. The paper reports a joint ratio for these changes."}]},"grover/gate-cost":{"short":"Workspace, query rounds and gate synthesis","lean":[{"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]},{"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 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]},{"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"}],"statements":[{"paper":"short","anchor":"block-A5.SS3-block-2","at":"b143504-143548","role":"mention","origin":"ai","start_byte":143504,"end_byte":143548,"section":"E.3 Algorithmic mechanisms in verified circuits","lean":[{"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]}],"markdown":"our verified circuits use $O((m+k)n)$ qubits"},{"paper":"short","anchor":"block-A5.SS3-block-2","at":"b143608-143624","role":"mention","origin":"ai","start_byte":143608,"end_byte":143624,"section":"E.3 Algorithmic mechanisms in verified circuits","lean":[{"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"}],"markdown":"elementary gates"},{"paper":"short","anchor":"block-A5.SS3-block-2","at":"b143656-143693","role":"mention","origin":"ai","start_byte":143656,"end_byte":143693,"section":"E.3 Algorithmic mechanisms in verified circuits","lean":[{"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]}],"markdown":"for the QSVT-compiled diffusion steps"}]},"arcsin/baseline":{"short":"Estimated cost and sampled error of the Häner baseline","lean":[],"statements":[{"paper":"short","anchor":"block-A6.SS2-block-1","at":"b148765-148853","role":"mention","origin":"ai","start_byte":148765,"end_byte":148853,"section":"F.2 Baseline","lean":[],"markdown":"whose maximum error $\\sim 10^{-6}$ is driven by the error in the square root computation","note":"Häner et al. apply the same small-argument polynomial on both branches. For magnitude $x\\ge1/2$, Eq. (D1) first maps $x$ to $a=\\sqrt{(1-x)/2}\\le1/2$ and uses $\\arcsin(x)=\\pi/2-2\\arcsin(a)$. Their degree-three polynomial is in $a^2$ and is multiplied by $a$. Fig. 4 samples the full arcsine error. Fig. 6 samples the square-root error on a different grid."},{"paper":"short","anchor":"block-A6.SS2-block-2","at":"b150487-150571","role":"mention","origin":"ai","start_byte":150487,"end_byte":150571,"section":"F.2 Baseline","lean":[],"markdown":"We calculate a lower bound of the full circuit spacetime cost of $1.08\\times 10^{8}$","note":"The fixed-width Newton workspace formula $n(m+4)$ gives 245 qubits at $n=35,m=3$. Appendix F.2 prices the polynomial and square-root blocks at $138{,}432$ and $302{,}144$ $T$ gates. Taking their sum times 245 gives the authors’ partial estimate of $107{,}941{,}120$."},{"paper":"short","anchor":"block-A6.SS2-block-2","at":"b150721-150812","role":"mention","origin":"ai","start_byte":150721,"end_byte":150812,"section":"F.2 Baseline","lean":[],"markdown":"We thus ignore persistent registers and the smaller branch-selection and combination blocks","note":"Fig. S10 routes either $x^2$ or $(1-x)/2$ to the polynomial using a comparison bit, with $x=|y|$. The circuit later uncomputes the comparison. The sketch starts with a zero output register. The estimate counts the selected evaluation blocks, and the modular-add interface in F.1 has an arbitrary initial output $b$."}]},"arcsin/restricted-search":{"short":"Two stages of kickmix circuit discovery","lean":[],"statements":[{"paper":"short","anchor":"block-A6.SS3-block-1","at":"b151369-151428","role":"mention","origin":"ai","start_byte":151369,"end_byte":151428,"section":"F.3 Program Discovery","lean":[],"markdown":"so that every basis input stays a single signed basis state","note":"A kickmix simulation tracks a bit string and a sign on each sampled branch. If an ancilla holds $f(x)$, an $X$-basis measurement with outcome $m$ contributes the sign $(-1)^{mf(x)}$ on branch $x$. The correction is a function of the retained bits. This makes individual branches cheap to test."},{"paper":"short","anchor":"block-A6.SS3-block-1","at":"b152034-152125","role":"mention","origin":"ai","start_byte":152034,"end_byte":152125,"section":"F.3 Program Discovery","lean":[],"markdown":"The result was a circuit of spacetime cost $498{,}168$ ($102$ qubits, $4{,}884$ $T$ gates).","note":"The initial restricted search with testing reached $102\\cdot4{,}884=498{,}168$. The search using the formal framework then reached $100\\cdot4{,}152=415{,}200$ with a circuit still expressible in kickmix. The later $11\\%$ improvement is measured from the second of these costs."},{"paper":"short","anchor":"block-A6.SS3-block-2","at":"b152696-152755","role":"mention","origin":"ai","start_byte":152696,"end_byte":152755,"section":"F.3 Program Discovery","lean":[],"markdown":"continue optimizing the circuit up to a cost of $415{,}200$","note":"The coefficient bits remain Boolean functions of the interval index $s$. Fig. S11(c) evaluates $u_1v_1\\oplus u_2v_2$ with interference and six rotations. Two temporary AND computations would cost eight $T$ gates. The final input-dependent sign is cancelled as part of the full lookup pass."}]},"arcsin/benchmark-cost":{"short":"Spacetime bound of 369,800 on 100 qubits","lean":[{"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 Fig. 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]},{"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"},{"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]},{"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]},{"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]}],"statements":[{"paper":"short","anchor":"block-A6.SS3-block-2","at":"b153264-153311","role":"statement","origin":"ai","start_byte":153264,"end_byte":153311,"section":"F.3 Program Discovery","lean":[{"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 Fig. 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]},{"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]}],"markdown":"$369{,}800$ ($100$ qubits, $3{,}698$ $T$ gates)"},{"paper":"short","anchor":"block-A6.SS3-block-5","at":"b154914-154950","role":"definition","origin":"ai","start_byte":154914,"end_byte":154950,"section":"F.3 Program Discovery","lean":[{"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]}],"markdown":"Spacetime cost ($Q\\cdot\\mathcal{T}$)"},{"paper":"short","anchor":"block-A6.SS3-block-16","at":"b157316-157366","role":"derivation","origin":"ai","start_byte":157316,"end_byte":157366,"section":"F.3 Program Discovery","lean":[{"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"}],"markdown":"The whole circuit requires now $3{,}698$ $T$ gates"}]},"arcsin/breakdown":{"short":"Symbolic costs of arithmetic and lookup rotations","lean":[{"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.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.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 Fig. S11(c) has three rotations of each sign, for six in all.","proof_lines":[1968,1972]},{"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 Fig. S11(b) also spends 64 $T$ gates computing shared products, for a total of 294. `s3bOps` includes the addition of $A$ before this load."},{"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":"Fig. 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."},{"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. Fig. 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$."}],"statements":[{"paper":"short","anchor":"block-A6.SS3-block-4","at":"b154572-154650","role":"derivation","origin":"ai","start_byte":154572,"end_byte":154650,"section":"F.3 Program Discovery","lean":[{"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]}],"markdown":"the $3{,}698$ $T$ gates comprise $776$ four-$T$ temporary-$\\mathrm{AND}$ gates"},{"paper":"short","anchor":"block-A6.SS3-block-4","at":"b154666-154748","role":"derivation","origin":"ai","start_byte":154666,"end_byte":154748,"section":"F.3 Program Discovery","lean":[{"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 Fig. S11(c) has three rotations of each sign, for six in all.","proof_lines":[1968,1972]},{"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 Fig. S11(b) also spends 64 $T$ gates computing shared products, for a total of 294. `s3bOps` includes the addition of $A$ before this load."}],"markdown":"plus $594$ single-qubit $T$/$T^{\\dagger}$ gates across $41$ inner-product gadgets."},{"paper":"short","anchor":"block-A6.SS4-block-4","at":"b161115-161182","role":"derivation","origin":"ai","start_byte":161115,"end_byte":161182,"section":"F.4 Interpretation","lean":[{"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":"Fig. 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."},{"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. Fig. 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$."}],"markdown":"reducing the lookup-and-add stage from $1{,}348$ to $894$ $T$ gates"}]},"arcsin/endpoint":{"short":"Odd symmetry and the values at ±1","lean":[{"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]},{"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]},{"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."}],"statements":[{"paper":"short","anchor":"block-A6.SS4-block-2","at":"b157831-157885","role":"explanation","origin":"ai","start_byte":157831,"end_byte":157885,"section":"F.4 Interpretation","lean":[{"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]}],"markdown":"Since $\\arcsin$ is an odd function, i.e. $z(-y)=-z(y)$"},{"paper":"short","anchor":"block-A6.SS4-block-2","at":"b158647-158687","role":"explanation","origin":"ai","start_byte":158647,"end_byte":158687,"section":"F.4 Interpretation","lean":[{"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]}],"markdown":"The point $|y|=1$ is handled separately."}]},"arcsin/interval-approximation":{"short":"Piecewise quadratic approximation and fixed-point error","lean":[{"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,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.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]},{"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.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]}],"statements":[{"paper":"short","anchor":"block-A6.SS4-block-2","at":"b158010-158064","role":"explanation","origin":"ai","start_byte":158010,"end_byte":158064,"section":"F.4 Interpretation","lean":[{"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]}],"markdown":"we also split off the linear part, $z(|y|)=|y|+r(|y|)$"},{"paper":"short","anchor":"block-A6.SS4-block-2","at":"b158127-158183","role":"derivation","origin":"ai","start_byte":158127,"end_byte":158183,"section":"F.4 Interpretation","lean":[{"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]}],"markdown":"using a separate quadratic polynomial on $440$ intervals"},{"paper":"short","anchor":"block-A6.SS4-block-2","at":"b159060-159111","role":"derivation","origin":"ai","start_byte":159060,"end_byte":159111,"section":"F.4 Interpretation","lean":[{"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]}],"markdown":"squarer and adder circuits add $A+Bt+Ct^{2}$ to $b$"}]},"arcsin/lookup":{"short":"Coefficient lookup by interference and phase correction","lean":[{"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. Fig. S11(a) assigns 84 $T$ gates to the larger block that clears $t^2$.","proof_lines":[635,637]},{"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]},{"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":"Fig. 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]},{"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 Fig. 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"},{"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]},{"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]}],"statements":[{"paper":"short","anchor":"block-A6.SS4-block-2","at":"b159360-159472","role":"derivation","origin":"ai","start_byte":159360,"end_byte":159472,"section":"F.4 Interpretation","lean":[{"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. Fig. S11(a) assigns 84 $T$ gates to the larger block that clears $t^2$.","proof_lines":[635,637]},{"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]}],"markdown":"Measurements with $Z$ and $CZ$ corrections erase the coefficients and all other scratch qubits at zero $T$ cost."},{"paper":"short","anchor":"block-A6.SS4-block-4","at":"b160426-160500","role":"explanation","origin":"ai","start_byte":160426,"end_byte":160500,"section":"F.4 Interpretation","lean":[{"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]}],"markdown":"puts its coefficient qubit in an equal superposition of $0$ and $1$ states"},{"paper":"short","anchor":"block-A6.SS4-block-4","at":"b160502-160600","role":"explanation","origin":"ai","start_byte":160502,"end_byte":160600,"section":"F.4 Interpretation","lean":[{"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":"Fig. 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]},{"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]}],"markdown":"writes the products as a relative phase between the two branches using $T$ and $T^{\\dagger}$ gates"},{"paper":"short","anchor":"block-A6.SS4-block-4","at":"b160606-160666","role":"explanation","origin":"ai","start_byte":160606,"end_byte":160666,"section":"F.4 Interpretation","lean":[{"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 Fig. 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]}],"markdown":"then makes the branches interfere to get the appropriate bit"},{"paper":"short","anchor":"block-A6.SS4-block-4","at":"b160677-160758","role":"explanation","origin":"ai","start_byte":160677,"end_byte":160758,"section":"F.4 Interpretation","lean":[{"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 Fig. 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"},{"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]}],"markdown":"each inner-product circuit leaves a sign $\\pm 1$ that depends on the specific $s$"},{"paper":"short","anchor":"block-A6.SS4-block-4","at":"b160760-160843","role":"derivation","origin":"ai","start_byte":160760,"end_byte":160843,"section":"F.4 Interpretation","lean":[{"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]}],"markdown":"which is cancelled across each lookup pass with $Z$ and $CZ$ gates at zero $T$ cost"}]},"fusion/resource":{"short":"Logical qubits and spacetime cost bound","lean":[{"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]},{"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]},{"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$."},{"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]}],"statements":[{"paper":"short","anchor":"block-A7.SS1-block-7","at":"b165422-165482","role":"definition","origin":"ai","start_byte":165422,"end_byte":165482,"section":"G.1 Hamiltonian and specification","lean":[{"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]}],"markdown":"we count the $T$ gates of the most expensive outcome branch."},{"paper":"short","anchor":"block-A7.SS4-block-1","at":"b172245-172293","role":"statement","origin":"ai","start_byte":172245,"end_byte":172293,"section":"G.4 Resource counts","lean":[{"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]},{"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$."}],"markdown":"$3{,}948$ system qubits and $390$ clean ancillas"},{"paper":"short","anchor":"block-A7.SS4-block-2","at":"b173275-173330","role":"statement","origin":"ai","start_byte":173275,"end_byte":173330,"section":"G.4 Resource counts","lean":[{"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]}],"markdown":"$229{,}357{,}900{,}876{,}653{,}900$ over all $500$ runs"}]},"fusion/segments":{"short":"Generalized QSP in segments of 1 a.u.","lean":[{"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.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 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]}],"statements":[{"paper":"short","anchor":"block-A7.SS2-block-2","at":"b167534-167563","role":"mention","origin":"ai","start_byte":167534,"end_byte":167563,"section":"G.2 Baseline","lean":[],"markdown":"with one walk step per query.","note":"For the baseline, the leading term in Eq. (13) gives $50\\lambda\\sum_{t=1}^{10}t=50\\cdot55\\lambda\\approx4.7982\\times10^9$ walk steps. With the base-2 logarithmic correction this is about $4.7985\\times10^9$. Charging $24{,}980$ Toffolis per step and four $T$ gates per Toffoli on $5{,}650$ qubits gives about $5.42\\times10^{15}$ in spacetime cost per run."},{"paper":"short","anchor":"block-A7.SS4-block-1","at":"b172626-172692","role":"derivation","origin":"ai","start_byte":172626,"end_byte":172692,"section":"G.4 Resource counts","lean":[{"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]}],"markdown":"The improvements above lower $\\lambda$ to $1.356\\times 10^{5}$ Ha."},{"paper":"short","anchor":"block-A7.SS4-block-1","at":"b172693-172754","role":"statement","origin":"ai","start_byte":172693,"end_byte":172754,"section":"G.4 Resource counts","lean":[{"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]}],"markdown":"Each run of length $t$ is split into $t$ segments of $1$ a.u."},{"paper":"short","anchor":"block-A7.SS4-block-1","at":"b172756-172934","role":"statement","origin":"ai","start_byte":172756,"end_byte":172934,"section":"G.4 Resource counts","lean":[{"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]}],"markdown":"each implemented by generalized QSP \\[[291](<https://arxiv.org/html/2611.09822v3#biba.bibx140>), [292](<https://arxiv.org/html/2611.09822v3#biba.bibx141>)\\] of degree $135{,}867$"}]},"fusion/basis":{"short":"Electron interactions on the real-space grid","lean":[{"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]}],"statements":[{"paper":"short","anchor":"block-A7.SS3-block-2","at":"b169445-169508","role":"explanation","origin":"ai","start_byte":169445,"end_byte":169508,"section":"G.3 Main improvements","lean":[{"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]}],"markdown":"Fourier transforms all electrons to a real-space grid each step"},{"paper":"short","anchor":"block-A7.SS3-block-2","at":"b170978-171034","role":"mention","origin":"ai","start_byte":170978,"end_byte":171034,"section":"G.3 Main improvements","lean":[],"markdown":"with the subroutine applied only to the short-range part","note":"Appendix G.3 splits the potential at $1.4$ Ha. The short-range part uses an occupation count at a point, where the larger weights justify its circuit cost. The long-range part is summed over pairs and contributes $0.74$ Ha per pair."}]},"photochemistry/spacetime":{"short":"Logical qubits times T count for the simulation","lean":[{"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":"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.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$."},{"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"}],"statements":[{"paper":"short","anchor":"block-A8.SS1-block-5","at":"b176729-176780","role":"definition","origin":"ai","start_byte":176729,"end_byte":176780,"section":"H.1 Hamiltonian and specification","lean":[{"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]}],"markdown":"we count the $T$ gates of the most expensive branch"},{"paper":"short","anchor":"block-A8.SS4-block-1","at":"b186363-186453","role":"statement","origin":"ai","start_byte":186363,"end_byte":186453,"section":"H.4 Resource counts","lean":[{"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$."}],"markdown":"$Q=6{,}033$ logical qubits, consisting of $5{,}616$ system qubits and $417$ clean ancillas"},{"paper":"short","anchor":"block-A8.SS4-block-2","at":"b188427-188473","role":"statement","origin":"ai","start_byte":188427,"end_byte":188473,"section":"H.4 Resource counts","lean":[{"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"}],"markdown":"$Q\\cdot\\mathcal{T}=605{,}980{,}010{,}227{,}389"}]},"photochemistry/copy-uncompute":{"short":"Copying particle coordinates and clearing them by measurement","lean":[{"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.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]},{"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]},{"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"}],"statements":[{"paper":"short","anchor":"block-A8.SS3-block-2","at":"b183240-183350","role":"explanation","origin":"ai","start_byte":183240,"end_byte":183350,"section":"H.3 Main improvements","lean":[{"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]}],"markdown":"our solution copies the selected coordinates into an ancilla register, leaving the particle register untouched"},{"paper":"short","anchor":"block-A8.SS3-block-2","at":"b183415-183493","role":"explanation","origin":"ai","start_byte":183415,"end_byte":183493,"section":"H.3 Main improvements","lean":[{"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]}],"markdown":"mid-circuit Pauli-$X$ measurements and classically controlled $CZ$ corrections"},{"paper":"short","anchor":"block-A8.SS4-block-2","at":"b186915-186963","role":"statement","origin":"ai","start_byte":186915,"end_byte":186963,"section":"H.4 Resource counts","lean":[{"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]}],"markdown":"$908\\;T$ for $X$-basis measurement uncomputation"}]},"photochemistry/bernstein":{"short":"Inverse distance from three comparisons and a Bernstein lookup","lean":[{"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.","proof_lines":[970,978]},{"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]},{"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]}],"statements":[{"paper":"short","anchor":"block-A8.SS3-block-3","at":"b185135-185219","role":"explanation","origin":"ai","start_byte":185135,"end_byte":185219,"section":"H.3 Main improvements","lean":[{"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.","proof_lines":[970,978]}],"markdown":"It compares $\\tilde{r}^{2}$ against three ancilla registers in uniform superposition"},{"paper":"short","anchor":"block-A8.SS3-block-3","at":"b185343-185383","role":"explanation","origin":"ai","start_byte":185343,"end_byte":185383,"section":"H.3 Main improvements","lean":[{"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]}],"markdown":"then gives the polynomial in expectation"},{"paper":"short","anchor":"block-A8.SS4-block-2","at":"b187052-187094","role":"statement","origin":"ai","start_byte":187052,"end_byte":187094,"section":"H.4 Resource counts","lean":[{"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]}],"markdown":"$3{,}060\\;T$ for the $512$-entry Bernstein"}]},"photochemistry/multiplicities":{"short":"Preparing interaction weights by counting basis states","lean":[{"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]}],"statements":[{"paper":"short","anchor":"block-A8.SS3-block-4","at":"b185803-185928","role":"explanation","origin":"ai","start_byte":185803,"end_byte":185928,"section":"H.3 Main improvements","lean":[{"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]}],"markdown":"a uniform superposition of basis states is prepared and a reversible classical circuit assigns $Z_{i}$ states to each nucleus"},{"paper":"short","anchor":"block-A8.SS3-block-4","at":"b186110-186177","role":"derivation","origin":"ai","start_byte":186110,"end_byte":186177,"section":"H.3 Main improvements","lean":[{"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]}],"markdown":"Our solution applies this to every weight of the linear combination"}]},"photochemistry/qsp":{"short":"From generalized QSP rotations to a Clifford+T circuit","lean":[{"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"},{"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]},{"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]},{"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]},{"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]}],"statements":[{"paper":"short","anchor":"block-A8.SS4-block-1","at":"b186531-186582","role":"statement","origin":"ai","start_byte":186531,"end_byte":186582,"section":"H.4 Resource counts","lean":[{"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"},{"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]}],"markdown":"block-encoding scale $\\alpha=8.045\\times 10^{4}$ Ha"},{"paper":"short","anchor":"block-A8.SS4-block-1","at":"b186587-186627","role":"statement","origin":"ai","start_byte":186587,"end_byte":186627,"section":"H.4 Resource counts","lean":[{"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]}],"markdown":"generalized QSP degree $d=3{,}326{,}847$"},{"paper":"short","anchor":"block-A8.SS4-block-2","at":"b187278-187334","role":"statement","origin":"ai","start_byte":187278,"end_byte":187334,"section":"H.4 Resource counts","lean":[{"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]}],"markdown":"fixes both the $3{,}326{,}848$ generalized QSP rotations"},{"paper":"short","anchor":"block-A8.SS4-block-2","at":"b187724-187786","role":"derivation","origin":"ai","start_byte":187724,"end_byte":187786,"section":"H.4 Resource counts","lean":[{"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]}],"markdown":"so it certifies their $T$ count and error without listing them"},{"paper":"short","anchor":"block-A8.SS4-block-2","at":"b187905-187946","role":"mention","origin":"ai","start_byte":187905,"end_byte":187946,"section":"H.4 Resource counts","lean":[],"markdown":"but have not been computed at this degree","note":"The proof first establishes that the ideal rotations exist, then establishes that Clifford+T words of bounded cost give the required approximation. Listing the circuit would require computing a polynomial factorization at degree $3{,}326{,}847$ and selecting the resulting gate words. The paper reports that the rotations at this degree have yet to be computed."}]},"photochemistry/per-walk":{"short":"T counts for uncontrolled and controlled walk steps","lean":[{"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"},{"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]}],"statements":[{"paper":"short","anchor":"block-A8.SS4-block-2","at":"b186665-186771","role":"statement","origin":"ai","start_byte":186665,"end_byte":186771,"section":"H.4 Resource counts","lean":[{"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"}],"markdown":"Each uncontrolled walk step uses $30{,}116$ $T$ gates ($30{,}132\\;T$ on the two boundary controlled steps)"},{"paper":"short","anchor":"block-A8.SS4-block-2","at":"b187190-187258","role":"statement","origin":"ai","start_byte":187190,"end_byte":187258,"section":"H.4 Resource counts","lean":[{"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]}],"markdown":"$76\\;T$ per step for QSP rotations and $245\\;T$ of one-time overhead"}]},"p450/input-and-initialization":{"short":"Eigenstate input and zero-initialized ancillas","lean":[{"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":"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]},{"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 Eq. (20).","proof_lines":[133,142],"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":"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]}],"statements":[{"paper":"short","anchor":"block-A9.SS1-block-6","at":"b191722-191784","role":"statement","origin":"ai","start_byte":191722,"end_byte":191784,"section":"I.1 Hamiltonian and specification","lean":[{"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]},{"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]}],"markdown":"We cost one run of phase estimation on the $116$ system qubits"},{"paper":"short","anchor":"block-A9.SS1-block-6","at":"b191786-191838","role":"definition","origin":"ai","start_byte":191786,"end_byte":191838,"section":"I.1 Hamiltonian and specification","lean":[{"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]}],"markdown":"started in a $63$-electron eigenstate $|\\psi\\rangle$"},{"paper":"short","anchor":"block-A9.SS1-block-6","at":"b192662-192691","role":"mention","origin":"ai","start_byte":192662,"end_byte":192691,"section":"I.1 Hamiltonian and specification","lean":[],"markdown":"we do not count this overhead","note":"A trial state with squared ground-state overlap 0.1 samples the ground-state component once every ten independent ideal phase-estimation runs on average. This entails ten preparations and ten circuit runs on average. Recognizing ground-state outcomes at finite precision requires a separate argument."},{"paper":"short","anchor":"block-A9.SS1-block-12","at":"b196201-196246","role":"definition","origin":"ai","start_byte":196201,"end_byte":196246,"section":"I.1 Hamiltonian and specification","lean":[{"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 Eq. (20).","proof_lines":[133,142],"fidelity":"same","fidelity_source":"ai"},{"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]}],"markdown":"All ancillas begin in $|0\\rangle^{\\otimes m}$"}]},"p450/paired-one-hot":{"short":"Controlled Givens angles from paired one-hot SELECT","lean":[{"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]},{"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]},{"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$."}],"statements":[{"paper":"short","anchor":"block-A9.SS3-block-1","at":"b202268-202364","role":"explanation","origin":"ai","start_byte":202268,"end_byte":202364,"section":"I.3 Main improvements","lean":[{"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]}],"markdown":"replaces the angle lookups of the baseline with a one-hot register for the chosen orbital vector"},{"paper":"short","anchor":"block-A9.SS3-block-3","at":"b203529-203587","role":"derivation","origin":"ai","start_byte":203529,"end_byte":203587,"section":"I.3 Main improvements","lean":[{"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]}],"markdown":"Our solution instead builds a $145$-qubit one-hot register"},{"paper":"short","anchor":"block-A9.SS3-block-5","at":"b204242-204281","role":"explanation","origin":"ai","start_byte":204242,"end_byte":204281,"section":"I.3 Main improvements","lean":[{"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 Eq. (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]}],"markdown":"are CNOT parities of the one-hot qubits"},{"paper":"short","anchor":"block-A9.SS3-block-5","at":"b204351-204383","role":"explanation","origin":"ai","start_byte":204351,"end_byte":204383,"section":"I.3 Main improvements","lean":[{"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]}],"markdown":"At most one one-hot qubit is set"}]},"p450/inner-loading-share":{"short":"Inner alias loading and SELECT savings per step","lean":[],"statements":[{"paper":"short","anchor":"block-A9.SS3-block-6","at":"b204973-205062","role":"mention","origin":"ai","start_byte":204973,"end_byte":205062,"section":"I.3 Main improvements","lean":[],"markdown":"It keeps a $126$-qubit one-hot register for $(r,c)$ and a $5$-bit binary register for $b$","note":"The lookup returns a five-bit alternate index and a nine-bit keep threshold. Addresses 30 and 31 have zero amplitude in the preparation, so each lookup column can set these values to the parities of the valid even and odd addresses. The Boolean polynomial then has zero coefficients at masks 30 and 31. The compiled lookup uses 33 scratch qubits and 390 T gates."},{"paper":"short","anchor":"block-A9.SS3-block-6","at":"b205264-205320","role":"mention","origin":"ai","start_byte":205264,"end_byte":205320,"section":"I.3 Main improvements","lean":[],"markdown":"accounts for $96\\%$ of the $T$ gates saved per walk step","note":"Each alias lookup saves 1,578 T gates. The full inner preparation saves 3,624 per step in Table S3 and the two SELECT calls save another 14,052. The net saving of 18,398 T gates includes the extra 176 for index decoding and the savings from spin swaps and outer preparation. The two larger savings account for 96.1% in the first eight blocks."}]},"p450/bell-spin-swaps":{"short":"Bell-basis parity for controlled spin swaps","lean":[{"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]}],"statements":[{"paper":"short","anchor":"block-A9.SS3-block-7","at":"b205967-206037","role":"derivation","origin":"ai","start_byte":205967,"end_byte":206037,"section":"I.3 Main improvements","lean":[{"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]}],"markdown":"each block can instead be implemented as a single controlled sign flip"},{"paper":"short","anchor":"block-A9.SS3-block-7","at":"b206377-206410","role":"explanation","origin":"ai","start_byte":206377,"end_byte":206410,"section":"I.3 Main improvements","lean":[{"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]}],"markdown":"one parity serves two swap blocks"}]},"p450/approximation-budget":{"short":"Walk length and the 1 mHa error budget","lean":[{"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":[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]},{"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":"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.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]}],"statements":[{"paper":"short","anchor":"block-A9.SS4-block-2","at":"b207361-207402","role":"statement","origin":"ai","start_byte":207361,"end_byte":207402,"section":"I.4 Resource counts","lean":[{"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.","proof_lines":[648,688]}],"markdown":"The circuit runs $M=47{,}487$ walk steps."},{"paper":"short","anchor":"block-A9.SS4-block-2","at":"b207412-207452","role":"derivation","origin":"ai","start_byte":207412,"end_byte":207452,"section":"I.4 Resource counts","lean":[{"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 Eq. (21) that gap bounds the energy slope and determines the walk length.","proof_lines":[196,196],"fidelity":"same","fidelity_source":"ai"}],"markdown":"$E_{0}\\leq E_{\\mathrm{ub}}=-130.1526$ Ha"},{"paper":"short","anchor":"block-A9.SS4-block-2","at":"b208098-208157","role":"explanation","origin":"ai","start_byte":208098,"end_byte":208157,"section":"I.4 Resource counts","lean":[{"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]}],"markdown":"the correctness proof adds it to the phase-estimation error"}]}},"names":{"QProg":"Commands of the classical-quantum while-language","CQState":"Partial density operators indexed by classical stores","CQAssertion":"An observable for each classical store","ofReal_expect_eq_tsum_support_trace_mul":"Expectation as a sum of traces","expect_top":"Total trace from the identity assertion","CQState.qMeasurement":"Measurement outcomes and partial density operators","CQState.trace_qMeasurement_of_complete":"Trace conservation for a complete measurement","interp":"Classical–quantum program semantics","QMonad.Q.whileRec":"Guard tests in a finite loop unrolling","Triple":"The expectation inequality in a Hoare triple","expect_wp":"Equal expectations before and after execution","wp":"Weakest preconditions for quantum programs","wp_soundness":"Soundness of the weakest precondition","Triple.infer":"A Hoare triple from an expectation bound","expect_mono":"Monotonicity of expectation","Triple.of_le_wp":"Pointwise comparison with the weakest precondition","ResourceCounting.expectedCost":"Resource charges weighted by branch probability","ResourceCounting.CostBound.qWhile":"Expected iteration count times the body cost bound","ResourceCounting.TotalExpectedCostLe":"Trace conservation and a finite expected cost bound","QuantumComputationDiscoveries.Primitives.Arcsin:QuantumComputation.Specs.arcsin_k25_const_cost":"Spacetime bound for the 25-bit arcsin circuit","QuantumComputationSpecs.Primitives.Arcsin:QuantumComputation.Specs.arcsin_k25_const_cost":"Frozen statement of the 25-bit arcsin cost theorem","QuantumComputation.Specs.arcsinSpacetime":"T-gate count times data and ancilla width","QuantumComputation.Specs.SatisfiesArcsinSpacetimeBound":"Zero primitive Toffoli count and a spacetime bound","QuantumComputation.Specs.arcsinK25ConstCost":"Numerical bound of 369,800 for the 25-bit circuit","QuantumComputationSpecs.Algorithms.Grover:QuantumComputation.Specs.groverParallelMarkingOracle":"Parallel marking oracle in the challenge","QuantumComputationSpecs.Algorithms.Grover:QuantumComputation.Specs.AvgOracleCostBound":"Average over marked sets","QuantumComputationSpecs.Algorithms.Grover:QuantumComputation.Specs.vanillaFindAnyCost":"Find-Any scale in the challenge","QuantumComputation.Specs.vanillaFindAllCost":"Find-All reference scale","QuantumComputation.Specs.groverFindAnyCells":"Find-Any grid selector","QuantumComputation.Specs.GroverSolution.gridCells":"Grid test for two parameters","QuantumComputation.Specs.groverFindAllCells":"Find-All grid selector","QuantumComputation.Specs.GroverFindAll.gridElem_iff":"Grid test for one parameter","QuantumComputation.Specs.groverFindAny_correctness":"Find-Any correctness theorem","QuantumComputation.Specs.groverFindAll_correctness":"Find-All correctness theorem","QuantumComputation.Specs.decodeTargets":"Decoding the marked set","QuantumComputation.Specs.groverFindAllProgram":"Find-All program and reset","QuantumComputation.Specs.groverFindAny_rel_cost":"Find-Any round bound for large domains","QuantumComputation.Specs.GroverSolution.FindAny.relCost":"One coefficient for Find-Any","QuantumComputation.Specs.groverFindAll_rel_cost":"Find-All round bound for large domains","QuantumComputation.Specs.GroverFindAll.gridRelCost":"Find-All coefficients by setting","QuantumComputation.Specs.GroverFindAll.arm8_rc":"Equality of Johnson cost coefficients","QuantumComputation.Specs.GroverFindAll.findAllGrid_rel_cost":"Cost proof for each Find-All circuit","QuantumComputation.Specs.GroverFindAll.findAllGridCircuit":"Find-All circuit selection by parameter pair","QuantumComputation.Specs.GroverSolution.FindAny.circuit":"Choice of Find-Any circuit","QuantumComputation.Specs.GroverSolution.card_oddSet_div_two_pow":"Fraction of ordered tuples with odd parity","QuantumComputation.Specs.GroverSolution.FindAny.eigLockCirc":"Weak measurement loop and readout","QuantumComputation.Specs.DickeSol.u0Vec":"Uniform superposition over subsets","QuantumComputation.Specs.DickeSol.sDiagM_mulVec_liftSymVec":"Phase from remaining-target parity","QuantumComputation.Specs.DickeSol.johnsonSingleIter":"One step of the Johnson walk","QuantumComputation.Specs.DickeSol.eigProj":"Johnson eigenspace projectors from subset inclusion","QuantumComputation.Specs.DickeSol.johnsonPassFront":"Batch readout after the walk","QuantumComputation.Specs.DickeSol.johnsonRampMuxSparseCircuit_correctness":"Correctness of the sparse Johnson circuit","QuantumComputation.Specs.groverFindAnyCells_nonempty":"At least one Find-Any setting","QuantumComputation.Specs.groverFindAnyCells_mem_grid":"Grid membership for Find-Any","QuantumComputation.Specs.groverFindAllCells_nonempty":"At least one Find-All setting","QuantumComputation.Specs.groverFindAllCells_mem_grid":"Grid membership for Find-All","QuantumComputation.Specs.GroverSolution.FindAny.loopState_norms":"Probabilities of repeated misses and a click","QuantumComputation.Specs.GroverFindAll.gridQubits":"Qubits for subsets, flags and archive","QuantumComputation.Specs.DickeSol.rmsTagWeightKick_conj_liftSymVec":"Phase kick by marking and uncomputing","QuantumComputation.Specs.DickeSol.symPrefixKickVec":"Sign below or at the cutoff","ResourceCounting.whileRecCost_succ":"Expected cost of a guarded loop","QuantumComputationDiscoveries.Algorithms.GroverFindAny:QuantumComputation.Specs.AvgOracleCostBound":"Average over marked sets in Find-Any","QuantumComputationDiscoveries.Algorithms.GroverFindAny:QuantumComputation.Specs.vanillaFindAnyCost":"Find-Any scale in the solution","QuantumComputation.Specs.groverFindAnyProgram":"Find-Any program and reset","QuantumComputation.Specs.groverTargetSets":"All marked sets of size k","QuantumComputation.Specs.GroverSolution.FindAny.correctness":"Find-Any correctness for any result variable","QuantumComputation.Specs.GroverSolution.FindAny.rel_cost":"A shared bound on expected rounds","QuantumComputationDiscoveries.Algorithms.GroverFindAny:QuantumComputation.Specs.groverParallelMarkingOracle":"Parallel marking oracle in Find-Any","ResourceCounting.CostModel.ofEmbeddedOracle":"Charging one round per embedded oracle","QuantumComputation.Specs.groverFindAnyRelCost":"Submitted Find-Any coefficient","OracleDynamicCircuit.compile":"Translation to the quantum program semantics","QuantumComputationSpecs.Algorithms.Grover:QuantumComputation.Specs.groverSetMarkingOracle":"Single-slot marking oracle in the challenge","QuantumComputationDiscoveries.Algorithms.GroverFindAny:QuantumComputation.Specs.groverSetMarkingOracle":"Single-slot marking oracle in Find-Any","QRegister.block":"Contiguous slot register","QRegister.embedUnitary":"Embed a slot unitary in the full register","Operator.Unitary":"Dimension of a unitary operator","QuantumComputation.Specs.arcsin_correctness":"Uniform approximation and exact modular addition","QuantumComputation.Specs.z25_satisfies_abs_error":"Uniform absolute error of the implemented table","QuantumComputation.Specs.twosCompFixed":"Signed two’s-complement fixed-point decoding","QuantumComputation.Specs.arcsinValidInputs":"Fixed-point codes for [−1, 1]","QuantumComputation.Specs.arcsinTableUnitary":"Unitary for addition of a table entry","RealizesCleanSubroutine":"Hoare specification with zero ancillas at entry and return","QuantumComputation.Specs.arcsinAncillas":"Clean ancillas for the optimized circuit","QuantumComputation.Specs.ArcsinImpl.tCount_fullK25Ops":"Exact symbolic T cost of 3,698","QuantumComputation.Specs.ArcsinImpl.andCount_fullK25Ops":"The 776 temporary AND and relative-phase Toffoli operations","QuantumComputation.Specs.ArcsinImpl.Op102.tCount":"Symbolic T cost by operation","QuantumComputation.Specs.ArcsinImpl.count_T_k25DynCircuit":"Compiled primitive T-count bound of 3,698","QuantumComputation.Specs.ArcsinImpl.z25Delta":"Sign restoration by two’s-complement negation","QuantumComputation.Specs.ArcsinImpl.rawDelta25_8388608":"The output code 13,176,795 at +1","QuantumComputation.Specs.ArcsinImpl.rawDelta25_pos_lt8388608":"Unsigned circuit output and its interval formula","QuantumComputation.Specs.ArcsinImpl.ptPosOK25_all":"Error and arithmetic bounds on the interior grid","QuantumComputation.Specs.ArcsinImpl.PtPosOK25":"Error, subtraction and output-code conditions","QuantumComputation.Specs.ArcsinImpl.hGadgetCircuit_mulVec_ket":"Basis-state action and phase of an inner-product gadget","QuantumComputation.Specs.ArcsinImpl.exec_fullK25Ops":"Input restoration, ancilla cleanup and modular addition","QuantumComputation.Specs.ArcsinImpl.realizesCleanSubroutine_compileList102":"Clean unitary action from the phase-aware basis calculation","QuantumComputation.Specs.ArcsinImpl.count_T_fixupQuad":"Zero-T correction after measurement","QuantumComputation.Specs.ArcsinImpl.s1AddVal_of_lt":"The linear term |y| in the first addition","QuantumComputation.Specs.ArcsinImpl.deltaPos25":"Fixed-point interval formula with truncation","QuantumComputation.Specs.ArcsinImpl.hGadgetCircuit":"Hadamard and phase sequence for a coefficient bit","QuantumComputation.Specs.ArcsinImpl.count_T_hGadgetCircuit":"T and T† count of one inner-product gadget","QuantumComputation.Specs.ArcsinImpl.hGadgetPhase":"Residual phase of an inner-product gadget","QuantumComputation.Specs.ArcsinImpl.exec_preOps102_slice":"Sign cancellation in each lookup pass","QuantumComputation.Specs.ArcsinImpl.Op102.count_T_compile":"Primitive T-count bound for a compiled operation","QuantumComputation.Specs.ArcsinImpl.s3aAllSeq":"26 inner-product gadgets before adding A","QuantumComputation.Specs.ArcsinImpl.s3bPostOps":"15 inner-product gadgets after adding A","QuantumComputation.Specs.ArcsinImpl.tCount_s3a":"First lookup stage with symbolic T cost 496","QuantumComputation.Specs.ArcsinImpl.tCount_s3b":"Adding A and the second lookup at symbolic T cost 398","QuantumComputation.Specs.fallbackZ_satisfies_abs_error":"Half-grid-step error for the rounded table","QuantumComputation.Specs.ArcsinImpl.leafP_0":"First certificate row with three 64-code blocks","QuantumComputation.Specs.SatisfiesArcsinAbsError":"Absolute error after decoding y and z","QuantumComputation.Specs.arcsinProgram":"Dynamic circuit for reversible fixed-point arcsin","QuantumComputation.Specs.ArcsinPrec.k25":"Benchmark width 25 and tolerance 1.25 × 10⁻⁷","QuantumComputation.Specs.stoppingPower_correctness":"One compiled unitary for every spin partition","QuantumComputation.Specs.stoppingPower_const_cost":"Spacetime bound for 500 evolutions","QuantumComputation.Specs.stoppingPowerConstCost":"Spacetime cost cap for 500 evolutions","QuantumComputation.Specs.stoppingPowerAncillas":"390 clean ancillas","QuantumComputation.Specs.stoppingPowerProgram":"Circuit for evolution to t = j + 1","QuantumComputation.Specs.StoppingPower.systemQubits":"3,948 system qubits","QuantumComputation.Specs.StoppingPower.IsGridState":"Valid grid encodings and negative zero","QuantumComputation.Specs.StoppingPower.Configuration":"Proton positions and initial projectile momentum","QuantumComputation.Specs.StoppingPower.hamiltonian":"Discretized Hamiltonian on the plane-wave grid","QuantumComputation.Specs.StoppingPower.fermionicProjector":"Projector onto same-spin antisymmetric states","QuantumComputationDiscoveries.Algorithms.StoppingPower:QuantumComputation.Specs.ApproximatesTimeEvolution":"Operator-norm error with zero ancillas","RealizesUnitaryFromBasisOutcomesAndZeroWorkspace":"Unitary realization on selected basis inputs","DynamicCircuit.count":"Gate count with a maximum at each conditional","QuantumComputation.Specs.StoppingPowerSolution.SingleAnchorFermionicPauliCap.nSub_cubic_mul_fermionicProjector_zero":"At most two electrons per spatial orbital","QuantumComputation.Specs.StoppingPowerSolution.PosMod4FermionicBounds.slot2HeadMod4Bit":"Real branch signs from occupation modulo four","QuantumComputation.Specs.StoppingPowerSolution.PosMod4FermionicBounds.slot2HeadMod4Bit_pauliCap_eq":"Branch average 1 − n for at most two electrons","QuantumComputation.Specs.StoppingPowerSolution.PosMod4FermionicBounds.slot2_headMod4_conj_mul_fermionicProjector":"Branch average 1 − N in the displaced orbital","QuantumComputation.Specs.StoppingPowerSolution.InterWalkRSum42Hoist.E_stream42_eq_streamProjOp":"Momentum sum from a zeroed register","QuantumComputation.Specs.StoppingPowerSolution.TierTightSpine.gqsp_ScheduleK1_135598":"One segment per atomic unit of evolution","QuantumComputation.Specs.StoppingPowerSolution.SpecsAux.runScheduleCircuitAdaptive":"Segment repetition between initialization and cleanup","QuantumComputation.Specs.StoppingPowerSolution.ComposableLiveEndpoint.gqsp_HorizonCertTable11":"Generalized QSP certificates of degree 135,867","QuantumComputation.Specs.StoppingPowerSolution.ComposableLiveEndpoint.gqsp_hTotErr11":"Total error at most 10⁻² for each evolution time","QuantumComputation.Specs.photochemistry_correctness":"Error at most 0.01 for every system state at t = 1 fs","QuantumComputationSpecs.Algorithms.StoppingPower:QuantumComputation.Specs.ApproximatesTimeEvolution":"Full-output operator-norm error on clean inputs","QuantumComputation.Specs.photochemistry_const_cost":"Circuit spacetime bound and primitive Toffoli count","QuantumComputation.Specs.photochemistryProgram":"Clifford+T simulation of one femtosecond","QuantumComputation.Specs.photochemistryAncillas":"417 clean ancillas after removing idle wires","QuantumComputation.Specs.photochemistryConstCost":"Logical spacetime bound of 605,980,010,227,389","QuantumComputation.Specs.Photochemistry.systemQubits":"5,616 system qubits","QuantumComputation.Specs.Photochemistry.mass":"Isotopic nuclear masses and electron mass","QuantumComputation.Specs.Photochemistry.kineticEnergy":"Mass-weighted Fourier kinetic energy","QuantumComputation.Specs.Photochemistry.potentialEnergy":"Coulomb potential with pair-specific saturation distances","QuantumComputation.Specs.Photochemistry.hamiltonian":"Discretized Hamiltonian H = T + V","QuantumComputation.Specs.PhotochemistrySolution.WalkCostStack.htUsel_stack":"30,116 T-gate bound for an uncontrolled walk step","QuantumComputation.Specs.PhotochemistrySolution.WalkCostStack.htCsel_stack":"30,132 T-gate bound for a controlled walk step","QuantumComputation.Specs.PhotochemistrySolution.WalkCostStack.hCost_stack_eq":"Exact product of 6,033 qubits and the T-gate budget","QuantumComputation.Specs.PhotochemistrySolution.SubCoin62Certs.blockApprox_wstate_subCoin_sub62":"Operator-norm distance from the shifted, scaled Hamiltonian","QuantumComputation.Specs.PhotochemistrySolution.Stage5StackCerts.alphaTier1WalkFull":"Hamiltonian block-encoding scale α","QuantumComputation.Specs.PhotochemistrySolution.Stage5StackCerts.hs_tier1Walk_full_le_sMax":"Scaled time for the polynomial approximation","QuantumComputation.Specs.PhotochemistrySolution.DiagShiftSpecBridge.approximatesTimeEvolution_of_rescaled_blockEncoding":"Evolution error from the Hamiltonian block approximation","QuantumComputation.Specs.PhotochemistrySolution.CompactCauchy.cleanWalkCertHalf_subCoin_3326847":"Clean-ancilla error from the Jacobi–Anger tail","QuantumComputation.Specs.PhotochemistrySolution.HalfWalk.exists_bidir_of_cleanWalkCertHalf":"Existence of ideal generalized QSP rotations","QuantumComputation.Specs.PhotochemistrySolution.LaplaceHalfTurnkey.exists_jung87_tophad_walk_of_cleanCertHalf":"Existence of gate sequences with bounded T counts and walk error","QuantumComputation.Specs.PhotochemistrySolution.LaplaceHalfTurnkey.jung87TopHadWordsPackHalf_walkCert":"Classical choice of the rotation circuits","QuantumComputation.Specs.PhotochemistrySolution.LaplaceHalfTurnkey.jung87TopHadWordsPackHalf_walkCert_counts":"T-count bounds for the chosen Clifford+T words","QuantumComputation.Specs.PhotochemistrySolution.LaplaceHalfTurnkey.hwalk_of_cleanWalkCertHalf_jung87_tophad_walkCert":"Evolution error under the implemented Hamiltonian block","QuantumComputation.Specs.PhotochemistrySolution.CompactCauchy.tot_err_subCoin_3326847":"Sum of the four evolution error bounds","QuantumComputation.Specs.PhotochemistrySolution.XMeasLinearCleanStep.subspaceStep_xUnloadCzPairsSeqDyn":"X-basis reset of an ancilla holding a parity of products","QuantumComputation.Specs.PhotochemistrySolution.XMeasLinearCleanStep.count_xUnloadCzPairsSeqDyn":"Zero T gates for one-bit X-basis uncomputation","QuantumComputation.Specs.PhotochemistrySolution.Stage5W298.counts_pStage5AlwaysLoInPlaceW298_908":"908 T gates for coordinate uncomputation","QuantumComputation.Specs.PhotochemistrySolution.SubCoin62Certs.sub62_pol_ulp":"Inverse-distance error of the finite lookup","QuantumComputation.Specs.PhotochemistrySolution.Coulomb18K2.popBernJK2":"Bernstein lookup index from finite comparisons","QuantumComputation.Specs.PhotochemistrySolution.Stage1CoinDecode.validOuterW11_decodeTier1W11Opt1424Coin":"Interaction counts and conditional basis-state weights","QuantumComputation.Specs.Photochemistry.gridBits":"Eight qubits per Cartesian coordinate","QuantumComputation.Specs.Photochemistry.boxWidth":"44 Å box width in Bohr radii","QuantumComputation.Specs.Photochemistry.gridSpacing":"Grid spacing across 255 intervals","QuantumComputation.Specs.Photochemistry.twosComplement":"Signed two’s-complement coordinates","QuantumComputation.Specs.Photochemistry.evolutionTime":"One femtosecond in atomic units","QuantumComputation.Specs.p450GroundEnergy_correctness":"Energy error of the compiled circuit","QuantumComputation.Specs.p450GroundEnergy_const_cost":"Worst-case T count and logical spacetime bound","QuantumComputation.Specs.P450.systemQubits":"116 Jordan–Wigner system qubits","QuantumComputation.Specs.MeasuresLowEnergies":"RMS error after capping both energies","QuantumComputation.Specs.PhaseDecoder.energy":"Energy from bits of the phase register","QuantumComputation.Specs.p450GroundEnergyProgram":"Phase-estimation program with measurements","QuantumComputation.Specs.p450GroundEnergyConstCost":"Spacetime bound of 436,509,499,221 qubit–T","QuantumComputationSpecs.Algorithms.P450GroundEnergy.Solution.SevenGearWalk333.mainAncillas":"217 ancillas for the 333-qubit circuit","QuantumComputationSpecs.Algorithms.P450GroundEnergy.Solution.SevenGearWalk333.fast7gUnitProg":"The 47,487-step phase-estimation circuit","QuantumComputationSpecs.Algorithms.P450GroundEnergy.Solution.SevenGearWalk333.fast7gProg_const_cost":"T-count bounds for the walk and phase estimation","QuantumComputationSpecs.Algorithms.P450GroundEnergy.Solution.SevenGearWalk333.fast7gSevenGearCert":"Walk blocks at the scheduled workspace widths","QuantumComputationSpecs.Algorithms.P450GroundEnergy.Solution.Pi145CompactRouter.r55Branch_twoBody":"Signed SELECT on admissible two-body branches","QuantumComputationSpecs.Algorithms.P450GroundEnergy.Solution.CompactCore145Bundle.compactCoreTCount":"T count of one SELECT core by workspace","QuantumComputationSpecs.Algorithms.P450GroundEnergy.Solution.BellAsymCore.cleanRealizesSet_bellFiveStepNoNegCoreSliceDyn_asym":"Two clean SELECT calls with shared Bell parity","QuantumComputationSpecs.Algorithms.P450GroundEnergy.Solution.TightGapDeep63.p450RefVarBound_tightGapDeep63":"Variational upper bound on the cutoff","QuantumComputation.Specs.P450GroundEnergy.TopBridge.mainHeff_agree":"Operator error on the 63-electron sector","QuantumComputationSpecs.Algorithms.P450GroundEnergy.Solution.TailShiftBox.dh4000":"Hamiltonian error allowance of 4 × 10⁻⁷ Ha","QuantumComputationSpecs.Algorithms.P450GroundEnergy.Solution.TailShiftBox.g_deep63":"Upper bound on the range of capped energies","QuantumComputationSpecs.Algorithms.P450GroundEnergy.Solution.mse_impl_le_of_ideal_and_perturbation":"RMS energy bound for the implemented output state","QuantumComputationSpecs.Algorithms.P450GroundEnergy.Solution.TwoGearQPEPhase5.capped_perturbed_measuresLowEnergiesAt_box_tg":"Phase estimation, Hamiltonian and circuit errors","QuantumComputation.Specs.P450GroundEnergy.TopBridge.fast7g_estTransferHyp":"From spin-blocked orbitals to the fixed Hamiltonian","QuantumComputation.Specs.P450GroundEnergy.TopBridge.solution_fg_correctness":"Correctness of the 47,487-step circuit"},"dictionary":[],"steps":{}}
