Alphabeta Math
Pipeline-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.

Quantum Query Lower Bounds and Search Optimality

1 · Prerequisites

2 · Summary

This page fixes the standard XOR bit-query model, the empty-versus-singleton promise, and the query-address projectors. It proves the BBBV lower bound directly for this bit oracle: a one-query perturbation estimate, a telescoping hybrid bound, a complete address-probability budget, and a bounded-error acceptance gap yield an explicit square-root lower bound. A finding algorithm is reduced to decision by one charged verification query.

The matching upper bound uses a fixed-one Grover schedule even though the promise allows zero marked items. For non-dyadic domains, a reversible validity test and zero-completed oracle simulate a padded power-of-two query using one raw query. Every measured candidate is verified, so the empty input never produces a false positive. The page separates oracle queries from comparator, recurrence, gate, and state-preparation costs and makes no end-to-end polynomial-time claim.

Sources

  • Charles H. Bennett, Ethan Bernstein, Gilles Brassard, and Umesh Vazirani, Strengths and Weaknesses of Quantum Computing, §3.1, Theorem 3.3 and Corollary 3.4. Full text. The local proof specializes the query-magnitude argument to empty-versus-singleton search; it does not substitute the paper's random-oracle Theorem 3.5.
  • Andrew M. Childs, Lecture Notes on Quantum Algorithms, Chapter 23, §§23.2–23.3. Full lecture notes. The adversary derivation and unstructured-search example independently support the query-address and square-root lower-bound context.
  • Ronald de Wolf, Quantum Computing: Lecture Notes, §§7.2 and 11.1–11.3. Full lecture notes. The Grover rotation and query model are cross-checked against the local exact arguments.
  • Gilles Brassard, Peter Høyer, Michele Mosca, and Alain Tapp, Quantum Amplitude Amplification and Estimation, §2.1, Theorem 2. Full text. The exact integer schedule is supported by the local recurrence and rounding suppliers.

3 · Logical flowchart

4 · Definitions, theorems and proofs

LemmaStatement: Literature-sourcedProof: AI-generatedOpen item page →

Coherent normal form for finite quantum query algorithms

Statement

For every N≥1 and x∈{0,1}N, let the address register have ordered basis ∣0⟩,…,∣N−1⟩, let the response register be one qubit, and let the standard Boolean XOR query act by Ox∣j,b,w⟩=∣j,b⊕xj+1,w⟩(0≤j<N). Fix an integer T≥0, a finite register space, and a finite-branch quantum query algorithm whose every execution branch makes at most T calls to this oracle. There is a finite pure-state unitary circuit, with input-independent unitaries between exactly T ordinary oracle calls and a final output measurement, that has the same output distribution. The construction adds only finite ancillas and nonoracle gates; it does not require controlled access to the oracle and makes no claim that the transformed family is uniformly generated or has bounded gate cost.

Facts & Assumptions

Given: A finite-branch quantum query algorithm on a nonzero finite register, with finite outcome sets, input-independent nonoracle operations, and at most T standard Boolean XOR queries on every branch.

[F1]

Quantum query algorithm: the algorithm has a finite execution tree of unitary and instrument nodes, and every branch uses at most T designated oracle calls.

[F2]

Normalized output law for finite quantum query branches: an instrument branch has its specified outcome weight and conditional state; the output law is the finite sum over terminal histories.

[F3]

Finite instruments and conditional states: each finite instrument consists of completely positive outcome maps whose traces sum to the input trace.

[F4]

Kraus and Choi characterizations of complete positivity: every finite-dimensional completely positive map has a finite Kraus representation.

[F5]

Finite Kraus representation: a finite Kraus family represents Φ by Φ(X)=∑jKjXKj† for every operator X.

[F6]

Trace preservation is Kraus normalization: a trace-preserving map with finite Kraus operators Kj satisfies ∑jKj†Kj=I.

[F8]

The oracle action in the Statement is an involution on the finite product basis, hence a unitary; it preserves each address and acts on the response there as either I or X. Both actions fix ∣+⟩. When N=2n, this is the standard bit query of Standard bit-flip query convention under the big-endian address encoding.

[F9]

Finite registers and their ordered computational bases and The computational basis is orthonormal: the declared finite register has its ordered orthonormal computational basis.

[F10]

Every finite-dimensional real or complex inner product space has an orthonormal basis: every finite-dimensional inner-product space has an orthonormal basis.

[F11]

Exact one-qubit gates and rotations: the Hadamard gate sends ∣0⟩ to ∣+⟩=(∣0⟩+∣1⟩)/2.

[F12]

Toffoli and Fredkin gates: a Fredkin gate swaps its two target wires exactly when its control wire is 1.

Proof

1.1F3F4F5F6choose

At an instrument node with outcome maps (Ia)a∈Ω, choose a finite Kraus family (Ka,r)r for each Ia by [F3]–[F4]. The formula in [F5] shows that their union is a Kraus family for the total map Φ=∑aIa. The trace identity in [F3] makes Φ trace-preserving, so [F6] gives ∑a,rKa,r†Ka,r=I.

1.2givenF1F8F9F11F12algebra

