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.

Grover Search and Invariant-Plane Rotations

1 · Prerequisites

2 · Summary

This page derives the invariant marked/unmarked plane and the exact success law after an integer number of Grover iterates. It keeps the exact-maximizer known-count procedure separate from the fixed nine-round randomized known-count search and the BBHT unknown-count schedule. Oracle queries, one-qubit preparation, reflection gates, classical bit work, and candidate verification remain separate resource costs. Exact maximization can require exponential classical preprocessing, and unknown-count search does not give a finite-time emptiness decision.

3 · Logical flowchart

4 · Definitions, theorems and proofs

DefinitionDefinition: Literature-sourcedProof: Not applicablejudge pass (gpt-6-luna)Open item page →

Finite marked-item search and its bit oracle

Definition

Fix an integer n≥0, put N=2n, and let Dn={0,…,N−1}. The big-endian encoding enc⁡n:{0,1}n→Dn is a bijection by Big-endian bit-string indices are bijective, so identify each address word w with its slot x=enc⁡n(w). A search instance is a total Boolean function f:Dn→{0,1}, equivalently the word-indexed function w↦f(enc⁡n(w)). Its marked set is M={x∈Dn:f(x)=1} and its marked count is t=∣M∣. The standard bit query is the coherent XOR action Uf∣x,b⟩=∣x,b⊕f(x)⟩; the associated phase query is OM∣x⟩=(−1)f(x)∣x⟩. One standard bit query implements this phase action with a response qubit prepared in ∣−⟩, by One standard query implements one phase query. A measured candidate x is verified by a separate standard bit query. Knowing t is additional classical input; no count promise is made in the unknown-count version. A correct search output is a verified x∈M. The distinguished output none is used only by a procedure whose input includes the exact fact t=0; it is not a finite-time test for emptiness when t is unknown.

The number n may be zero, so N=1 and the address register then has its one-dimensional empty-word basis. The phase query is uncontrolled; no controlled-query capability is part of this definition.

AlgorithmAlgorithm: Literature-sourcedProof: Not applicableOpen item page →

One Grover iterate in the standard bit-query model

Definition

Gate model. The declared nonoracle model permits exact callable H and X, each occurrence charged as one elementary gate. It supplies the exact reflection Rs either as an explicitly costed primitive or through a declared costed circuit over the selected gate alphabet; for the displayed Hadamard conjugation, the all-zero reflection and both Hadamard layers must be supplied and charged. Standard bit queries are charged separately.

For a marked-search instance on Dn, let ∣s⟩=H⊗n∣0n⟩=N−1/2∑x∈Dn∣x⟩ and Rs=2∣s⟩⟨s∣−I. Prepare a response qubit from ∣0⟩ by applying X and then H, giving ∣−⟩. Apply the standard bit query Uf to the address and response registers; phase kickback applies OM to the address and leaves the response in ∣−⟩. Then apply Rs to the address register. This defines G=RsOM with one standard bit query and no intermediate measurement. Repeated iterates reuse the response qubit in ∣−⟩. The query count is separate from the preparation and reflection gate costs. A reflection about ∣s⟩ may be represented as H⊗n(2∣0n⟩⟨0n∣−I)H⊗n, whose reflection cost must be charged under the declared gate model.

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

Orthogonal marked and unmarked components of the uniform state

Statement

Let M⊆Dn have size t with 0<t<N. Define ∣G⟩=t−1/2∑x∈M∣x⟩,∣B⟩=(N−t)−1/2∑x∉M∣x⟩. Then ∣G⟩ and ∣B⟩ are orthonormal. For θ=arcsin⁡t/N∈(0,π/2), the uniform state is ∣s⟩=sin⁡θ ∣G⟩+cos⁡θ ∣B⟩, with sin⁡2θ=t/N.

Facts & Assumptions

Given: n≥0, N=2n, a marked set M⊆Dn, and 0<t=∣M∣<N. Here the uniform state denotes the equal-positive-amplitude vector ∣s⟩=N−1/2∑x∈Dn∣x⟩.

[F1]

Finite marked-item search and its bit oracle: Dn is a finite address set with marked subset M and marked count t.

[F2]

The computational basis is orthonormal: distinct address basis vectors are orthogonal and every address basis vector has norm 1.

[F3]

Real and complex inner product spaces, with the inner product linear in the first argument: the inner product is linear in the first argument, conjugate-linear in the second, and positive definite.

[F4]

Dirac Notation Conversion: kets denote vectors and the Dirac pairing is the reversed-argument root inner product.

[F5]

Principal inverse sine and inverse cosine: arcsin⁡ takes values in [−π/2,π/2] and sin⁡(arcsin⁡y)=y for y∈[−1,1].

[F6]

Signs, monotonicity intervals, and ranges of sine and cosine: cosine is strictly decreasing on [0,π] and sine is strictly increasing on [−π/2,π/2].

[F7]

Parity and the Pythagorean identity for sine and cosine: sin⁡2u+cos⁡2u=1 for every real u.

[F8]

Square roots exist: a unique a≥0 with (a)2=a; the positives are {x2:x≠0}: each nonnegative real a has a unique nonnegative square root a.

[F10]

Quarter-turn values and shifts by pi/2 and pi: sin⁡(π/2)=1 and cos⁡(π/2)=0.

[F11]

Squaring is monotone on the nonnegatives: on nonnegative reals, strict and non-strict order are equivalent to the corresponding order of squares; applied to nonnegative roots, this compares their order.

Proof

1.1givenF1F2F3F4algebra

Orthonormality of the address basis [F2] gives ⟨G,G⟩=t−1∑x,y∈M⟨x,y⟩=1 and ⟨B,B⟩=(N−t)−1∑x,y∉M⟨x,y⟩=1. The sets M and Dn∖M are disjoint, so every cross term in ⟨G,B⟩ is zero. Thus the two vectors are orthonormal.

2.1givenF1F5F6F7F8F9F10F11step 1.1algebra∎

Put a=t/N∈(0,1) and θ=arcsin⁡a. By [F5], sin⁡θ=a; since a>0 and sin⁡0=0 by [F9], strict increase [F6] implies θ>0. Also a<1 by [F11] because a<1, while 1=sin⁡(π/2) by [F10]; strict increase gives θ<π/2. Since cosine is strictly decreasing on [0,π] by [F6], we have cos⁡θ>cos⁡(π/2)=0 by [F10]. The Pythagorean identity [F7] and square-root uniqueness [F8] give cos⁡θ=1−a. Splitting the uniform sum into M and its complement now gives ∣s⟩=t/N∣G⟩+(N−t)/N∣B⟩=sin⁡θ∣G⟩+cos⁡θ∣B⟩ and sin⁡2θ=t/N.

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

