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
- Absolute and Conditional Convergence; Rearrangement; Products
- Algebraic Closure, Embeddings, and Separability
- Algebraic Extensions, Extension Degree, and Finite Fields
- Binary Operations, Monoids, Groups and Subgroups
- Boolean Circuits and Nonuniform Complexity
- Bounded Linear Operators and Quotient Spaces
- Circuit Syntax, Denotational Semantics, and Measurement
- Clifford+T Exact and Approximate Synthesis
- Compactness in Metric Spaces
- Completeness, Completion, and Uniform Continuity
- Complex Norms and Realification
- Complexification, Realification and Real Structures
- Composition Series, the Jordan–Hölder Theorem and Solvable Groups
- Computational Problems, Promises, and Cost Models
- Congruences, the Integers Modulo n and the Chinese Remainder Theorem
- Construction of the Natural Numbers
- Construction of the Real Numbers via Cauchy Sequences
- Construction of the Real Numbers via Dedekind Cuts
- Continuity, IVT, EVT, and Uniform Continuity
- Continuous-Gate Universality and Exact Synthesis
- Controlled Gates, Phase, and Entanglement
- Cosets, Index and Lagrange's Theorem
- Countability and Uncountability
- Cyclic Groups and Direct Products
- Determinants of Matrices over a Commutative Ring
- Diagonalisation and the Minimal Polynomial
- Divisibility, Euclidean Domains, Principal Ideal Domains and Unique Factorisation
- Divisibility, Greatest Common Divisors and Bézout's Identity
- Dual Spaces, Bilinear and Quadratic Forms, and Sylvester's Law of Inertia
- Effective Numberings, Reductions, Resources, and Randomness
- Eigenvalues, Eigenvectors and the Characteristic Polynomial
- Filters and Ultrafilters
- Finite Counting, Factorials and Binomial Coefficients
- Finite Dimensional Normed Spaces and Riesz Lemma
- Finite Probability Spaces and Random Variables
- Finite-Dimensional Complex Inner-Product Spaces and Matrix Interfaces
- Formal Languages, Encodings, and Decision Problems
- Foundations of the Real Numbers for Analysis
- Free Modules, Exact Sequences, Projective and Injective Modules
- Fundamental Trigonometric Identities
- Further Trigonometric Identities and Inverse Functions
- Group Actions, Orbits, Stabilisers and Cayley's Theorem
- Group Homomorphisms and the Isomorphism Theorems
- Hilbert Space Geometry and Riesz Representation
- Ideals, Quotient Rings and the Isomorphism Theorems for Rings
- Inner Product Spaces, Gram-Schmidt, Projections and Adjoints
- Limits of Real Functions
- limsup, liminf, and Subsequential Limits
- Linear Independence, Bases and Dimension
- Linear Recurrences and Rational Generating Functions
- Linear Transformations, Rank-Nullity and Quotient Spaces
- Matrices, the Matrix of a Linear Map, and Change of Basis
- Measurements, POVMs, and Instruments
- Metric Spaces
- Modules, Submodules, Quotient Modules and the Isomorphism Theorems
- Monotone Functions, Discontinuities, and Continuity Sets
- Monotone Sequences, Bolzano-Weierstrass, and Cauchy Completeness
- Normal Subgroups and Quotient Groups
- Normed and Banach Spaces
- Order, Zorn's Lemma, and the Axiom of Choice
- Polynomial Rings, the Division Algorithm and Roots
- Power and sample size
- Power Series and Real-Analytic Functions
- Primes, Euclid's Lemma and the Fundamental Theorem of Arithmetic
- Properties of the Integral and the Working FTC
- Pure and Mixed States, Ensembles, and Schmidt Decomposition
- Qubits, Bloch Sphere, Pauli Algebra, and One-Qubit Gates
- Registers, Tensor Products, and Partial Trace
- Relations, Functions, and Quotients
- Resource Bounds and Machine Invariance
- Reversible Arithmetic and Oracle Conversion
- Reversible Computation, Ancillas, and Coherent Oracles
- Rings, Subrings, Integral Domains and Fields
- Rⁿ as a Normed Space; Vector-Valued Functions
- Roots, Rational Powers, and Classical Inequalities
- Sequences and Limits
- Sequences and Series of Functions; Uniform Convergence
- Series: Convergence and the Nonnegative Tests
- Simple Field Extensions and the Construction of the Complex Numbers
- Sine, Cosine, and the Definition of Pi
- Splitting Fields
- Strongly Continuous Semigroups and Hille Yosida
- Suprema and Infima
- Sylow's Theorems, p-Groups and Nilpotent Groups
- Symmetric Groups, Cycle Decomposition and the Sign Homomorphism
- Tensor Products of Modules
- The Complex Exponential and Euler's Formula
- The Derivative and the Mean Value Theorems
- The Determinant of a Linear Operator, Cofactors and Cramer's Rule
- The Exponential Function
- The Fundamental Theorem of Algebra
- The Fundamental Theorem of Finite Abelian Groups
- The Galois Correspondence
- The Polynomial Hierarchy and Relativization
- The Riemann Integral: Definition and Integrability
- The Spectral Theorem, Positive Operators and Singular Value Decomposition
- The ZFC Axioms and the Basic Set Constructions
- Topology of ℝ
- Triangularisation, Generalised Eigenspaces and Jordan Canonical Form
- Trigonometric and Oscillatory Examples in One Variable
- Turing Machines, Configurations, and Computation
- Uniform Circuit Families, Promise Problems, and Complexity
- Vector Spaces, Linear Subspaces, Span and Direct Sums
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
Finite marked-item search and its bit oracle
Definition
Fix an integer , put , and let . The big-endian encoding is a bijection by Big-endian bit-string indices are bijective, so identify each address word with its slot . A search instance is a total Boolean function , equivalently the word-indexed function . Its marked set is and its marked count is . The standard bit query is the coherent XOR action ; the associated phase query is . 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 is verified by a separate standard bit query. Knowing is additional classical input; no count promise is made in the unknown-count version. A correct search output is a verified . The distinguished output none is used only by a procedure whose input includes the exact fact ; it is not a finite-time test for emptiness when is unknown.
The number may be zero, so 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.
One Grover iterate in the standard bit-query model
Definition
Gate model. The declared nonoracle model permits exact callable and , each occurrence charged as one elementary gate. It supplies the exact reflection 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 , let and . Prepare a response qubit from by applying and then , giving . Apply the standard bit query to the address and response registers; phase kickback applies to the address and leaves the response in . Then apply to the address register. This defines 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 may be represented as , whose reflection cost must be charged under the declared gate model.
Orthogonal marked and unmarked components of the uniform state
Statement
Let have size with . Define Then and are orthonormal. For , the uniform state is with .
Facts & Assumptions
Given: , , a marked set , and . Here the uniform state denotes the equal-positive-amplitude vector .
Finite marked-item search and its bit oracle: is a finite address set with marked subset and marked count .
The computational basis is orthonormal: distinct address basis vectors are orthogonal and every address basis vector has norm .
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.
Dirac Notation Conversion: kets denote vectors and the Dirac pairing is the reversed-argument root inner product.
Principal inverse sine and inverse cosine: takes values in and for .
Signs, monotonicity intervals, and ranges of sine and cosine: cosine is strictly decreasing on and sine is strictly increasing on .
Parity and the Pythagorean identity for sine and cosine: for every real .
Square roots exist: a unique with ; the positives are : each nonnegative real has a unique nonnegative square root .
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
Orthonormality of the address basis [F2] gives and . The sets and are disjoint, so every cross term in is zero. Thus the two vectors are orthonormal.
Put and . By [F5], ; since and by [F9], strict increase [F6] implies . Also by [F11] because , while by [F10]; strict increase gives . Since cosine is strictly decreasing on by [F6], we have by [F10]. The Pythagorean identity [F7] and square-root uniqueness [F8] give . Splitting the uniform sum into and its complement now gives and .
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 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.
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.
Quantum query complexity: the query coordinate counts designated oracle invocations and keeps ordinary gates outside those calls separate.
One standard query implements one phase query: one prepared-response standard query induces the phase query and uses exactly one query invocation.
Proof
The algorithm contains one invocation of ; [F3] identifies that invocation with the phase mark on the address register. By [F2], this designated oracle invocation contributes one query.
The response preparation and are operations outside , so they add no oracle invocation. The iterate therefore uses exactly one query, with no gate-cost bound inferred.
Known-count Grover search by exact integer maximization
Definition
Gate model. Use the nonoracle model of One Grover iterate in the standard bit-query model, with exact callable and charged per occurrence and an explicitly supplied, costed exact reflection implementation. Each invoked Grover iterate retains its separate standard-bit-query and nonoracle costs.
Input , standard bit-query access to , and the exact integer . If , return none without a query. If , find as the least positive integer with : start with , repeatedly set while , then use upper-midpoint binary search on the false/true interval until . Thus . Prepare , set , and compute exactly the rational recurrence Compute the recurrence through index . For each integer , compute . Choose the least attaining the maximum of this finite rational list, apply One Grover iterate in the standard bit-query model exactly times, measure the address register, and make one separate standard bit query to verify the candidate. Return the candidate if marked and the failure symbol otherwise. The state preparation, all-zero reflection, classical recurrence and comparison work, and oracle queries are distinct costs; this definition makes no polynomial-time preprocessing claim.
The Grover iterate rotates the marked/unmarked plane
Statement
Assume and use the orthonormal ordered basis of Orthogonal marked and unmarked components of the uniform state. Let project onto the marked-address span, , and . The Grover iterate preserves , and in this basis has matrix The initially prepared state has coordinate column .
Facts & Assumptions
Given: and the normalized vectors in the marked/unmarked decomposition.
Orthogonal marked and unmarked components of the uniform state: are orthonormal and .
Orthogonal-Projector Reflection and Access Contract: and have the displayed opposite signs.
Proof
The mark fixes each unmarked basis vector and negates each marked basis vector. Thus its matrix on is and it preserves the plane.
In the same basis, [F1] and the rank-one convention [F3] give by [F4].
Multiplying the matrix in step 1.2 by 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 by [F1].
Known-count search by randomized Grover iteration
Definition
Gate model. Use the nonoracle model of One Grover iterate in the standard bit-query model, with exact callable and charged per occurrence and an explicitly supplied, costed exact reflection implementation. Each invoked Grover iterate retains its separate standard-bit-query and nonoracle costs.
Input , exact count , and standard bit-query access to . If , return none without a query. If , perform at most nine independent rounds: prepare a fresh address register by , measure an address, make one standard bit query to verify it, and return it if marked; after nine failures return the failure symbol.
If , find the least positive integer satisfying by binary search. Initialize and ; while , put , replace by if , and otherwise replace by . Set to the least nonnegative integer with . In each of nine independent rounds, draw fair bits to obtain . Reject the round without a query if . Otherwise prepare a fresh and a fresh response qubit using then , apply One Grover iterate in the standard bit-query model exactly times, measure the address register, and make one separate bit query to verify the measured candidate. Return it if marked. After nine unsuccessful rounds, return the failure symbol. Uniform-state preparation uses exactly Hadamards; each iterate uses one query and a separately charged reflection. No query, state-preparation, reflection-gate, or classical-bit cost is conflated.
BBHT search when the marked count is unknown
Definition
Gate model. Use the nonoracle model of One Grover iterate in the standard bit-query model, with exact callable and charged per occurrence and an explicitly supplied, costed exact reflection implementation. Each invoked Grover iterate retains its separate standard-bit-query and nonoracle costs.
Input and standard bit-query access to , with no input giving . Fix and initialize . In each round increment and put . First draw one uniform address and verify it by one standard bit query; if , return . Otherwise choose uniformly from , prepare a fresh address register as and a fresh response qubit as using then , apply the Grover iterate exactly times, measure the address register, and verify the candidate by a separate standard bit query. Return a verified marked item and otherwise begin the next round. Every random choice and quantum register is fresh in each round. The algorithm has no false positive; when it continues forever and does not produce a finite-time emptiness decision. The gate and state-preparation costs are charged separately from the bit-query count.
Exact success probability after an integer number of Grover iterates
Statement
For , let . After an integer Grover iterates starting from , the probability of measuring a marked address is For this probability is , and for it is for every integer ; 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.
Orthogonal marked and unmarked components of the uniform state: for , has coordinate column in the ordered basis .
The Grover iterate rotates the marked/unmarked plane: acts on that plane by the matrix .
One Grover iterate in the standard bit-query model: each iteration applies to the address and leaves the phase-kickback response in .
One standard query implements one phase query: phase kickback applies the phase mark and returns the response qubit to .
The addition formulas for sine and cosine: sine and cosine of a sum obey their addition formulas.
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.
A unit-vector outer product is a density operator: for a unit vector , is a density operator.
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.
The computational basis is orthonormal: the full address/response computational basis is orthonormal.
Finite registers and their ordered computational bases: the address and response registers form an ordered tensor-product register.
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.
One standard query implements one phase query: the response is prepared by then into and is returned unchanged by phase kickback.
Exact one-qubit gates and rotations: and are the exact unitary one-qubit gates in the ordered computational basis.
Proof
For , the address coordinate column is by [F1], which is .
If after iterations the column is , multiplication by the matrix in [F2] and the addition formulas [F5] gives . Induction therefore gives the marked amplitude for every integer .
The address vector at step 2.1 is unit by [F1] and [F7]. The response starts in the unit basis vector and the gates in [F15] are unitary, so the response state supplied by [F14] is unit. Their tensor product is unit by the product pairing [F12]–[F13], and [F8] makes a density operator.
For each product-basis vector , [F9] and [F11] give the diagonal weight . By step 2.1, the address coordinate along is ; the definition in [F1] therefore gives coefficient at each marked . The squared response coordinates sum to because is unit and the qubit computational basis is orthonormal by [F10], [F14]–[F15]. Summing over the marked addresses and both response values gives . The terminal output law [F6] sums precisely over the unmeasured response register, so this is the measured marked probability.
If , and , so all iterates remain in the unmarked subspace and the marked probability is . If , and each iterate maps to ; every address is marked, so the probability is .
Bit cost of exact known-count iteration selection
Statement
For , put and . The exact selection procedure in Known-count Grover search by exact integer maximization computes the recurrence through and compares for . If , the recurrence numerators and denominators have bits and schoolbook arithmetic selects the least maximizing in classical bit operations. For , necessarily and the selection costs . Since when , the preprocessing can be exponential in ; this query bound supplies no end-to-end polynomial-time claim.
Facts & Assumptions
Given: , exact with , and the recurrence and finite candidate list in the known-count algorithm.
Known-count Grover search by exact integer maximization: the algorithm finds by doubling and binary search for the least positive integer with , forms , computes through , and selects the least maximizer of for .
Square roots exist: a unique with ; the positives are : nonnegative reals have unique nonnegative square roots.
Ceilings give the least positive integer meeting a real threshold: is the least integer at least , and is monotone in the threshold.
The addition formulas for sine and cosine: for real .
Classical bit-operation cost: classical bit cost counts the transitions used for arithmetic, comparisons, reading and writing bits; oracle calls are a separate coordinate.
Parity and the Pythagorean identity for sine and cosine: for every real .
Squaring is monotone on the nonnegatives: squaring preserves order on nonnegative reals, so is nondecreasing for integers when .
Proof
For , is monotone on nonnegative integers by [F9], and its least positive true index is by [F2]–[F3]. The doubling loop starts with false endpoint and doubles until is true; it terminates because powers of two are unbounded. If it stops immediately. If , the first true power of two satisfies , and the preceding power is false. Upper-midpoint binary search preserves the false/true invariant and reduces each interval of width to width at most , so it reaches width one after evaluations and returns the least positive true index . Since , the endpoints have bits for .
Put and . Then by [F4]–[F5]. The recurrence has base values and . By [F6], so induction in the recurrence gives for every computed index. Therefore , and the rational list in [F1] is the actual integer-iterate success list.
Write , so , and define . Then , , and the recurrence gives so each is an integer. By step 1.2 and [F8], . Thus for and , both numerator and denominator have bits. For , , , and all recurrence values have constant bit length.
At recurrence index , multiplying the -bit integer by the -bit integer costs schoolbook bit operations; multiplication by is a binary shift, and addition costs . Summing over gives . Each predicate evaluation in step 1.1 uses -bit operands and schoolbook arithmetic, hence bit operations; the evaluations cost .
For odd , write . Advancing from to scales the previous running-best numerator by to put it over the new denominator, then compares the two integers and updates only on strict increase. Each comparison costs bit operations by step 2.1, and there are candidates, so all comparisons cost , within step 3.1's bound. Strict updates retain the least in a tie.
If , then , so . The preprocessing bound can therefore be exponential in , and it supplies no polynomial-time conclusion from the query bound.
If , necessarily , so and the direct selection branch and finite recurrence take constant work, as stated.
Classical bit cost of randomized known-count search
Statement
For , the procedure Known-count search by randomized Grover iteration computes by binary-search predicate evaluations on integers with bits, costing deterministic bit operations by schoolbook arithmetic. Computing and drawing the nine -bit iteration labels uses further classical bit operations and random bits. The direct-sampling branch uses 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 classical fair bits. These bounds are for ; when , 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, , exact integer , and the classical bit-cost convention.
Known-count search by randomized Grover iteration: in the branch, binary search finds the least with , then samples nine labels using fair bits.
Square roots exist: a unique with ; the positives are : the nonnegative square root of exists.
Ceilings give the least positive integer meeting a real threshold: is the least positive integer meeting .
Classical bit-operation cost: classical bit work includes random-bit generation and address bookkeeping, while each oracle invocation is charged separately.
Squaring is monotone on the nonnegatives: square roots preserve order on nonnegative reals.
Squaring is monotone on the nonnegatives: squaring preserves order on nonnegative reals, so is monotone for and .
Proof
Since , by [F5], hence . The predicate is false at , true at , and monotone by [F6]. At each step with width , the upper midpoint lies strictly between the endpoints; replacing the endpoint with the same predicate value preserves the invariant and leaves width at most . Thus after steps the width is one and is the least positive integer satisfying , namely by [F3].
The initial endpoint has bits, so each midpoint does as well. A schoolbook square and multiplication compute in bit operations, and comparison with takes more. The predicate evaluations therefore cost .
The least with satisfies . The nine labels consume random bits and comparisons; forming or writing each at-most--bit address uses more bookkeeping. Hence this work is within .
If , each of at most nine rounds measures the freshly prepared uniform quantum address. Handling these returned -bit addresses and writing the result takes classical bit operations in total; the state preparation and measurements are separate quantum operations, and no classical fair address bits are generated. For , and the bookkeeping is constant. The bit-query invocations remain separately charged by [F4].
Gate and reflection accounting for randomized known-count search
Statement
Each uniform-state preparation uses exactly Hadamard gates. Write and let be its declared gate cost if implemented or supplied as a named reflection. Conjugation gives , so an iterate uses Hadamards, cost , and one bit-oracle query. For the branch, the total nonoracle gate cost is at most up to measurement and output handling. For it is at most 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.
Known-count search by randomized Grover iteration: each accepted randomized round prepares a fresh uniform state, uses at most iterates when , and the direct branch uses only uniform preparation before verification.
Exact one-qubit gates and rotations: is the exact Hadamard matrix with and .
Orthogonal-Projector Reflection and Access Contract: a prepared-state reflection is , and its cost includes the preparation, reflection, and inverse preparation unless a different declared primitive is supplied.
Projector Reflections Are Hermitian Unitary Involutions: both reflection signs are unitary involutions with the declared signs.
Finite circuit resource accounting: gate occurrences, queries, and classical bit operations are separate resource coordinates.
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
Applying to each of the address wires sends to by the tensor-product action, using exactly occurrences of by [F2] and [F5]. The case has no such occurrences.
Since and , conjugating gives . This costs Hadamards plus the declared ; [F3]–[F4] do not make the all-zero reflection free.
In the branch each round has at most one fresh preparation, two gates for the response qubit, and at most 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.
When , each of at most nine direct rounds only prepares and measures/verifies, so there are at most Hadamards and no diffusion reflection. The t=0 branch returns before preparation.
Constant BBHT stage success beyond the threshold scale
Statement
Let , , and let be uniform on . If the positive integer satisfies , then
Facts & Assumptions
Given: , , , and an integer .
Exact success probability after an integer number of Grover iterates: after integer iterates, the marked probability is .
The addition formulas for sine and cosine: sine and cosine obey their addition formulas.
Principal inverse sine and inverse cosine and Signs, monotonicity intervals, and ranges of sine and cosine: the principal angle is in , sine is strictly increasing there, and cosine is positive on .
Square roots exist: a unique with ; the positives are : nonnegative reals have unique nonnegative square roots.
Squaring is monotone on the nonnegatives: square roots preserve order on nonnegative reals.
Proof
Since , [F7] and [F10] give . From [F4], and . By [F8], , so strict increase [F5] gives . Since by [F9], strict increase and give ; then by [F5]. The Pythagorean identity [F6] gives .
By [F1] and [F4], the average equals .
By [F3], for every , . Summing from to and using gives . Thus the average in step 1.2 is .
Since , , so [F10] gives . Steps 1.1 and [F4]–[F7] then give . Therefore and the absolute value of the correction in step 2.1 is less than . The average is greater than , hence at least .
Unknown-count search halts almost surely when a marked item exists
Statement
For , the BBHT algorithm halts with probability and returns an element of ; the probability it has not returned a marked item after rounds tends to zero. For , 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.
BBHT search when the marked count is unknown: each round directly tests a uniform candidate, then uses uniformly distributed on , measures, verifies with a bit query, and continues after failure.
Finite marked-item search and its bit oracle: when , the marked set is empty; when , a successful output is a verified element of .
Constant BBHT stage success beyond the threshold scale: for , every round with has conditional quantum-search success at least .
Proof
If , then 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.
Suppose and write . If , the initial uniform sample in every round is marked with probability . Fresh independent samples imply failure through rounds is at most , which tends to zero.
If , the schedule tends to infinity, so some finite satisfies . From round onward, conditional on reaching that round and on the direct sample having failed, [F3] gives quantum-search success at least ; fresh random labels and registers make this conditional law independent of the direct sample. Thus a round succeeds with probability at least . Fresh rounds then give failure through round at most .
The verification query returns the actual value , 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 whenever .
Integer rounding gives a high-success Grover iterate
Statement
Put and . If , some integer with has If , lies in this range and . The real-valued optimizer is not in general an integer.
Facts & Assumptions
Given: , exact with , , and .
Exact success probability after an integer number of Grover iterates: for and each integer , . For , every integer iteration count has marked probability .
Signs, monotonicity intervals, and ranges of sine and cosine: sine is strictly increasing on , and cosine is strictly decreasing on .
Quarter-turn values and shifts by pi/2 and pi: and the sine/cosine shift identities by hold.
Parity and the Pythagorean identity for sine and cosine: sine is odd and .
Square roots exist: a unique with ; the positives are : a nonnegative real has a unique nonnegative square root.
Integer part: for every real there is exactly one integer with : every real has an integer with .
Ceilings give the least positive integer meeting a real threshold: is an integer at least .
Squaring is monotone on the nonnegatives: nonnegative square roots preserve order.
Proof
Suppose . Put , , and . By [F11], , so ; [F3] gives , and its cosine monotonicity together with [F5] gives . The double-angle identity [F7] and quarter-turn value [F5] give , while [F8] gives . Thus , so ; hence and by [F9]. Since , [F14] gives , and strict increase in [F3] implies . Also , and by [F2], so strict increase [F3] gives . The Lipschitz estimate [F4] then yields .
Put . Since , . Let and choose if , otherwise choose . By [F10], is a nonnegative integer and . For , the value of from step 1.1 and injectivity in [F3] give , hence , exhibiting a noninteger optimizer.
The choice in step 2.1 gives , using [F11]–[F12].
By the definition of , . Therefore . The angle magnitude is at most by step 2.1. Oddness and monotonicity of sine imply ; hence and .
If , then and is in the candidate range; [F1] and [F2] give . If , then by [F12] and [F9], and the endpoint clause of [F1] gives .
Average Grover success for a uniform integer iteration count
Statement
For , put , , and . If is uniform on , then
Facts & Assumptions
Given: , , and .
Exact success probability after an integer number of Grover iterates: after iterates the marked probability is .
The addition formulas for sine and cosine: sine and cosine obey their addition formulas.
Square roots exist: a unique with ; the positives are : nonnegative reals have unique nonnegative square roots.
Signs, monotonicity intervals, and ranges of sine and cosine: sine is strictly increasing on and cosine is positive on .
Squaring is monotone on the nonnegatives: square roots preserve order on nonnegative reals.
Proof
Since , [F7] gives a nonnegative root and [F11] gives . By [F4], . Since by [F8] and sine is strictly increasing by [F10], . Also by [F9], so strict increase and give ; hence by [F10]. The Pythagorean identity [F5] gives .
Using [F1] and the identity from [F3], the average is .
For each , [F2] gives . Summing from to telescopes to . Substitution in step 1.2 proves the displayed identity.
Since , [F11] gives . By [F3] and step 1.1, . Hence by [F6]. The absolute value of the correction term in step 2.1 is at most , so the average is at least .
Expected bit-query cost of unknown-count BBHT search
Statement
For , the BBHT algorithm has expected standard bit-query cost . 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 , it never halts and the expected query cost from finite execution prefixes is infinite.
Facts & Assumptions
Given: The BBHT algorithm with , the expected-query definition, and .
BBHT search when the marked count is unknown: stage uses , one direct sample query, at most iterate queries, and one verification query.
Constant BBHT stage success beyond the threshold scale: when and , conditional stage success is at least .
Unknown-count search halts almost surely when a marked item exists: for the algorithm returns a verified marked element almost surely.
One Grover iterate uses one standard bit query: every Grover iterate uses one standard bit query.
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.
Ceilings give the least positive integer meeting a real threshold and Square roots exist: a unique with ; the positives are : ceilings are least integer upper bounds and is the nonnegative root.
Quantum query complexity: query calls are a separate resource coordinate from gates and classical bit operations.
Proof
In a round with stage size , there is one direct test, at most iterate queries by [F4], and one candidate verification. Thus the round makes at most bit queries.
Now let and let be the first stage with , which exists because . Minimality gives and Also by induction, so the threshold is reached by ; thus . The absorptions of the additive constants use [F7].
First suppose . Each round succeeds at least on its direct uniform sample, with probability at least by [F1]. The probability of reaching round is at most . Hence the expected total query count over any finite number of rounds is bounded by a convergent geometric series because . It is an absolute constant, hence by [F7].
Before stage , bound every reach probability by . The geometric sum of over is at most , while the additive per round contributes by step 1.2. Thus the early-stage expected query count is .
At every stage , [F2] bounds the conditional failure probability by . Therefore the probability of reaching is at most . Since the tail expected query count is at most which is because , by step 1.2, and by [F7].
Any finite -step execution prefix can begin at most 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 . The supremum over finite prefixes in [F5] is bounded by those convergent geometric sums. [F3] gives almost-sure termination for ; the expected bound is for bit queries only, with other coordinates separate by [F8]. Since , the expected bit-query cost is . If , every round issues a direct sample query and continues, so a finite prefix after completed rounds has expected query count at least ; the supremum is infinite.
Success guarantee and boundary behavior of known-count Grover search
Statement
For exact known count , the procedure Known-count Grover search by exact integer maximization outputs a marked item with probability at least . It returns none with certainty when and returns a marked item with certainty when .
Facts & Assumptions
Given: , a marked set , and exact count supplied to the algorithm.
Known-count Grover search by exact integer maximization: if it returns none; otherwise it chooses the least maximizer of the rational values over , where . It applies that many Grover iterates, measures an address, and verifies it with the exact bit oracle for .
Exact success probability after an integer number of Grover iterates: for and , after iterates the marked probability is . For it is respectively for every integer .
Integer rounding gives a high-success Grover iterate: for , an integer has ; for , has .
Bit cost of exact known-count iteration selection: exact selection computes , , through and compares the finite rational list .
Parity and the Pythagorean identity for sine and cosine: cosine is even and sine is odd.
Proof
If , [F1] returns none. If , [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.
For , put and . By [F9]–[F10], , so [F5] gives . The recurrence in [F4] starts with and by [F8]. Expanding cosine at using [F6]–[F7] gives . Induction in that recurrence therefore gives at every computed index. Consequently for every candidate , by [F5] and [F2].
If , the witness from [F3] belongs to the algorithm's finite candidate list and has . Step 1.2 identifies each rational candidate value with its actual marked probability, so the selected maximizer has success at least . Exact verification accepts every marked measurement by [F1].
If , the candidate in [F3] has success . Step 1.2 identifies the maximized list with actual marked probabilities, so the selected iterate succeeds with probability at least . Exact verification again accepts every marked measurement by [F1]. Together with step 1.1, this proves every branch of the guarantee.
Nine-round randomized known-count search succeeds with probability at least two-thirds
Statement
For every exact known count , the randomized known-count procedure returns a marked item with probability at least . If , each round succeeds with probability at least and nine-round failure is at most . If , each direct-sampling round succeeds with probability greater than , so nine-round failure is less than . For the procedure returns none exactly.
Facts & Assumptions
Given: The nine-round algorithm with its exact , rejection sampling, and candidate verification.
Known-count search by randomized Grover iteration: for , each round draws fair bits, accepts , applies Grover iterates, and verifies the measured candidate; for it makes a direct uniform sample; for it returns none.
Average Grover success for a uniform integer iteration count: conditional on a uniform , average Grover success is at least .
Proof
If , the algorithm's accepted labels are exactly . If , then and acceptance has probability . If , minimality of gives , so acceptance probability and, conditional on acceptance, each accepted is equally likely.
By [F2], an accepted round succeeds with probability at least . Multiplying by the acceptance probability gives per-round success at least . Fresh random bits, registers, and measurements make the nine rounds independent conditional on the fixed oracle, so total failure is at most . Since , this is less than .
If , a uniform address is marked with probability . Nine fresh direct samples therefore fail with probability . If , 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.
Known-count Grover search uses O of the square root of N over t bit queries
Statement
For , the exact known-count procedure uses standard bit queries: one query for each Grover iterate and at most one separate verification query. If 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 .
Facts & Assumptions
Given: The exact known-count algorithm and the worst-case quantum query-cost convention.
Known-count Grover search by exact integer maximization: if , the algorithm returns none without a query. If , it computes the recurrence and every candidate value for , chooses the least maximizer, applies iterates, then makes one verification query.
One Grover iterate uses one standard bit query: each iterate uses exactly one standard bit query.
Quantum query complexity: query cost counts the designated oracle invocations, separately from gates and classical work.
Success guarantee and boundary behavior of known-count Grover search: the finite maximization has the stated success guarantee and the branch returns none.
Squaring is monotone on the nonnegatives: since , its nonnegative square root is at least .
Proof
For , [F1] uses at most iterates; by [F2] they contribute at most bit queries, and the separate verification contributes at most one.
By [F5]–[F6], . This is the claimed worst-case query bound; no nonoracle gate or classical preprocessing cost is included by [F3]. For , [F1] explicitly computes candidate values, so its classical work can be exponential in .
For , [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].
Query cost of randomized known-count Grover search
Statement
For , the nine-round randomized known-count procedure uses at most standard bit queries, where ; rejected rounds use no oracle query and each accepted round uses iterate queries plus one verification query. For it uses at most nine queries, and for 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 , and worst-case quantum query convention.
Known-count search by randomized Grover iteration: there are nine rounds; rejected labels use no query, accepted labels use iterates and one verification, the direct branch makes one query per round, and returns none.
Quantum query complexity: query cost counts oracle calls and excludes gates and classical work.
One Grover iterate uses one standard bit query: one Grover iterate uses one bit query.
Squaring is monotone on the nonnegatives: since , its nonnegative square root is at least .
Proof
In the branch , an accepted round uses at most iterate queries by [F3] and one verification query by [F1], hence at most queries; rejected rounds use zero. Nine rounds use at most .
Since by [F5], [F4] gives , so . In the direct branch there are at most nine queries, and for none; [F2] keeps these counts separate from gates and classical work.
5 · Examples, counterexamples and false statements
None yet.