Label every node of the finite execution tree by the number of oracle calls already made on its path. For each t<T, order the finitely many nonoracle nodes in that query-count slice by tree depth, execute each node on histories with its observed-outcome prefix, and use the identity on histories already at their next query or terminal node. This places every next query at one common slot while preserving each branch's transitions; histories that have terminated are inactive in this and every later slot. The retained outcome history identifies the branches that still make a query. On every inactive branch, conditionally swap the caller's entire N-level address register with a fresh register of the same dimension initialized to ∣0⟩, and swap the caller's response qubit with a fresh qubit initialized to ∣+⟩, prepared using H from [F11]. The address-register swap is the finite basis permutation exchanging the two ordered register factors; controlling it on the retained history gives a finite input-independent unitary. After the ordinary oracle call, reverse both conditional swaps. On an inactive branch the oracle acts on ∣0⟩∣+⟩ as either I or X on the response, both of which fix ∣+⟩; the caller's address and response, including any entanglement with work, are restored. Active branches are unchanged, so this pads the slot without controlled oracle access.

2.1F5F7F9step 1.1algebra

Add a finite label register L with orthonormal basis ∣a,r⟩L and use the same factor order throughout, defining V:H→L⊗H by Vψ=∑a,r∣a,r⟩L⊗Ka,rψ. Orthonormality [F9], the adjoint identity [F7], and step 1.1 give ⟨Vψ,Vϕ⟩=∑a,r⟨Ka,rψ,Ka,rϕ⟩=⟨ψ,ϕ⟩; hence V is an isometry. For any density operator ρ, projecting the label onto the outcome subspace spanned by {∣a,r⟩L:r} and discarding the label leaves ∑rKa,rρKa,r†; orthogonality removes all unequal-label cross terms. By [F5] this is exactly Ia(ρ).

3.1F9F10step 2.1construct

In the common codomain L⊗H, let Jψ=∣0⟩L⊗ψ be the clean-ancilla embedding. The images under J and V of one orthonormal basis of H are orthonormal lists of the same finite length in this same finite-dimensional space. Choose a finite spanning basis by [F10]; process it in order, subtracting its projections onto the current list and appending the normalized nonzero remainder. This finite Gram–Schmidt procedure completes each list to an orthonormal basis. Mapping the first completed basis to the second defines a unitary U with UJ=V, so the instrument node is realized by an ordinary unitary and retained outcome/Kraus labels.

4.1F1F2step 2.1step 3.1induction

Keep each observed outcome in an orthogonal record register; hidden Kraus labels remain orthogonal environment labels and are not used by later controls. Induct over the finite execution tree, comparing the unnormalized system density for each observed history after tracing out its hidden labels. A unitary node applies the same branch unitary on every hidden-label subspace, and an instrument node has child reduced density Ia(ρ) by step 2.1, so each history's unnormalized system density agrees with the original instrument computation. At terminal histories, measuring the declared output and ignoring the orthogonal records therefore gives exactly the output law in [F2].

5.1F1F2F6step 1.1step 1.2step 2.1step 3.1step 4.1∎

Insert one such ordinary call in each of the T slots, using input-independent history controls for active and padded branches. Steps 1.1–4.1 preserve every output probability, and step 1.2 pads only branches with fewer than T calls. Thus the resulting pure-state circuit has exactly T ordinary XOR calls and the original output distribution.

DefinitionDefinition: AI-adaptedProof: AI-generatedOpen item page →

Boolean oracle query model for search lower bounds

Definition

Let N≥1, let the input be a bit string x=(x1,…,xN)∈{0,1}N, and let the address register have ordered orthonormal basis ∣0⟩,…,∣N−1⟩ in the finite-dimensional register of Finite registers and their ordered computational bases. A standard Boolean query acts on address, response bit, and work register by Ox∣j,b,w⟩=∣j,b⊕xj+1,w⟩,0≤j<N. The response register is one qubit and the work register is any declared finite tensor product. For N=2n, this is the standard bit query of Standard bit-flip query convention under the big-endian address encoding; for general N, it is the same XOR basis action on the N-level address register.

A T-query algorithm is a finite circuit whose only input-dependent operations are at most T invocations of Ox on every execution branch. By Coherent normal form for finite quantum query algorithms, it may be analyzed as a pure initial unit vector, input-independent unitaries between exactly T ordinary queries, and one final measurement. The query coordinate counts these oracle invocations under Quantum query complexity; response preparation, verification queries, gates, and classical work are stated separately. No controlled access to Ox follows from an ordinary query.

For a decision task, bounded error means the correct answer has probability at least 2/3 on every promised input, as in Worst-case bounded-error correctness. For a finding task, the same threshold applies to producing a valid witness on each promised input. The normal-form construction is finite for each input length; this definition makes no claim about its additional gate cost or preservation of a particular uniform generator.

Facts & Assumptions

Given: N≥1, a Boolean string x∈{0,1}N, the ordered address basis, one response bit, and finite work registers.

[F1]

Finite registers and their ordered computational bases: the N-level address register has ordered basis ∣0⟩,…,∣N−1⟩, and the response register has basis ∣0⟩,∣1⟩.

[F2]

The computational basis is orthonormal: these declared computational bases are orthonormal bases.

[F3]

Standard bit-flip query convention: the standard Boolean function oracle preserves its address and XORs the function value into its response register.

[F4]

The product basis is orthonormal and tensor dimensions multiply: the product of the declared address, response, and work bases is an orthonormal basis.

Proof

1.1givenF1F3algebra