One Grover iterate uses one standard bit query

Statement

One execution of One Grover iterate in the standard bit-query model makes exactly one standard bit-query call, through phase kickback. The response-qubit preparation and the reflection about ∣s⟩ make no oracle calls and are charged separately as gates or explicitly supplied reflection operations.

Facts & Assumptions

Given: The Grover iterate and the worst-case query-count convention.

[F1]

One Grover iterate in the standard bit-query model: one standard bit query is applied to a response qubit in ∣−⟩, after which the address reflection is applied.

[F2]

Quantum query complexity: the query coordinate counts designated oracle invocations and keeps ordinary gates outside those calls separate.

[F3]

One standard query implements one phase query: one prepared-response standard query induces the phase query and uses exactly one query invocation.

Proof

1.1givenF1F2F3

The algorithm contains one invocation of Uf; [F3] identifies that invocation with the phase mark on the address register. By [F2], this designated oracle invocation contributes one query.

2.1step 1.1F1F2∎

The response preparation and Rs are operations outside Uf, so they add no oracle invocation. The iterate therefore uses exactly one query, with no gate-cost bound inferred.

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

The Grover iterate rotates the marked/unmarked plane

Statement

Assume 0<t<N and use the orthonormal ordered basis (∣B⟩,∣G⟩) of Orthogonal marked and unmarked components of the uniform state. Let ΠM project onto the marked-address span, SM=I−2ΠM, and Rs=2∣s⟩⟨s∣−I. The Grover iterate G=RsSM preserves span⁡{∣B⟩,∣G⟩}, and in this basis has matrix (cos⁡(2θ)−sin⁡(2θ)sin⁡(2θ)cos⁡(2θ)),θ=arcsin⁡t/N. The initially prepared state has coordinate column (cos⁡θ,sin⁡θ)T.

Facts & Assumptions

Given: 0<t<N and the normalized vectors in the marked/unmarked decomposition.

[F1]

Orthogonal marked and unmarked components of the uniform state: ∣B⟩,∣G⟩ are orthonormal and ∣s⟩=cos⁡θ∣B⟩+sin⁡θ∣G⟩.

[F2]

Orthogonal-Projector Reflection and Access Contract: RΠ=2Π−I and SΠ=I−2Π have the displayed opposite signs.

[F3]

One Grover iterate in the standard bit-query model: G=RsSM and Rs=2∣s⟩⟨s∣−I.

[F4]

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

Proof

1.1givenF1F2algebra

The mark SM fixes each unmarked basis vector and negates each marked basis vector. Thus its matrix on (∣B⟩,∣G⟩) is diag⁡(1,−1) and it preserves the plane.

1.2F1F3F4algebra

In the same basis, [F1] and the rank-one convention [F3] give Rs=2(cos⁡2θcos⁡θsin⁡θcos⁡θsin⁡θsin⁡2θ)−I=(cos⁡2θsin⁡2θsin⁡2θ−cos⁡2θ) by [F4].

2.1step 1.1step 1.2F1algebra∎

Multiplying the matrix in step 1.2 by diag⁡(1,−1) from step 1.1 gives the stated rotation matrix. Its columns lie in the same two-dimensional plane, so the plane is invariant; the initial coordinate column is (cos⁡θ,sin⁡θ)T by [F1].

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

Exact success probability after an integer number of Grover iterates

Statement

For 0<t<N, let θ=arcsin⁡t/N. After an integer k≥0 Grover iterates starting from ∣s⟩, the probability of measuring a marked address is pk=sin⁡2((2k+1)θ). For t=0 this probability is 0, and for t=N it is 1 for every integer k≥0; these endpoint cases are direct one-dimensional branches and do not normalize a nonexistent marked or unmarked state.

Facts & Assumptions

Given: The finite marked-search instance and the Grover iterate.

[F1]

Orthogonal marked and unmarked components of the uniform state: for 0<t<N, ∣s⟩ has coordinate column (cos⁡θ,sin⁡θ)T in the ordered basis (∣B⟩,∣G⟩).

[F2]

The Grover iterate rotates the marked/unmarked plane: G acts on that plane by the matrix (cos⁡2θ−sin⁡2θsin⁡2θcos⁡2θ).

[F3]

One Grover iterate in the standard bit-query model: each iteration applies G=RsOM to the address and leaves the phase-kickback response in ∣−⟩.

[F4]

One standard query implements one phase query: phase kickback applies the phase mark and returns the response qubit to ∣−⟩.

[F5]

The addition formulas for sine and cosine: sine and cosine of a sum obey their addition formulas.

[F6]

Normalized output law for finite quantum query branches: a terminal address outcome has weight equal to the sum of the diagonal state weights over all unmeasured register values.

[F7]
[F8]

A unit-vector outer product is a density operator: for a unit vector u, ∣u⟩⟨u∣ is a density operator.

[F9]

Real and complex inner product spaces, with the inner product linear in the first argument: the root inner product is conjugate-symmetric and linear in its first argument.

[F10]

The computational basis is orthonormal: the full address/response computational basis is orthonormal.

[F11]

Dirac Notation Conversion: ∣u⟩⟨v∣z=⟨z,v⟩rootu.

[F12]

Finite registers and their ordered computational bases: the address and response registers form an ordered tensor-product register.

[F13]

The product basis is orthonormal and tensor dimensions multiply: the product basis is orthonormal and the tensor-product pairing is the product of factor pairings.

[F14]

One standard query implements one phase query: the response is prepared by X then H into ∣−⟩ and is returned unchanged by phase kickback.

[F15]

Exact one-qubit gates and rotations: X and H are the exact unitary one-qubit gates in the ordered computational basis.

Proof

1.1givenF1algebra

For k=0, the address coordinate column is (cos⁡θ,sin⁡θ)T by [F1], which is (cos⁡((2k+1)θ),sin⁡((2k+1)θ))T.

2.1step 1.1F2F5induction

