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.
Adversary Methods and Quantum Query Complexity
1 · Prerequisites
- Absolute and Conditional Convergence; Rearrangement; Products
- Algebraic Closure, Embeddings, and Separability
- Algebraic Extensions, Extension Degree, and Finite Fields
- Amplitude Estimation and Counting
- Binary Operations, Monoids, Groups and Subgroups
- Boolean Circuits and Nonuniform Complexity
- Bounded Linear Operators and Quotient Spaces
- Channels, Kraus, Choi, and Stinespring Representations
- 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
- Convex and Semicontinuous Functions on Rⁿ
- 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
- Equivalent Forms of Completeness
- Filters and Ultrafilters
- Finite Counting, Factorials and Binomial Coefficients
- Finite Dimensional Normed Spaces and Riesz Lemma
- Finite Fourier Analysis and the Fast Fourier Transform
- 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 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
- Quantum Fourier-Transform Circuits
- Quantum Phase Estimation
- 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 Total Derivative in ℝᵐ → ℝⁿ
- 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 fixes the finite partial Boolean query model and develops the signed general adversary method with the same XOR oracle and operator-norm convention throughout. It first proves the finite SDP and Gram-factorization facts used in the dual program, then proves the mismatch-mask progress bound and its bounded-error endpoints. The dual vector characterization is derived from an explicit finite SDP and its block-matrix dual; in the Boolean case it agrees exactly with the filtered γ₂ factorization value.
The upper construction starts from an attained dual certificate, forms the input-consistency reflection using two ordinary XOR queries, and combines it with the input-independent reflection onto the one-witness span. Phase estimation uses M≥512A and the effective spectral gap to give bounded-error evaluation in O(A) queries. Query cost is kept separate from all nonoracle gates and witness-span synthesis.
The companion examples page evaluates a balanced OR certificate and gives an explicit signed matrix for the sorted four-bit Ambainis function. The source treatment corrects the stale route that used only the 2009 span-program theorem for tightness: its theorem carries a logarithmic overhead, while the later state-conversion and reflection construction supplies the constant-factor upper bound.
3 · Logical flowchart
4 · Definitions, theorems and proofs
Finite real semidefinite programs satisfy strong duality under strict feasibility
Statement
Let , , be linear, , and , where is the space of real symmetric matrices with Frobenius pairing . Define the primal and dual values where is the Euclidean adjoint in these finite-dimensional coordinates. Suppose both feasible sets contain strict points, meaning with and , and suppose both optimal values are finite. Then , and both extrema are attained.
Here means for every , while means strict inequality for nonzero .
Facts & Assumptions
Given: The finite primal/dual pair, strict feasible points, and finite optimal values in the Statement.
Non-negative and positive operators: nonnegative means self-adjoint with nonnegative quadratic form; positive means strict positivity on each nonzero vector.
A non-negative operator is equivalently self-adjoint with nonnegative eigenvalues, a positive semidefinite matrix in an orthonormal basis, or an operator of the form S^*S: a nonnegative real self-adjoint matrix has an orthonormal eigenbasis with nonnegative eigenvalues; a positive definite one has all eigenvalues strictly positive.
A point outside a nonempty closed convex set is strictly separated from it: a point outside a nonempty closed convex subset of a finite-dimensional real vector space has a strict separating linear functional.
The adjoint is characterised by : in finite Euclidean coordinates, is the transpose adjoint characterized by .
Heine-Borel in : with the Euclidean metric a subset of is compact if and only if it is closed and bounded, and the proof by bisection uses no choice principle; the same holds on the real line: in every positive finite real dimension, closed bounded Euclidean sets are compact; the bisection proof uses no choice.
The trace as the sum of the diagonal entries: is the sum of the diagonal entries of a square matrix.
The image of a compact metric space under a continuous map is compact, and so is the image of any compact subset: the continuous image of a compact space is compact.
A compact subset of a metric space is closed and bounded: a compact subset of a metric space is closed.
A continuous real-valued function on a nonempty compact metric space is bounded and attains a greatest and a least value: a continuous real function on a nonempty compact metric space attains its maximum and minimum.
For a subspace of a finite-dimensional inner product space, : for a subspace of a finite-dimensional inner-product space, the ambient space is .
Interior, closure, boundary, limit point, isolated point and dense subset of a metric space: a point lies in the closure of a set exactly when every open ball about it meets the set.
Cauchy-Schwarz with its equality case, the triangle inequality for , the parallelogram law and polarisation: Euclidean inner products satisfy .
Proof
The cone is convex and closed because it is the intersection, over , of the closed half-spaces . It is self-dual for : if , diagonalize by [F2], with , to get ; conversely, for every implies .
If is primal feasible and dual feasible, then by self-duality in step 1.1. Thus weak duality gives .
Define . This set is nonempty and convex by linearity and convexity of . To prove it closed without making countably many witness choices, take any in the closure of and let , an open neighborhood of . For any point , a witness satisfies and . Let be the strict dual slack and choose with by [F2]. Self-duality from step 1.1 and give . Since , [F12] bounds the right side above by . Choose larger than this bound divided by . Writing the nonnegative eigenvalues of as , [F2,F6] give and , so by [F2,F6], ; [F12] applied to the Frobenius pairing then gives . Thus lies in the image under the continuous map of the closed bounded set for . This set is compact by [F5], so its image is compact by [F7] and closed by [F8]. Because that image is contained in , and [F11] gives in the closure of (as is a neighborhood of ), it follows that . Hence is closed.
Fix any . The point lies outside , since implies and subtracting cannot increase it. By closedness in step 2.2 and [F3], there are , , and such that for every . Taking and arbitrarily large shows . If , the strict primal point has , contradicting ; hence . Taking for arbitrary shows for all . By the defining adjoint identity [F4] and self-duality, satisfies . Since , , so .
Step 3.1 gives dual feasible values below every , hence ; weak duality in step 2.1 gives equality. For primal attainment, let and consider . It is nonempty because , and closed by step 1.1 and continuity. For , choose with . Every satisfies , and the same eigenvalue calculation as in step 2.2 gives , so is bounded. By [F5], is compact, and [F9] makes the continuous objective attain a maximum there. Since the attained maximum is at least , no feasible point outside can improve it; it equals . For dual attainment, if , the only dual variable is the given feasible and it attains . Assume , let , and use [F10] to decompose each uniquely as with and . Since , ; thus projection to preserves both and . The set is nonempty (it contains the projection of ) and closed: is the intersection of the closed hyperplanes perpendicular to vectors in , and the PSD cone is closed by step 1.1. Put . Since , choose with ; for , . The same eigenvalue calculation as in step 2.2 gives , so is bounded and hence so is . On the unit sphere of , the continuous function is strictly positive because . The sphere is compact by [F5], so [F9] gives a positive minimum ; therefore for all , and is bounded. (If , boundedness is immediate.) Thus is compact by [F5], and [F9] makes attain its minimum on . Any dual feasible point with objective above cannot lower this minimum, while every other dual feasible point projects into without changing its objective. Hence this minimum equals and is attained.
Entrywise products of finite positive semidefinite matrices are positive semidefinite
Statement
If are positive semidefinite, then their entrywise product , defined by , is positive semidefinite.
Facts & Assumptions
Given: Two finite real symmetric positive semidefinite matrices of the same size.
Real and complex inner product spaces, with the inner product linear in the first argument: the standard real inner product on is positive definite and bilinear.
A non-negative operator is equivalently self-adjoint with nonnegative eigenvalues, a positive semidefinite matrix in an orthonormal basis, or an operator of the form S^*S: a finite nonnegative real symmetric matrix has an orthonormal eigenbasis and nonnegative eigenvalues.
Proof
By [F2], choose real vectors with and real vectors with : diagonalize each matrix orthogonally and multiply each eigenvector coordinate by the square root of its nonnegative eigenvalue.
For each , let have -coordinate , and give its standard dot product. Then . Thus is the Gram matrix of the . For every real vector , , so is positive semidefinite.
Effective spectral gap for a product of two reflections
Statement
Let H be a finite-dimensional complex inner-product space, Π and Δ orthogonal projections on H, R_Π=2Π-I and R_Δ=2Δ-I, and U=R_ΠR_Δ. For 0≤ω≤π, let E_ω be the spectral projection of U onto eigenvalues e^{iφ} whose principal arguments satisfy |φ|≤ω. If Δw=0, then
Facts & Assumptions
Given: The finite-dimensional projections and vector w in the Statement, with Δw=0.
Orthogonal-Projector Reflection and Access Contract: for an orthogonal projection P, the plus-on-range reflection is R_P=2P-I.
Projector Reflections Are Hermitian Unitary Involutions: each such reflection is a unitary involution.
Complex spectral theorem: a normal endomorphism of a finite-dimensional complex inner product space has an orthonormal eigenbasis, and conversely: a finite-dimensional unitary has an orthonormal eigenbasis; its eigenvalues have modulus one.
Proof
Put R_P=2P-I and R_D=2D-I. Since D w=0, R_D w=-w; hence U w=R_P R_Dw=-R_Pw and therefore P w=(w+R_Pw)/2=(I-U)w/2.
Let E_ω be the orthogonal spectral projection of U onto eigenvectors with eigenvalue e^{iφ} for a principal phase φ∈[-π,π] satisfying |φ|≤ω. By [F2], both reflections are unitary, so U is unitary. By [F3], E_ω commutes with U and has an orthonormal eigenbasis. Thus E_ω P w=(I-U)E_ωw/2, and on each selected eigenvector |1-e^{iφ}|≤|φ|≤ω. The squared norm in that basis is at most (ω/2)^2||E_ωw||²≤(ω/2)^2||w||².
Taking square roots proves ||E_ωP w||≤ω||w||/2, including zero- and full-rank projections because step 1.1 used only the projection identities.
Unitary normal form for finite bit-query algorithms without extra queries
Statement
For any finite-input standard XOR bit-query algorithm in the ordinary oracle-only model, using at most T queries on every branch, there is an algorithm with the same output probabilities whose evolution consists of an input-independent initial state, input-independent unitaries between exactly T unconditional calls to O_x, and a final measurement. It uses no controlled access to O_x and no more than T oracle calls.
Facts & Assumptions
Given: A finite standard bit-query algorithm in the ordinary oracle-only model, with worst-branch query count at most T.
Quantum query algorithm: in the ordinary oracle-only model, the zero-initialized root and every preparation/nonoracle operation are input-independent, and a T-query algorithm has at most T designated oracle calls on each branch; preparation and other operations retain their separate charges.
Finite instruments can be coherently deferred: finite instruments have coherent unitary dilations with retained outcome records, preserving their branch maps even on entangled data. Newly used dilation and block operations must be accounted for in the chosen model; this denotational theorem asserts no cost bound.
Standard bit-flip query convention: O_x|i,b,w⟩=|i,b⊕x_i,w⟩ and O_x^2=I.
Finite registers and their ordered computational bases: each finite register has an ordered computational basis, and tensor factors may be enlarged by finite work registers.
The computational basis is orthonormal: distinct computational-basis labels are orthogonal.
Proof
The root state and all nonoracle instruments are input-independent by [F1]. Apply [F2] to those instruments only, retaining their observed outcomes and hidden dilation registers. Each dilation and each block control of a known nonoracle operation is then an input-independent unitary on finitely enlarged registers, allowed as a nonoracle operation in this query model; their gate and preparation costs are separate from oracle count. Retaining the orthogonal histories [F5] and using [F2] with the remaining registers as reference preserves the original branch output law. No oracle operation is dilated or replaced by an assumed controlled oracle.
Synchronize the finite execution tree by query number: before slot q, run each retained history's nonoracle segment until its qth query or termination, keeping terminated histories unchanged. These finite controlled segments are input-independent unitaries by step 1.1. At the slot, an active history presents its address and response to the query wires. On an inactive history, controlled swaps instead present a scratch address i_0 chosen as the first computational-basis label (the empty word for a zero-qubit address register) and a scratch target |+⟩=(|0⟩+|1⟩)/√2, preserving the algorithm registers. This address exists because the address register has positive dimension by [F4]. Apply one unconditional O_x and undo the routing swaps. Since X^{x_i}|+⟩=|+⟩ for every i, this acts identically on inactive histories and as the prescribed query on active ones, including their coherent superpositions.
Use slots q=1,…,T, then execute the final nonoracle segments and read the retained output records. Each slot contains exactly one unconditional oracle call by step 2.1, and step 1.1 adds none, so the total is exactly T, including zero when T=0. Histories with fewer queries are padded by inactive slots. Induction over the slots preserves each branch map and hence the final output law. All remaining operations and the initial state are input-independent; no controlled access to an unknown O_x or gate-efficiency bound is assumed.
Finite Boolean query problem and error model for adversary bounds
Definition
Fix an integer N≥1, a nonempty finite set D⊆{0,1}^N, and a Boolean function f:D→{0,1}. A Boolean query problem is the tuple (N,D,f) with input x∈D and standard XOR oracle The local address register is with ordered basis , . For its qubit realization, set and encode by the -bit binary word for . Define the total bit function on all -bit words by for and for . The standard bit-flip query for restricts to on the encoded local register and acts as the identity on unused address codewords. Algorithms in the local model use the -address register at query calls.
For 0≤ε<1/2, Q_ε(f) is the least worst-case number of these oracle calls of an algorithm outputting f(x) with probability at least 1−ε for every x∈D. The input promise does not restrict the oracle address. Only query calls are counted here; no gate-efficiency assertion is part of this definition.
Facts & Assumptions
Given: A finite Boolean query problem and its fixed standard XOR query convention.
QA task and promise domain: a finite promise task specifies a domain and a Boolean decision function on that domain.
Standard bit-flip query convention: a total bit function on an ordered bit-string address register defines a unitary, involutive XOR query.
Quantum query complexity: the general query-cost interface counts the worst-case number of designated oracle calls; its bounded-error convention uses the fixed 2/3 success threshold.
Dirac Notation Conversion: computational-basis kets use the stated Dirac pairing.
Proof
The declared finite set D and map f give the promised decision problem. The extension is defined on every -bit address, so [F2] gives its total XOR unitary. The span of the first address basis states is invariant, and identifying its word for with gives exactly the displayed ; unused codewords are fixed because their extension bit is zero. Thus the local oracle is total on its -address register, including when and . The promise restricts x, not which address in may be queried.
The local Q_ε clause in the Definition counts the least worst-case number of designated calls to this oracle among algorithms correct with probability at least 1−ε on every promised input; [F3] supplies the general worst-case query-cost convention and excludes nonoracle gates. Equation (F4)'s ket convention fixes all later matrix and state formulas.
Controlled input-consistency reflection from a bit query
Definition
Inputs. A Boolean query problem with , promised input accessed by its standard XOR oracle, a finite work space , a one-bit control , and a data register with orthogonal decomposition where the address basis is for and is a specified unit vector orthogonal to the query summand, and one clean scratch bit . Fix a known address . Define the consistency sum
Output. A gate list for the controlled plus-on-range reflection on the data register, returning the scratch bit to zero.
Instructions. In query mode route address to the oracle and use as its target. In start mode route the oracle address to the fixed and apply a Hadamard to , so its query target is . Make one unconditional standard XOR oracle call. Apply phase exactly when , the mode is query, and the response bit differs from ; disable this phase on start and when . Make a second unconditional XOR call with the same address routing. In start mode apply the Hadamard to again. Return the data and control registers and the scratch. No controlled unknown-oracle call is invoked.
Input-mismatch masks and entrywise filtering
Definition
For a finite Boolean query problem (N,D,f), all matrices below are indexed by the same fixed ordering of D. For i∈[N], define the input-mismatch matrix For same-size matrices define the entrywise product . Define the same-output mask and the all-ones matrix . Thus is the opposite-output mask.
Facts & Assumptions
Given: A finite Boolean query problem (N,D,f) with its fixed input ordering.
Finite Boolean query problem and error model for adversary bounds: every row/column label is an element of the same finite D⊆{0,1}^N with output f(x).
Proof
For every i∈[N], set (Δ_i){xy}=1 when x_i≠y_i and 0 otherwise; then Δ_i is a real symmetric Boolean matrix indexed by D×D. Define (A∘B){xy}=A_{xy}B_{xy} for matrices with the same row and column labels.
Set F_{xy}=1[f(x)=f(y)] and J_{xy}=1 for all x,y∈D. If x=y, every Δ_i(x,x)=0; if x≠y, then x and y differ in at least one coordinate, so at least one Δ_i(x,y)=1. Hence J−F is supported exactly on pairs with opposite outputs, and every diagonal entry is excluded by every query mask.
Query-address projectors for bit-oracle algorithms
Definition
Let an N-address bit-query algorithm act on where the first factor has computational basis . The query-address projector is It projects onto every state whose query address is i, regardless of response or work state.
Facts & Assumptions
Given: An N-address algorithm with the declared address, response and work tensor factors.
Finite Boolean query problem and error model for adversary bounds: the address set is [N]={1,…,N}.
Finite registers and their ordered computational bases: the address register has orthonormal basis {|i⟩:i∈[N]} and all other registers are finite tensor factors.
The computational basis is orthonormal: distinct address basis states are orthogonal.
Proof
On H=C^N⊗H_response⊗H_work define Π_i=|i⟩⟨i|⊗I_response⊗I_work. Since ⟨i|j⟩=δ_{ij}, Π_iΠ_j=0 for i≠j and Π_i²=Π_i=Π_i*.
The ordered address basis resolves identity: Σ_i|i⟩⟨i|=I_{C^N}. Tensoring with the two identity factors gives Σ_iΠ_i=I_H. This includes every response and work state and proves the asserted resolution.
Filtered γ₂ factorization norm for query mismatch masks
Definition
Let be a nonempty finite domain with , and let be its input-mismatch masks from Input-mismatch masks and entrywise filtering. For any complex matrix indexed by , define
where the infimum is over finite-dimensional complex inner-product spaces and vector families satisfying Set the value to if no such families exist. Every feasible family may be taken in dimension at most for each i.
Facts & Assumptions
Given: A finite matrix A and the mismatch masks Δ on the same nonempty finite Boolean input set D.
Input-mismatch masks and entrywise filtering: Δ_i(x,y)=1 exactly when x_i≠y_i; J−F vanishes on the diagonal and on equal-output pairs.
Real and complex inner product spaces, with the inner product linear in the first argument: finite real or complex vector spaces have a positive-definite inner product.
Dirac Notation Conversion: the Dirac pairing is linear in the ket (second argument) and conjugate-linear in the bra (first argument).
Proof
For each i, encode two finite vector families u_{x,i},v_{y,i} in a common finite-dimensional complex inner-product space. Their filtered factorization represents A exactly when A_{xy}=Σ_i(Δ_i){xy}⟨u{x,i}|v_{y,i}⟩_D for every ordered pair (x,y). The Dirac convention [F3] makes this expression conjugate-linear in each u factor and linear in each v factor.
The cost of a representation is max{max_xΣ_i||u_{x,i}||²,max_yΣ_i||v_{y,i}||²}; take the infimum over all finite-dimensional representations. If A_{xx}≠0 for some x, all Δ_i(x,x)=0 and no representation exists. If A has zero diagonal, each off-diagonal pair differs in some coordinate; assigning its entry to the first differing mask and writing for each resulting matrix, take and in . Then , so this is a feasible representation.
Thus the value is +∞ exactly when the diagonal support obstruction occurs, and otherwise the infimum ranges over a nonempty finite-dimensional class with a finite nonnegative cost. For any feasible family, restricting the ambient space for each i to the span of its 2|D| vectors preserves all inner products and norms and gives dimension at most 2|D|. Nonemptiness of D ensures that both maxima in the cost are defined.
Finite, attained general adversary value for nonconstant Boolean functions
Statement
For a finite Boolean query problem (N,D,f), restrict to real symmetric Γ indexed by D with Γ∘F=0 and denominator d(Γ)=max_i||Γ∘Δ_i||. If f is nonconstant, every nonzero admissible Γ has d(Γ)>0, the ratio ||Γ||/d(Γ) is finite, and its supremum is a maximum. For constant f define Adv±(f)=0.
Facts & Assumptions
Given: A finite Boolean query problem (N,D,f).
Finite Boolean query problem and error model for adversary bounds: D is a finite subset of {0,1}^N and f labels each input 0 or 1.
Input-mismatch masks and entrywise filtering: Δ_i marks exactly the pairs that differ at coordinate i; F marks equal-output pairs.
The operator norm is zero on the zero domain and otherwise is max_{||v||=1} ||Tv||: the operator norm is continuous and dominates every matrix entry in absolute value.
Heine-Borel in : with the Euclidean metric a subset of is compact if and only if it is closed and bounded, and the proof by bisection uses no choice principle; the same holds on the real line: closed bounded subsets of each positive finite-dimensional real Euclidean space are compact.
A continuous real-valued function on a nonempty compact metric space is bounded and attains a greatest and a least value: a continuous real function on a nonempty compact metric space attains its maximum.
Proof
Let x,y have opposite outputs. Then x≠y, so there is i with x_i≠y_i. The symmetric matrix with entries 1 at (x,y),(y,x) and zero elsewhere is an admissible nonzero Γ; at least one Γ∘Δ_i has norm 1, while all have norm at most 1. Thus every nonconstant f has a positive-denominator admissible matrix.
If Γ is admissible and nonzero, some Γ_xy≠0. By Γ∘F=0 its endpoints have opposite outputs, hence differ at some coordinate i. Then |Γ_xy|=|(Γ∘Δ_i)_{xy}|≤||Γ∘Δ_i||, so max_i||Γ∘Δ_i||>0. The same argument shows that the normalization max_i||Γ∘Δ_i||≤1 forces every entry |Γ_xy|≤1.
The normalized set of real symmetric Γ with Γ∘F=0 and max_i||Γ∘Δ_i||≤1 is closed and bounded in the finite-dimensional matrix space, hence compact by [F4]. It is nonempty by step 1.1. The norm is continuous since , so [F5] gives a finite attained maximum; by homogeneity this maximum is exactly the ratio supremum in the definition.
The controlled input-consistency circuit realizes the exact reflection
Statement
Assume the distinguished vector in the input decomposition is unit, as required by Controlled input-consistency reflection from a bit query. For every promised input x, that circuit realizes the control-first block operator where projects onto the start vector and all query states whose response equals x_i. The controlled operation uses the plus-on-range sign, including on the distinguished start state.
The displayed consistency sum is an orthogonal projection. For arbitrary control/data superpositions, the supplied circuit restores its scratch qubit to zero, including the start mode protected by a scratch during both unconditional calls; no controlled unknown-oracle call is required.
Facts & Assumptions
Given: The finite controlled consistency-reflection circuit and its projection Π_x.
Finite Boolean query problem and error model for adversary bounds: each promised input x supplies the bit x_i at each address i.
Standard bit-flip query convention: the XOR oracle toggles a response bit by x_i and is an involution.
Clean and dirty ancillas: a clean scratch qubit is initialized to |0⟩ and must be returned to |0⟩.
Projector Reflections Are Hermitian Unitary Involutions: R_Π=2Π-I is the unitary reflection acting +1 on ran Π and −1 on ker Π.
Finite registers and their ordered computational bases: the d-level register is C^d with its standard coordinate pairing and ordered standard basis. The mode/address/response/work decomposition is supplied by the input of Controlled input-consistency reflection from a bit query.
Proof
Let H=span{|start⟩}⊕(C^N⊗K⊗C²). The algorithm input requires |start⟩ to be unit and orthogonal to every query mode; hence |start⟩⟨start| is the orthogonal projection onto its span. It also labels the standard address basis by |i⟩=e_{i−1}, i∈[N]. Under the standard coordinate pairing in [F25], ⟨e_j,e_k⟩=Σ_rδ_{rj}δ_{rk}=δ_{jk}, so these address vectors and the response basis vectors are orthonormal. Therefore the query summands |i⟩⟨i|⊗I_K⊗|x_i⟩⟨x_i| are mutually orthogonal projections and are orthogonal to the start projection. Thus Π_x is an orthogonal projection.
Append a clean scratch bit u=0. In query mode, call O_x at address i to write u=x_i. In start mode route the oracle address to a fixed i_0∈[N] and apply H to u so the target is |+⟩; since X^{x_{i_0}}|+⟩=|+⟩, the unconditional oracle call leaves start unchanged. Apply a fixed phase −1 exactly when c=1, the mode is a query state, and z≠u; apply +1 on the start mode and when c=0. On query basis states this phase is +1 exactly when z=x_i, and −1 otherwise.
Call O_x again at the same address to reset u to 0 in query mode, using O_x²=I from [F22]. In start mode the second call again fixes |+⟩, and the final controlled H returns u to |0⟩. For c=1 the induced operator on H is 2Π_x-I; for c=0 it is I. Thus this fixed circuit realizes controlled R_{Π_x} with the plus-on-range sign specified in [F24], without a controlled unknown-oracle call. By linearity the same control/data action holds for arbitrary superpositions with the scratch returned clean.
General adversary matrix and spectral bound
Definition
For a nonconstant finite Boolean query problem define Negative entries are allowed. The denominator is positive and the maximum is finite and attained by Finite, attained general adversary value for nonconstant Boolean functions. For constant f set . The nonnegative adversary value is the same maximum with the additional constraint for all x,y; it is also set to zero for constant f.
Facts & Assumptions
Given: A finite Boolean query problem with mismatch masks and same-output matrix F.
Input-mismatch masks and entrywise filtering: F_{xy}=1 on equal-output pairs and Δ_i(x,y)=1 on coordinate mismatches.
The operator norm is zero on the zero domain and otherwise is max_{||v||=1} ||Tv||: ||A|| is the induced Euclidean operator norm.
Finite, attained general adversary value for nonconstant Boolean functions: for nonconstant f every nonzero admissible Γ has positive denominator and the finite optimum is attained.
Proof
Call Γ admissible when it is a nonzero real symmetric D×D matrix with Γ∘F=0. Define d(Γ)=max_{i∈[N]}||Γ∘Δ_i|| and set Adv±(f)=sup_Γ ||Γ||/d(Γ) for nonconstant f; for constant f set Adv±(f)=0.
By [F3], d(Γ)>0 for every nonzero admissible Γ and the supremum is a finite attained maximum when f is nonconstant. The entries of Γ need not be nonnegative; negative entries are permitted by this feasible set. Restricting to Γ≥0 entrywise gives the separate nonnegative adversary value, which is a smaller feasible set.
Finite-dimensional well-definedness of the filtered γ₂ program
Statement
For the Boolean mismatch masks, if and only if for every x. Whenever finite, the infimum is attained by finite vector families. A minimizing family can be taken in dimension at most for each coordinate i.
Facts & Assumptions
Given: A finite matrix A indexed by D×D and the masks Δ_i on the same finite Boolean input set.
Filtered γ₂ factorization norm for query mismatch masks: γ₂(A|Δ) is the infimum of the maximum row/column sum of squared vector norms over finite factorizations.
Real and complex inner product spaces, with the inner product linear in the first argument: the inner product is positive definite and induces the vector norm.
Dirac Notation Conversion: the Dirac pairing represents the cross-Gram entries used in the factorization.
Every finite-dimensional real or complex inner product space has an orthonormal basis: every finite-dimensional real or complex inner-product space has an orthonormal basis.
Heine-Borel in : with the Euclidean metric a subset of is compact if and only if it is closed and bounded, and the proof by bisection uses no choice principle; the same holds on the real line: closed bounded subsets of positive finite-dimensional real Euclidean spaces are compact.
A continuous real-valued function on a nonempty compact metric space is bounded and attains a greatest and a least value: a continuous real function on a nonempty compact metric space attains its minimum and maximum.
Finite Boolean query problem and error model for adversary bounds: and the finite query domain is nonempty.
Proof
If A_{xx}≠0, the factorization equation at (x,x) has right side zero because every Δ_i(x,x)=0, so A is infeasible. If A has zero diagonal, assign each off-diagonal entry A_{xy} to the least i with x_i≠y_i, forming matrices A^{(i)} supported on Δ_i and satisfying A=Σ_i A^{(i)}. For d=|D|, put u_{x,i}=(\overline{A^{(i)}{x1}},…,\overline{A^{(i)}{xd}}) and v_{y,i}=e_y in C^d; then ⟨u_{x,i}|v_{y,i}⟩D=A^{(i)}{xy}. This is a finite feasible factorization.
For any feasible factorization in finite dimension, take, for each i, the span of the d vectors and d vectors . It has dimension at most ; by [F4] choose an orthonormal basis and map its vectors to their coordinates, padding with zero coordinates in . This preserves every inner product and norm. Thus every feasible candidate has a representation in one fixed finite product of coordinate spaces .
By step 1.1 choose one feasible family and let be its finite cost. Use step 2.1 to represent feasible families in a fixed finite product of copies of , viewed as a positive-dimensional real Euclidean space; by [F7]. The set of coordinate families satisfying the factorization equations and having cost at most is nonempty, closed, and bounded: the equations and cost are continuous, and each vector norm is at most . By [F5] this set is compact. Its continuous cost function attains a minimum by [F6]. Any feasible family with lower cost would also belong to this set, so the minimum equals the global infimum and is attained. Thus every feasible has an attained finite value, while nonzero diagonal is exactly the infeasible case.
Controlled consistency reflection uses two bit queries
Statement
For every x and every control value, the controlled input-consistency reflection circuit makes exactly two standard XOR bit-query calls. Equality tests, the phase operation, and scratch-register operations are nonoracle gates and are not included in this query count.
Facts & Assumptions
Given: The controlled consistency-reflection algorithm from Controlled input-consistency reflection from a bit query.
Controlled input-consistency reflection from a bit query: its circuit makes one XOR query to compute x_i into a clean scratch bit and a second to uncompute it.
Quantum query complexity: one invocation of the designated standard oracle is one query; nonoracle gates are outside this count.
Proof
The algorithm contains exactly two designated calls to O_x: one before the equality-controlled phase and one after it. Both calls occur for every value of the control bit; the inactive branch is protected by its scratch/response state but does not remove a designated invocation.
The second call is valid uncomputation because O_x is self-inverse, as recorded in [F1]. The equality test, phase gate, control logic and scratch preparation are nonoracle operations, so [F2] excludes them from query cost. Therefore the cost is exactly two queries.
Nonnegative-weight adversary bound
Definition
For nonconstant f let Set if f is constant. This is the nonnegative-weight adversary bound under exactly the same masks and query normalization as .
Facts & Assumptions
Given: A finite Boolean query problem with mismatch masks and same-output matrix F.
General adversary matrix and spectral bound: admissible real symmetric matrices vanish on equal-output pairs and are normalized by max_i||Γ∘Δ_i||.
Finite, attained general adversary value for nonconstant Boolean functions: every nonzero admissible matrix has positive denominator; its proof establishes continuity of the matrix operator norm, compactness of the normalized set , and the entrywise bound on that set.
The operator norm is zero on the zero domain and otherwise is max_{||v||=1} ||Tv||: the norm is homogeneous.
Heine-Borel in : with the Euclidean metric a subset of is compact if and only if it is closed and bounded, and the proof by bisection uses no choice principle; the same holds on the real line: closed bounded subsets of finite-dimensional real Euclidean spaces are compact.
A continuous real-valued function on a nonempty compact metric space is bounded and attains a greatest and a least value: a continuous function on a nonempty compact metric space attains its maximum.
Proof
For nonconstant , choose with and put , with all other entries zero. This is a nonnegative admissible matrix; the inputs differ in some coordinate, so its mismatch denominator is exactly one. Hence the nonnegative feasible set contains a nonzero witness. Restrict the admissible matrices of [F1] to entrywise nonnegative matrices and use the same mismatch denominator; define their maximum ratio to be Adv(f), with value zero for constant f.
Let be the set of real symmetric matrices with , , and . It is closed because its linear and entrywise inequalities are closed and each filtered norm is continuous; the norm continuity follows from . If has a nonzero entry , then and some coordinate i differs, so by the operator-norm entry bound in [F2,F3]. Hence is bounded, and [F4] makes it compact. It is nonempty by step 1.1, so [F5] gives a finite maximum of the continuous norm on . Every nonzero admissible matrix has positive denominator by [F2]; scaling identifies this normalized maximum with the ratio supremum, and a nonzero norm maximizer must have because otherwise it could be scaled up in . Thus the nonnegative maximum is finite and attained with the same normalization as Adv±.
Adversary progress at initial and bounded-error final states
Statement
Let be an admissible real symmetric adversary matrix, vanishing on every equal-output pair, as in General adversary matrix and spectral bound. For a standard XOR query algorithm in the ordinary oracle-only model that outputs with probability at least for every , where , purify its final states and define where α is a real unit eigenvector of Γ with eigenvalue of magnitude ||Γ||. Then |W_0|=||Γ|| and
Facts & Assumptions
Given: An ordinary oracle-only query algorithm for a finite Boolean function, an admissible real symmetric adversary matrix Γ, and a normalized principal eigenvector α.
General adversary matrix and spectral bound: Γ is real symmetric, vanishes on equal-output pairs, and has norm ||Γ||.
Finite Boolean query problem and error model for adversary bounds: the function has finite domain D and Boolean output.
Pure state and ray: each purified algorithm branch has a unit state vector.
Quantum acceptance probability for a finite promise computation: acceptance probability is the squared norm of the output-one projection.
Unitary normal form for finite bit-query algorithms without extra queries: measurements can be deferred into a final output projection without increasing queries.
Real spectral theorem: a self-adjoint endomorphism of a finite-dimensional real inner product space has an orthonormal eigenbasis: a finite real symmetric matrix has an orthonormal real eigenbasis.
Every finite-dimensional real or complex inner product space has an orthonormal basis: every finite-dimensional inner-product space has an orthonormal basis.
Every linear map between finite-dimensional real or complex inner product spaces admits a singular value decomposition: a finite real matrix has a singular-value decomposition with orthonormal left and right singular vectors; its transpose has the same singular values.
The operator norm is 0 on the zero domain and otherwise equals the largest singular value, attained at a right-singular vector: the operator norm is the largest singular value.
Cauchy–Schwarz: , with equality exactly for dependent pairs: finite-dimensional inner products satisfy the Cauchy–Schwarz inequality.
The operator norm is zero on the zero domain and otherwise is max_{||v||=1} ||Tv||: the operator norm is the induced Euclidean norm.
Proof
If Γ=0, then W_0=W_T=0 and both endpoint bounds hold. Assume Γ≠0. By [F6], choose a real orthonormal eigenbasis; the induced norm [F11] then gives a real unit eigenvector α of Γ with eigenvalue λ satisfying |λ|=||Γ||. Since Γ has only cross-output blocks, write Γ=[[0,B],[B^T,0]] with respect to the two nonempty output classes. The SVD [F8] and largest-singular-value characterization [F9] show ||Γ||=||B||: for any (a,b), ||Γ(a,b)||²=||Bb||²+||B^Ta||²≤||B||²(||a||²+||b||²), and a top right singular vector of B attains equality. The eigenvector equations imply α_0^{\mathsf T}Bα_1=λ||α_0||²=λ||α_1||²; because λ≠0, the class norms are equal, hence each is 1/√2. Initially all x-dependent states are identical, so W_0=Σ_xyΓ_xyα_xα_y=α^TΓα=λ.
By [F5], represent the terminal computation by unit vectors ψ_x and an output-one projection P. For x with f(x)=0 put a_x=Pψ_x, b_x=(I−P)ψ_x; for y with f(y)=1 put c_y=Pψ_y, d_y=(I−P)ψ_y. The per-input error hypothesis gives p_x=||a_x||²≤ε and q_y=||c_y||²≥1−ε. Orthogonality of the two measurement subspaces gives ⟨ψ_x|ψ_y⟩=⟨a_x|c_y⟩+⟨b_x|d_y⟩.
If ε=0, then a_x=d_y=0 for every opposite-output pair, so all such overlaps vanish and W_T=0. Suppose 0<ε<1/2. Set r=(1−ε)/ε, b=√(ε/(1−ε)), and a=rb=√((1−ε)/ε). Define u_x=(√a,a_x,√b,b_x) and v_y=(a^{-1/2}c_y,b^{-1/2}d_y). Then ⟨u_x|v_y⟩=⟨ψ_x|ψ_y⟩. Since a≥b, the bounds p_x≤ε and q_y≥1−ε give ||u_x||²≤aε+b(1−ε)=2√(ε(1−ε)), ||v_y||²≤(1−ε)/a+ε/b=2√(ε(1−ε)). Thus the cross-overlap matrix has a factorization with both squared vector norms at most c:=2√(ε(1−ε)).
Choose an orthonormal basis of the finite state space by [F7], and write , . For each r set and . The cross-output contribution is . By Cauchy–Schwarz [F10] and the induced norm definition [F11], each term is bounded by : the real SVD in [F8] also acts unitarily on complex coordinates, so [F9] gives . Summing and applying real Cauchy–Schwarz to the nonnegative norms gives . By step 2.1 this is at most . The reverse-output block contributes the complex conjugate, hence . Together with the case this proves the endpoint bound.
Nonconstant Boolean functions have adversary value at least one
Statement
If f is nonconstant, then . In particular the finite optimal adversary value A used by the reflection evaluator may be taken with A≥1.
Facts & Assumptions
Given: A finite nonconstant Boolean function f.
General adversary matrix and spectral bound: admissible Γ are nonzero real symmetric and vanish on equal-output pairs.
Input-mismatch masks and entrywise filtering: Δ_i marks the coordinates on which two inputs differ.
The operator norm is zero on the zero domain and otherwise is max_{||v||=1} ||Tv||: the off-diagonal two-point swap matrix has norm one.
Proof
Choose x,y∈D with f(x)≠f(y). They are distinct bit strings, so x_i≠y_i for at least one i. Set Γ_{xy}=Γ_{yx}=1 and every other entry to zero. This Γ is nonzero and real symmetric; its only nonzero entries join opposite outputs, so Γ∘F=0.
The restriction of Γ to span{|x⟩,|y⟩} is [[0,1],[1,0]], whose eigenvalues are ±1; hence ||Γ||=1. For every i, Γ∘Δ_i is either Γ or zero, and at least one differing coordinate gives Γ itself. Thus max_i||Γ∘Δ_i||=1 and the ratio is one.
One oracle call changes adversary progress by at most filtered spectral norm
Statement
In the unitary normal form of an ordinary oracle-only standard XOR bit-query algorithm, one oracle call changes the progress of Adversary progress at initial and bounded-error final states by at most
Facts & Assumptions
Given: An admissible Γ, normalized principal eigenvector α, and the pre-query states of a unitary-normal-form algorithm.
General adversary matrix and spectral bound: Γ is a finite real symmetric adversary matrix and Γ∘Δ_i is its i-th filtered block.
Input-mismatch masks and entrywise filtering: Δ_i(x,y)=1 exactly when x_i≠y_i.
Query-address projectors for bit-oracle algorithms: the address projectors are orthogonal and sum to identity.
Standard bit-flip query convention: O_x applies X^{x_i} to the response bit at address i.
Unitary normal form for finite bit-query algorithms without extra queries: input-independent unitaries separate standard XOR query calls.
Real spectral theorem: a self-adjoint endomorphism of a finite-dimensional real inner product space has an orthonormal eigenbasis: a finite real symmetric matrix has an orthonormal real eigenbasis.
Adversary progress at initial and bounded-error final states: the progress quantity is for the pre/post-query states and the chosen normalized principal eigenvector .
The adjoint is characterised by : the adjoint satisfies .
The basis-independent trace of an endomorphism of a finite-dimensional vector space: trace is basis-independent and is the sum of diagonal entries in any basis.
Proof
An input-independent unitary between queries preserves every pairwise inner product, so only the oracle slot changes progress. For inputs x,y, the product O_x^*O_y acts at address i as X^{x_i⊕y_i}; in the response eigenstate |−⟩=(|0⟩−|1⟩)/√2 this is −1 exactly when x_i≠y_i, and it is +1 on |+⟩. Therefore O_x^*O_y−I=−2Σ_iΔ_i(x,y)P_i^-, where P_i^- is the address-i projector tensored with |−⟩⟨−| on response and identity on work.
Let ψ_x be the pre-query state and define Q_i:C^D→H by Q_i|x⟩=α_xP_i^-ψ_x. Substituting step 1.1 into W_{t+1}−W_t and collecting entries gives W_{t+1}−W_t=−2Σ_i tr((Γ∘Δ_i)Q_i^*Q_i) because Γ∘Δ_i is real symmetric and relabeling the two indices gives the trace exactly.
Fix i and write and . By [F6], has a real orthonormal eigenbasis with eigenvalues , and . Evaluating the basis-independent trace [F9] in this basis and using [F8] gives , so . Evaluating in the standard input basis yields . Therefore , since the are orthogonal subprojections of identity. Hence .
Dual vector formulation of the general adversary bound
Statement
For every finite nonconstant partial Boolean function , The vectors lie in a common finite-dimensional complex inner-product space and satisfy, for all distinct , The minimum is attained. If only opposite-output constraints are initially required, tensoring each vector with imposes the equal-output zero constraints without changing costs or cross-output values.
Facts & Assumptions
Given: A finite nonconstant partial Boolean function with fixed mismatch matrices Δ_i and output mask F.
General adversary matrix and spectral bound: Adv± is the maximum spectral adversary ratio for real symmetric Γ with Γ∘F=0.
Input-mismatch masks and entrywise filtering: A=J−F is one exactly on opposite-output pairs and Δ_i are the mismatch masks.
Finite real semidefinite programs satisfy strong duality under strict feasibility: a finite primal/dual SDP with strict feasible points and finite values has equal attained optima; on real matrices the Frobenius pairing is .
Dirac Notation Conversion: ⟨u|v⟩_D is linear in v and has the matrix Gram convention.
Non-negative and positive operators: a finite real symmetric matrix is PSD when its quadratic form is nonnegative.
A non-negative operator is equivalently self-adjoint with nonnegative eigenvalues, a positive semidefinite matrix in an orthonormal basis, or an operator of the form S^*S: finite PSD matrices admit real Gram factorizations.
Entrywise products of finite positive semidefinite matrices are positive semidefinite: the entrywise product of two finite real PSD matrices is PSD.
Every linear map between finite-dimensional real or complex inner product spaces admits a singular value decomposition: a real finite-dimensional linear map has orthonormal left and right singular vectors for every positive singular value.
The operator norm is 0 on the zero domain and otherwise equals the largest singular value, attained at a right-singular vector: the operator norm is the largest singular value when the domain is nonzero, and a corresponding unit right-singular vector attains it.
The operator norm is zero on the zero domain and otherwise is max_{||v||=1} ||Tv||: the operator norm is the induced Euclidean norm, so .
Cauchy-Schwarz with its equality case, the triangle inequality for , the parallelogram law and polarisation: Euclidean inner products satisfy .
Filtered γ₂ factorization norm for query mismatch masks: the filtered factorization value is the infimum of the maximum row/column sums of squared vector norms over families representing through the masks.
Proof
For , minimize over real symmetric blocks subject to , , and for every input. By [F5,F6], each is a Gram matrix of real vectors with and the diagonal entries equal to their squared norms. Conversely, realify any complex feasible families by and ; norms are preserved and each real dot product is . Since each target entry is real, taking real parts preserves every constraint. Thus the real SDP has the filtered factorization value in [F12].
Add nonnegative scalar slacks and , and include , which is already forced by the PSD constraints. The equalities are , , and . For unrestricted equality multipliers , the Lagrangian for minimizing is . Its infimum over nonnegative scalar variables is finite only if and . The coefficient of is , where is the diagonal matrix with entries , similarly for , and . The factor accounts for the two off-diagonal blocks in the Frobenius pairing [F3]. The infimum over is finite exactly when : a negative quadratic direction gives an unbounded rank-one ray, while PSD matrices pair nonnegatively. Hence the dual maximizes subject to , , and for each .
The primal is strictly feasible: assign each opposite-output entry of symmetrically to its first differing coordinate, obtaining with . Choose and set ; Cauchy--Schwarz [F10,F11] gives , so each is positive definite. Choose large enough that every slack is positive. The dual in step 2.1 is strictly feasible at and : every is positive definite and the scalar slack is positive. The primal infimum is finite and nonnegative. For any primal-feasible and dual-feasible , the cross constraint gives , while the block constraints give . Summing and using , , , , and yields . Since a primal feasible point with finite exists, this proves the derived dual supremum is finite; is also dual feasible. Arrange all as diagonal blocks of one PSD matrix and constrain off-block entries to zero; the strict point makes this matrix positive definite. Maximizing is the standard primal in [F3], with standard dual objective and the block constraints from step 2.1. Both sides are strictly feasible and have finite values, so [F3] gives equal attained optima; reversing signs yields an attained primal minimum and dual maximum with common value.
Let be an attained dual maximizer from step 3.1. If , add the deficit to one ; this adds a nonnegative diagonal matrix to each , preserving feasibility and objective, and normalizes . On positive supports define . If , PSD of each forces its off-diagonal row to vanish: for every other coordinate vector , for all real , so the linear coefficient is zero. The same holds for a zero . Thus for distinct whenever either weight is zero, because distinct Boolean inputs differ in some coordinate; diagonal entries do not affect the objective since . Set zero-support rows and columns of to zero. On positive supports, congruence by turns into , with . This block matrix is PSD exactly when : if the norm is at most one, its quadratic form is nonnegative by [F10,F11] and ; conversely, substituting for every real forces , and choosing when gives . If a support is empty, the zero-support argument gives , which is feasible. The objective is for and ; , hence and [F10,F11] give . Conversely, for any feasible , take real unit left/right singular vectors of attaining its norm by [F8,F9]; if that matrix is zero, use arbitrary unit vectors in the nonempty output classes. Set , , and . The weights sum to one. On positive supports, diagonal sign congruence reduces the dual constraints to the norm condition just proved; zero coordinates have zero off-diagonal blocks. The dual objective is . Therefore the dual optimum equals the supremum of over .
Write and partition coordinates as ; both classes are nonempty. For with cross-blocks and , sends to , so : the upper bound follows from , and the reverse follows by restricting to one summand and using [F8,F9] to attain each block norm. Each and is a coordinate restriction of , hence has norm at most one by [F10]. If is larger, is symmetric, vanishes on equal-output pairs, has norm , and has norm ; these norm identities follow by the same block calculation and from [F8,F9]. If is larger, use . If both blocks vanish the objective is zero. For each nonzero constructed , its denominator is positive by [F1] and at most one, so its adversary ratio is at least ; hence every feasible has objective at most . Conversely, [F1] supplies an admissible maximizing with ; is feasible and . Thus the supremum in step 4.1 is an attained maximum equal to .
By [F3], the primal optimum is attained with real families . Define on and on . For an opposite-output pair, the primal cross constraint gives one in the -to- order, and its transpose gives one in reverse order. Their class costs satisfy and . To impose equal-output zero constraints, tensor each with . When , these labels agree if and are orthogonal if ; hence cross-output sums stay one and equal-output sums vanish, while norms are unchanged. The label Gram product is PSD by [F7], in agreement with these explicit tensor vectors.
Conversely, every single-family certificate gives a primal factorization by and , with cost . Step 6.1 yields a certificate of cost at most the attained primal value; this converse shows its cost cannot be smaller. Thus the certificate minimum is attained and equals the primal value and by step 5.1. Both are positive because an opposite-output constraint equals one. Rescaling by on and on preserves cross-output constraints, multiplies the two costs by and , and preserves equal-output zero constraints; choosing balances the costs.
Bounded-error evaluation from a dual adversary certificate
Definition
Inputs. A finite nonconstant Boolean function on input bits and a supplied finite dual-vector certificate in a finite-dimensional complex inner-product space , meaning that for every distinct , Its class costs satisfy for a supplied bound . The declared standard XOR input oracle is available. The input-independent controlled witness-span reflection specified below is a nonoracle operation in this query model; no efficient gate implementation for it is assumed.
Output. A Boolean estimate of for the promised input .
Instructions. Use the finite work space Here the address basis is for , and is a specified unit vector orthogonal to the query summand. The witness family is classical instance data used to specify a subspace, not an input-dependent state preparation. Define Let project onto the span of all with , and let project onto plus query states whose response is . Form the exact ordered product
Choose as the least power of two satisfying . Initialize the data register to and apply the coherent QPE gate list followed by its projective readout on . Implement controlled in chronological order by controlled , then controlled , retaining both plus-on-range signs. Repeat that complete controlled circuit times for the required power at each . Each controlled input-dependent reflection is the two-unconditional-query consistency-reflection circuit of Controlled input-consistency reflection from a bit query. For the measured phase label , return exactly when and return otherwise. No gate-complexity bound is asserted for the input-independent reflection about the full witness span or the remaining nonoracle gates.
Input-distribution certificates upper-bound the nonnegative adversary value
Statement
For a nonconstant finite Boolean query problem (N,D,f), let each p_x be a probability distribution on [N]. If then the nonnegative adversary value satisfies .
Facts & Assumptions
Given: A finite nonconstant Boolean function and a family of probability distributions p_x on its N input coordinates.
Nonnegative-weight adversary bound: Adv maximizes ||Γ||/max_i||Γ∘Δ_i|| over nonnegative symmetric admissible matrices.
Input-mismatch masks and entrywise filtering: opposite-output pairs differ on at least one coordinate and Γ is supported on those pairs.
The operator norm is zero on the zero domain and otherwise is max_{||v||=1} ||Tv||: the operator norm is induced by the Euclidean norm.
Real spectral theorem: a self-adjoint endomorphism of a finite-dimensional real inner product space has an orthonormal eigenbasis: a finite real symmetric matrix has an orthonormal real eigenbasis.
Cauchy–Schwarz: , with equality exactly for dependent pairs: in finite-dimensional inner-product spaces.
Proof
Fix distributions with for each x, and let . Let be an admissible nonzero matrix. By [F4], choose a real orthonormal eigenbasis of the symmetric matrix ; thus and . For every real unit z, entrywise nonnegativity gives . Since is nonzero admissible, it has a positive off-diagonal entry, so a vector supported equally on that pair has positive Rayleigh quotient and . Hence . If v is a unit top eigenvector, then is a nonnegative unit vector with , so equality holds and is also a top eigenvector.
For every cross-output pair the mismatch overlap is at least η; all coefficients Γ_xy δ_xδ_y are nonnegative. Therefore η||Γ||≤Σ_{x,y}Γ_xyδ_xδ_yΣ_iΔ_i(x,y)√(p_x(i)p_y(i)) =Σ_i s_i^T(Γ∘Δ_i)s_i, where (s_i)_x=δ_x√p_x(i).
By Cauchy–Schwarz [F5] and the induced norm definition [F3], each summand is at most ||Γ∘Δ_i||·||s_i||². Summing gives at most max_i||Γ∘Δ_i||·Σ_iΣ_xδ_x²p_x(i)=max_i||Γ∘Δ_i||, because every p_x is a probability distribution and ||δ||=1. Divide by η and the positive denominator to obtain the claimed upper certificate for Γ; maximizing over Γ proves Adv(f)≤1/η.
Signed weights extend the nonnegative adversary certificate
Statement
For every finite Boolean query problem, under the same mismatch masks and normalization.
Facts & Assumptions
Given: The two adversary optimizations under the common Boolean mismatch convention.
General adversary matrix and spectral bound: Adv± optimizes over all real symmetric admissible matrices, including those with nonnegative entries.
Nonnegative-weight adversary bound: Adv uses the same ratio and masks but restricts all entries to be nonnegative.
Proof
Every nonzero nonnegative admissible matrix for Adv is also an admissible matrix for Adv±, with the identical numerator and denominator because both use the same masks.
Taking the maximum over the larger signed feasible set cannot decrease the value, so Adv±(f)≥Adv(f). This proves only monotonicity; no strict separation is claimed here.
Boolean-output filtered γ₂ equals the general adversary value
Statement
For every finite nonconstant partial Boolean function, Here F is the same-output mask, J is all ones, and Δ is the family of input-mismatch masks. The equality is exact for Boolean outputs; no larger-alphabet factor is asserted.
Facts & Assumptions
Given: A finite nonconstant partial Boolean function and its output and mismatch masks.
Filtered γ₂ factorization norm for query mismatch masks: γ₂(J−F|Δ) is the minimum factorization cost for the all-pairs constraints with target J−F.
Finite-dimensional well-definedness of the filtered γ₂ program: this finite factorization program is feasible and attained when its target has zero diagonal.
General adversary matrix and spectral bound: Adv± uses real symmetric matrices supported on opposite-output pairs.
Dual vector formulation of the general adversary bound: Adv± equals the attained minimum vector-certificate cost with right side J−F.
Entrywise products of finite positive semidefinite matrices are positive semidefinite: entrywise products of finite PSD Gram matrices remain PSD.
Proof
For A=J−F, the defining factorization equations for γ₂(A|Δ) are exactly Σ_{i:x_i≠y_i}⟨u_{x,i}|v_{y,i}⟩=1 for opposite outputs and 0 for equal outputs. The target has zero diagonal, so [F2] gives a finite attained value.
The dual-vector theorem [F4] gives the minimum of precisely these equations and the same maximum row/column squared-norm cost. Its single-family form has cost max{C_0,C_1}. Assigning u_{x,i}=w_{x,i} and v_{y,i}=w_{y,i} for every input gives a factorization of identical cost, while the dual-vector proof constructs the single family by taking the row family on D_0 and the column family on D_1, then applying the Boolean output-label code. Therefore the two minima coincide and equal Adv±(f).
In the equivalent cross-output-only formulation, tensoring by the two-code label yields equal-output zeros while preserving cross-output constraints. The associated label Gram matrix is PSD, and [F5] confirms its entrywise product with each original Gram matrix is PSD; thus this equivalent realization remains a valid finite Gram factorization with unchanged vector norms. The Boolean output alphabet makes the label inner product exactly 1 on required cross-output mismatches and 0 on same-output mismatches, so there is no output-size loss factor.
General adversary spectral lower bound for quantum queries
Statement
For every finite Boolean query problem and 0≤ε<1/2, In particular, at ε=1/3 the coefficient is .
Facts & Assumptions
Given: A finite Boolean query problem and a standard XOR algorithm in its ordinary oracle-only model with worst-case error at most ε.
Adversary progress at initial and bounded-error final states: for an admissible real symmetric Γ and a real unit principal eigenvector, an ordinary oracle-only algorithm with per-input error at most ε has |W_0|=||Γ|| and |W_T|≤2√(ε(1−ε))||Γ||.
One oracle call changes adversary progress by at most filtered spectral norm: in the ordinary oracle-only unitary normal form, each XOR query changes W by at most 2 max_i||Γ∘Δ_i||.
Finite Boolean query problem and error model for adversary bounds: is the least worst-case number of standard XOR calls among algorithms correct with probability at least on every promised input.
Quantum query complexity: the query-cost coordinate is the worst-case number of designated oracle calls, excluding nonoracle gates.
General adversary matrix and spectral bound: admissible Γ is nonzero, real symmetric and zero on equal-output pairs. Its denominator is positive, and Adv± is the attained maximum of the norm ratio for nonconstant f.
Complex spectral theorem: a normal endomorphism of a finite-dimensional complex inner product space has an orthonormal eigenbasis, and conversely: a finite normal complex endomorphism has an orthonormal eigenbasis.
Unitary normal form for finite bit-query algorithms without extra queries: an ordinary oracle-only algorithm with at most T standard XOR queries on each branch has the same output law in unitary normal form with exactly T unconditional queries and an input-independent initial state.
Proof
Fix a nonconstant f and an algorithm with per-input error at most ε, as in the parameterized definition [F3]. If its worst-case query count is T, apply [F7] to obtain the same output probabilities in unitary normal form with T queries. For any admissible real symmetric Γ, [F6] applied to its complexification gives an eigenvalue of modulus ||Γ||; the eigenvalue is real, and real or imaginary part of a corresponding eigenvector is a nonzero real eigenvector, so choose a real unit principal eigenvector α. Put D_Γ=max_i||Γ∘Δ_i||. Between queries the algorithm's input-independent unitaries preserve all pairwise inner products, so they do not change W. For T queries, [F2] and the triangle inequality give |W_T−W_0|≤2T D_Γ.
By [F1], ||Γ||=|W_0|≤|W_T|+|W_T−W_0|≤(2√(ε(1−ε)))||Γ||+2T D_Γ. Since ε<1/2 and D_Γ>0 by [F5], rearrangement yields T≥(1/2−√(ε(1−ε)))||Γ||/D_Γ.
The inequality holds for every admissible Γ. Taking the attained maximum ratio from [F5] gives Q_ε(f)≥(1/2−√(ε(1−ε)))Adv±(f). For constant f the empty algorithm is exact and both sides are zero.
The four-bit Ambainis function separates nonnegative and signed adversary bounds
Statement
Let f:{0,1}^4→{0,1} equal 1 exactly on the sorted strings Then the nonnegative adversary value is exactly , while an explicit signed-weight matrix gives The distributions and matrices used to certify both bounds are given in the proof.
Facts & Assumptions
Given: The sorted four-bit Boolean function and the query mismatch masks Δ_i.
Finite Boolean query problem and error model for adversary bounds: the input set is {0,1}^4 with the Boolean function fixed in the Statement.
Input-mismatch masks and entrywise filtering: Δ_i filters pairs that differ at coordinate i.
General adversary matrix and spectral bound: any real symmetric admissible Γ gives a lower bound by its norm ratio.
Nonnegative-weight adversary bound: nonnegative matrices use the same ratio with Γ≥0.
Input-distribution certificates upper-bound the nonnegative adversary value: for a nonconstant Boolean function, distributions with cross-output mismatch overlap at least η>0 imply Adv≤1/η.
Every linear map between finite-dimensional real or complex inner product spaces admits a singular value decomposition: a finite real matrix has a singular-value decomposition; its transpose has the same singular values.
The operator norm is 0 on the zero domain and otherwise equals the largest singular value, attained at a right-singular vector: the operator norm is the largest singular value.
Real spectral theorem: a self-adjoint endomorphism of a finite-dimensional real inner product space has an orthonormal eigenbasis: a finite real symmetric matrix has an orthonormal eigenbasis.
Cauchy–Schwarz: , with equality exactly for dependent pairs: finite-dimensional inner products satisfy Cauchy–Schwarz.
The operator norm is zero on the zero domain and otherwise is max_{||v||=1} ||Tv||: the operator norm is induced by the Euclidean norm.
Proof
The sorted four-bit function is 1 exactly on T=(0000,0001,0011,0111,1111,1110,1100,1000) and 0 exactly on Z=(0010,0101,1011,0110,1101,1010,0100,1001). Define g(x_1,x_2,x_3,x_4)=(x_2,x_3,x_4,1⊕x_1). Direct substitution shows g cycles each displayed list and preserves monotonicity, and g shifts the four coordinate-mismatch masks cyclically.
In row order T and column order Z, define the cross block C(a,b,c,d) by and set Γ=[[0,C],[C^T,0]]. The displayed cyclic pattern gives Γ(gx,gy)=Γ(x,y); hence each Γ∘Δ_i is a simultaneous row/column permutation of Γ∘Δ_1. For i=1, reorder the full symmetric 16×16 masked matrix by T₀=(0000,0001,0011,0111), Z₁=(1011,1101,1010,1001), T₁=(1000,1110,1111,1100), Z₀=(0010,0100,0101,0110). Its four off-diagonal 4×4 blocks are A, Aᵀ, B, Bᵀ, arranged as M_A⊕M_B with M_A=[[0,A],[Aᵀ,0]] and M_B=[[0,B],[Bᵀ,0]], where A=[[d,d,c,b],[c,b,d,a],[a,d,b,c],[b,c,d,d]] and B=[[c,b,d,d],[b,c,d,a],[d,d,c,b],[d,a,b,c]]. The matrix B is symmetric, and A=PBQ where P reorders rows as (3,2,4,1) and Q swaps columns 1 and 2. With S=diag(P,Qᵀ), which is orthogonal, S M_B Sᵀ=M_A; conjugating M_B by 2^{-1/2}[[I,I],[I,−I]] gives diag(B,−B). Hence both 8×8 blocks have norm ||B||, and the full 16×16 masked matrix has norm ||B||. This justifies the filtered norm for i=1, and cyclic symmetry gives it for every i.
Define coordinate distributions at the orbit seeds by p_{0000}=(1/10,2/5,2/5,1/10),\quad p_{0010}=(1/10,1/10,2/5,2/5), and propagate by p_{g(x)}(σ(i))=p_x(i), where σ sends old coordinates 1,2,3,4 to new coordinates 4,1,2,3. Each propagated vector is a probability distribution. For the eight pairs (0000,g^k(0010)), k=0,…,7, the mismatch overlaps Σ_{i:x_i≠y_i}√(p_x(i)p_y(i)) are respectively (2/5,1/2,1/2,2/5,1/2,1/2,2/5,2/5). Every opposite-output pair is carried to one of these by a power of g, so all overlaps are at least 2/5.
First choose a=3/4,b=1/2,c=d=0. Every row and column of C then sums to 2(a+b)=5/2. For any vector z, weighted Cauchy–Schwarz [F9] gives ||Cz||²≤(5/2)Σ_xΣ_y C_{xy}|z_y|²=(5/2)^2||z||² by [F10], while the uniform vector is an eigenvector of C and C^T with singular value 5/2. For the symmetric block matrix Γ=[[0,C],[C^T,0]], SVD gives ||C^T||=||C||; hence ||Γ(u,v)||²=||Cv||²+||C^Tu||²≤||C||²(||u||²+||v||²), with equality on a top right singular vector of C, so ||Γ||=||C||=5/2. The corresponding B decomposes under the swap (1 3)(2 4) into even and odd blocks [[0,1/2],[1/2,3/4]] and [[0,1/2],[1/2,−3/4]], whose eigenvalues are {1,−1/4} and {1/4,−1}. Thus ||B||=1 by [F8,F10], and [F3,F4] give Adv(f)≥5/2.
Now choose a=579/1000,b=707/1000,c=183/1000,d=−212/1000. The uniform vector in the 8×8 block C has row and column sum 2(a+b+c+d)=2514/1000, so ||Γ||≥2514/1000.
The even/odd restrictions of B under (1 3)(2 4) are Their eigenvalues are (733±√1,605,781)/2000 and (−1±√4,003,925)/2000. Since 1,605,781<1269² and 4,003,925<2001², every absolute eigenvalue is strictly below 1.001; by [F8,F10], the operator norm of the symmetric B is the greatest of those absolute eigenvalues. Thus ||Γ∘Δ_i||=||B||<1.001 for every i.
Applying [F5] with η=2/5 yields Adv(f)≤5/2. Together with step 3.1, Adv(f)=5/2.
Multiply Γ by 999/1000. Its denominator becomes less than 0.999999, while its numerator is at least (999/1000)(2514/1000)=2.511486. The ratio is therefore strictly greater than 2.511486>5/2. By [F3,F4], Adv±(f)>2.511486>Adv(f).
Nonnegative and signed adversary bounds compose from below
Statement
Let be a finite partial Boolean function on bits and let be a finite partial Boolean function on bits. Define the block domain and composed function by Assume , as required for to be a Boolean query problem under Finite Boolean query problem and error model for adversary bounds. Then both adversary bounds satisfy
Facts & Assumptions
Given: Finite partial Boolean functions f and g with disjoint input blocks in the composition h=f∘g^N.
General adversary matrix and spectral bound: finite nonconstant functions have an attained signed adversary matrix.
Nonnegative-weight adversary bound: the same statement holds with entrywise nonnegative matrices.
Input-mismatch masks and entrywise filtering: Δ_i marks a mismatch at bit i and filters matrices entrywise.
Every linear map between finite-dimensional real or complex inner product spaces admits a singular value decomposition: every finite real matrix has orthonormal left/right singular vectors and singular values.
The operator norm is 0 on the zero domain and otherwise equals the largest singular value, attained at a right-singular vector: its operator norm is its largest singular value.
Finite Boolean query problem and error model for adversary bounds: a Boolean query problem has a finite nonempty domain and a positive input length.
Proof
Let f:D_f→{0,1} be a nonconstant Boolean function on N bits and g:D_g→{0,1} a nonconstant Boolean function on m bits. The composed partial function h=f∘g^N has domain D_h={ (x_1,…,x_N)∈D_g^N : (g(x_1),…,g(x_N))∈D_f }. This domain is nonempty: choose one z∈D_f and fixed preimages in D_g of 0 and 1, which exist because g is nonconstant, then lift the coordinates of z blockwise. Choose optimal matrices Γ_f,Γ_g normalized so max_i||Γ_f∘Δ_i||=max_j||Γ_g∘Δ_j||=1; write a=||Γ_g||=Adv±(g).
Decompose each adversary matrix by output classes, Γ_g=[[0,B_g],[B_g^T,0]]. For a,b∈{0,1}, let G^{ab} be the (a,b) block of Γ_g when a≠b and let G^{aa}=a I on D_g^a. For x,y∈D_h put \tilde x=(g(x_1),…,g(x_N)) and define (Γ_h){xy}=(Γ_f){\tilde x,\tilde y}\prod_{j=1}^N G^{\tilde x_j,\tilde y_j}_{x_j,y_j}. This matrix is real symmetric and vanishes whenever h(x)=h(y); if Γ_f,Γ_g are entrywise nonnegative, so is Γ_h.
By [F4,F5], choose a singular-vector basis of the cross block B_g. Pair its positive singular vectors across the two output classes, and pair equal numbers of left and right null vectors with singular value zero. If the null-space dimensions differ, each leftover null vector is a one-dimensional component supported on just one output class; its equal-output patch is aI and its cross-output action is zero. For a paired singular value s≤a, the four restrictions G^{00},G^{01},G^{10},G^{11} act as a times C_s=[[1,s/a],[s/a,1]], which is positive semidefinite with unit diagonal. A leftover singleton is represented by C_0=diag(1,0) or diag(0,1), a positive semidefinite matrix with diagonal entries at most one. For each tuple of child components, the corresponding invariant subspace is indexed by the compatible outer output labels b∈D_f, and the restriction of Γ_h is a^N times the compression of Γ_f∘C, where C_{b,b′} is the product of the selected two-output factors. The tensor-product factor C is positive semidefinite with diagonal entries at most one. Write C_{b,b′}=⟨c_b|c_{b′}⟩ with ||c_b||≤1; then V|b⟩=|b⟩⊗|c_b⟩ is a contraction and V^*(Γ_f⊗I)V=Γ_f∘C, so ||Γ_f∘C||≤||Γ_f||. The SVD components span every child input space, proving ||Γ_h||≤||Γ_f||a^N.
Choose top singular pairs (u_f,v_f) and (u_g,v_g) for the cross blocks of Γ_f and Γ_g. The bipartite block form makes α_f=(u_f,v_f)/√2 and α_g=(u_g,v_g)/√2 eigenvectors with eigenvalues ||Γ_f|| and a. For a fixed outer output tuple b, each child factor G^{b_j,b′_j} sends the restricted α_g component in class b′_j to a times the corresponding component in class b_j, whether b_j=b′_j (the patched aI block) or b_j≠b′_j (the singular-vector equation for B_g). Substitution in the definition of Γ_h therefore shows α_h(x)=α_f(tilde x)∏_jα_g(x_j) is an eigenvector with eigenvalue ||Γ_f||a^N. Together with step 2.1 this gives ||Γ_h||=||Γ_f||a^N.
Fix an input bit q in block j and put d=||Γ_g∘Δ_q||. If d=0, then every entry of Γ_g∘Δ_q is zero, the equal-output patch dI is zero, and the masked composed block is zero. Suppose d>0. In Γ_h∘Δ_{j,q}, if the outer block outputs agree at j, its factor Γ_f∘Δ_j is zero; equivalently, the patched equal-output child block is diagonal in x_j and is killed by the inner mismatch Δ_q. If the outer outputs differ at j, the child cross block is exactly the corresponding block of Γ_g∘Δ_q. Thus the masked composite has the same entrywise construction as step 1.2 with outer matrix Γ_f∘Δ_j, child j cross block from Γ_g∘Δ_q patched by dI on equal-output blocks, and every other child patched by aI. Repeating the invariant-subspace and correlation-compression argument of step 2.1 bounds its norm by ||Γ_f∘Δ_j|| d a^{N−1}. The paired, zero-singular, and singleton components are handled as in step 2.1; the outer and inner filtered norms are at most one by normalization, so ||Γ_h∘Δ_{j,q}||≤a^{N−1}.
Therefore max_{j,q}||Γ_h∘Δ_{j,q}||≤a^{N-1}, while ||Γ_h||=Adv±(f)a^N by step 3.1. Its ratio is at least Adv±(f)a, proving Adv±(f∘g^N)≥Adv±(f)Adv±(g). If Γ_f and Γ_g are nonnegative, step 1.2 makes Γ_h nonnegative, so the identical argument proves Adv(f∘g^N)≥Adv(f)Adv(g). If either function is constant, the asserted lower bound is the trivial zero bound.
Dual reflection evaluator has bounded-error correctness
Statement
For every x∈D, the dual reflection evaluator outputs f(x) with probability at least 2/3. On 1-inputs its exact common witness vector has zero phase and squared overlap with |start⟩ at least 2/3. On 0-inputs its false-positive probability is at most .
For every supplied finite certificate with class costs at most and a unit distinguished vector as required by Bounded-error evaluation from a dual adversary certificate, the witness vectors are normalized, both specified projections and their exact plus-on-range reflections are well-defined, and the stated ordered controlled product and finite QPE circuit define the evaluator. The input-independent witness-span reflection and other nonoracle gates carry no asserted efficient gate implementation.
Facts & Assumptions
Given: The evaluator of Bounded-error evaluation from a dual adversary certificate with M≥512A.
Bounded-error evaluation from a dual adversary certificate: the evaluator uses normalized ψ_x, U_x=R_{Π_x}R_Δ, M≥512A phase estimation, and accepts iff y=0.
Effective spectral gap for a product of two reflections: if Δφ=0, then ||E_ωΠφ||≤ω||φ||/2 for the |phase|≤ω spectral projection.
Phase-estimation nearest-grid and tail bounds: for M-grid QPE, the tail probability beyond distance η is at most 1/(2(K−1)) when K=floor(Mη)≥2; an exact grid phase is output exactly.
Projector Reflections Are Hermitian Unitary Involutions: R_Π=2Π−I acts +1 on ran Π and −1 on its orthogonal complement.
Dual vector formulation of the general adversary bound: a nonconstant Boolean function has an attained certificate {v_{x,i}} with class costs C_0,C_1.
Nonconstant Boolean functions have adversary value at least one: Adv±(f)≥1 for nonconstant f.
Controlled input-consistency reflection from a bit query: controlled R_{Π_x} is implemented with two unconditional XOR queries and the stated plus-on-range sign.
Orthogonal-Projector Reflection and Access Contract: the plus-on-range reflection is R_Π=2Π-I.
Projector Reflections Are Hermitian Unitary Involutions: projector reflections are exact unitary involutions.
Controlled Unitary Access: controlled U has control-first block action diag(I,U).
Standalone Global Phase Leaves Pure-State POVM Probabilities Unchanged: unit vectors differing by a scalar of modulus one give the same standalone POVM outcome probabilities; this does not identify their eigenphases in a controlled-unitary experiment.
A Controlled Global Phase Becomes a Relative Control Phase: a scalar phase becomes a relative phase in a controlled block and cannot be discarded there.
Quantum phase estimation: the finite phase-estimation circuit uses controlled powers U^{2^j} and outputs a grid label.
Phase-estimation query and gate costs: implementing those powers by repetition uses Σ_{j=0}^{m−1}2^j=M−1 controlled-U calls.
The rational bound is supplied by Rational bounds for pi used in finite schedules.
Proof
Use the supplied finite dual certificate from [F21] and its bound A≥max{C_0,C_1,1}; the domain condition A≥1 agrees with [F22]. The algorithm input specifies |start⟩ to be a unit vector orthogonal to the query summand. In the finite space H=span{|start⟩}⊕(C^N⊗V⊗C^2), define ν_x=1+(1/(2A))Σ_i||v_{x,i}||², |ψ_x⟩=ν_x^{-1/2}(|start⟩+(1/√(2A))Σ_i|i⟩|v_{x,i}⟩|x_i⟩). The start mode and distinct addresses are orthogonal, so ||ψ_x||²=ν_x^{-1}ν_x=1.
Let Δ be the orthogonal projection onto span{|ψ_y⟩:f(y)=1}, and let Π_x be the consistency projection onto |start⟩ and query states with response x_i. Set R_Δ=2Δ−I, R_{Π_x}=2Π_x−I, and U_x=R_{Π_x}R_Δ in exactly this order. [F25] makes both reflections unitary involutions. Controlled U_x is implemented by first applying controlled R_Δ and then controlled R_{Π_x} using [F26]; the first is input-independent, and the second is supplied by [F23]. Preserve the exact signs: the standalone state-phase invariance in [F27] does not permit changing the controlled powers, and [F28] makes a scalar phase on their target unitary a relative control phase.
Choose M=2^m to be the least power of two with M≥512A. Run the circuit [F29] on U_x with input |start⟩, implementing each controlled U_x^{2^j} by 2^j repetitions of the controlled U_x circuit, as in [F30]. Measure its phase label y∈{0,…,M−1}; output 1 exactly when y=0, and output 0 otherwise. The Δ reflection, witness-space construction, state-preparation description and all other nonoracle gates are not asserted to have an efficient gate implementation.
Suppose f(x)=1. Then ψ_x lies in ran Δ by the definition of Δ, and lies in ran Π_x because every response register in it equals x_i. Thus U_xψ_x=ψ_x, so ψ_x is a phase-zero eigenvector. The zero-label probability from |start⟩ is at least its squared projection onto that eigenspace: |⟨ψ_x|start⟩|²=1/ν_x≥2/3, since Σ_i||v_{x,i}||²≤C_1≤A gives ν_x≤3/2. The exact reflection signs in [F4] ensure both range eigenvalues are +1.
Suppose f(x)=0 and define |φ_x⟩=μ_x^{-1/2}(|start⟩−√(2A)Σ_i|i⟩|v_{x,i}⟩|1−x_i⟩), μ_x=1+2AΣ_i||v_{x,i}||²≤1+2A². Its displayed terms are orthogonal, so it is unit. For each y with f(y)=1, the certificate constraints give ⟨ψ_y|φ_x⟩=ν_y^{-1/2}μ_x^{-1/2}(1−Σ_{i:x_i≠y_i}⟨v_{y,i}|v_{x,i}⟩)=0. Therefore Δφ_x=0. The response |1−x_i⟩ is orthogonal to |x_i⟩, so Π_xφ_x=|start⟩/√μ_x.
Set ω=1/(4A)≤1/4 and let E_ω project onto eigenphases |φ|≤ω of U_x. Applying [F2] to the unit vector φ_x and using step 4.1 gives ||E_ω|start⟩||²≤μ_xω²/4≤(1+2A²)/(64A²)≤3/64.
For an eigenphase outside this interval, the QPE event y=0 is contained in the event that the measured grid point is at circular phase distance at least η=ω/(2π) from the true phase. Since Mω/(2π)≥64/π>224/11>20 by [F31], K=floor(Mη)≥20, and [F3] bounds this conditional probability by 1/38. Spectral components are orthogonal, so the total false-positive probability is at most 3/64+1/38<1/3. Thus the output is correct with probability at least 2/3 on 0-inputs; step 3.2 gives the same guarantee on 1-inputs.
Dual reflection evaluator query complexity
Statement
For a supplied balanced dual certificate of cost A≥1, the evaluator uses exactly Thus its query cost is less than . The phase-estimation and input-independent witness-span reflections carry no asserted gate bound.
Facts & Assumptions
Given: The bounded-error evaluator and its phase-estimation schedule.
Bounded-error evaluation from a dual adversary certificate: the schedule uses controlled powers with exponents 1,2,…,2^{m−1} and each controlled consistency reflection uses two bit queries.
Dual reflection evaluator has bounded-error correctness: the phase-estimation procedure has the required bounded-error correctness.
Phase-estimation query and gate costs: the repeated-power schedule contains M−1 controlled-U calls.
Controlled consistency reflection uses two bit queries: one controlled consistency reflection uses exactly two XOR queries.
Quantum query complexity: query count excludes nonoracle gates.
Proof
Let M=2^m be the schedule length. The QPE powers use 2^j controlled U_x calls for j=0,…,m−1, whose total is Σ_j2^j=M−1 by [F3].
Each controlled U_x has one controlled input-consistency reflection and one input-independent controlled Δ reflection. The first costs exactly two queries by [F4], while the second costs zero oracle calls. Therefore the total is exactly 2(M−1) queries.
Minimality of M implies M<1024A unless M=512A exactly, and hence 2(M−1)<2048A. Correctness is [F2]; preparations, equality tests, phase-estimation gates, and the Δ reflection are nonoracle operations and are not included by [F5]. This proves the O(A) query bound without a gate bound.
General adversary bound characterizes Boolean quantum query complexity
Statement
For every finite partial Boolean function f:D→{0,1}, bounded-error quantum query complexity at error at most 1/3 satisfies For nonconstant f, the lower coefficient is and the reflection evaluator gives an upper bound below . For constant f both quantities are zero.
Facts & Assumptions
Given: A finite partial Boolean function with the standard XOR query model.
General adversary spectral lower bound for quantum queries: Q_ε(f)≥(1/2−√(ε(1−ε)))Adv±(f).
Boolean-output filtered γ₂ equals the general adversary value: for nonconstant finite partial Boolean functions, the Boolean filtered factorization value is exactly Adv±.
Dual reflection evaluator query complexity: a supplied balanced dual certificate of cost A≥1 gives an evaluator using fewer than 2048A queries.
Quantum query complexity: the general query-cost coordinate is the worst-case number of designated oracle calls, excluding nonoracle gates.
Dual vector formulation of the general adversary bound: for nonconstant f the certificate minimum equals Adv± and is attained.
Nonconstant Boolean functions have adversary value at least one: nonconstant f has Adv±≥1.
Finite Boolean query problem and error model for adversary bounds: is the least worst-case standard XOR query count for success probability at least on every promised input.
General adversary matrix and spectral bound: for constant f, Adv±(f) is defined to be zero.
Dual reflection evaluator has bounded-error correctness: for every supplied finite dual certificate with class costs at most A≥1, the reflection evaluator outputs f(x) with probability at least 2/3 on every promised input x.
Proof
If f is nonconstant, apply [F1] with ε=1/3 to obtain Q_{1/3}(f)≥(1/2−√2/3)Adv±(f), whose coefficient is positive.
Still assuming f is nonconstant, [F2] identifies the Boolean filtered factorization value with Adv±(f). By [F5] the dual certificate optimum is attained with cost A=Adv±(f); reciprocal rescaling balances C_0,C_1 without increasing their maximum. By [F6], A≥1. For this certificate and bound A, [F9] gives success probability at least 2/3 on every promised input, while [F3] bounds the same evaluator's query count by fewer than 2048A. It therefore qualifies in the minimization [F7], giving Q_{1/3}(f)<2048Adv±(f).
If f is constant, the algorithm that outputs its fixed value without queries computes it exactly, so Q_{1/3}(f)=0 by [F7]. By [F8], Adv±(f)=0 as well. Combining this case with steps 1.1–1.2 proves the claimed uniform constant-factor bounds at error at most 1/3. Nonoracle gates are excluded from query cost by [F4].
5 · Examples, counterexamples and false statements
None yet.
Sources
- Andrew M. Childs, Lecture Notes on Quantum Algorithms, §24.1
- Troy Lee, Rajat Mittal, Ben Reichardt, Robert Špalek, and Mario Szegedy, Quantum Query Complexity of State Conversion, Appendix A.1
- Andrew M. Childs, Lecture Notes on Quantum Algorithms, Section 23.1
- Andrew M. Childs, Lecture Notes on Quantum Algorithms (17 April 2025)
- Ronald de Wolf, Quantum Computing: Lecture Notes, arXiv:1907.09415v6
- Troy Lee, Rajat Mittal, Ben Reichardt, Robert Špalek, and Mario Szegedy, Quantum Query Complexity of State Conversion, arXiv:1011.3020
- Høyer, Lee, and Špalek, Negative Weights Make Adversaries Stronger, Theory of Computing 3 (2007), §7.1
- Høyer, Lee, and Špalek, Negative Weights Make Adversaries Stronger, Theory of Computing 3 (2007), §§6.1–6.2
- Ben W. Reichardt, Span programs and quantum query complexity: The general adversary bound is nearly tight for every Boolean function, 2009