Applying the displayed Ox twice to a basis vector gives ∣j,(b⊕xj+1)⊕xj+1,w⟩=∣j,b,w⟩. Thus it is an involution on the declared product basis.

2.1F1F2F3F4step 1.1algebra∎

By [F1], [F2], and [F4], the input and response basis vectors, tensored with any work basis, form a finite orthonormal basis. Step 1.1 shows that Ox permutes this basis, so its linear extension is unitary. For N=2n it is the standard query in [F3] with the address labeling fixed in the Definition; for general N it is the same XOR permutation on the N-level address basis.

AlgorithmAlgorithm: AI-adaptedProof: Not applicableOpen item page →

Reversible zero-completion of an N-address bit query

Definition

Input: An integer N≥1, a power of two M=2m with N≤M<2N, a padded address register AM with basis ∣j⟩ for 0≤j<M, a response bit, and the raw XOR oracle Ox whose address input is the N-level register with basis ∣q⟩ for 0≤q<N. If N=M, identify AM with the raw address register. If N<M, supply a separate clean N-level raw-address register QN initialized to ∣0⟩, together with clean comparator and routing workspace.

Output: The zero-completed query action ∣j,b⟩↦∣j,b⊕x~j⟩ on AM and the response bit, where x~j=xj+1 for j<N and x~j=0 for j≥N, with every added register restored to its specified computational-basis zero state.

Instructions:

  1. If N=M, call Ox directly on AM and the response bit, then return. If N<M, continue with Steps 2--5.
  2. Compute the validity bit v=[j<N] into a clean bit by a reversible binary comparison. For most-significant-first address bits jr and the fixed binary digits Nr, initialize E0=1,L0=0 and update Er+1=Er∧((jr∧Nr)∨(¬jr∧¬Nr)),Lr+1=Lr∨(Er∧¬jr∧Nr). Implement this Boolean comparison into the validity bit with Reversible embedding of a Boolean circuit, leaving its comparison workspace clean. The raw query address is an N-level register, not an m-bit target. Route it as follows. For each j=1,…,N−1, apply the basis transposition (0 j) to QN conditioned on AM=j and v=1; apply no transposition for other control values. These mutually disjoint controlled permutations define a finite input-independent unitary RN,M, with RN,M∣j⟩AM∣0⟩QN∣v⟩=∣j⟩AM∣q(j,v)⟩QN∣v⟩, where q(j,v)=j if v=1 and j<N, and q(j,v)=0 otherwise. In particular, on the computed validity bit it writes j for valid padded addresses and 0 for invalid ones. The operation is a finite basis permutation; its inverse is itself.
  3. Allocate a fresh clean response bit r in ∣0⟩ and apply H to prepare ∣+⟩=(∣0⟩+∣1⟩)/2. Controlled on v=1, swap the caller's response bit with r using Fredkin gates.
  4. Make one ordinary call to Ox on the N-level raw-address register QN and response r.
  5. Reverse the response swap, then apply H to r to return it to ∣0⟩. Apply RN,M−1 to clear QN, and reverse the reversible comparison to restore v and all comparison workspace to zero. Return the caller's padded address and response registers.

The address comparison, the finite basis-permutation routing operation, response preparation, controlled swaps, and cleanup are nonoracle operations and must be charged in a gate-cost coordinate. The procedure uses no controlled-oracle capability. For N=1, M=1 and the direct-call branch applies.

DefinitionDefinition: Literature-sourcedProof: AI-generatedjudge pass (gpt-6-luna)Open item page →

Query-register projectors and mismatch indicators

Definition

For the address register of Boolean oracle query model for search lower bounds, let Πj be the orthogonal projection onto address j, tensored with the identity on the response and work registers, for 0≤j<N. For any finite input domain D⊆{0,1}N, define the mismatch matrix Δj by (Δj)x,y=1 when xj+1≠yj+1 and 0 otherwise, for x,y∈D. This model has no separate skip-query address; if an implementation adjoins one, its basis projection is included as an additional orthogonal summand.

Facts & Assumptions

Given: N≥1, the finite address register with ordered computational basis, and the response/work tensor factors.

[F1]

Boolean oracle query model for search lower bounds: the address basis is indexed by 0,…,N−1 and is orthonormal.

[F2]

The computational basis is orthonormal: the declared register basis is an orthonormal basis.

[F3]

Dirac Notation Conversion: ∣i⟩⟨i∣ is the rank-one map v↦⟨v,i⟩i in the root inner-product convention.

Verification

1.1givenF1F2F3algebra

For each address j, Πj=∣j⟩⟨j∣⊗I is self-adjoint and idempotent by [F1]–[F3], so it is an orthogonal projection. If j≠k, orthogonality gives ΠjΠk=0.

2.1F1F2F3step 1.1algebra∎

The address vectors form a complete basis by [F1]–[F2], hence ∑j=0N−1∣j⟩⟨j∣=I and therefore ∑j=0N−1Πj=I on address, response, and work registers. If a no-query basis state is adjoined, the same basis expansion includes its projection and the search-address sum is then at most I.

DefinitionDefinition: Literature-sourcedProof: Not applicableOpen item page →

All-zero versus exactly-one-marked search promise

Definition