If after k iterations the column is (cos⁡((2k+1)θ),sin⁡((2k+1)θ))T, multiplication by the matrix in [F2] and the addition formulas [F5] gives (cos⁡((2k+3)θ),sin⁡((2k+3)θ))T. Induction therefore gives the marked amplitude sin⁡((2k+1)θ) for every integer k≥0.

3.1step 2.1F1F3F4F7F8F10F12F13F14F15algebra

The address vector at step 2.1 is unit by [F1] and [F7]. The response starts in the unit basis vector ∣0⟩ and the gates X,H in [F15] are unitary, so the response state ∣−⟩ supplied by [F14] is unit. Their tensor product u is unit by the product pairing [F12]–[F13], and [F8] makes ρ=∣u⟩⟨u∣ a density operator.

4.1step 2.1step 3.1F1F6F9F10F11F13F14F15algebra

For each product-basis vector ex,b, [F9] and [F11] give the diagonal weight ⟨ρex,b,ex,b⟩=∣⟨ex,b,u⟩∣2. By step 2.1, the address coordinate along ∣G⟩ is sin⁡((2k+1)θ); the definition ∣G⟩=t−1/2∑x∈M∣x⟩ in [F1] therefore gives coefficient sin⁡((2k+1)θ)/t at each marked x. The squared response coordinates sum to 1 because ∣−⟩ is unit and the qubit computational basis is orthonormal by [F10], [F14]–[F15]. Summing over the t marked addresses and both response values gives t(sin⁡2((2k+1)θ)/t)⋅1=sin⁡2((2k+1)θ). The terminal output law [F6] sums precisely over the unmeasured response register, so this is the measured marked probability.

5.1givenF3algebra∎

If t=0, OM=I and Rs∣s⟩=∣s⟩, so all iterates remain in the unmarked subspace and the marked probability is 0. If t=N, OM=−I and each iterate maps ∣s⟩ to −∣s⟩; every address is marked, so the probability is 1.

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

Bit cost of exact known-count iteration selection

Statement

For t>0, put K=⌈N/t⌉ and q=1−2t/N. The exact selection procedure in Known-count Grover search by exact integer maximization computes the recurrence T0=1,T1=q,Tm+1=2qTm−Tm−1 through m=2K+1 and compares pk=(1−T2k+1(q))/2 for 0≤k≤K. If n≥1, the recurrence numerators and denominators have O(Kn) bits and schoolbook arithmetic selects the least maximizing k in O(K2n2) classical bit operations. For n=0, necessarily N=t=1 and the selection costs O(1). Since K=Θ(N) when t=1, the preprocessing can be exponential in n; this query bound supplies no end-to-end polynomial-time claim.

Facts & Assumptions

Given: N=2n, exact t with 1≤t≤N, and the recurrence and finite candidate list in the known-count algorithm.

[F1]

Known-count Grover search by exact integer maximization: the algorithm finds K by doubling and binary search for the least positive integer with tK2≥N, forms q=1−2t/N, computes Tm(q) through m=2K+1, and selects the least maximizer of pk=(1−T2k+1(q))/2 for 0≤k≤K.

[F3]

Ceilings give the least positive integer meeting a real threshold: ⌈x⌉ is the least integer at least x, and is monotone in the threshold.

[F4]

Principal inverse sine and inverse cosine: sin⁡(arcsin⁡y)=y on [−1,1].

[F5]

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

[F6]

The addition formulas for sine and cosine: cos⁡(u+v)=cos⁡ucos⁡v−sin⁡usin⁡v for real u,v.

[F7]

Classical bit-operation cost: classical bit cost counts the transitions used for arithmetic, comparisons, reading and writing bits; oracle calls are a separate coordinate.

[F8]

Parity and the Pythagorean identity for sine and cosine: ∣cos⁡x∣≤1 for every real x.

[F9]

Squaring is monotone on the nonnegatives: squaring preserves order on nonnegative reals, so m↦tm2 is nondecreasing for integers m≥0 when t>0.

Proof

1.1givenF1F2F3F9algebra

For t>0, P(m):tm2≥N is monotone on nonnegative integers by [F9], and its least positive true index is K=⌈N/t⌉ by [F2]–[F3]. The doubling loop starts with false endpoint lo=0 and doubles hi until P(hi) is true; it terminates because powers of two are unbounded. If K=1 it stops immediately. If K>1, the first true power of two satisfies K≤hi<2K, and the preceding power lo=hi/2 is false. Upper-midpoint binary search preserves the false/true invariant and reduces each interval of width d>1 to width at most ⌈d/2⌉, so it reaches width one after O(log⁡(K+1)) evaluations and returns the least positive true index K. Since K≤⌈N⌉, the endpoints have O(n) bits for n≥1.

1.2givenF1F2F4F5F6inductionalgebra

Put a=t/N and θ=arcsin⁡a. Then q=1−2a=cos⁡(2θ) by [F4]–[F5]. The recurrence has base values T0=cos⁡0=1 and T1=cos⁡(2θ)=q. By [F6], cos⁡(2(m+1)θ)+cos⁡(2(m−1)θ)=2cos⁡(2θ)cos⁡(2mθ), so induction in the recurrence gives Tm(q)=cos⁡(2mθ) for every computed index. Therefore pk=(1−cos⁡((4k+2)θ))/2=sin⁡2((2k+1)θ), and the rational list in [F1] is the actual integer-iterate success list.

2.1step 1.2F1F8algebra

Write u=N−2t, so q=u/N, and define Am=NmTm(q). Then A0=1, A1=u, and the recurrence gives Am+1=2uAm−N2Am−1, so each Am is an integer. By step 1.2 and [F8], ∣Am∣≤Nm. Thus for n≥1 and m≤2K+1, both numerator Am and denominator Nm have O(Kn) bits. For n=0, N=t=1, K=1, and all recurrence values have constant bit length.

3.1F7step 1.1step 2.1algebra

At recurrence index m, multiplying the O(mn)-bit integer Am by the O(n)-bit integer u costs O(mn2) schoolbook bit operations; multiplication by N2 is a binary shift, and addition costs O(mn). Summing over m≤2K gives O(K2n2). Each predicate evaluation in step 1.1 uses O(n)-bit operands and schoolbook arithmetic, hence O(n2) bit operations; the O(log⁡(K+1)) evaluations cost O(n2log⁡(K+1))⊆O(K2n2).

4.1F1step 2.1step 3.1F7algebra

