Alphabeta Math
AlgorithmAlgorithm: Literature-sourcedProof: Not applicablePipeline-generated
How statement and proof provenance work

The first chip identifies the source of the statement or construction; the second identifies the source of its local proof or verification.

  • Literature-sourced: the exact statement appears in a cited source; only wording and notation differ.
  • AI-adapted: a semantically identical restatement of literature-sourced material, modulo indexing, notation, and boundary cases adopted by the library.
  • AI-generated: a genuinely novel statement formulated by AI, with no source for the claim itself.

These labels describe origin, not correctness: citations and verification chips remain separate evidence.

MNRS finite reversible-walk finding

Definition

This is the finite-generation and execution procedure OP2 in research/quantum-algorithms-planning/operational-contracts.md, section “OP2 — MNRS approximate reflection and finite tolerant recursive finding”, transcribed with its declared constants and charged branches.

Input. A finite ergodic reversible row chain (X,P,π) with πx>0, a supplied positive dyadic rational lower absolute-gap bound δ0, a dyadic rational marked-mass lower bound ε0>0 with promise π(M)=0 or π(M)≥ε0, a coherent marked-bit check of cost C, and a dyadic rational failure target ρ∈(0,1). These finite parameter encodings suffice for real positive promises: choose dyadic lower bounds within a factor of two of the gap and nonzero marked-mass bounds, and a dyadic target in (ρ∗/2,ρ∗] for desired failure probability ρ∗. Write ∣π⟩=∑x∈Xπx∣x⟩ and let T∣x⟩=∣x⟩∑yPxy∣y⟩ be the row isometry of Szegedy row-preparation map and discriminant. The supplied clean preparation Aπ maps its specified blank input to the stationary edge state ∣πedge⟩=T∣π⟩=∑x∈Xπx∣x⟩∑y∈XPxy∣y⟩, returns all its work registers to their specified blank states, and has charged cost S. The row-access interface of Finite row-preparation access model for a Szegedy walk supplies the row-preparation unitary VP, its inverse, controlled forward and inverse calls, the clean-state reflection R0 and its controlled call, and the swap S and its controlled call. On the clean-work logical walk space these implement RA=2TT∗−I=VPR0VP∗, U=SRA, and W=U2, with each constituent charged. Supply controlled calls to W and W∗ for the coherent QPE circuits and an exact controlled RA for the all-zero branch. A single bound U0 covers each controlled W or W∗ call and the controlled RA call, including their factorwise implementation costs. A matrix P alone supplies none of these circuits.

Marked check and retained-state instrument. Write m(x)=1M(x). The supplied exact coherent check is a unitary BM with separately supplied inverse and specified fresh flag F and scratch J. On the declared logical encoding it satisfies, for every x∈X, b∈{0,1}, and vector η of all existing remaining registers, BM(∣x⟩∣η⟩∣b⟩F∣0⟩J)=∣x⟩∣η⟩∣b⊕m(x)⟩F∣0⟩J. Its unitary extension outside the logical encoding is supplied too. Thus it preserves the first label and every existing walk, phase, data, and work auxiliary on clean new scratch. In the relevant query/check cost coordinates, C bounds each forward and inverse check call; declare the flag-readout cost separately and include it in C in any coordinate that counts readout as a check. A flag readout uses no value-oracle query. Gate, output-bit, and new flag/scratch costs are separately priced.

On the whole existing register space set Π1=ΠM=(∑x∈M∣x⟩⟨x∣)⊗Irest and Π0=I−ΠM, with identity on every existing auxiliary, including every retained Kj. Every marked/unmarked test below uses the specified Lüders instrument Ia(Z)=ΠaZΠa,a∈{0,1}, in the sense of Finite instruments and conditional states: its positive-probability conditional density is Ia(Z)/tr⁡(Ia(Z)); no conditional state is assigned when that trace is zero. Execute the test by appending ∣0⟩F∣0⟩J, applying BM, reading only the fresh flag with the explicitly chosen computational-basis Lüders maps Y↦QaYQa, where Qa=I⊗∣a⟩⟨a∣F⊗IJ, storing a in the classical output record, and applying BM∗ to return the fresh flag and scratch to zero. Retain every pre-existing register; on an unmarked result read no finer first-label information. A marked result may then be followed by label readout and verification for output. Charge one forward check, one inverse check, and one flag readout per test, hence O(C) in the stated query/check profile. The recursive marked phase flip is implemented by BM, a phase −1 on flag 1, and BM∗, also with both calls charged.