For every integer N≥1, use the identity encoding of Input encoding and size for algorithmic tasks and let PN={0N}∪{ei:1≤i≤N}, where 0N is the all-zero string and ei has a 1 exactly in coordinate i. This is a promise decision task in the sense of QA task and promise domain: its yes set is {ei:1≤i≤N}, its no set is {0N}, and its output is OR⁡(x).

For the associated search task, set ℓN=⌈log⁡2(N+1)⌉ and let bin⁡ℓN(k) be the length-ℓN binary expansion of k, most significant bit first and padded with leading zeros. Its promise domain is PN and its witness relation is RN={(0N,bin⁡ℓN(0))}∪{(ei,bin⁡ℓN(i)):1≤i≤N}. The output labels none and i mean these encoded strings for 0 and i, respectively. The marked query address corresponding to ei is j=i−1 in Boolean oracle query model for search lower bounds. Verifying a measured candidate costs a separate query. No correctness condition is imposed outside PN.

LemmaStatement: Literature-sourcedProof: AI-generatedOpen item page →

Acceptance-gap lower bound on final-state distance

Statement

If a common final two-outcome measurement accepts one unit state with probability at least 2/3 and another with probability at most 1/3, then the distance between their state vectors is at least 1/6.

Facts & Assumptions

Given: Unit vectors ψ,ϕ in the same finite-dimensional register and one common final acceptance measurement.

[F1]

A common two-outcome POVM has an acceptance effect E with 0⪯E⪯I and acceptance weight tr⁡(PuE) on a unit state u (Finite POVMs and their outcome law, Finite positive effect family).

[F5]

A unit-vector outer product is a density operator: for a unit u, Pu:w↦⟨w,u⟩u is its density operator. The root pairing is linear in the first argument.

[F6]
[F3]

Worst-case bounded-error correctness: bounded-error decision correctness gives acceptance probability at least 2/3 on a yes input and at most 1/3 on a no input.

Proof

1.1givenF1F4F5F6algebra

By [F1] and [F4], choose an orthonormal eigenbasis (ej) for E. Positivity of E and I−E puts each eigenvalue λj in [0,1]. For w=∑jwjej, ∥Ew∥2=∑jλj2∣wj∣2≤∑j∣wj∣2=∥w∥2. For a unit u=∑jujej, [F5]–[F6] give tr⁡(PuE)=∑jλj∣uj∣2=⟨Eu,u⟩. Thus the same acceptance expectation and contraction estimate hold for every two-outcome POVM.

2.1givenF2F3step 1.1algebra∎

Put δ=ψ−ϕ. The acceptance-probability difference equals ⟨Eδ,ψ⟩+⟨Eϕ,δ⟩. By [F2], unit normalization, and step 1.1, its absolute value is at most ∥Eδ∥∥ψ∥+∥Eϕ∥∥δ∥≤2∥δ∥. The probability gap in [F3] is at least 1/3, so ∥ψ−ϕ∥≥1/6.

LemmaStatement: Literature-sourcedProof: AI-generatedOpen item page →

One-query oracle perturbation bound

Statement

For N≥1, 1≤i≤N, and any vector ψ in the address, response, and work registers, ∥(Oei−O0N)ψ∥≤2∥Πi−1ψ∥, where ei is the input with its only 1 in coordinate i and Πi−1 projects onto zero-based query address i−1.

Facts & Assumptions

Given: The standard XOR query from Boolean oracle query model for search lower bounds, the singleton input ei from All-zero versus exactly-one-marked search promise, and the address projector from Query-register projectors and mismatch indicators.

[F1]

Boolean oracle query model for search lower bounds: Ox∣j,b,w⟩=∣j,b⊕xj+1,w⟩ for 0≤j<N.

[F2]

Query-register projectors and mismatch indicators: Πi−1 is the orthogonal projection onto address i−1, tensored with the identity on response and work registers.

[F3]

All-zero versus exactly-one-marked search promise: ei has value 1 exactly at input coordinate i and 0N has value 0 at every coordinate.

Proof

1.1F1F2F3algebra

On each address block other than i−1, the two oracle actions in [F1] agree; on block i−1, the singleton oracle applies Pauli X to the response and the zero oracle applies identity. Hence Oei−O0N=Πi−1(X−I)Πi−1, where X−I acts on response and identities act on address and work.

2.1F2step 1.1algebra∎

The orthogonal projection is contractive and X preserves norm because it permutes the two orthonormal response basis vectors; thus ∥(X−I)Πi−1ψ∥≤∥XΠi−1ψ∥+∥Πi−1ψ∥=2∥Πi−1ψ∥. Step 1.1 and idempotence of Πi−1 give the claimed bound.

TheoremStatement: AI-adaptedProof: AI-generatedjudge pass (gpt-6-luna)Open item page →

Zero-completed query simulation is exact and uses one raw query

Statement

For N≥1 and M=2m with N≤M<2N, the procedure of Reversible zero-completion of an N-address bit query implements exactly one zero-completed XOR query per raw N-address query, restores all scratch registers, and uses no controlled oracle call.

Facts & Assumptions

Given: The finite address registers, the raw XOR action on addresses 0,…,N−1, the procedure instructions, and clean scratch registers.

[F1]

Reversible zero-completion of an N-address bit query: for N=M it makes one direct raw query and returns; for N<M it computes v=[j<N], routes a clean N-level raw-address register QN to q=j if valid and q=0 otherwise by a finite controlled basis permutation, prepares a fresh response helper in ∣+⟩ from ∣0⟩, swaps it with the caller's response only when valid, makes one raw query, reverses the response swap, applies H to return the helper to ∣0⟩, and reverses the routing and comparison operations.