For odd m=2k+1, write pk=(Nm−Am)/(2Nm). Advancing from k−1 to k scales the previous running-best numerator by N2 to put it over the new denominator, then compares the two integers and updates only on strict increase. Each comparison costs O(Kn) bit operations by step 2.1, and there are K+1 candidates, so all comparisons cost O(K2n), within step 3.1's bound. Strict updates retain the least k in a tie.

5.1F2F3step 3.1step 4.1algebra

If t=1, then N≤K=⌈N⌉≤N+1≤2N, so K=Θ(2n/2). The preprocessing bound can therefore be exponential in n, and it supplies no polynomial-time conclusion from the query bound.

6.1givenF1step 2.1step 3.1step 4.1algebra∎

If n=0, necessarily N=t=1, so K=1 and the direct selection branch and finite recurrence take constant work, as stated.

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

Classical bit cost of randomized known-count search

Statement

For 0<t≤N/2, the procedure Known-count search by randomized Grover iteration computes K=⌈N/t⌉ by O(n) binary-search predicate evaluations on integers with O(n) bits, costing O(n3) deterministic bit operations by schoolbook arithmetic. Computing b and drawing the nine b-bit iteration labels uses O(n) further classical bit operations and random bits. The direct-sampling branch t>N/2 uses O(n) classical bit operations in total for address and output bookkeeping across at most nine rounds; its address samples are obtained by quantum measurement, not by generating 9n classical fair bits. These bounds are for n≥1; when n=0, only the direct branch occurs and its bookkeeping is constant. Quantum measurements, state preparation, gates, and oracle calls are separate costs.

Facts & Assumptions

Given: The known-count randomized algorithm, N=2n, exact integer 1≤t≤N, and the classical bit-cost convention.

[F1]

Known-count search by randomized Grover iteration: in the t≤N/2 branch, binary search finds the least K≥1 with tK2≥N, then samples nine labels using b fair bits.

[F3]

Ceilings give the least positive integer meeting a real threshold: K=⌈N/t⌉ is the least positive integer meeting tK2≥N.

[F4]

Classical bit-operation cost: classical bit work includes random-bit generation and address bookkeeping, while each oracle invocation is charged separately.

[F5]

Squaring is monotone on the nonnegatives: square roots preserve order on nonnegative reals.

[F6]

Squaring is monotone on the nonnegatives: squaring preserves order on nonnegative reals, so P(m):tm2≥N is monotone for m≥0 and t>0.

Proof

1.1givenF1F2F3F5F6algebra

Since t≥1, N/t≤N by [F5], hence K≤⌈N⌉≤2⌈n/2⌉=hi. The predicate P(m):tm2≥N is false at lo=0, true at hi, and monotone by [F6]. At each step with width d=hi−lo>1, the upper midpoint lo+⌈d/2⌉ lies strictly between the endpoints; replacing the endpoint with the same predicate value preserves the invariant and leaves width at most ⌈d/2⌉. Thus after O(n) steps the width is one and hi is the least positive integer satisfying P, namely K by [F3].

2.1step 1.1F4algebra

The initial endpoint has O(n) bits, so each midpoint does as well. A schoolbook square and multiplication compute tm2 in O(n2) bit operations, and comparison with N takes O(n) more. The O(n) predicate evaluations therefore cost O(n3).

2.2givenF1step 1.1F4algebra

The least b≥0 with 2b≥K satisfies b≤⌈n/2⌉. The nine labels consume 9b=O(n) random bits and comparisons; forming or writing each at-most-n-bit address uses O(n) more bookkeeping. Hence this work is within O(n3).

3.1givenF1F4∎

If t>N/2, each of at most nine rounds measures the freshly prepared uniform quantum address. Handling these returned n-bit addresses and writing the result takes O(n) classical bit operations in total; the state preparation and measurements are separate quantum operations, and no classical fair address bits are generated. For n=0, N=t=1 and the bookkeeping is constant. The bit-query invocations remain separately charged by [F4].

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

Gate and reflection accounting for randomized known-count search

Statement

Each uniform-state preparation uses exactly n Hadamard gates. Write R0=2∣0n⟩⟨0n∣−I and let C(R0) be its declared gate cost if implemented or supplied as a named reflection. Conjugation gives Rs=H⊗nR0H⊗n, so an iterate uses 2n Hadamards, cost C(R0), and one bit-oracle query. For the 0<t≤N/2 branch, the total nonoracle gate cost is at most 9[n+2+(K−1)(2n+C(R0))],K=⌈N/t⌉, up to measurement and output handling. For t>N/2 it is at most 9n Hadamards plus measurement/output handling. The reflection is not a free oracle.

Facts & Assumptions

Given: The nine-round known-count algorithm, the exact one-qubit gate alphabet, and the declared circuit resource model.

[F1]

Known-count search by randomized Grover iteration: each accepted randomized round prepares a fresh uniform state, uses at most K−1 iterates when t≤N/2, and the direct branch uses only uniform preparation before verification.

[F2]

Exact one-qubit gates and rotations: H is the exact Hadamard matrix with H∣0⟩=(∣0⟩+∣1⟩)/2 and H2=I.

[F3]

Orthogonal-Projector Reflection and Access Contract: a prepared-state reflection is UR0U†, and its cost includes the preparation, reflection, and inverse preparation unless a different declared primitive is supplied.

[F4]

Projector Reflections Are Hermitian Unitary Involutions: both reflection signs are unitary involutions with the declared signs.

[F5]

Finite circuit resource accounting: gate occurrences, queries, and classical bit operations are separate resource coordinates.

[F6]

Circuit-family and computation cost model: a cost record keeps gate and query coordinates separate and assigns no zero cost to an unspecified oracle or controlled access.

Proof

1.1givenF1F2F5

Applying H to each of the n address wires sends ∣0n⟩ to 2−n/2∑x∣x⟩=∣s⟩ by the tensor-product action, using exactly n occurrences of H by [F2] and [F5]. The n=0 case has no such occurrences.

2.1step 1.1F2F3F4F6algebra

Since H⊗n∣0n⟩=∣s⟩ and (H⊗n)†=H⊗n, conjugating R0 gives H⊗nR0H⊗n=2∣s⟩⟨s∣−I=Rs. This costs 2n Hadamards plus the declared C(R0); [F3]–[F4] do not make the all-zero reflection free.

3.1givenF1step 1.1step 2.1F5F6algebra