Approximate stationary reflection R(β). Set s=min⁡{q≥1:4qδ0≥64} and k=min⁡{j≥1:2jβ≥2}, using exact integer/rational comparisons. With Q=2s, these comparisons give Q≥8/δ0>2π/δ0 using π<4 from The Gregory-Leibniz series: pi over four equals 1-1/3+1/5-1/7+.... Append k separate s-bit zero phase registers. Coherently execute the finite QPE circuit prefix from Quantum phase estimation on W in each register, using the declared controlled powers. This prefix is a unitary circuit on the full walk register and is executed on arbitrary walk states, including superpositions; the eigenvector input in the QPE analysis is not a restriction on the circuit's action. Do not measure these phase registers. If at least one phase register is nonzero, apply −I to the walk state. If all are zero, apply the exact controlled row-space reflection RA=2TT∗−I using the charged row-preparation, inverse, and clean-state reflection calls. Reverse the k coherent QPE prefixes in reverse chronological order, using the supplied controlled inverse powers. Charge 2k(2s−1) controlled W and W∗ calls, the controlled RA branch, all-zero comparisons, phase-register gates, and the allocated classical arithmetic. The all-zero branch is required: W has the extra zero-phase subspace A⊥∩B⊥, where RA=−I, while RA=+I on the stationary state.

Recursive circuit Ai. Let γ=1/120, βi=γ/(16i2) for i≥1, and A0=I. For i>0, allocate a fresh Ki for R(βi) and execute chronologically: (i) Ai−1, the marked phase flip, and Ai−1†; (ii) coherently test every older Kj, j<i, applying −I if any is nonzero and otherwise applying R(βi) on the walk and fresh Ki; compute and uncompute the control predicate; (iii) apply Ai−1. Each βi is rational, and the ki loop in R(βi) is an exact rational comparison. An inverse means the exact reversed finite gate list, not a reset of measured work.

Tolerant finding wrapper. If ε0≥1/2, take ns=min⁡{n≥1:2−n≤ρ} fresh stationary samples, verify each label, return the first marked label, and output NO MARKED if all fail. Otherwise, let tmax⁡ be the least integer t≥0 such that 3tarcsin⁡ε0≥π/4. Determine it by the exact algebraic threshold comparison ε0≥sin⁡2(π/(4⋅3t)); equality takes the ≥ branch. Let nout=min⁡{n≥1:(19/20)n≤ρ}, found by exact rational comparisons. In each outer trial:

  1. Prepare a fresh stationary sample, test its first label, and return it if marked.
  2. Prepare a fresh stationary walk state with all K1,…,Ktmax⁡ zero.
  3. For i=1,…,tmax⁡, apply Ai, execute the marked/unmarked Lüders test specified above, and on a marked outcome read, verify, and return the label. On an unmarked outcome retain the conditional current state and all auxiliary registers, and continue; do not reprepare or reset them.
  4. If no level succeeds, discard the trial and begin the next fresh outer trial.

If all trials fail, output NO MARKED. Every loop has a finite cap; all confidence calculations, comparisons, reversible predicates, retained auxiliary space, state preparation, update, inverse, controlled, reflection, and check costs are charged. In the ε0≥1/2 branch, the cap above gives false-negative probability at most ρ; in the other branch correctness and the sharper cost are proved separately in Finite reversible-walk finding cost.

Depends on

Used by

Dependency tree · two levels

72 results within two dependency steps of this one, each drawn at its shortest distance from it. An arrow runs from a result to what uses it, so the chart reads left to right and ends at this result, which carries a heavier outline. Every node is a link to that result. Click elsewhere on the chart to enlarge it.

Sources