[F2]

Boolean oracle query model for search lower bounds: on a valid raw address q, Ox∣q,b⟩=∣q,b⊕xq+1⟩.

[F3]

Exact one-qubit gates and rotations: H∣0⟩=∣+⟩.

[F4]

Toffoli and Fredkin gates: a Fredkin gate swaps its two target bits exactly when its control bit is 1.

[F5]

Reversible embedding of a Boolean circuit and Gate, workspace, and serial-depth costs of reversible embedding: the finite Boolean comparison circuit computes the validity bit reversibly into a clean target and restores its work bits by reversing its explicit gate list. The N-level raw-address routing is the finite basis permutation specified directly in [F1].

Proof

1.1givenF1F5inductionalgebra

If N=M, the procedure returns after one direct raw oracle call, which has the required action. Suppose N<M. The comparison recurrence maintains Er=1 exactly when the first r bits of j and N agree, and Lr=1 exactly when the first differing bit has j-bit 0 and N-bit 1. Induction on r therefore gives v=Lm=1 iff j<N. The controlled transpositions in [F1] preserve j and v and send a clean QN basis state ∣0⟩ to ∣j⟩ when v=1 and j<N, and leave it at ∣0⟩ otherwise. Thus the raw query address is an N-level basis state that equals j on valid padded addresses and 0 on invalid ones.

1.2F1F2F3F4algebra

In the N<M branch, when v=1, [F4] swaps the caller's response b into r; the raw oracle then changes it to b⊕xj+1, and reversing the swap returns exactly this bit to the caller and leaves r=∣+⟩, which the final H maps to ∣0⟩. When v=0, the route sets q=0, which is valid because N≥1, while r=∣+⟩; the raw query applies either I or X to r, both of which fix ∣+⟩, and the caller's response is unchanged. The final H again returns r to ∣0⟩.

2.1F1F2F3F4F5step 1.1step 1.2algebra∎

The raw oracle preserves its address, so the inverse controlled routing permutation clears QN after the response swap is undone. By step 1.2 the helper response is then ∣+⟩, so the prescribed H has returned it to ∣0⟩. Reversing the comparison circuit clears v and its work registers. In both branches the resulting action on each padded-address basis state is ∣j,b⟩↦∣j,b⊕xj+1⟩ for j<N and ∣j,b⟩↦∣j,b⟩ for j≥N; linearity gives the same zero-completed action on every superposition. Exactly one raw oracle call occurred in either branch, and no controlled call was used.

AlgorithmAlgorithm: AI-adaptedProof: Not applicableOpen item page →

Fixed-one Grover search with candidate verification

Definition

Input: An integer N≥1, standard Boolean XOR-query access Ox∣q,b,w⟩=∣q,b⊕xq+1,w⟩ on the ordered N-level address register of Boolean oracle query model for search lower bounds, with x∈PN from All-zero versus exactly-one-marked search promise, and no information about whether x=0N or x=ei. Any auxiliary registers used by the procedure start in their declared clean states; the procedure returns all subroutine workspace clean before reuse or termination.

Gate model: Inherit the nonoracle model of One Grover iterate in the standard bit-query model: exact H and X are callable, with each occurrence charged as one elementary gate, including the m Hadamards preparing the uniform address state and all response preparations. The exact reflection Rs on the M padded addresses is supplied either as an explicitly costed primitive or by a declared costed exact circuit over the selected alphabet. All preparation and reflection costs are counted separately from raw oracle queries.

Output: The symbol no and no candidate if verification fails; otherwise yes and a verified marked coordinate.

Instructions:

  1. Set m=⌈log⁡2N⌉, M=2m, so N≤M<2N, and hard-code the schedule parameter t0=1. This is a fixed schedule; it is not an assertion that the actual input has one mark.
  2. Set K=⌈M⌉ and q=1−2/M. Compute exactly T0(q)=1, T1(q)=q, and Tr+1(q)=2qTr(q)−Tr−1(q) for 1≤r<2K+1. For k=0,…,K, compute pk=(1−T2k+1(q))/2 and choose the least k maximizing this finite list.
  3. Prepare the uniform state on M addresses and apply the Grover iterate of One Grover iterate in the standard bit-query model exactly k times, implementing each padded bit query by Reversible zero-completion of an N-address bit query. Allocate the clean raw-address, comparison, and routing workspace required by each call; return it clean before the next call. The iterate's phase-kickback response is supplied in ∣−⟩ as specified by that iterate.
  4. Measure the padded address j. Prepare a fresh response bit in ∣0⟩ and use Reversible zero-completion of an N-address bit query for the candidate-verification query, with its required clean workspace. Measure the response bit. If j<N and this bit is 1, output yes and original coordinate j+1. Otherwise output no and no candidate. Return all clean workspace to zero.

The schedule is defined on every input in PN and never receives an actual marked count. The recurrence and gate costs are classical/nonoracle costs; every simulated Grover or verification query uses one standard raw bit query.

LemmaStatement: Literature-sourcedProof: AI-generatedjudge pass (gpt-6-luna)Open item page →

Cumulative hybrid distance for a T-query algorithm

Statement