In the t≤N/2 branch each round has at most one fresh preparation, two gates X,H for the response qubit, and at most K−1 iterates. Each iterate has the nonoracle cost in step 2.1; its query is excluded from this gate total by [F5]–[F6]. Multiplying the per-round bound by nine gives the stated upper bound, including rejected rounds as zero-cost cases.

4.1givenF1step 1.1F5F6∎

When t>N/2, each of at most nine direct rounds only prepares ∣s⟩ and measures/verifies, so there are at most 9n Hadamards and no diffusion reflection. The t=0 branch returns before preparation.

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

Constant BBHT stage success beyond the threshold scale

Statement

Let 0<a=t/N<3/4, θ=arcsin⁡a, and let J be uniform on {1,…,M}. If the positive integer M satisfies M≥4/a, then E[sin⁡2((2J+1)θ)]≥38.

Facts & Assumptions

Given: 0<a<3/4, sin⁡θ=a, θ∈(0,π/2), and an integer M≥4/a.

[F1]

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

[F3]

The addition formulas for sine and cosine: sine and cosine obey their addition formulas.

[F4]

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

[F5]

Principal inverse sine and inverse cosine and Signs, monotonicity intervals, and ranges of sine and cosine: the principal angle is in [−π/2,π/2], sine is strictly increasing there, and cosine is positive on (0,π/2).

[F6]

Parity and the Pythagorean identity for sine and cosine: sin⁡2θ+cos⁡2θ=1.

[F9]
[F10]

Squaring is monotone on the nonnegatives: square roots preserve order on nonnegative reals.

Proof

1.1givenF4F5F6F7F8F9F10algebra

Since 0<a<3/4, [F7] and [F10] give 0<a<1. From [F4], sin⁡θ=a and θ∈[−π/2,π/2]. By [F8], sin⁡0=0, so strict increase [F5] gives θ>0. Since sin⁡(π/2)=1 by [F9], strict increase and sin⁡θ<1 give θ<π/2; then cos⁡θ>0 by [F5]. The Pythagorean identity [F6] gives cos⁡θ=1−a.

1.2givenF1F4algebra

By [F1] and [F4], the average equals 12−12M∑j=1Mcos⁡((4j+2)θ).

2.1step 1.2F3algebra

By [F3], for every j, 2sin⁡(2θ)cos⁡((4j+2)θ)=sin⁡((4j+4)θ)−sin⁡(4jθ). Summing from j=1 to M and using sin⁡u−sin⁡v=2sin⁡((u−v)/2)cos⁡((u+v)/2) gives ∑j=1Mcos⁡((4j+2)θ)=sin⁡(2Mθ)cos⁡((2M+4)θ)/sin⁡(2θ). Thus the average in step 1.2 is 12−sin⁡(2Mθ)cos⁡((2M+4)θ)2Msin⁡(2θ).

3.1givenstep 1.1step 2.1F4F5F6F7F10algebra∎

Since a<3/4, 1−a>1/4, so [F10] gives 1−a>1/2. Steps 1.1 and [F4]–[F7] then give sin⁡(2θ)=2a1−a>a. Therefore Msin⁡(2θ)>4 and the absolute value of the correction in step 2.1 is less than 1/8. The average is greater than 3/8, hence at least 3/8.

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

Unknown-count search halts almost surely when a marked item exists

Statement

For t>0, the BBHT algorithm halts with probability 1 and returns an element of M; the probability it has not returned a marked item after r rounds tends to zero. For t=0, it never halts and never outputs an element.

Facts & Assumptions

Given: The BBHT algorithm with fresh randomness and a fresh quantum register in every round.

[F1]

BBHT search when the marked count is unknown: each round directly tests a uniform candidate, then uses j uniformly distributed on {1,…,Mℓ}, measures, verifies with a bit query, and continues after failure.

[F2]

Finite marked-item search and its bit oracle: when t=0, the marked set M is empty; when t>0, a successful output is a verified element of M.

[F3]

Constant BBHT stage success beyond the threshold scale: for 0<a<3/4, every round with Mℓ≥4/a has conditional quantum-search success at least 3/8.

Proof

1.1givenF1F2

If t=0, then M=∅ by [F2]. Every directly sampled and every quantum-measured candidate is therefore unmarked, and [F1] verifies each before returning. Thus no round returns and the loop does not halt.

1.2givenF1F2algebra

Suppose t>0 and write a=t/N. If a≥3/4, the initial uniform sample in every round is marked with probability a≥3/4. Fresh independent samples imply failure through r rounds is at most (1/4)r, which tends to zero.

1.3givenF1F3algebra

If 0<a<3/4, the schedule Mℓ=⌈(3/2)ℓ⌉ tends to infinity, so some finite L satisfies ML≥4/a. From round L onward, conditional on reaching that round and on the direct sample having failed, [F3] gives quantum-search success at least 3/8; fresh random labels and registers make this conditional law independent of the direct sample. Thus a round succeeds with probability at least a+(1−a)(3/8)≥3/8. Fresh rounds then give failure through round r≥L at most (5/8)r−L+1.

2.1step 1.1step 1.2step 1.3F1F2algebra∎

The verification query returns the actual value f(x), so any returned address is marked by [F1]–[F2]. The bounds in steps 1.2 and 1.3 tend to zero; therefore the algorithm returns a marked element with probability 1 whenever t>0.

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

Integer rounding gives a high-success Grover iterate

Statement

Put a=t/N and θ=arcsin⁡a. If 0<a≤1/2, some integer k with 0≤k≤K=⌈1/a⌉ has pk=sin⁡2((2k+1)θ)≥1−a. If 1/2<a≤1, k=0 lies in this range and p0=a>1/2. The real-valued optimizer k∗=π/(4θ)−1/2 is not in general an integer.

Facts & Assumptions

Given: N=2n, exact t with 1≤t≤N, a=t/N, and θ=arcsin⁡a.

[F1]

Exact success probability after an integer number of Grover iterates: for 0<t<N and each integer k≥0, pk=sin⁡2((2k+1)θ). For t=N, every integer iteration count has marked probability 1.

[F2]

Principal inverse sine and inverse cosine: sin⁡(arcsin⁡x)=x and arcsin⁡x∈[−π/2,π/2].

[F3]

Signs, monotonicity intervals, and ranges of sine and cosine: sine is strictly increasing on [−π/2,π/2], and cosine is strictly decreasing on [0,π].