For a T-query algorithm in the model of Boolean oracle query model for search lower bounds, let ψt0 be its unit state on input 0N immediately before query t+1, for 0≤t<T, and set qt,i=∥Πi−1ψt0∥2. If ψT0 and ψTi are the final unit states on 0N and ei, then ∥ψTi−ψT0∥≤2∑t=0T−1qt,i.

Facts & Assumptions

Given: The coherent T-query normal form, the two oracle inputs 0N,ei, and the one-query bound.

[F1]

Coherent normal form for finite quantum query algorithms: every finite-branch algorithm with at most T standard XOR queries has the same output law as a pure unitary circuit with exactly T ordinary queries.

[F2]

One-query oracle perturbation bound: replacing one zero oracle by the singleton oracle changes a query state by at most twice its norm on the differing address block.

[F3]

Boolean oracle query model for search lower bounds: the query calls are separated by input-independent unitaries, which preserve vector norms.

Proof

1.1givenF1construct

If T=0, both inputs give the same circuit and hence the final vectors agree, so the inequality holds with empty sum. Suppose T≥1. For each r=0,…,T, define hr as the final state of the circuit that uses the zero oracle in its first r query slots and the ei oracle in its remaining T−r slots. Then h0=ψTi and hT=ψT0.

2.1F2F3step 1.1

For each 1≤r≤T, the circuits defining hr−1 and hr have the same state immediately before query slot r: they have used the zero oracle for the first r−1 calls. This pre-query state is ψr−10. At slot r the oracle changes from Oei to O0N; after that slot both circuits use the same suffix, whose unitaries preserve norm. By [F2], ∥hr−1−hr∥≤2qr−1,i.

3.1F1step 2.1algebra∎

The triangle inequality gives ∥ψTi−ψT0∥=∥h0−hT∥≤∑r=1T∥hr−1−hr∥≤2∑t=0T−1qt,i. The normal form [F1] preserves the output distribution, so this bound applies to the original algorithm's pure-state realization.

LemmaStatement: Literature-sourcedProof: AI-generatedOpen item page →

Aggregate hybrid distance budget over all marked indices

Statement

For every T≥0 query algorithm on N addresses, with final states and query magnitudes as in Cumulative hybrid distance for a T-query algorithm, ∑i=1N∥ψTi−ψT0∥2≤4T2.

Facts & Assumptions

Given: The cumulative hybrid estimate and the complete orthogonal address projectors.

[F1]

Cumulative hybrid distance for a T-query algorithm: ∥ψTi−ψT0∥≤2∑t<Tqt,i with qt,i=∥Πi−1ψt0∥2.

[F2]

Query-register projectors and mismatch indicators: Π0,…,ΠN−1 are pairwise orthogonal and sum to identity on the query address, response, and work registers.

[F3]

Cauchy–Schwarz: ∣⟨x,y⟩∣≤∥x∥ ∥y∥, with equality exactly for dependent pairs: for finite real vectors, the square of the sum of coordinates is at most the vector length times the sum of their squares.

Proof

1.1F1F3algebra

If T=0, [F1] gives zero distance for every i, so the sum is zero. If T≥1, squaring [F1] and applying [F3] to the real numbers qt,i gives ∥ψTi−ψT0∥2≤4T∑t=0T−1qt,i; each qt,i is nonnegative because it is a squared norm.

2.1F2step 1.1algebra∎

Summing over i and interchanging finite sums, completeness and orthogonality in [F2] give ∑i=1Nqt,i=∑j=0N−1∥Πjψt0∥2=∥ψt0∥2=1 for each t. Therefore ∑i∥ψTi−ψT0∥2≤4T∑t<T1=4T2.

LemmaStatement: AI-adaptedProof: AI-generatedjudge pass (gpt-6-luna)Open item page →

The rational Grover recurrence equals the success probability

Statement

Let N=2n, let 1≤t≤N, put q=1−2t/N and θ=arcsin⁡t/N. If T0(q)=1, T1(q)=q, and Tr+1(q)=2qTr(q)−Tr−1(q), then for every integer k≥0, (1−T2k+1(q))/2=sin⁡2((2k+1)θ). Thus the exact rational values used by the known-count Grover schedule equal its actual marked-address probabilities.

Facts & Assumptions

Given: N=2n, 1≤t≤N, the recurrence above, and θ=arcsin⁡t/N.

[F1]

Known-count Grover search by exact integer maximization: the known-count schedule uses q=1−2t/N and computes T0=1, T1=q, Tr+1=2qTr−Tr−1 and pk=(1−T2k+1(q))/2.

[F2]

Exact success probability after an integer number of Grover iterates: after k Grover iterates the marked-address probability is sin⁡2((2k+1)θ).

[F3]

The addition formulas for sine and cosine: cos⁡(x+y)=cos⁡xcos⁡y−sin⁡xsin⁡y.

[F4]

The subtraction formulas for sine and cosine: cos⁡(x−y)=cos⁡xcos⁡y+sin⁡xsin⁡y.

[F5]

Double-angle and quadratic power-reduction identities: cos⁡(2θ)=1−2sin⁡2θ and sin⁡2u=(1−cos⁡(2u))/2.

Proof

1.1givenF1F5algebra

Since sin⁡2θ=t/N, [F5] gives cos⁡(2θ)=1−2t/N=q. Define cr=cos⁡(2rθ). Then c0=1=T0(q) and c1=q=T1(q).

2.1F1F3F4step 1.1induction

For every integer r≥1, applying [F3] and [F4] with x=2rθ and y=2θ and adding the identities gives cr+1=2cos⁡(2θ)cr−cr−1=2qcr−cr−1. This is the same recurrence as Tr(q); the initial values in step 1.1 and induction on r give cr=Tr(q) for every r≥0.

3.1F2F5step 2.1algebra∎

Setting r=2k+1 in step 2.1 and applying the power-reduction identity [F5] gives (1−T2k+1(q))/2=(1−cos⁡((4k+2)θ))/2=sin⁡2((2k+1)θ). By [F2] this is the actual Grover success probability.

TheoremStatement: Literature-sourcedProof: AI-generatedOpen item page →

Grover search upper-bound query cost

Statement

For every N≥1, Fixed-one Grover search with candidate verification uses at most 32N standard bit queries, including the final candidate verification. Hence its query cost is O(N). Address comparison, reversible computation, recurrence evaluation, state preparation, reflection gates, and all other nonoracle work are separate costs; no polynomial-time claim is made.

Facts & Assumptions

Given: The fixed-one algorithm, the Grover-iterate query count, exact zero-completion simulation, and the worst-case query-cost convention.

[F1]

Fixed-one Grover search with candidate verification: the chosen iteration count satisfies k≤K=⌈M⌉, and one verification query is made.

[F2]

One Grover iterate uses one standard bit query: each Grover iterate contains exactly one standard bit query.

[F3]

Zero-completed query simulation is exact and uses one raw query: each padded bit query, including verification, uses exactly one raw standard bit query.

[F4]

Quantum query complexity: the query coordinate counts designated oracle invocations and excludes gates and classical work.

[F5]

Fixed-one Grover search with candidate verification: the padded domain size obeys N≤M<2N.

Proof

1.1F1F2F3

The procedure of [F1] makes k Grover iterates and one verification. By [F2] each iterate needs one padded bit query, and [F3] replaces every one of those calls and the verification with exactly one raw query. Therefore the total raw query count is at most K+1.

2.1F4F5step 1.1algebra∎

Since K=⌈M⌉≤M+1, we have K+1≤M+2≤3M because M≥1. By [F5], 3M<32N. Thus the worst-case standard bit-query cost is at most 32N by [F4]. None of the reversible address tests, classical recurrence steps, or gates were counted as oracle invocations, so this estimate makes no claim about their cost.

TheoremStatement: Literature-sourcedProof: AI-generatedOpen item page →

BBBV hybrid lower bound for unstructured search

Statement

For the promise PN={0N,e1,…,eN} of All-zero versus exactly-one-marked search promise, every bounded-error quantum algorithm deciding whether the input is zero or one-marked uses at least N/24 standard bit queries. Every bounded-error finder that outputs a marked coordinate on each ei and none on 0N also uses at least N/24 standard bit queries. The decision part satisfies the stronger bound T≥N/12.

Facts & Assumptions

Given: The promise task, pure query normal form, final acceptance gap, aggregate hybrid bound, and worst-case query cost convention.

[F1]

All-zero versus exactly-one-marked search promise: the no input is 0N, each yes input is ei, and finding succeeds exactly when a valid marked coordinate is returned on a yes input or none on the no input.

[F2]

Coherent normal form for finite quantum query algorithms: finite-branch algorithms with worst-case T standard XOR queries have equivalent pure-state circuits with exactly T ordinary queries and the same output law.

[F3]

Acceptance-gap lower bound on final-state distance: a common final measurement with probabilities at least 2/3 and at most 1/3 forces final vector distance at least 1/6.

[F4]

Aggregate hybrid distance budget over all marked indices: the squared final-state distances over all singleton inputs sum to at most 4T2.

[F5]

Worst-case bounded-error correctness: bounded-error decision correctness is per promised input with success probability at least 2/3.

[F6]

Quantum query complexity: query cost is the maximum number of oracle calls on any promised input and branch.

Proof

1.1F1F2F3F5

Let a bounded-error decision algorithm use T queries. Apply [F2] and use the common final acceptance event. For each i, correctness [F5] gives acceptance at least 2/3 on ei and at most 1/3 on 0N. By [F3], ∥ψTi−ψT0∥≥1/6.

2.1F4step 1.1algebra

Summing the squares of these N inequalities gives N/36≤∑i∥ψTi−ψT0∥2. By [F4], the right side is at most 4T2, so T≥N/12.

3.1F1F5F6step 2.1construct

Now let a bounded-error finder use T queries. Append a decision step that measures its output and, if it is a coordinate i, makes one standard bit query at address i−1 with response initialized to 0; accept exactly when that response is 1. If the output is none or invalid, reject without a query. On 0N this decision never accepts; on ei it accepts whenever the finder returns i, which has probability at least 2/3 by [F1]. This is a bounded-error decision procedure with at most T+1 queries, so [F6] and step 2.1 give T+1≥N/12.

4.1F1step 3.1algebra∎

If N≥576, then N/12≥2, and step 3.1 gives T≥N/12−1≥N/24. If 1≤N<576, a zero-query finder has the same output law on 0N and e1, yet success would require probability at least 2/3 on the disjoint outcomes none and 1 under this one common law. Their probabilities would sum to at least 4/3, impossible; hence T≥1≥N/24.