[F4]

Sine and cosine are 1-Lipschitz on R: ∣sin⁡u−sin⁡v∣≤∣u−v∣.

[F5]

Quarter-turn values and shifts by pi/2 and pi: sin⁡(π/2)=1 and the sine/cosine shift identities by π/2 hold.

[F7]

Double-angle and quadratic power-reduction identities: sin⁡(2x)=2sin⁡xcos⁡x.

[F8]

Parity and the Pythagorean identity for sine and cosine: sine is odd and sin⁡2x+cos⁡2x=1.

[F10]

Integer part: for every real x there is exactly one integer m with m≤x<m+1: every real x has an integer m=⌊x⌋ with m≤x<m+1.

[F12]

Ceilings give the least positive integer meeting a real threshold: K=⌈1/a⌉ is an integer at least 1/a.

[F14]

Squaring is monotone on the nonnegatives: nonnegative square roots preserve order.

Proof

1.1givenF2F3F4F5F7F8F9F11F13F14algebra

Suppose 0<a≤1/2. Put x=π/4, s=sin⁡x, and c=cos⁡x. By [F11], 0<π<4, so 0<x<π/2; [F3] gives s>0, and its cosine monotonicity together with [F5] gives c>cos⁡(π/2)=0. The double-angle identity [F7] and quarter-turn value [F5] give 2sc=sin⁡(2x)=sin⁡(π/2)=1, while [F8] gives s2+c2=1. Thus (s−c)2=s2+c2−2sc=0, so s=c; hence 2s2=1 and s=1/2 by [F9]. Since a≤1/2, [F14] gives a≤1/2=s, and strict increase in [F3] implies θ≤π/4. Also sin⁡θ=a>0=sin⁡0, and θ∈[−π/2,π/2] by [F2], so strict increase [F3] gives θ>0. The Lipschitz estimate [F4] then yields a=∣sin⁡θ−sin⁡0∣≤∣θ∣=θ.

2.1step 1.1F2F3F10constructalgebra

Put k∗=π/(4θ)−1/2. Since θ≤π/4, k∗≥1/2. Let m=⌊k∗⌋ and choose k=m if k∗−m≤1/2, otherwise choose k=m+1. By [F10], k is a nonnegative integer and ∣k−k∗∣≤1/2. For a=1/2, the value of sin⁡(π/4) from step 1.1 and injectivity in [F3] give θ=π/4, hence k∗=1/2, exhibiting a noninteger optimizer.

3.1step 1.1step 2.1F11F12algebra

The choice in step 2.1 gives k≤k∗+1/2=π/(4θ)≤π/(4a)<1/a≤K, using [F11]–[F12].

3.2F1step 1.1step 2.1F2F3F5F8F11algebra

By the definition of k∗, (2k∗+1)θ=π/2. Therefore 1−pk=cos⁡2((2k+1)θ)=sin⁡2(2(k−k∗)θ). The angle magnitude is at most θ≤π/4 by step 2.1. Oddness and monotonicity of sine imply ∣sin⁡(2(k−k∗)θ)∣≤sin⁡θ; hence 1−pk≤sin⁡2θ=a and pk≥1−a.

4.1givenF1F2F9F12algebra∎

If 1/2<a<1, then K≥1 and k=0 is in the candidate range; [F1] and [F2] give p0=sin⁡2θ=a>1/2. If a=1, then K=1 by [F12] and [F9], and the endpoint clause of [F1] gives p0=1=a>1/2.

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

Average Grover success for a uniform integer iteration count

Statement

For 0<t≤N/2, put a=t/N, θ=arcsin⁡a, and K=⌈1/a⌉. If J is uniform on {0,…,K−1}, then E[sin⁡2((2J+1)θ)]=12−sin⁡(4Kθ)4Ksin⁡(2θ)≥14.

Facts & Assumptions

Given: 0<a≤1/2, θ=arcsin⁡a, and K=⌈1/a⌉.

[F1]

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

[F2]

The addition formulas for sine and cosine: sine and cosine obey their addition formulas.

[F3]

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

[F4]

Principal inverse sine and inverse cosine: θ∈[−π/2,π/2] and sin⁡θ=a.

[F5]

Parity and the Pythagorean identity for sine and cosine: sin⁡2θ+cos⁡2θ=1.

[F9]
[F10]

Signs, monotonicity intervals, and ranges of sine and cosine: sine is strictly increasing on [−π/2,π/2] and cosine is positive on (0,π/2).

[F11]

Squaring is monotone on the nonnegatives: square roots preserve order on nonnegative reals.

Proof

1.1givenF4F5F7F8F9F10F11algebra

Since 0<a≤1/2, [F7] gives a nonnegative root and [F11] gives 0<a<1. By [F4], sin⁡θ=a. Since sin⁡0=0 by [F8] and sine is strictly increasing by [F10], θ>0. Also sin⁡(π/2)=1 by [F9], so strict increase and sin⁡θ<1 give θ<π/2; hence cos⁡θ>0 by [F10]. The Pythagorean identity [F5] gives cos⁡θ=1−a.

1.2givenF1F3algebra

Using [F1] and the identity sin⁡2x=(1−cos⁡2x)/2 from [F3], the average is 12−12K∑j=0K−1cos⁡((4j+2)θ).

2.1step 1.2F2algebra

For each j, [F2] gives 2sin⁡(2θ)cos⁡((4j+2)θ)=sin⁡((4j+4)θ)−sin⁡(4jθ). Summing from j=0 to K−1 telescopes to ∑j=0K−1cos⁡((4j+2)θ)=sin⁡(4Kθ)/(2sin⁡(2θ)). Substitution in step 1.2 proves the displayed identity.

3.1step 1.1step 2.1F3F6F7F11algebra∎

Since 1−a≥1/2, [F11] gives 1−a≥1/2. By [F3] and step 1.1, sin⁡(2θ)=2a1−a≥2a. Hence Ksin⁡(2θ)≥2 by [F6]. The absolute value of the correction term in step 2.1 is at most 1/(42)<1/4, so the average is at least 1/4.

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

Expected bit-query cost of unknown-count BBHT search

Statement

For t>0, the BBHT algorithm has expected standard bit-query cost O(N/t). The bound includes the direct membership test and a separate verification query in each attempted round, plus one query per Grover iterate through phase kickback. If t=0, it never halts and the expected query cost from finite execution prefixes is infinite.