TheoremStatement: Literature-sourcedProof: AI-generatedOpen item page →

Grover search upper-bound success guarantee

Statement

On every promised input of All-zero versus exactly-one-marked search promise, the fixed-one procedure Fixed-one Grover search with candidate verification returns the correct decision and, on a one-marked input, its marked coordinate with probability at least 1−1/M, where M=2⌈log⁡2N⌉ and M=1 when N=1. In particular, its one-marked success probability is at least 1−1/N; when N=1 it succeeds with certainty. On 0N verification always returns no.

Facts & Assumptions

Given: The fixed-one schedule, its reversible simulation of the padded oracle, the exact recurrence identity, and the integer-rounding theorem.

[F1]

Fixed-one Grover search with candidate verification: the procedure pads to M, fixes its schedule count to 1, maximizes pk=(1−T2k+1(1−2/M))/2 over 0≤k≤⌈M⌉, and verifies the measured candidate by initializing the XOR-query response to 0 and measuring the resulting bit.

[F2]

Zero-completed query simulation is exact and uses one raw query: each padded query is exactly simulated using one raw query, and padded addresses have value zero.

[F3]

The rational Grover recurrence equals the success probability: for a dyadic domain and exact mark count t, the recurrence value pk equals the actual Grover marked-address probability.

[F4]

Integer rounding gives a high-success Grover iterate: if 0<t/M≤1/2, some k≤⌈M/t⌉ has Grover success at least 1−t/M; for t/M>1/2, k=0 has success t/M.

[F5]

All-zero versus exactly-one-marked search promise: on a one-mark input the padded length-M string has exactly one marked valid address, while the zero input has no marked address.

Proof

1.1F1F3F5algebra

If N=1, then M=1 and the schedule in [F1] includes k=0. Its recurrence value is p0=(1−(−1))/2=1, since 1−2/M=−1 and T1(q)=q. The maximizing choice in [F1] has value at least p0, and [F3] identifies every list value with a probability at most 1, so the selected success probability is 1. If N≥2, then M≥2, so the padded one-mark input in [F5] has ratio t/M=1/M≤1/2.

2.1F1F3F4step 1.1

For N≥2, [F4] supplies an integer k≤⌈M⌉ with actual marked probability at least 1−1/M. The recurrence probabilities in [F1] equal these actual probabilities by [F3], so their finite maximizing choice has probability no smaller than that candidate. The N=1 case already has probability one by step 1.1.

3.1F2F5step 2.1algebra∎

The simulation in [F2] makes the algorithm's padded Grover evolution exactly the evolution analyzed in step 2.1. Initializing the verification response to 0 makes its XOR output equal to the queried bit. On a one-mark input, a marked measurement is valid and the final verification returns 1, so the algorithm returns the correct marked coordinate with probability at least the bound from step 2.1. On 0N, every verification query returns 0, so it returns no with certainty. Finally M≥N implies 1−1/M≥1−1/N.

TheoremStatement: Literature-sourcedProof: AI-generatedOpen item page →

Bounded-error unstructured search query complexity is Theta of square root N

Statement

Under the empty-versus-one-marked promise All-zero versus exactly-one-marked search promise and standard bit-query cost, bounded-error decision and finding each have worst-case query complexity Θ(N).

Facts & Assumptions

Given: The direct bit-query lower bound and the verified fixed-one Grover upper-bound procedure, with query costs counted as in the promise model.

[F1]

BBBV hybrid lower bound for unstructured search: both decision and finding require at least N/24 standard bit queries.

[F2]

Grover search upper-bound success guarantee: the fixed-one procedure returns a verified marked item with probability at least 1−1/N on each one-mark input and returns no on the empty input.

[F3]

Grover search upper-bound query cost: one fixed-one run uses at most 32N standard bit queries.

[F4]

All-zero versus exactly-one-marked search promise: the promise consists only of 0N and the singleton inputs, and a verified coordinate decides yes.

[F5]

Quantum query complexity: worst-case query cost is the maximum over promised inputs and execution branches.

Proof

1.1F1

The lower bound for both tasks is [F1], so each complexity is at least a positive constant times N.

1.2F2F4algebra

For N≥3, the one-run success probability in [F2] is at least 1−1/N≥2/3. For N=1, [F2] gives certainty. For N=2, run the fixed-one procedure twice with fresh registers and independent measurements, returning a verified candidate if either run verifies one. Each run has success probability at least 1/2 by [F2]; conditional independence of the fresh runs gives failure probability at most (1−1/2)2=1/4, hence success at least 3/4.

2.1F2F3F4F5step 1.2algebra

Verification prevents a false yes on 0N, by [F2] and [F4]. On each singleton input the procedures in step 1.2 return its marked coordinate with probability at least 2/3. They are therefore bounded-error solvers for both the decision and finding tasks. The two-run case uses at most twice the cost in [F3], and the other cases use at most one run, so [F5] bounds their worst-case query cost by 62N=O(N).

3.1F1step 1.1step 2.1algebra∎

Combining steps 1.1 and 2.1 gives matching positive constant lower and upper multiples of N for both decision and finding. All statements concern standard bit queries; nonoracle gate and preprocessing costs remain separate.

5 · Examples, counterexamples and false statements

None yet.

Sources