Facts & Assumptions

Given: The BBHT algorithm with c=3/2, the expected-query definition, and t>0.

[F1]

BBHT search when the marked count is unknown: stage ℓ uses Mℓ=⌈(3/2)ℓ⌉, one direct sample query, at most Mℓ iterate queries, and one verification query.

[F2]

Constant BBHT stage success beyond the threshold scale: when 0<a=t/N<3/4 and Mℓ≥4/a, conditional stage success is at least 3/8.

[F3]

Unknown-count search halts almost surely when a marked item exists: for t>0 the algorithm returns a verified marked element almost surely.

[F4]

One Grover iterate uses one standard bit query: every Grover iterate uses one standard bit query.

[F5]

Expected query cost from finite execution prefixes: expected cost is the supremum of expected query counts over finite execution prefixes; no infinite-history measure is assumed.

[F7]

Squaring is monotone on the nonnegatives: for 0<a≤1, 1≤1/a.

[F8]

Quantum query complexity: query calls are a separate resource coordinate from gates and classical bit operations.

Proof

1.1givenF1F4F6algebra

In a round with stage size Mℓ, there is one direct test, at most Mℓ iterate queries by [F4], and one candidate verification. Thus the round makes at most Mℓ+2≤(3/2)ℓ+3 bit queries.

1.2givenF1F2F6F7algebra

Now let 0<a<3/4 and let L be the first stage with ML≥4/a, which exists because (3/2)ℓ→∞. Minimality gives (3/2)L−1<4/a and ML≤(3/2)L+1<6/a+1≤7/a. Also (3/2)m≥1+m/2 by induction, so the threshold is reached by m=⌈8/a⌉; thus L=O(1/a). The absorptions of the additive constants use [F7].

2.1step 1.1F1F5F7algebra

First suppose a≥3/4. Each round succeeds at least on its direct uniform sample, with probability at least 3/4 by [F1]. The probability of reaching round ℓ is at most (1/4)ℓ−1. Hence the expected total query count over any finite number of rounds is bounded by ∑ℓ≥1(1/4)ℓ−1((3/2)ℓ+3), a convergent geometric series because (3/2)/4=3/8<1. It is an absolute constant, hence O(1/a) by [F7].

2.2step 1.1step 1.2algebra

Before stage L, bound every reach probability by 1. The geometric sum of (3/2)ℓ over ℓ<L is at most 3(3/2)L−1<12/a, while the additive 3 per round contributes 3(L−1)=O(1/a) by step 1.2. Thus the early-stage expected query count is O(1/a).

2.3step 1.1step 1.2F2F5F7algebra

At every stage ℓ≥L, [F2] bounds the conditional failure probability by 5/8. Therefore the probability of reaching L+k is at most (5/8)k. Since ML+k≤(3/2)kML+1, the tail expected query count is at most ∑k≥0(5/8)k((3/2)kML+3), which is 16ML+8=O(1/a) because (5/8)(3/2)=15/16<1, ML≤7/a by step 1.2, and 8=O(1/a) by [F7].

3.1step 1.1step 1.2step 2.1step 2.2step 2.3F1F3F5F6F7F8algebra∎

Any finite M-step execution prefix can begin at most M rounds because each attempted round starts with a direct sample query; if the prefix ends inside a round, its query count is bounded by that completed round's bound in step 1.1. Summing the reach-probability-weighted round bounds through the prefix is therefore at most the full sums in steps 1.2 and 2.2–2.3, uniformly in M. The supremum over finite prefixes in [F5] is bounded by those convergent geometric sums. [F3] gives almost-sure termination for t>0; the expected bound is for bit queries only, with other coordinates separate by [F8]. Since 1/a=N/t, the expected bit-query cost is O(N/t). If t=0, every round issues a direct sample query and continues, so a finite prefix after R completed rounds has expected query count at least R; the supremum is infinite.

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

Success guarantee and boundary behavior of known-count Grover search

Statement

For exact known count t>0, the procedure Known-count Grover search by exact integer maximization outputs a marked item with probability at least max⁡{t/N,1−t/N}. It returns none with certainty when t=0 and returns a marked item with certainty when t=N.

Facts & Assumptions

Given: N=2n, a marked set M, and exact count t=∣M∣ supplied to the algorithm.

[F1]

Known-count Grover search by exact integer maximization: if t=0 it returns none; otherwise it chooses the least maximizer of the rational values rk=(1−T2k+1(q))/2 over 0≤k≤K=⌈N/t⌉, where q=1−2t/N. It applies that many Grover iterates, measures an address, and verifies it with the exact bit oracle for f=1M.

[F2]

Exact success probability after an integer number of Grover iterates: for 0<t<N and θ=arcsin⁡t/N, after k iterates the marked probability is pk=sin⁡2((2k+1)θ). For t=0,N it is respectively 0,1 for every integer k≥0.

[F3]

Integer rounding gives a high-success Grover iterate: for 0<t/N≤1/2, an integer k≤K has pk≥1−t/N; for t/N>1/2, k=0 has p0=t/N.

[F4]

Bit cost of exact known-count iteration selection: exact selection computes T0=1, T1=q, Tm+1=2qTm−Tm−1 through 2K+1 and compares the finite rational list (1−T2k+1(q))/2.

[F5]

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

[F6]

The addition formulas for sine and cosine: cos⁡(u+v)=cos⁡ucos⁡v−sin⁡usin⁡v.

[F7]
[F9]

Principal inverse sine and inverse cosine: sin⁡(arcsin⁡y)=y for y∈[−1,1].

Proof

1.1givenF1F2

If t=0, [F1] returns none. If t=N, [F2] gives marked probability one for every integer iteration count, and the exact verification in [F1] accepts every address. Thus the two endpoint claims hold.

1.2givenF1F2F4F5F6F7F8F9F10inductionalgebra

For 0<t<N, put a=t/N and θ=arcsin⁡a. By [F9]–[F10], sin⁡2θ=a, so [F5] gives q=1−2a=cos⁡(2θ). The recurrence in [F4] starts with T0=cos⁡0=1 and T1=cos⁡(2θ) by [F8]. Expanding cosine at 2mθ±2θ using [F6]–[F7] gives cos⁡(2(m+1)θ)+cos⁡(2(m−1)θ)=2cos⁡(2θ)cos⁡(2mθ). Induction in that recurrence therefore gives Tm(q)=cos⁡(2mθ) at every computed index. Consequently rk=(1−cos⁡((4k+2)θ))/2=sin⁡2((2k+1)θ)=pk for every candidate 0≤k≤K, by [F5] and [F2].

2.1givenF1F3step 1.2algebra

If 0<a≤1/2, the witness k≤K from [F3] belongs to the algorithm's finite candidate list and has pk≥1−a. Step 1.2 identifies each rational candidate value with its actual marked probability, so the selected maximizer has success at least 1−a=max⁡{a,1−a}. Exact verification accepts every marked measurement by [F1].

3.1givenF1F3step 1.1step 1.2algebra∎

If 1/2<a<1, the candidate k=0 in [F3] has success a>1/2. Step 1.2 identifies the maximized list with actual marked probabilities, so the selected iterate succeeds with probability at least a=max⁡{a,1−a}. Exact verification again accepts every marked measurement by [F1]. Together with step 1.1, this proves every branch of the guarantee.

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

Nine-round randomized known-count search succeeds with probability at least two-thirds

Statement

For every exact known count t>0, the randomized known-count procedure returns a marked item with probability at least 2/3. If 0<t≤N/2, each round succeeds with probability at least 1/8 and nine-round failure is at most (7/8)9<1/3. If t>N/2, each direct-sampling round succeeds with probability greater than 1/2, so nine-round failure is less than 1/512. For t=0 the procedure returns none exactly.

Facts & Assumptions

Given: The nine-round algorithm with its exact K, rejection sampling, and candidate verification.

[F1]

Known-count search by randomized Grover iteration: for 0<t≤N/2, each round draws b fair bits, accepts j<K, applies j Grover iterates, and verifies the measured candidate; for t>N/2 it makes a direct uniform sample; for t=0 it returns none.

[F2]

Average Grover success for a uniform integer iteration count: conditional on a uniform J∈{0,…,K−1}, average Grover success is at least 1/4.

Proof

1.1givenF1algebra

If 0<t≤N/2, the algorithm's accepted labels are exactly 0,…,K−1. If K=1, then b=0 and acceptance has probability 1. If K>1, minimality of b gives 2b−1<K≤2b, so acceptance probability K/2b>1/2 and, conditional on acceptance, each accepted j is equally likely.

2.1step 1.1F1F2algebra

By [F2], an accepted round succeeds with probability at least 1/4. Multiplying by the acceptance probability gives per-round success at least 1/8. Fresh random bits, registers, and measurements make the nine rounds independent conditional on the fixed oracle, so total failure is at most (7/8)9. Since 3⋅79=121060821<134217728=89, this is less than 1/3.

3.1givenF1algebra∎

If t>N/2, a uniform address is marked with probability t/N>1/2. Nine fresh direct samples therefore fail with probability (1−t/N)9<(1/2)9=1/512<1/3. If t=0, the algorithm's explicit branch returns none. Every returned item in the other branches is verified by a standard bit query, so no unmarked item is returned.

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

Known-count Grover search uses O of the square root of N over t bit queries

Statement

For 0<t≤N, the exact known-count procedure uses O(N/t) standard bit queries: one query for each Grover iterate and at most one separate verification query. If t=0 and the exact count is supplied, it returns none with no query. This is only a query bound; exact classical maximization can cost exponentially many bit operations in n.

Facts & Assumptions

Given: The exact known-count algorithm and the worst-case quantum query-cost convention.

[F1]

Known-count Grover search by exact integer maximization: if t=0, the algorithm returns none without a query. If t>0, it computes the recurrence and every candidate value for 0≤k≤K=⌈N/t⌉, chooses the least maximizer, applies k iterates, then makes one verification query.

[F2]

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

[F3]

Quantum query complexity: query cost counts the designated oracle invocations, separately from gates and classical work.

[F4]

Success guarantee and boundary behavior of known-count Grover search: the finite maximization has the stated success guarantee and the t=0 branch returns none.

[F6]

Squaring is monotone on the nonnegatives: since N/t≥1, its nonnegative square root is at least 1.

Proof

1.1F1F2

For t>0, [F1] uses at most K iterates; by [F2] they contribute at most K bit queries, and the separate verification contributes at most one.

2.1step 1.1F1F3F5F6algebra

By [F5]–[F6], K+1≤N/t+2≤3N/t. This is the claimed worst-case query bound; no nonoracle gate or classical preprocessing cost is included by [F3]. For t=1, [F1] explicitly computes K+1≥N=2n/2 candidate values, so its classical work can be exponential in n.

3.1givenF1F3F4∎

For t=0, [F4] gives the correct output none, and the explicit early return in [F1] executes it without any oracle invocation. Thus its query cost is zero by [F3].

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

Query cost of randomized known-count Grover search

Statement

For 0<t≤N/2, the nine-round randomized known-count procedure uses at most 9K=O(N/t) standard bit queries, where K=⌈N/t⌉; rejected rounds use no oracle query and each accepted round uses j≤K−1 iterate queries plus one verification query. For t>N/2 it uses at most nine queries, and for t=0 it uses none. This is a query count only, not a gate or classical preprocessing bound.

Facts & Assumptions

Given: The randomized known-count algorithm, exact K, and worst-case quantum query convention.

[F1]

Known-count search by randomized Grover iteration: there are nine rounds; rejected labels use no query, accepted labels use j<K iterates and one verification, the direct branch makes one query per round, and t=0 returns none.

[F2]

Quantum query complexity: query cost counts oracle calls and excludes gates and classical work.

[F3]

One Grover iterate uses one standard bit query: one Grover iterate uses one bit query.

[F5]

Squaring is monotone on the nonnegatives: since N/t≥1, its nonnegative square root is at least 1.

Proof

1.1givenF1F3

In the branch 0<t≤N/2, an accepted round uses at most K−1 iterate queries by [F3] and one verification query by [F1], hence at most K queries; rejected rounds use zero. Nine rounds use at most 9K.

2.1step 1.1F1F2F4F5algebra∎

Since N/t≥1 by [F5], [F4] gives K≤2N/t, so 9K=O(N/t). In the direct branch there are at most nine queries, and for t=0 none; [F2] keeps these counts separate from gates and classical work.

5 · Examples, counterexamples and false statements

None yet.

Sources