Introduction
Understanding the advantages of quantum algorithms over classical algorithms is a central question in quantum computing. Query complexity provides a setting in which these advantages can be proved without computational assumptions: an algorithm accesses its input through an oracle, and its cost is the number of queries. The deterministic query complexity D ( f ) D(f) D ( f ) is the minimum number of queries needed in the worst case by a deterministic algorithm that computes f f f on every input. The randomized query complexity R ( f ) R(f) R ( f ) is the minimum number of queries needed in the worst case by a randomized algorithm that computes f f f with error probability at most 1 / 3 1/3 1/3 on every input. The quantum query complexity Q ( f ) Q(f) Q ( f ) is defined analogously for quantum algorithms.
For total functions, quantum speedups are at most polynomial. Beals, Buhrman, Cleve, Mosca, and de Wolf proved that D ( f ) D(f) D ( f ) and Q ( f ) Q(f) Q ( f ) are polynomially related [4 ] , and the best general bound for total Boolean functions is now D ( f ) = O ( Q ( f ) 4 ) D(f) = O(Q(f)^4) D ( f ) = O ( Q ( f ) 4 ) [2 ] . Since R ( f ) ≤ D ( f ) R(f) \le D(f) R ( f ) ≤ D ( f ) , randomized and quantum query complexities are polynomially related as well. Thus, an exponential quantum advantage is possible only for partial functions, whose inputs are restricted by a promise. Such advantages do occur: Simon’s problem gives an exponential separation [16 ] , while the k k k -Forrelation problem yields optimal separations between randomized and quantum query complexities [8 , 17 ] . In these examples, the quantum algorithms exploit specific structure imposed by the promise, such as the hidden periodicity in Simon’s problem. This raises the question of how much structure is needed for large quantum speedups [1 ] .
Permutation invariance captures a notion of an unstructured problem: arbitrary permutations of the input positions preserve both the promise and the function value. Symmetric Boolean functions form an important subclass. We impose no restriction on the finite alphabet and do not require invariance under relabeling its symbols (Theorem 2.1).
For the study of permutation invariance, the history begins with Watrous’s 2002 conjecture that randomized and quantum query complexities of R ( f ) R(f) R ( f ) and Q ( f ) Q(f) Q ( f ) are polynomially related for partial functions invariant under permutations of both the input positions and the alphabet symbols (see [1 Conjecture 1.4] ). Aaronson and Ambainis proved this conjecture for alphabets of size at least the input length [1 ] . Chailloux established the cubic bound over arbitrary finite alphabets, assuming invariance only under permutations of the input positions [11 ] .
The study of permutation invariance also extends to graph properties. A graph property is a Boolean function defined on a subset of graphs on a fixed vertex set. Both its domain and its value are invariant under vertex relabeling. In the adjacency-matrix model, a query asks whether a given pair of vertices is an edge. A k k k -uniform hypergraph property is defined analogously, with each query asking whether a given set of k k k vertices is a hyperedge. Vertex relabelings induce permutations of the edge positions, giving another natural setting for studying the effect of symmetry on quantum speedups. The case k = 2 k=2 k = 2 recovers graph properties (see § 2.3 for the formal definitions). Ben-David, Childs, Gilv́en, Kretschmer, Podder, and Wang [5 ] proved R ( f ) = O ( Q ( f ) 6 ) R(f) = O(Q(f)^6) R ( f ) = O ( Q ( f ) 6 ) for graph properties and R ( f ) = O k ( Q ( f ) 3 k ) R(f) = O_k(Q(f)^{3k}) R ( f ) = O k ( Q ( f ) 3 k ) for k k k -uniform hypergraph properties.
We focus on the following two questions.
Problem 1 (Permutation-invariant functions). What is the largest possible separation between R ( f ) R(f) R ( f ) and Q ( f ) Q(f) Q ( f ) for permutation-invariant functions?
Problem 2 (Graph and hypergraph properties). What is the largest possible separation between R ( f ) R(f) R ( f ) and Q ( f ) Q(f) Q ( f ) for graph and hypergraph properties?
Our Results
Let Q ε ( f ) Q_{\varepsilon}(f) Q ε ( f ) and R ε ( f ) R_{\varepsilon}(f) R ε ( f ) denote the worst-case quantum and randomized query complexities of f f f with error at most ε \varepsilon ε on every input. The notation O k ( ⋅ ) O_k(\cdot) O k ( ⋅ ) indicates that the implicit constants depend only on k k k .
Theorem 1.1 (Permutation-invariant functions over arbitrary alphabets). For every permutation-invariant function f : D ⊆ A N → { 0 , 1 } f:D\subseteq A^N\to\{0,1\} f : D ⊆ A N → { 0 , 1 } over arbitrary finite alphabet A A A and 1 / 6 ≤ ε < 1 / 2 1/6\leq\varepsilon<1/2 1/6 ≤ ε < 1/2 , there is a randomized algorithm that computes f f f with error at most ε \varepsilon ε using O ( Q ε ( f ) 2 ) O(Q_{\varepsilon}(f)^2) O ( Q ε ( f ) 2 ) queries.
Theorem 1.2 (Graph and hypergraph properties). For every fixed integer k ≥ 2 k\geq2 k ≥ 2 , k k k -uniform hypergraph property f f f , and 1 / 6 ≤ ε < 1 / 2 1/6\leq\varepsilon<1/2 1/6 ≤ ε < 1/2 , there is a randomized algorithm that computes f f f with error at most ε \varepsilon ε on every promised input using O k ( Q ε ( f ) 2 k ) O_k(Q_{\varepsilon}(f)^{2k}) O k ( Q ε ( f ) 2 k ) queries.
The randomized algorithms in Theorems 1.1 and 1.2 can be nonadaptive. For example, in Theorem 1.1 , for every T T T -query quantum algorithm, there is a randomized algorithm using O ( T 2 ) O(T^2) O ( T 2 ) queries that achieves the same success probability as the quantum algorithm.
Theorem 1.3 (Hypergraph separations). For every fixed integer k ≥ 2 k\geq2 k ≥ 2 , there is an explicit family { F N } \{F_N\} { F N } of k k k -uniform hypergraph properties on N N N vertices such that
R 1 / 3 ( F N ) ≥ N k − o ( 1 ) , Q 1 / 3 ( F N ) ≤ N 1 / 2 + o ( 1 ) . R_{1/3}(F_N)\geq N^{k-o(1)},\qquad Q_{1/3}(F_N)\leq N^{1/2+o(1)}. R 1/3 ( F N ) ≥ N k − o ( 1 ) , Q 1/3 ( F N ) ≤ N 1/2 + o ( 1 ) .
Theorem 1.3 shows that the upper bound in Theorem 1.2 is nearly tight. The summary of our results is shown as Table 1.
Table 1. Randomized and quantum query bounds for invariant promise problems at error 1 / 3 1/3 1/3 .
Proof Techniques
Our upper bounds use a small random sample to approximate a quantum computation, then represent the remaining error by another computation with the same query budget. For the lower bounds, we encode hard promise problems into hypergraphs whose structure allows quantum algorithms to recover individual input positions efficiently.
From small-range functions to compressed permutations. The earlier cubic simulation replaces a random permutation by a random function with small range [11 , 18 ] . Our approach instead keeps the injectivity constraints in a coherent oracle database. It builds on the compressed-oracle method introduced by Zhandry for random functions [19 ] , the compressed permutation oracle of Carolan [9 ] , and the improved soundness theorem of Carolan and Majenz [12 ] . The two additional ingredients we prove are an exact norm formula for restricting the database range to a random sample and a residual expansion that preserves the number of queries. Together, these steps give a classical simulation with the required error guarantee.
Consider a T T T -query algorithm on a uniformly relabeled string x π x^{\pi} x π , where x i π = x π ( i ) x_i^{\pi}=x_{\pi(i)} x i π = x π ( i ) . Each query computes π ( i ) \pi(i) π ( i ) , queries x x x , and uncomputes the address. The resulting circuit has T T T queries and q = 2 T q=2T q = 2 T auxiliary permutation queries. Only the T T T queries to the input oracle are charged. The auxiliary queries are used to analyze how much relabeling information the circuit accesses. The compressed oracle represents that information through a coherent database of partial injections D D D from [ N ] [N] [ N ] to [ N ] [N] [ N ] . Compression by itself does not provide a small classical sample, because the database range can contain any label in [ N ] [N] [ N ] .
An exact norm formula for restriction to a sample. We next restrict the database range to a uniformly random s s s -element set S ⊆ [ N ] S\subseteq[N] S ⊆ [ N ] . An isometric embedding places the full and sampled computations in a common space carrying a sample register. We compare compressing before this embedding with applying sampled compression after it. The operator norm of their difference bounds the state error introduced by this replacement for any unit input state.
The difference arises from extension amplitudes whose sum over all admissible labels is zero. Restricting these amplitudes to a sample can destroy this cancellation. The variance of the sampled sum determines the error.
More precisely, on a compression block based at a partial injection of size t < s < N t<s<N t < s < N , the squared operator norm of this difference is exactly
2 ( N − s ) ( s − t ) ( N − t − 1 ) \frac{2(N-s)}{(s-t)(N-t-1)} ( s − t ) ( N − t − 1 ) 2 ( N − s )
Each compressed query consists of a database lookup between two compression operations. The lookup commutes with the embedding, so the two compression errors control the restriction error of the query. Combining these bounds with the compressed-permutation soundness estimate gives a total state error of O ( q / s ) = O ( K − 1 / 2 ) O(q/\sqrt{s})=O(K^{-1/2}) O ( q / s ) = O ( K − 1/2 ) over q q q auxiliary permutation queries when s = K q 2 < N s=Kq^2<N s = K q 2 < N and K K K is a sufficiently large constant. Since q = 2 T q=2T q = 2 T , a sufficiently small constant error therefore requires only O ( T 2 ) O(T^2) O ( T 2 ) sampled positions.
For a fixed sample S S S , every query in the sampled circuit can be answered from x [ S ] x[S] x [ S ] and the prescribed response at ⊥ \perp ⊥ . Here ⊥ ∉ [ N ] \perp\notin[N] ⊥ ∈ / [ N ] is a dummy address at which the input oracle leaves the answer register unchanged. Its output expectation can therefore be evaluated by unrestricted classical postprocessing. The sampled oracle retains a coherent database of partial injections, including their injectivity constraints. It is not the evaluation oracle of a fixed small-range function.
A residual expansion that preserves small bias. To handle success probability 1 / 2 + β 1/2+\beta 1/2 + β , we need more than a constant additive approximation. Let h A ( x ) ∈ [ − 1 , 1 ] h_{\mathcal{A}}(x)\in[-1,1] h A ( x ) ∈ [ − 1 , 1 ] be the signed output expectation of a symmetrized T T T -query algorithm. We construct a bounded postprocessing function a A ( S , x [ S ] ) a_{\mathcal{A}}(S,x[S]) a A ( S , x [ S ]) and another symmetrized algorithm R ( A ) \mathcal{R}(\mathcal{A}) R ( A ) such that
h A ( x ) = E S a A ( S , x [ S ] ) + λ h R ( A ) ( x ) , λ = 1 8 . h_{\mathcal{A}}(x)=\mathbb{E}_{S}a_{\mathcal{A}}(S,x[S])+\lambda h_{\mathcal{R}(\mathcal{A})}(x),\qquad\lambda=\frac{1}{8}. h A ( x ) = E S a A ( S , x [ S ]) + λ h R ( A ) ( x ) , λ = 8 1 .
This identity represents the remaining error as a fixed multiple of another algorithm’s signed output expectation. The crucial point is that the residual algorithm uses at most T T T input queries.
To construct it, we first expand the final-state difference into a sum of terms, each containing one error operator for an auxiliary query. Each error operator is input-independent. After normalization by its norm bound, it has norm at most one and can be implemented as a component of a larger unitary circuit without postselection. We insert this operator between an ideal prefix and a sampled suffix. The ideal prefix and sampled suffix together use exactly T T T input queries. Controlled state preparation represents each resulting cross term as a signed output expectation. Its two branches share the same T T T input-query slots. An input-independent randomized choice among these constructions gives the residual algorithm with at most T T T input queries. We can therefore apply the same sampling argument recursively.
Iterating the identity gives a geometric series of postprocessing functions with a residual bounded by λ L \lambda^L λ L . The sample S S S has the same distribution in every term. By linearity of expectation, we may therefore use a single sample S S S and evaluate all terms from x [ S ] x[S] x [ S ] . After a fixed normalization, choosing L = O ( log ( 1 / β ) ) L = O(\log(1/\beta)) L = O ( log ( 1/ β )) retains a constant fraction of the original bias without increasing the sample size. Three independent repetitions restore the original error throughout 1 / 6 ≤ ε < 1 / 2 1/6 \le\varepsilon< 1/2 1/6 ≤ ε < 1/2 . Only the postprocessing and its precision depend on the number of retained terms.
Sampling vertices and querying the induced hypergraph. We extend the sampling and residual arguments to k k k -uniform hypergraph properties to prove Theorem 1.2. Each hyperedge query relabels k k k vertex arguments using the same permutation, makes one query, and then reverses the relabeling. A T T T -query algorithm therefore uses q = 2 k T q = 2kT q = 2 k T auxiliary permutation queries. We sample O k ( T 2 ) O_k(T^2) O k ( T 2 ) vertices and read the induced hypergraph, using O k ( T 2 k ) O_k(T^{2k}) O k ( T 2 k ) queries. The same single-permutation estimates and residual construction preserve the original success guarantee. Taking k = 2 k = 2 k = 2 gives the quartic bound for graph properties.
Encoding near-maximal separations in hypergraphs. For the lower bound, we encode an arbitrary m m m -bit promise problem into an uncolored, connected, simple k k k -uniform hypergraph on N = Θ k ( m 1 / k ) N = \Theta_k(m^{1/k}) N = Θ k ( m 1/ k ) vertices. The difficulty is to locate the vertices needed to read a requested source bit after an arbitrary vertex relabeling. The general encoding in [5 Proposition 5.1] stores position labels in a larger alphabet. We encode these labels within the hypergraph itself and recover each requested data vertex coherently using O ~ k ( N ) \widetilde{O}_k(\sqrt{N}) O k ( N ) queries.
The construction has two vertex classes: data vertices with distinct binary addresses and a logarithmic number of address vertices. The source bits are stored in hyperedges among a fixed fraction of the data vertices. The address vertices have higher degrees, and a rigid tree determines their order. Hyperedges containing one address vertex record the OR of the corresponding address bits of their data vertices.
Each hyperedge query to the canonically labeled encoding can be answered using at most one source query, preserving randomized lower bounds. For the quantum reduction, degree estimates and amplitude amplification [13 , 7 ] identify the address vertices. For each address coordinate, a query returning zero identifies data vertices whose corresponding bits are all zero. Using these vertices to fill the remaining positions of a hyperedge query then reads that bit of any data vertex exactly. Amplitude amplification can therefore locate each requested data vertex coherently.
We apply this encoding to the ℓ \ell ℓ -Forrelation problems of Bansal and Sinha [8 ] , choosing the order ℓ \ell ℓ to increase slowly with the input size. These source problems require m 1 − o ( 1 ) m^{1-o(1)} m 1 − o ( 1 ) randomized queries but only polylogarithmically many quantum queries. The encoding transfers this separation to hypergraph properties and yields
R 1 / 3 ( F N ) ≥ N k − o ( 1 ) , Q 1 / 3 ( F N ) ≤ N 1 / 2 + o ( 1 ) . R_{1/3}(F_N) \ge N^{k-o(1)}, \qquad Q_{1/3}(F_N) \le N^{1/2+o(1)}. R 1/3 ( F N ) ≥ N k − o ( 1 ) , Q 1/3 ( F N ) ≤ N 1/2 + o ( 1 ) .
This proves Theorem 1.3 using connected simple k k k -uniform hypergraphs without vertex colors or an additional address oracle.
AI assistance. We used OpenAI ChatGPT (Codex) to assist with the development and review of the sampling argument, residual expansion, hypergraph simulation, and hypergraph encoding in § 3 to § 6 . Further details are given in the AI Methodology statement at the end of the paper.
Organization
§ 2 introduces the query models and notations. § 3 develops a quadratic simulation for strings at constant error. § 4 preserves the original success guarantee even when the success bias is arbitrarily small. § 5 extends the simulator to graph and hypergraph properties and proves Theorem 1.2. § 6 establishes the hypergraph encoding and uses it to prove Theorem 1.3.
Preliminaries
We first specify the oracle and error conventions, then define the symmetries used in the simulation and separation results.
Query Model
Let [ N ] = { 1 , … , N } [N] = \{1,\ldots,N\} [ N ] = { 1 , … , N } and f : D ⊆ A N → { 0 , 1 } f : \mathcal{D} \subseteq A^N \to\{0,1\} f : D ⊆ A N → { 0 , 1 } be a function on strings over a finite alphabet A A A . Its domain D \mathcal{D} D is the promise . The function is total when D = A N \mathcal{D} = A^N D = A N . Unless stated otherwise, the functions considered in this paper may be total or partial. We use Boolean function only when the input alphabet is { 0 , 1 } \{0,1\} { 0 , 1 } . Fix a known injective encoding enc A : A → { 0 , 1 } b \operatorname{enc}_A : A \to\{0,1\}^b enc A : A → { 0 , 1 } b . The input oracle acts as
O x ∣ i , z ⟩ = ∣ i , z ⊕ enc A ( x i ) ⟩ , i ∈ [ N ] . O_x|i,z\rangle= |i,z\oplus\operatorname{enc}_A(x_i)\rangle,\qquad i \in[N]. O x ∣ i , z ⟩ = ∣ i , z ⊕ enc A ( x i )⟩ , i ∈ [ N ] .
We identify alphabet symbols with their encodings when no confusion arises. Each application of O x O_x O x counts as one query, regardless of the encoding length b b b . The proofs also use auxiliary permutation queries to implement random relabelings. These operations are independent of the unknown input and do not contribute to its query complexity. Unless explicitly called an auxiliary permutation query, a query means a call to the input oracle. In the classical model, this is a request for one input entry. Algorithms may use arbitrary finite workspaces and arbitrary input-independent computation. For 0 ≤ ε < 1 / 2 0 \le\varepsilon< 1/2 0 ≤ ε < 1/2 , the quantum query complexity Q ε ( f ) Q_\varepsilon(f) Q ε ( f ) is the minimum number of queries required by a quantum algorithm to compute f f f with error at most ε \varepsilon ε on every input in its domain. The randomized query complexity R ε ( f ) R_\varepsilon(f) R ε ( f ) is defined analogously using randomized algorithms. In both definitions, the number of queries is measured in the worst case. We write Q ( f ) = Q 1 / 3 ( f ) Q(f) = Q_{1/3}(f) Q ( f ) = Q 1/3 ( f ) and R ( f ) = R 1 / 3 ( f ) R(f) = R_{1/3}(f) R ( f ) = R 1/3 ( f ) . A randomized algorithm is nonadaptive if, for each choice of its internal randomness, all query addresses are fixed before any input values are observed.
Any algorithm making at most T T T queries can be modified to make exactly T T T queries without changing its output distribution. We also allow a dummy address ⊥ \perp ⊥ at which the oracle acts as the identity.
We use ∥ v ∥ \|v\| ∥ v ∥ for the Euclidean norm and ∥ B ∥ = sup ∥ v ∥ = 1 ∥ B v ∥ \|B\| = \sup_{\|v\|=1}\|Bv\| ∥ B ∥ = sup ∥ v ∥ = 1 ∥ B v ∥ for the operator norm. An operator B B B is a contraction if ∥ B ∥ ≤ 1 \|B\| \le1 ∥ B ∥ ≤ 1 and an isometry if B † B = I B^\dagger B = I B † B = I .
To express success probabilities in a form suited to the simulation, we use signed outputs. For an algorithm A \mathcal{A} A with output B x ∈ { 0 , 1 } B_x \in\{0,1\} B x ∈ { 0 , 1 } , let Y x = 2 B x − 1 ∈ { − 1 , + 1 } Y_x = 2B_x - 1 \in\{-1,+1\} Y x = 2 B x − 1 ∈ { − 1 , + 1 } be its signed output. After purifying randomness and intermediate measurements, there are a final pure state ∣ ψ x ⟩ |\psi_x\rangle ∣ ψ x ⟩ and an input-independent Hermitian contraction M M M such that
h A ( x ) : = E [ Y x ] = ⟨ ψ x ∣ M ∣ ψ x ⟩ , M = M † , ∥ M ∥ ≤ 1. h_{\mathcal{A}}(x) := \mathbb{E}[Y_x] = \langle\psi_x|M|\psi_x\rangle,\qquad M = M^\dagger,\quad\|M\| \le1. h A ( x ) := E [ Y x ] = ⟨ ψ x ∣ M ∣ ψ x ⟩ , M = M † , ∥ M ∥ ≤ 1.
The two-outcome measurement with effects ( I + M ) / 2 (I+M)/2 ( I + M ) /2 and ( I − M ) / 2 (I-M)/2 ( I − M ) /2 produces a signed output with expectation h A ( x ) h_{\mathcal{A}}(x) h A ( x ) . Let F ( x ) = 2 f ( x ) − 1 F(x) = 2f(x)-1 F ( x ) = 2 f ( x ) − 1 . Then
Pr [ A ( x ) = f ( x ) ] = 1 + F ( x ) h A ( x ) 2 . (1) \Pr[\mathcal{A}(x)=f(x)] = \frac{1+F(x)h_{\mathcal{A}}(x)}{2}. \tag*{(1)} Pr [ A ( x ) = f ( x )] = 2 1 + F ( x ) h A ( x ) . (1)
An algorithm has worst-case success bias at least β > 0 \beta> 0 β > 0 if it succeeds with probability at least 1 / 2 + β 1/2+\beta 1/2 + β on every promised input. By (1) , this condition is equivalent to
F ( x ) h A ( x ) ≥ 2 β for all x ∈ D . F(x)h_{\mathcal{A}}(x) \ge2\beta\qquad\text{for all } x \in\mathcal{D}. F ( x ) h A ( x ) ≥ 2 β for all x ∈ D .
Permutation Invariance and Symmetrization
Permutation invariance allows us to average an algorithm over input relabelings without reducing its worst-case success guarantee. We formalize this symmetry and introduce the classical sampling model used to approximate symmetrized output expectations.
Definition 2.1 (Permutation-invariant functions). Let S N S_N S N denote the symmetric group on [ N ] [N] [ N ] , let A A A be a finite alphabet, and let f : D ⊆ A N → { 0 , 1 } f:\mathcal{D} \subseteq A^N \to\{0,1\} f : D ⊆ A N → { 0 , 1 } be a function. For π ∈ S N \pi\in S_N π ∈ S N , write x i π = x π ( i ) x_i^\pi=x_{\pi(i)} x i π = x π ( i ) . The function f f f is permutation-invariant if, for every x ∈ D x \in\mathcal{D} x ∈ D and π ∈ S N \pi\in S_N π ∈ S N ,
x π ∈ D and f ( x π ) = f ( x ) . x^\pi\in\mathcal{D} \qquad\text{and} \qquad f(x^\pi)=f(x). x π ∈ D and f ( x π ) = f ( x ) .
For any algorithm A \mathcal{A} A , define its symmetrized signed expectation by
h ‾ A ( x ) = E π ∈ S N h A ( x π ) . \overline{h}_{\mathcal{A}}(x)=\mathbb{E}_{\pi\in S_N}h_{\mathcal{A}}(x^\pi). h A ( x ) = E π ∈ S N h A ( x π ) .
If A \mathcal{A} A has worst-case success bias at least β \beta β on an invariant promise, then F ( x ) h ‾ A ( x ) ≥ 2 β F(x)\overline{h}_{\mathcal{A}}(x) \ge2\beta F ( x ) h A ( x ) ≥ 2 β on every promised input. We may purify the uniform choice of π \pi π into an external permutation register, which the original circuit accesses only through the compiled relabeling queries.
We will approximate these symmetrized expectations using classical simulators that read a random sample. Such a simulator chooses a uniform s s s -element subset S ⊆ [ N ] S \subseteq[N] S ⊆ [ N ] before observing any input values and queries the labeled restriction x [ S ] = ( x i ) i ∈ S x[S]=(x_i)_{i\in S} x [ S ] = ( x i ) i ∈ S . It then evaluates a known postprocessing function a ( S , x [ S ] ) ∈ [ − 1 , 1 ] a(S,x[S]) \in[-1,1] a ( S , x [ S ]) ∈ [ − 1 , 1 ] , with no further queries. Outputting + 1 +1 + 1 with probability ( 1 + a ( S , x [ S ] ) ) / 2 (1+a(S,x[S]))/2 ( 1 + a ( S , x [ S ])) /2 and − 1 -1 − 1 otherwise gives signed expectation
E S : ∣ S ∣ = s a ( S , x [ S ] ) . \mathbb{E}_{S:|S|=s}a(S,x[S]). E S : ∣ S ∣ = s a ( S , x [ S ]) .
The simulator is nonadaptive and uses s s s queries, regardless of the computation required to evaluate the postprocessing function.
Graph and Hypergraph Properties
For graph and hypergraph properties, vertex relabelings induce permutations of the queried edge positions. For an integer k ≥ 2 k \ge2 k ≥ 2 and a finite set V V V , let ( V k ) \binom{V}{k} ( k V ) denote its set of k k k -element subsets. A simple k k k -uniform hypergraph on V V V is specified by a function H : ( V k ) → { 0 , 1 } H:\binom{V}{k}\to\{0,1\} H : ( k V ) → { 0 , 1 } , with H ( e ) = 1 H(e)=1 H ( e ) = 1 exactly when e e e is a hyperedge. The case k = 2 k=2 k = 2 is a simple undirected graph. For V = [ N ] V=[N] V = [ N ] and π ∈ S N \pi\in S_N π ∈ S N , define π ( e ) = { π ( v ) : v ∈ e } \pi(e)=\{\pi(v):v\in e\} π ( e ) = { π ( v ) : v ∈ e } and H π ( e ) = H ( π ( e ) ) H^\pi(e)=H(\pi(e)) H π ( e ) = H ( π ( e )) .
Definition 2.2 (Graph and hypergraph properties). A k k k -uniform hypergraph property is a function
f : D ⊆ { 0 , 1 } ( [ N ] k ) → { 0 , 1 } f:\mathcal{D}\subseteq\{0,1\}^{\binom{[N]}{k}}\to\{0,1\} f : D ⊆ { 0 , 1 } ( k [ N ] ) → { 0 , 1 } such that, for every H ∈ D H\in\mathcal{D} H ∈ D and π ∈ S N \pi\in S_N π ∈ S N ,
H π ∈ D and f ( H π ) = f ( H ) . H^\pi\in\mathcal{D} \qquad\text{and} \qquad f(H^\pi)=f(H). H π ∈ D and f ( H π ) = f ( H ) .
A graph property is the case k = 2 k=2 k = 2 . The property is total when D = { 0 , 1 } ( [ N ] k ) \mathcal{D}=\{0,1\}^{\binom{[N]}{k}} D = { 0 , 1 } ( k [ N ] ) .
Unless stated otherwise, graph and hypergraph properties may have promises. For oracle access, extend H H H to ordered vertex tuples by
H ( v 1 , … , v k ) = { H ( { v 1 , … , v k } ) , if the vertices are distinct , 0 , otherwise . H(v_1,\ldots,v_k)=
\begin{cases}
H(\{v_1,\ldots,v_k\}), & \text{if the vertices are distinct},\\
0, & \text{otherwise}.
\end{cases} H ( v 1 , … , v k ) = { H ({ v 1 , … , v k }) , 0 , if the vertices are distinct , otherwise .
The query oracle XORs this value into an answer bit. For k = 2 k=2 k = 2 , this is the adjacency-matrix model, with a symmetric matrix and zero diagonal. All hypergraphs considered here are uncolored: the input specifies only hyperedge membership, with no vertex colors. The incidence graph has one node for each vertex and each hyperedge, and joins a vertex to the hyperedges containing it. A hypergraph is connected if its incidence graph is connected.
Quadratic Simulator for Permutation-Invariant Functions
Fix an algorithm A \mathcal{A} A using at most T ≥ 1 T \ge1 T ≥ 1 queries. Using the convention from § 2 , we arrange for exactly T T T queries without changing its output distribution and let q = 2 T q=2T q = 2 T . Our goal is to construct a uniform sample S S S of size O ( T 2 ) O(T^2) O ( T 2 ) and a function a A ( S , x [ S ] ) ∈ [ − 1 , 1 ] a_{\mathcal{A}}(S,x[S]) \in[-1,1] a A ( S , x [ S ]) ∈ [ − 1 , 1 ] such that
∣ h ˉ A ( x ) − E S a A ( S , x [ S ] ) ∣ ≤ 1 8 \left|\bar{h}_{\mathcal{A}}(x)-\mathbb{E}_{S}a_{\mathcal{A}}(S,x[S])\right|\leq\frac{1}{8} h ˉ A ( x ) − E S a A ( S , x [ S ]) ≤ 8 1
for every input x x x . The function uses no input values outside the sample. This gives the constant-error quadratic simulation in Theorem 3.5 .
After compiling the relabeling, the proof has four steps. We apply the compressed-permutation estimate (Theorem 3.1 ), prove an exact norm formula for restriction to a sample (Theorem 3.2), combine the two approximations (Theorem 3.3), and show that the sampled circuit uses only the sampled input (Theorem 3.4). All T T T queries remain in the comparison. Only the q q q auxiliary permutation queries are replaced.
Table 2 summarizes the three representations of the relabeling information used below.
Table 2. Representations of the relabeling information.
On the corresponding low-degree permutation subspaces, W = J s V N W=J_sV_N W = J s V N combines the two maps.
Compiled Relabeling Queries
To query x i π x_i^\pi x i π , the circuit first computes π ( i ) \pi(i) π ( i ) into an auxiliary address register initialized to ∣ ⊥ ⟩ |\perp\rangle ∣ ⊥ ⟩ . It then applies O x O_x O x once using this address register and uncomputes π ( i ) \pi(i) π ( i ) to restore the register to ∣ ⊥ ⟩ |\perp\rangle ∣ ⊥ ⟩ . Both the computation and its reversal use the oracle for π \pi π without querying π − 1 \pi^{-1} π − 1 .
The circuit retains this register as part of its workspace and uses a new register initialized to ∣ ⊥ ⟩ |\perp\rangle ∣ ⊥ ⟩ for the next query. The resulting circuit implements the original algorithm using T T T queries to O x O_x O x and q = 2 T q=2T q = 2 T auxiliary permutation queries.
On the register spanned by { ⊥ } ∪ [ N ] \{\perp\} \cup[N] { ⊥ } ∪ [ N ] , let S y S_y S y swap ∣ ⊥ ⟩ \lvert\perp\rangle ∣ ⊥ ⟩ and ∣ y ⟩ \lvert y\rangle ∣ y ⟩ . The purified auxiliary permutation query at address i ∈ [ N ] i \in[N] i ∈ [ N ] is
P i = ∑ y ∈ [ N ] S y ⊗ ∑ π : π ( i ) = y ∣ π ⟩ ⟨ π ∣ . P_i = \sum_{y \in[N]} S_y \otimes\sum_{\pi:\pi(i)=y} \lvert\pi\rangle\langle\pi\rvert. P i = y ∈ [ N ] ∑ S y ⊗ π : π ( i ) = y ∑ ∣ π ⟩ ⟨ π ∣ .
For a query controlled on the dummy input address, set P ⊥ = I P_\perp= I P ⊥ = I and take its compressed and sampled counterparts to be the identity. Let P N = span { ∣ π ⟩ : π ∈ S N } \mathcal{P}_N = \operatorname{span}\{\lvert\pi\rangle:\pi\in S_N\} P N = span {∣ π ⟩ : π ∈ S N } be the Hilbert space of a register storing the permutation. This register is initialized to ∣ unif N ⟩ = N ! − 1 / 2 ∑ π ∈ S N ∣ π ⟩ \lvert\operatorname{unif}_N\rangle= N!^{-1/2}\sum_{\pi\in S_N}\lvert\pi\rangle ∣ unif N ⟩ = N ! − 1/2 ∑ π ∈ S N ∣ π ⟩ . Tracing out this register recovers the average over a uniformly random permutation.
Compressed Permutations
The compiled circuit stores a complete random permutation. We compare its auxiliary queries with a compressed oracle whose basis states are partial injections.
A database is a partial injection D D D , viewed as an injective map D : dom ( D ) → [ N ] D:\operatorname{dom}(D) \to[N] D : dom ( D ) → [ N ] with dom ( D ) ⊆ [ N ] \operatorname{dom}(D) \subseteq[N] dom ( D ) ⊆ [ N ] . We write ∣ D ∣ = ∣ dom D ∣ = ∣ im D ∣ \lvert D\rvert= \lvert\operatorname{dom}D\rvert= \lvert\operatorname{im}D\rvert ∣ D ∣ = ∣ dom D ∣ = ∣ im D ∣ for its number of records. Let L N \mathcal{L}_N L N be the Hilbert space with these databases as an orthonormal basis. Let L N , ≤ t \mathcal{L}_{N,\leq t} L N , ≤ t and L N , t \mathcal{L}_{N,t} L N , t denote the spans of database basis states of size at most t t t and exactly t t t , respectively. Fix an address i i i . Every database H H H with i ∉ dom H i \notin\operatorname{dom}H i ∈ / dom H defines the block consisting of ∣ H ⟩ \lvert H\rangle ∣ H ⟩ and all ∣ H ∪ { i ↦ y } ⟩ \lvert H \cup\{i \mapsto y\}\rangle ∣ H ∪ { i ↦ y }⟩ with y ∉ im H y \notin\operatorname{im}H y ∈ / im H . Define
∣ u i , H N ⟩ = 1 N − ∣ H ∣ ∑ y ∉ im H ∣ H ∪ { i ↦ y } ⟩ . \lvert u^N_{i,H}\rangle= \frac{1}{\sqrt{N-\lvert H\rvert}}\sum_{y\notin\operatorname{im}H}\lvert H\cup\{i\mapsto y\}\rangle. ∣ u i , H N ⟩ = N − ∣ H ∣ 1 y ∈ / im H ∑ ∣ H ∪ { i ↦ y }⟩ .
The unitary C i N C_i^N C i N swaps ∣ H ⟩ \lvert H\rangle ∣ H ⟩ and ∣ u i , H N ⟩ \lvert u^N_{i,H}\rangle ∣ u i , H N ⟩ , fixing the orthogonal complement of their span in each block. If Q i , y Q_{i,y} Q i , y projects onto databases with D ( i ) = y D(i)=y D ( i ) = y and Q i , ⊥ Q_{i,\perp} Q i , ⊥ onto those without i i i , define
L i N = I ⊗ Q i , ⊥ + ∑ y ∈ [ N ] S y ⊗ Q i , y , O i N = C i N L i N C i N . L_i^N = I\otimes Q_{i,\perp}+\sum_{y\in[N]}S_y\otimes Q_{i,y},\qquad O_i^N = C_i^N L_i^N C_i^N. L i N = I ⊗ Q i , ⊥ + y ∈ [ N ] ∑ S y ⊗ Q i , y , O i N = C i N L i N C i N .
For a partial injection D D D , its completion state is the uniform superposition of all permutations extending D D D . Let H ≤ t \mathcal{H}_{\leq t} H ≤ t be the span of completion states with ∣ D ∣ ≤ t \lvert D\rvert\leq t ∣ D ∣ ≤ t , and let Π ≤ t \Pi_{\leq t} Π ≤ t be the corresponding orthogonal projector. With H ≤ − 1 = { 0 } \mathcal{H}_{\leq-1}=\{0\} H ≤ − 1 = { 0 } , define
H t = H ≤ t ∩ ( H ≤ t − 1 ) ⊥ . \mathcal{H}_t=\mathcal{H}_{\leq t}\cap(\mathcal{H}_{\leq t-1})^\perp. H t = H ≤ t ∩ ( H ≤ t − 1 ) ⊥ .
One purified permutation query raises this degree by at most one. The following theorem provides an isometry from permutation states to database states and bounds the error in replacing one purified query by a compressed query in the swap-oracle model defined above.
Theorem 3.1 (Carolan–Majenz, Theorem 4.2, Eq. (12) [12 ] ). For N ≥ 3 N \geq3 N ≥ 3 there is an input-independent isometry V N : P N → L N V_N:\mathcal{P}_N\to\mathcal{L}_N V N : P N → L N such that V N H t ⊆ L N , t V_N\mathcal{H}_t\subseteq\mathcal{L}_{N,t} V N H t ⊆ L N , t and V N ∣ unif N ⟩ = ∣ ∅ ⟩ V_N\lvert\operatorname{unif}_N\rangle=\lvert\varnothing\rangle V N ∣ unif N ⟩ = ∣ ∅ ⟩ . If 3 t + 2 ≤ N 3t+2\leq N 3 t + 2 ≤ N , then
∥ ( O i N V N − V N P i ) Π ≤ t ∥ ≤ 60 N − t + t + 1 N − 2 t − 1 . (2) \left\|\left(O_i^N V_N-V_NP_i\right)\Pi_{\leq t}\right\|\leq\frac{60}{\sqrt{N-t}}+\frac{t+1}{N-2t-1}. \tag*{(2)} ( O i N V N − V N P i ) Π ≤ t ≤ N − t 60 + N − 2 t − 1 t + 1 . (2)
Restricting the Database Range
A small database may still contain labels anywhere in [ N ] [N] [ N ] . To obtain a simulator that reads only a sample, we restrict the database range and bound the change in the compressed queries.
Choose q + 1 < s < N q+1<s<N q + 1 < s < N . For each s s s -set S ⊆ [ N ] S\subseteq[N] S ⊆ [ N ] , let L S \mathcal{L}_S L S be spanned by databases with image contained in S S S . Define C i S C_i^S C i S , L i S L_i^S L i S , and O i S O_i^S O i S as above, restricting extension labels to S S S . When ∣ H ∣ = s \lvert H\rvert=s ∣ H ∣ = s and i ∉ dom H i\notin\operatorname{dom}H i ∈ / dom H , the block has no extension. Define C i s C_i^s C i s to be the identity on this one-dimensional block. Thus these operators are defined and unitary on all of L S \mathcal{L}_S L S .
Define an isometry only on databases of size at most s s s :
J s : L N , ≤ s ⟶ ⨁ S : ∣ S ∣ = s ∣ S ⟩ ⊗ L S , J s ∣ D ⟩ = ( N − ∣ D ∣ s − ∣ D ∣ ) − 1 / 2 ∑ ∣ S ∣ = s im D ⊆ S ∣ S ⟩ ∣ D ⟩ . (3) J_s:\mathcal{L}_{N,\leq s}\longrightarrow\bigoplus_{S:|S|=s}|S\rangle\otimes\mathcal{L}_S,\qquad J_s|D\rangle=\binom{N-|D|}{s-|D|}^{-1/2}\sum_{\substack{|S|=s\\\operatorname{im}D\subseteq S}}|S\rangle|D\rangle. \tag*{(3)} J s : L N , ≤ s ⟶ S : ∣ S ∣ = s ⨁ ∣ S ⟩ ⊗ L S , J s ∣ D ⟩ = ( s − ∣ D ∣ N − ∣ D ∣ ) − 1/2 ∣ S ∣ = s im D ⊆ S ∑ ∣ S ⟩ ∣ D ⟩ . (3)
Different databases have orthogonal images, and each image has norm one. We use hats to denote direct sums over all subsets S ⊆ [ N ] S\subseteq[N] S ⊆ [ N ] of size s s s . For example,
C i ^ = ⨁ ∣ S ∣ = s C i s . \widehat{C_i}=\bigoplus_{|S|=s}C_i^s. C i = ∣ S ∣ = s ⨁ C i s .
The operator L i N L_i^N L i N leaves the database register unchanged. Consequently, L i ^ J s = J s L i N \widehat{L_i}J_s=J_sL_i^N L i J s = J s L i N on the domain of J s J_s J s . The remaining error comes from the two possible orders of compression and restriction to a sample. The next lemma computes its norm exactly on each compression block.
Lemma 3.2 (Exact norm of the restriction error). On the block based at H H H with i ∉ dom H i\notin\operatorname{dom}H i ∈ / dom H and t = ∣ H ∣ < s < N t=|H|<s<N t = ∣ H ∣ < s < N ,
∥ C i ^ J s − J s C i N ∥ 2 = 2 ( N − s ) ( s − t ) ( N − t − 1 ) . (4) \left\|\widehat{C_i}J_s-J_sC_i^N\right\|^2=\frac{2(N-s)}{(s-t)(N-t-1)}. \tag*{(4)} C i J s − J s C i N 2 = ( s − t ) ( N − t − 1 ) 2 ( N − s ) . (4)
Proof. We decompose the compression block into the span of its two swapped states and the orthogonal complement. The two orders of compression and restriction agree on the first subspace; on the second, we compute their difference by summing over sample blocks.
Let a = N − t a=N-t a = N − t , b = s − t b=s-t b = s − t , d 0 = ( a b ) d_0=\binom{a}{b} d 0 = ( b a ) , and d 1 = ( a − 1 b − 1 ) d_1=\binom{a-1}{b-1} d 1 = ( b − 1 a − 1 ) . Identify [ N ] ∖ im H [N]\setminus\operatorname{im}H [ N ] ∖ im H with [ a ] [a] [ a ] , and write ∣ 0 ⟩ = ∣ H ⟩ |0\rangle=|H\rangle ∣0 ⟩ = ∣ H ⟩ and ∣ y ⟩ = ∣ H ∪ { i ↦ y } ⟩ |y\rangle=|H\cup\{i\mapsto y\}\rangle ∣ y ⟩ = ∣ H ∪ { i ↦ y }⟩ for y ∈ [ a ] y\in[a] y ∈ [ a ] . Set ∣ u a ⟩ = a − 1 / 2 ∑ y ∣ y ⟩ |u_a\rangle=a^{-1/2}\sum_y|y\rangle ∣ u a ⟩ = a − 1/2 ∑ y ∣ y ⟩ . A sample extending im H \operatorname{im}H im H corresponds to a b b b -set K ⊆ [ a ] K\subseteq[a] K ⊆ [ a ] . Write ∣ u K ⟩ = b − 1 / 2 ∑ y ∈ K ∣ y ⟩ |u_K\rangle=b^{-1/2}\sum_{y\in K}|y\rangle ∣ u K ⟩ = b − 1/2 ∑ y ∈ K ∣ y ⟩ . Since a d 1 = b d 0 ad_1=bd_0 a d 1 = b d 0 , the components in sample block K K K satisfy
( J s ∣ 0 ⟩ ) K = ∣ 0 ⟩ d 0 , ( J s ∣ u a ⟩ ) K = ∣ u K ⟩ d 0 . (J_s|0\rangle)_K=\frac{|0\rangle}{\sqrt{d_0}},\qquad(J_s|u_a\rangle)_K=\frac{|u_K\rangle}{\sqrt{d_0}}. ( J s ∣0 ⟩ ) K = d 0 ∣0 ⟩ , ( J s ∣ u a ⟩ ) K = d 0 ∣ u K ⟩ .
The full and restricted compressions swap the corresponding two vectors. Thus the restriction E H E_H E H of C i ^ J s − J s C i N \widehat{C_i}J_s-J_sC_i^N C i J s − J s C i N to this block vanishes on span { ∣ 0 ⟩ , ∣ u a ⟩ } \operatorname{span}\{|0\rangle,|u_a\rangle\} span { ∣0 ⟩ , ∣ u a ⟩} .
It remains to consider the orthogonal complement. For v = ∑ y v y ∣ y ⟩ v=\sum_yv_y|y\rangle v = ∑ y v y ∣ y ⟩ with ∑ y v y = 0 \sum_yv_y=0 ∑ y v y = 0 , the full compression fixes v v v , whereas the restricted compression swaps its component along ∣ u K ⟩ |u_K\rangle ∣ u K ⟩ with ∣ 0 ⟩ |0\rangle ∣0 ⟩ . Consequently,
( E H v ) K = ∑ y ∈ K v y b d 1 ( ∣ 0 ⟩ − ∣ u K ⟩ ) . (E_Hv)_K=\frac{\sum_{y\in K}v_y}{\sqrt{bd_1}}\left(|0\rangle-|u_K\rangle\right). ( E H v ) K = b d 1 ∑ y ∈ K v y ( ∣0 ⟩ − ∣ u K ⟩ ) .
Each label belongs to d 1 d_1 d 1 of the b b b -sets K K K , and each pair of distinct labels belongs to d 1 ( b − 1 ) / ( a − 1 ) d_1(b-1)/(a-1) d 1 ( b − 1 ) / ( a − 1 ) of them. Summing over the orthogonal sample blocks and using ∑ y v y = 0 \sum_yv_y=0 ∑ y v y = 0 gives
∥ E H v ∥ 2 = 2 b ( ∑ y ∣ v y ∣ 2 + b − 1 a − 1 ∑ y ≠ z v y v z ‾ ) = 2 ( a − b ) b ( a − 1 ) ∥ v ∥ 2 . \begin{aligned}
\|E_Hv\|^2=\frac{2}{b}\left(\sum_y|v_y|^2+\frac{b-1}{a-1}\sum_{y\ne z}v_y\overline{v_z}\right) \\
&=\frac{2(a-b)}{b(a-1)}\|v\|^2.
\end{aligned} ∥ E H v ∥ 2 = b 2 y ∑ ∣ v y ∣ 2 + a − 1 b − 1 y = z ∑ v y v z = b ( a − 1 ) 2 ( a − b ) ∥ v ∥ 2 .
Every vector in the block is the orthogonal sum of a vector in span { ∣ 0 ⟩ , ∣ u a ⟩ } \operatorname{span}\{|0\rangle,|u_a\rangle\} span { ∣0 ⟩ , ∣ u a ⟩} and such a zero-sum vector v v v . Since a > b ≥ 1 a>b\geq1 a > b ≥ 1 , nonzero zero-sum vectors exist, so
∥ E H ∥ 2 = 2 ( a − b ) b ( a − 1 ) = 2 ( N − s ) ( s − t ) ( N − t − 1 ) . \|E_H\|^2=\frac{2(a-b)}{b(a-1)}=\frac{2(N-s)}{(s-t)(N-t-1)}. ∥ E H ∥ 2 = b ( a − 1 ) 2 ( a − b ) = ( s − t ) ( N − t − 1 ) 2 ( N − s ) .
For a fixed address i i i , distinct compression blocks remain orthogonal under J s J_s J s and are preserved by compression. Every database of size at most t t t lies in a block whose base has size at most t t t . Thus Theorem 3.2, with P ≤ t L P_{\leq t}^{\mathcal{L}} P ≤ t L denoting the projector onto L N , ≤ t \mathcal{L}_{N,\leq t} L N , ≤ t , gives
∥ ( C ^ i J s − J s C i N ) P ≤ t L ∥ ≤ 2 s − t , t ≤ s − 1. (5) \left\|(\widehat{C}_iJ_s-J_sC_i^N)P_{\leq t}^{\mathcal{L}}\right\|\leq\sqrt{\frac{2}{s-t}},\qquad t\leq s-1. \tag*{(5)} ( C i J s − J s C i N ) P ≤ t L ≤ s − t 2 , t ≤ s − 1. (5)
The same bound holds for coherently controlled addresses, since the operator is block diagonal in the address register.
Let E i = C ^ i J s − J s C i N E_i=\widehat{C}_iJ_s-J_sC_i^N E i = C i J s − J s C i N wherever these compositions are defined. Using L ^ i J s = J s L i N \widehat{L}_iJ_s=J_sL_i^N L i J s = J s L i N , we obtain
O ^ i J s − J s O i N = C ^ i L ^ i E i + E i L i N C i N . \widehat{O}_iJ_s-J_sO_i^N=\widehat{C}_i\widehat{L}_iE_i+E_iL_i^NC_i^N. O i J s − J s O i N = C i L i E i + E i L i N C i N .
The operator C i N C_i^N C i N increases database size by at most one, and L i N L_i^N L i N leaves it unchanged. For t ≤ s − 2 t\leq s-2 t ≤ s − 2 , all compositions are therefore defined on L N , ≤ t \mathcal{L}_{N,\leq t} L N , ≤ t . Unitarity and (5) at sizes t t t and t + 1 t+1 t + 1 give
∥ ( O ^ i J s − J s O i N ) P ≤ t L ∥ ≤ 2 s − t + 2 s − t − 1 ≤ 2 2 s − t − 1 , t ≤ s − 2. (6) \left\|(\widehat{O}_iJ_s-J_sO_i^N)P_{\leq t}^{\mathcal{L}}\right\|
\leq\sqrt{\frac{2}{s-t}}+\sqrt{\frac{2}{s-t-1}}
\leq2\sqrt{\frac{2}{s-t-1}},\qquad t\leq s-2. \tag*{(6)} ( O i J s − J s O i N ) P ≤ t L ≤ s − t 2 + s − t − 1 2 ≤ 2 s − t − 1 2 , t ≤ s − 2. (6)
Approximating Permutation Queries
We now combine the compressed-permutation approximation with the estimate for restriction to a sample to bound the error in replacing one ideal permutation query by a sampled query.
Lemma 3.3 (Combined query approximation). Let q ≥ 1 q\geq1 q ≥ 1 , q + 1 < s < N q+1<s<N q + 1 < s < N , and 3 q + 2 ≤ N 3q+2\leq N 3 q + 2 ≤ N . The map W = J s V N W=J_sV_N W = J s V N is an isometry on H ≤ q + 1 \mathcal{H}_{\leq q+1} H ≤ q + 1 . For every 0 ≤ t ≤ q 0\leq t\leq q 0 ≤ t ≤ q ,
∥ ( O ^ i W − W P i ) Π ≤ t ∥ ≤ η N , s , q : = 60 N − q + q + 1 N − 2 q − 1 + 2 2 s − q − 1 . (7) \left\|(\widehat{O}_iW-WP_i)\Pi_{\leq t}\right\|\leq\eta_{N,s,q}:=\frac{60}{\sqrt{N-q}}+\frac{q+1}{N-2q-1}+2\sqrt{\frac{2}{s-q-1}}. \tag*{(7)} ( O i W − W P i ) Π ≤ t ≤ η N , s , q := N − q 60 + N − 2 q − 1 q + 1 + 2 s − q − 1 2 . (7)
Proof. We compare ideal and sampled queries through the full compressed oracle, applying the two preceding estimates in turn.
By Theorem 3.1 , V N H ≤ q + 1 ⊆ L N , ≤ q + 1 V_N\mathcal{H}_{\leq q+1}\subseteq\mathcal{L}_{N,\leq q+1} V N H ≤ q + 1 ⊆ L N , ≤ q + 1 . Since q + 1 < s q+1<s q + 1 < s , the map W = J s V N W=J_sV_N W = J s V N is well defined and isometric on H ≤ q + 1 \mathcal{H}_{\leq q+1} H ≤ q + 1 . For 0 ≤ t ≤ q 0\leq t\leq q 0 ≤ t ≤ q , insert J s O i N V N J_sO_i^NV_N J s O i N V N to obtain
( O ^ i W − W P i ) Π ≤ t = ( O ^ i J s − J s O i N ) V N Π ≤ t + J s ( O i N V N − V N P i ) Π ≤ t . (\widehat{O}_iW-WP_i)\Pi_{\leq t}
=(\widehat{O}_iJ_s-J_sO_i^N)V_N\Pi_{\leq t}
+J_s(O_i^NV_N-V_NP_i)\Pi_{\leq t}. ( O i W − W P i ) Π ≤ t = ( O i J s − J s O i N ) V N Π ≤ t + J s ( O i N V N − V N P i ) Π ≤ t .
The first term is bounded by (6) . In the second term, O i N = C i N L i N C i N O_i^N=C_i^NL_i^NC_i^N O i N = C i N L i N C i N increases database size by at most two, while P i P_i P i increases degree by at most one. Hence the argument to J s J_s J s is supported on databases of size at most t + 2 ≤ q + 2 ≤ s t+2\leq q+2\leq s t + 2 ≤ q + 2 ≤ s , where J s J_s J s preserves norms. Together with (2) , this gives
∥ ( O ^ i W − W P i ) Π ≤ t ∥ ≤ 2 2 s − t − 1 + 60 N − t + t + 1 N − 2 t − 1 ≤ η N , s , q . \left\|(\widehat{O}_iW-WP_i)\Pi_{\leq t}\right\|
\leq2\sqrt{\frac{2}{s-t-1}}+\frac{60}{\sqrt{N-t}}+\frac{t+1}{N-2t-1}\leq\eta_{N,s,q}. ( O i W − W P i ) Π ≤ t ≤ 2 s − t − 1 2 + N − t 60 + N − 2 t − 1 t + 1 ≤ η N , s , q .
For coherently controlled addresses, the operator is block diagonal in the address register, so the same estimate holds.
Extend W W W by mapping H ≤ q + 1 ⊥ \mathcal{H}_{\leq q+1}^{\perp} H ≤ q + 1 ⊥ isometrically into an additional orthogonal target space, and extend each sampled query by the identity on that space. This preserves (7) : for t ≤ q t\leq q t ≤ q , both the input in H ≤ t \mathcal{H}_{\leq t} H ≤ t and its image under P i P_i P i in H ≤ t + 1 \mathcal{H}_{\leq t+1} H ≤ t + 1 use only the original action of W W W . The extension acts only on external memory and is input-independent. ∎
After adding suitable ancillary registers, the extended isometry has an input-independent unitary implementation on external memory. Since W W W acts only on external memory, it commutes with every operation of the original circuit, including the input oracle.
The scale of (7) explains the quadratic sample size. For q ≥ 1 q \ge1 q ≥ 1 , N ≥ 4 q + 2 N \ge4q+2 N ≥ 4 q + 2 , and s ≥ 2 ( q + 1 ) s \ge2(q+1) s ≥ 2 ( q + 1 ) , the explicit bound gives
η N , s , q ≤ 60 2 N + 2 ( q + 1 ) N + 4 s = O ( N − 1 / 2 + q / N + s − 1 / 2 ) . \eta_{N,s,q} \le\frac{60\sqrt{2}}{\sqrt{N}}+\frac{2(q+1)}{N}+\frac{4}{\sqrt{s}}=O\left(N^{-1/2}+q/N+s^{-1/2}\right). η N , s , q ≤ N 60 2 + N 2 ( q + 1 ) + s 4 = O ( N − 1/2 + q / N + s − 1/2 ) .
If also q 2 ≤ s < N q^2 \le s < N q 2 ≤ s < N , the accumulated state error over q q q auxiliary queries is O ( q η N , s , q ) = O ( q / s ) O(q\eta_{N,s,q})=O(q/\sqrt{s}) O ( q η N , s , q ) = O ( q / s ) . Thus a sample of size s = K q 2 s=Kq^2 s = K q 2 makes this error a sufficiently small constant when K K K is sufficiently large.
We fix K = 10 8 K=10^8 K = 1 0 8 to meet the error bound required below. If N ≤ K q 2 N \le Kq^2 N ≤ K q 2 , query the entire string. Otherwise, set s = K q 2 s=Kq^2 s = K q 2 . These parameters satisfy the conditions above and the hypotheses of Theorem 3.3. The displayed estimate then gives
2 q η N , s , q ≤ 120 2 + 8 K + 8 K < 1 8 . 2q\eta_{N,s,q}\le\frac{120\sqrt{2}+8}{\sqrt{K}}+\frac{8}{K}<\frac{1}{8}. 2 q η N , s , q ≤ K 120 2 + 8 + K 8 < 8 1 .
Hence
2 q η N , s , q ≤ λ : = 1 8 . (8) 2q\eta_{N,s,q}\le\lambda:=\frac{1}{8}. \tag*{(8)} 2 q η N , s , q ≤ λ := 8 1 . (8)
Nonadaptive Simulation at Constant Error
We first show that the sampled circuit depends only on the sampled input and approximates the signed output expectation of the ideal circuit.
Lemma 3.4 (Approximation from the sampled input). Let A A A be a T T T -query algorithm on strings in A N A^N A N , and let q = 2 T ≥ 1 q=2T\ge1 q = 2 T ≥ 1 . Assume that
q + 1 < s < N , 3 q + 2 ≤ N . q+1<s<N,\qquad3q+2\le N. q + 1 < s < N , 3 q + 2 ≤ N . There is a function a A ( S , x [ S ] ) ∈ [ − 1 , 1 ] a_A(S,x[S])\in[-1,1] a A ( S , x [ S ]) ∈ [ − 1 , 1 ] such that
ℓ A ( x ) = E S : ∣ S ∣ = s a A ( S , x [ S ] ) (9) \ell_A(x)=\mathop{\mathbb{E}}_{S:|S|=s}a_A(S,x[S]) \tag*{(9)} ℓ A ( x ) = E S : ∣ S ∣ = s a A ( S , x [ S ]) (9) satisfies
∣ h ˉ A ( x ) − ℓ A ( x ) ∣ ≤ 2 q η N , s , q \left|\bar{h}_A(x)-\ell_A(x)\right|\le2q\eta_{N,s,q} h ˉ A ( x ) − ℓ A ( x ) ≤ 2 q η N , s , q for every input x x x .
Proof. We construct the sampled circuit and show that its restriction to each sample block depends only on x [ S ] x[S] x [ S ] . We then compare its final state with that of the ideal circuit using the one-query estimate.
Replace every auxiliary permutation query P i P_i P i in the compiled circuit by O ^ i \widehat{O}_i O i . Since V N ∣ u n i f N ⟩ = ∣ ∅ ⟩ V_N|\mathrm{unif}_N\rangle=|\varnothing\rangle V N ∣ unif N ⟩ = ∣ ∅ ⟩ , the external registers start in
W ∣ u n i f N ⟩ = ( N s ) − 1 / 2 ∑ S ⊆ [ N ] ∣ S ∣ = s ∣ S , ∅ ⟩ . W|\mathrm{unif}_N\rangle=\binom{N}{s}^{-1/2}\sum_{\substack{S\subseteq[N]\\|S|=s}}|S,\varnothing\rangle. W ∣ unif N ⟩ = ( s N ) − 1/2 S ⊆ [ N ] ∣ S ∣ = s ∑ ∣ S , ∅ ⟩ .
Thus every sample initially has the same weight and an empty database. The sampled queries preserve the sample label because they are direct sums over S S S .
Fix a sample S S S . In this block, each auxiliary query is O i S = C i S L i S C i S O_i^S=C_i^S L_i^S C_i^S O i S = C i S L i S C i S . The operators C i S C_i^S C i S act only on the database, while L i S L_i^S L i S applies S y S_y S y to the auxiliary answer register if the database records i ↦ y i\mapsto y i ↦ y , and otherwise acts as the identity. Every recorded value belongs to S S S . An auxiliary answer register initialized to ∣ ⊥ ⟩ |\perp\rangle ∣ ⊥ ⟩ therefore remains supported on
span { ∣ ⊥ ⟩ } ∪ { ∣ y ⟩ : y ∈ S } . \operatorname{span}\{|\perp\rangle\}\cup\{|y\rangle:y\in S\}. span { ∣ ⊥ ⟩} ∪ { ∣ y ⟩ : y ∈ S } .
even when entangled with other registers. When this register serves as the query address, the required actions are
∣ y ⟩ ∣ z ⟩ ↦ ∣ y ⟩ ∣ z ⊕ x y ⟩ ( y ∈ S ) , ∣ ⊥ ⟩ ∣ z ⟩ ↦ ∣ ⊥ ⟩ ∣ z ⟩ . |y\rangle|z\rangle\mapsto|y\rangle|z\oplus x_y\rangle\quad(y\in S),\qquad|\perp\rangle|z\rangle\mapsto|\perp\rangle|z\rangle. ∣ y ⟩ ∣ z ⟩ ↦ ∣ y ⟩ ∣ z ⊕ x y ⟩ ( y ∈ S ) , ∣ ⊥ ⟩ ∣ z ⟩ ↦ ∣ ⊥ ⟩ ∣ z ⟩ .
They are determined by x [ S ] x[S] x [ S ] and the prescribed zero response at ⊥ \perp ⊥ . The second auxiliary query need not return the address register to ∣ ⊥ ⟩ |\perp\rangle ∣ ⊥ ⟩ . We retain it as workspace and use a fresh register initialized to ∣ ⊥ ⟩ |\perp\rangle ∣ ⊥ ⟩ for the next query. The support argument thus applies at every query, so the circuit in this block depends only on S S S , x [ S ] x[S] x [ S ] , and the description of A \mathcal{A} A .
Let a A ( S , x [ S ] ) = E [ 2 B S − 1 ] ∈ [ − 1 , 1 ] a_{\mathcal{A}}(S,x[S])=\mathbb{E}[2B_S-1]\in[-1,1] a A ( S , x [ S ]) = E [ 2 B S − 1 ] ∈ [ − 1 , 1 ] , where B S B_S B S is the output of this circuit. All operations preserve the sample label and the output measurement acts only on accessible registers. The overall signed expectation is therefore the uniform average in (9) .
It remains to bound the approximation error. Before the j j j th auxiliary query, the ideal state has external degree at most j − 1 j-1 j − 1 . Operations between auxiliary queries preserve this degree and commute with W W W . The sampled suffixes are unitary. A telescoping expansion with ideal prefixes and sampled suffixes therefore bounds each of the q q q query replacements by (7) . Since the initial sampled state is exactly the image under W W W of the ideal state, the final states satisfy
∥ u x − v x ∥ ≤ q η N , s , q . \lVert u_x-v_x\rVert\le q\eta_{N,s,q}. ∥ u x − v x ∥ ≤ q η N , s , q .
where u x u_x u x is the ideal final state mapped by W W W and v x v_x v x is the sampled final state. The signed output observable M M M , tensored with the identity on external memory, has ∥ M ∥ ≤ 1 \lVert M\rVert\le1 ∥ M ∥ ≤ 1 . As W W W acts only on that memory, Cauchy–Schwarz gives
∣ h ˉ A ( x ) − ℓ A ( x ) ∣ = ∣ ⟨ u x ∣ M ∣ u x ⟩ − ⟨ v x ∣ M ∣ v x ⟩ ∣ ≤ 2 ∥ u x − v x ∥ ≤ 2 q η N , s , q . \left|\bar h_{\mathcal{A}}(x)-\ell_{\mathcal{A}}(x)\right|
=\left|\langle u_x|M|u_x\rangle-\langle v_x|M|v_x\rangle\right|
\le2\lVert u_x-v_x\rVert\le2q\eta_{N,s,q}. h ˉ A ( x ) − ℓ A ( x ) = ∣ ⟨ u x ∣ M ∣ u x ⟩ − ⟨ v x ∣ M ∣ v x ⟩ ∣ ≤ 2 ∥ u x − v x ∥ ≤ 2 q η N , s , q .
For s = K q 2 < N s=Kq^2<N s = K q 2 < N , (8) gives
∣ h ˉ A ( x ) − ℓ A ( x ) ∣ ≤ 1 8 . (10) \left|\bar h_{\mathcal{A}}(x)-\ell_{\mathcal{A}}(x)\right|\le\frac{1}{8}. \tag*{(10)} h ˉ A ( x ) − ℓ A ( x ) ≤ 8 1 . (10)
We now apply Theorem 3.4 to a bounded-error algorithm for a permutation-invariant promise problem.
Corollary 3.5 (Constant-error simulation). Every permutation-invariant function f f f over a finite alphabet satisfies
R 1 / 3 ( f ) = O ( Q 1 / 3 ( f ) 2 ) . R_{1/3}(f)=O\left(Q_{1/3}(f)^2\right). R 1/3 ( f ) = O ( Q 1/3 ( f ) 2 ) . The randomized algorithm is nonadaptive.
Proof. Let T = Q 1 / 3 ( f ) T=Q_{1/3}(f) T = Q 1/3 ( f ) and q = 2 T q=2T q = 2 T . If T = 0 T=0 T = 0 , then f f f is constant on its promise and requires no randomized queries. If T ≥ 1 T\ge1 T ≥ 1 and N ≤ K q 2 N\le Kq^2 N ≤ K q 2 , query the full input. Otherwise, Theorem 3.4 with s = K q 2 s=Kq^2 s = K q 2 gives a sampled experiment with success probability at least 1 / 2 + 5 / 48 1/2+5/48 1/2 + 5/48 . Rounding each conditional output probability to a dyadic grid within 5 / 96 5/96 5/96 gives a finite classical decision rule with success probability at least 1 / 2 + 5 / 96 1/2+5/96 1/2 + 5/96 . A constant number of independent repetitions and majority vote reduces the error to 1 / 3 1/3 1/3 , using O ( T 2 ) O(T^2) O ( T 2 ) queries whose locations can all be selected in advance.
A Residual Expansion for Small Bias
The constant additive approximation from (10) does not by itself preserve an arbitrarily small positive success bias. If the original signed expectation is only 2 β 2\beta 2 β in the correct direction, an additive error of 1 / 8 1/8 1/8 may eliminate that guarantee.
The operator estimate (7) provides more structure than an additive bound on output expectations. The error operator for each auxiliary query is independent of the input. After division by its norm bound, it has norm at most one and can be realized as a component of a unitary circuit. Inserting this component between an ideal prefix and a sampled suffix uses at most the original T T T queries. The controlled preparation below converts the resulting cross terms into signed output expectations without increasing this bound.
We thereby represent the difference between the ideal and sampled expectations exactly as a constant multiple of another algorithm’s signed expectation. The same construction can be applied to that residual algorithm. Iteration reduces the remaining term geometrically while keeping the sample size fixed.
Fix an integer T ≥ 1 T \ge1 T ≥ 1 and let
q = 2 T , K = 10 8 , λ = 1 8 . q = 2T,\qquad K = 10^{8},\qquad\lambda= \frac{1}{8}. q = 2 T , K = 1 0 8 , λ = 8 1 .
Set s = N s=N s = N if N ≤ ⌈ K q 2 ⌉ N \le\lceil Kq^{2}\rceil N ≤ ⌈ K q 2 ⌉ , and set s = ⌈ K q 2 ⌉ s=\lceil Kq^{2}\rceil s = ⌈ K q 2 ⌉ otherwise. Throughout the recursion, T T T is a fixed upper bound on the number of queries. Even if a residual algorithm uses fewer queries, we continue to use this same value of T T T when choosing s s s .
Controlled State Preparation
The following lemma allows us to represent an overlap between two prepared states without adding their query counts.
Lemma 4.1 (Controlled state preparation). Suppose two circuits each use at most T T T applications of the same XOR oracle O x O_x O x . After adding initialized registers and identifying their output spaces, let their normalized output states be ∣ a ~ x ⟩ |\widetilde{a}_x\rangle ∣ a x ⟩ and ∣ b ~ x ⟩ |\widetilde{b}_x\rangle ∣ b x ⟩ . There is a circuit using at most T T T queries that prepares
∣ 0 ⟩ ∣ a ~ x ⟩ + ∣ 1 ⟩ ∣ b ~ x ⟩ 2 . \frac{|0\rangle|\widetilde{a}_x\rangle+|1\rangle|\widetilde{b}_x\rangle}{\sqrt{2}}. 2 ∣0 ⟩ ∣ a x ⟩ + ∣1 ⟩ ∣ b x ⟩ . Let P P P be an input-independent orthogonal projector onto a common output subspace, and let
∣ a x ⟩ = P ∣ a ~ x ⟩ , ∣ b x ⟩ = P ∣ b ~ x ⟩ . |a_x\rangle=P|\widetilde{a}_x\rangle,\qquad|b_x\rangle=P|\widetilde{b}_x\rangle. ∣ a x ⟩ = P ∣ a x ⟩ , ∣ b x ⟩ = P ∣ b x ⟩ . For every input-independent Hermitian contraction M M M on this subspace, the quantity
Re ⟨ a x ∣ M ∣ b x ⟩ \operatorname{Re}\langle a_x|M|b_x\rangle Re ⟨ a x ∣ M ∣ b x ⟩ is the signed output expectation of an algorithm using at most T T T queries.
Proof. We prepare the two branches using the same T T T query positions and then recover the desired real part as a signed measurement expectation. Purify all randomness and intermediate measurements. Using the convention from § 2 , pad both circuits with queries that leave the state unchanged so that each circuit makes exactly T T T queries. Number these queries from 1 1 1 to T T T .
Prepare a control qubit in ( ∣ 0 ⟩ + ∣ 1 ⟩ ) / 2 (|0\rangle+|1\rangle)/\sqrt{2} ( ∣0 ⟩ + ∣1 ⟩) / 2 . The control qubit selects which circuit’s input-independent operations to apply. At the j j j th query, use controlled swaps to move the selected circuit’s address and answer registers into the registers on which O x O_x O x acts. Apply O x O_x O x once and reverse the swaps. For each padding query, use any valid address and an auxiliary answer register in the state
∣ + b ⟩ = 2 − b / 2 ∑ z ∈ { 0 , 1 } b ∣ z ⟩ . |+_b\rangle= 2^{-b/2} \sum_{z\in\{0,1\}^b} |z\rangle. ∣ + b ⟩ = 2 − b /2 z ∈ { 0 , 1 } b ∑ ∣ z ⟩ .
This state is unchanged by the map ∣ z ⟩ ↦ ∣ z ⊕ a ⟩ |z\rangle\mapsto|z\oplus a\rangle ∣ z ⟩ ↦ ∣ z ⊕ a ⟩ for every a ∈ { 0 , 1 } b a\in\{0,1\}^b a ∈ { 0 , 1 } b . Thus one ordinary query to O x O_x O x implements the j j j th query in both branches. The entire controlled preparation uses T T T queries. The same procedure implements a query at ⊥ \perp ⊥ by routing that branch to a fixed valid address and the auxiliary answer state, then undoing the swaps.
The residual construction will also use states obtained from an input-independent contraction B B B . Embed its input and output spaces into a common finite space and extend B B B by zero on the additional directions. The standard unitary dilation [15 Theorem 2] gives an input-independent unitary U B U_B U B with the action
∣ 0 ⟩ ∣ ψ ⟩ ↦ ∣ 0 ⟩ B ∣ ψ ⟩ + ∣ 1 ⟩ I − B † B ∣ ψ ⟩ . |0\rangle|\psi\rangle\mapsto|0\rangle B|\psi\rangle+|1\rangle\sqrt{I-B^\dagger B}|\psi\rangle. ∣0 ⟩ ∣ ψ ⟩ ↦ ∣0 ⟩ B ∣ ψ ⟩ + ∣1 ⟩ I − B † B ∣ ψ ⟩ .
The component with flag zero is exactly B ∣ ψ ⟩ B|\psi\rangle B ∣ ψ ⟩ without normalization. Retain the flag without measurement and leave it unchanged in subsequent operations, so no postselection is used. Implementing U B U_B U B requires no queries.
Add ancillary registers as needed so that the desired components lie in a common output subspace, with P P P also selecting the required flag values. Extend M M M by zero on the orthogonal complement to obtain M ~ \widetilde{M} M . Let ∣ Ω x ⟩ |\Omega_x\rangle ∣ Ω x ⟩ be the controlled state prepared above, and let X c = ∣ 0 ⟩ ⟨ 1 ∣ + ∣ 1 ⟩ ⟨ 0 ∣ X_c=|0\rangle\langle1|+|1\rangle\langle0| X c = ∣0 ⟩ ⟨ 1∣ + ∣1 ⟩ ⟨ 0∣ act on the control qubit. Then
⟨ Ω x ∣ ( X c ⊗ M ~ ) ∣ Ω x ⟩ = Re ⟨ a x ∣ M ∣ b x ⟩ . \langle\Omega_x|(X_c\otimes\widetilde{M})|\Omega_x\rangle=\operatorname{Re}\langle a_x|M|b_x\rangle. ⟨ Ω x ∣ ( X c ⊗ M ) ∣ Ω x ⟩ = Re ⟨ a x ∣ M ∣ b x ⟩ .
Since X c ⊗ M ~ X_c\otimes\widetilde{M} X c ⊗ M is a Hermitian contraction, the measurement described in § 2 realizes this signed expectation.
The Exact Residual Identity
We now apply controlled state preparation to the difference between the output expectations of the ideal and sampled circuits. The next lemma expresses this difference as a fixed multiple of another algorithm’s signed output expectation while preserving the original query bound.
Lemma 4.2 (Residual identity with the same query bound). Fix an integer T ≥ 1 T\ge1 T ≥ 1 and the sample size s s s defined above. For every string algorithm A A A using at most T T T queries, there are a function a A ( S , x [ S ] ) ∈ [ − 1 , 1 ] a_A(S,x[S])\in[-1,1] a A ( S , x [ S ]) ∈ [ − 1 , 1 ] and a symmetrized algorithm R ( A ) R(A) R ( A ) using at most T T T queries such that
h ‾ A ( x ) = E S a A ( S , x [ S ] ) + λ h R ( A ) ( x ) , λ = 1 8 , (11) \overline{h}_A(x)=\mathbb{E}_S a_A(S,x[S])+\lambda h_{R(A)}(x),\qquad\lambda=\frac{1}{8}, \tag*{(11)} h A ( x ) = E S a A ( S , x [ S ]) + λ h R ( A ) ( x ) , λ = 8 1 , (11) for every x ∈ A N x\in A^N x ∈ A N . The sample S S S is uniform among the s s s -element subsets of [ N ] [N] [ N ] .
Proof. We first expand the state difference into local query errors, then realize the resulting cross terms within the original query bound. Symmetrizing this representation gives the claimed residual identity. We handle the full-input case before carrying out these three steps.
If s = N s=N s = N , take a A ( [ N ] , x ) = h ‾ A ( x ) a_A([N],x)=\overline{h}_A(x) a A ([ N ] , x ) = h A ( x ) and let R ( A ) R(A) R ( A ) output a fair sign.
Assume s < N s<N s < N and let
η = η N , s , q i . \eta=\eta_{N,s,q_i}. η = η N , s , q i .
By the choice of s s s and (8),
2 q η ≤ λ . 2q\eta\le\lambda. 2 q η ≤ λ .
This inequality will let us combine the normalized local errors into a single residual algorithm.
Step 1: a telescoping expansion of the state difference. We use the ideal and sampled circuits from § 3 . The query sequence has been extended to exactly T T T queries using the convention from § 2 , so the compiled circuit has exactly q = 2 T q = 2T q = 2 T auxiliary permutation queries. Let ∣ u x ⟩ \lvert u_x\rangle ∣ u x ⟩ be the ideal final state mapped into the common space by W W W , and let ∣ v x ⟩ \lvert v_x\rangle ∣ v x ⟩ be the sampled final state. Both states are normalized.
Number the auxiliary permutation queries from 1 1 1 to q q q . Let P j P_j P j and P ^ j \widehat{P}_j P j denote the ideal and sampled operators at the j j j th such query, including coherent control of the address. Identities on unaffected registers are implicit below.
Define
K j = ( W P j − P ^ j W ) Π ≤ j − 1 η . (12) K_j = \frac{(W P_j - \widehat{P}_j W)\Pi_{\leq j-1}}{\eta}. \tag*{(12)} K j = η ( W P j − P j W ) Π ≤ j − 1 . (12)
The operator estimate (7) gives ∥ K j ∥ ≤ 1 \lVert K_j\rVert\leq1 ∥ K j ∥ ≤ 1 . Its definition uses only the known auxiliary query operators, the isometry W W W , and the degree projector.
Let ∣ ψ j , x ⟩ \lvert\psi_{j,x}\rangle ∣ ψ j , x ⟩ be the ideal joint state immediately before the j j j th auxiliary permutation query. Since each ideal auxiliary query increases degree by at most one,
Π ≤ j − 1 ∣ ψ j , x ⟩ = ∣ ψ j , x ⟩ . \Pi_{\leq j-1}\lvert\psi_{j,x}\rangle= \lvert\psi_{j,x}\rangle. Π ≤ j − 1 ∣ ψ j , x ⟩ = ∣ ψ j , x ⟩ .
Let B j , x B_{j,x} B j , x denote the evolution of the sampled circuit strictly after the j j j th auxiliary query. Define
∣ z j , x ⟩ = B j , x K j ∣ ψ j , x ⟩ . \lvert z_{j,x}\rangle= B_{j,x}K_j\lvert\psi_{j,x}\rangle. ∣ z j , x ⟩ = B j , x K j ∣ ψ j , x ⟩ .
Its norm is at most one because K j K_j K j has norm at most one and the sampled evolution is unitary.
The map W W W acts only on the external registers. All operations between auxiliary permutation queries act on the accessible registers and commute with W W W , as established above. In particular, this applies to the queries to O x O_x O x .
Compare successive circuits in which the first j j j auxiliary queries are ideal and the remaining queries are sampled, with W W W inserted between the two parts. The difference between the circuits for j j j and j − 1 j-1 j − 1 is
B j , x ( W P j − P ^ j W ) ∣ ψ j , x ⟩ . B_{j,x}(W P_j - \widehat{P}_j W)\lvert\psi_{j,x}\rangle. B j , x ( W P j − P j W ) ∣ ψ j , x ⟩ .
Summing these differences gives the exact identity
∣ u x ⟩ − ∣ v x ⟩ = ∑ j = 1 q B j , x ( W P j − P ^ j W ) ∣ ψ j , x ⟩ = η ∑ j = 1 q ∣ z j , x ⟩ . (13) \begin{aligned}
\lvert u_x\rangle- \lvert v_x\rangle
&= \sum_{j=1}^{q} B_{j,x}(W P_j - \widehat{P}_j W)\lvert\psi_{j,x}\rangle\\
&= \eta\sum_{j=1}^{q} \lvert z_{j,x}\rangle. \tag*{(13)}
\end{aligned} ∣ u x ⟩ − ∣ v x ⟩ = j = 1 ∑ q B j , x ( W P j − P j W ) ∣ ψ j , x ⟩ = η j = 1 ∑ q ∣ z j , x ⟩ . (13)
Step 2: realizing the cross terms within the query bound. Let n j n_j n j be the number of input queries before the j j j th auxiliary permutation query. The construction in Theorem 4.1 realizes K j K_j K j through an input-independent unitary dilation U K j U_{K_j} U K j , as shown in Figure 1 . The preparations of ∣ u x ⟩ \lvert u_x\rangle ∣ u x ⟩ and ∣ v x ⟩ \lvert v_x\rangle ∣ v x ⟩ also use at most T T T queries.
Figure 1. A unitary preparation using n j + ( T − n j ) = T n_j + (T-n_j) = T n j + ( T − n j ) = T input queries. Its final component with flag zero is ∣ 0 ⟩ ∣ z j , x ⟩ \lvert0\rangle\lvert z_{j,x}\rangle ∣ 0 ⟩ ∣ z j , x ⟩ . The flag is retained without measurement or postselection.
Let M M M be the input-independent Hermitian operator defining the signed output expectation. It acts as the identity on the external registers and satisfies ∥ M ∥ ≤ 1 \lVert M\rVert\le1 ∥ M ∥ ≤ 1 . Let
ℓ A 0 ( x ) = E S a A 0 ( S , x [ S ] ) \ell_{\mathcal{A}}^{0}(x)=\mathbb{E}_{S}a_{\mathcal{A}}^{0}(S,x[S]) ℓ A 0 ( x ) = E S a A 0 ( S , x [ S ])
be the expectation of the sampled circuit before the additional symmetrization below. The argument in Theorem 3.4 shows that a A 0 a_{\mathcal{A}}^{0} a A 0 depends only on S S S and x [ S ] x[S] x [ S ] , with ∣ a A 0 ∣ ≤ 1 \lvert a_{\mathcal{A}}^{0}\rvert\le1 ∣ a A 0 ∣ ≤ 1 and
h ˉ A ( x ) = ⟨ u x ∣ M ∣ u x ⟩ , ℓ A 0 ( x ) = ⟨ v x ∣ M ∣ v x ⟩ . \bar{h}_{\mathcal{A}}(x)=\langle u_x|M|u_x\rangle,\qquad\ell_{\mathcal{A}}^{0}(x)=\langle v_x|M|v_x\rangle. h ˉ A ( x ) = ⟨ u x ∣ M ∣ u x ⟩ , ℓ A 0 ( x ) = ⟨ v x ∣ M ∣ v x ⟩ .
Since M M M is Hermitian,
h ˉ A ( x ) − ℓ A 0 ( x ) = Re ⟨ u x − v x ∣ M ∣ u x ⟩ + Re ⟨ v x ∣ M ∣ u x − v x ⟩ = η ∑ j = 1 q ( Re ⟨ z j , x ∣ M ∣ u x ⟩ + Re ⟨ v x ∣ M ∣ z j , x ⟩ ) . (14) \begin{aligned}
\bar{h}_{\mathcal{A}}(x)-\ell_{\mathcal{A}}^{0}(x)=\operatorname{Re}\langle u_x-v_x|M|u_x\rangle+\operatorname{Re}\langle v_x|M|u_x-v_x\rangle\\
&=\eta\sum_{j=1}^{q}\left(\operatorname{Re}\langle z_{j,x}|M|u_x\rangle+\operatorname{Re}\langle v_x|M|z_{j,x}\rangle\right). \tag*{(14)}
\end{aligned} h ˉ A ( x ) − ℓ A 0 ( x ) = Re ⟨ u x − v x ∣ M ∣ u x ⟩ + Re ⟨ v x ∣ M ∣ u x − v x ⟩ = η j = 1 ∑ q ( Re ⟨ z j , x ∣ M ∣ u x ⟩ + Re ⟨ v x ∣ M ∣ z j , x ⟩ ) . (14)
By Theorem 4.1, the two preparations in each cross term share the same T T T query positions. Thus each of the 2 q 2q 2 q real parts in (14) is the signed output expectation of an algorithm using at most T T T queries. Define R 0 ( A ) \mathcal{R}^{0}(\mathcal{A}) R 0 ( A ) as follows. With probability 2 q η / λ 2q\eta/\lambda 2 q η / λ , choose one of these 2 q 2q 2 q algorithms uniformly and run it; otherwise output a fair sign. This input-independent choice is valid because 2 q η ≤ λ 2q\eta\le\lambda 2 q η ≤ λ . Equation (14) gives
h R 0 ( A ) ( x ) = h ˉ A ( x ) − ℓ A 0 ( x ) λ . h_{\mathcal{R}^{0}(\mathcal{A})}(x)=\frac{\bar{h}_{\mathcal{A}}(x)-\ell_{\mathcal{A}}^{0}(x)}{\lambda}. h R 0 ( A ) ( x ) = λ h ˉ A ( x ) − ℓ A 0 ( x ) .
Step 3: symmetrizing the residual and the postprocessing function. Let R ( A ) \mathcal{R}(\mathcal{A}) R ( A ) run R 0 ( A ) \mathcal{R}^{0}(\mathcal{A}) R 0 ( A ) on x τ x^\tau x τ for a uniformly random τ ∈ S N \tau\in S_N τ ∈ S N . Then
h R ( A ) ( x ) = E τ ∈ S N h R 0 ( A ) ( x τ ) . h_{\mathcal{R}(\mathcal{A})}(x)=\mathbb{E}_{\tau\in S_N}h_{\mathcal{R}^{0}(\mathcal{A})}(x^\tau). h R ( A ) ( x ) = E τ ∈ S N h R 0 ( A ) ( x τ ) .
This expectation is invariant under coordinate permutations. For each fixed τ \tau τ , a query to x τ x^\tau x τ can be implemented by relabeling the address, applying O x O_x O x once, and reversing the address relabeling. The relabeling operations are known and input-independent. Hence R ( A ) \mathcal{R}(\mathcal{A}) R ( A ) still uses at most T T T queries.
Let U ⊆ [ N ] U\subseteq[N] U ⊆ [ N ] have size s s s . Let z = ( z u ) u ∈ U z=(z_u)_{u\in U} z = ( z u ) u ∈ U be a collection of input values. Define
a A ( U , z ) = E τ ∈ S N a A 0 ( τ − 1 U , ( z τ ( i ) ) i ∈ τ − 1 U ) . a_{\mathcal{A}}(U,z)=\mathbb{E}_{\tau\in S_N}a_{\mathcal{A}}^{0}\left(\tau^{-1}U,(z_{\tau(i)})_{i\in\tau^{-1}U}\right). a A ( U , z ) = E τ ∈ S N a A 0 ( τ − 1 U , ( z τ ( i ) ) i ∈ τ − 1 U ) .
Thus a A ( U , z ) a_{\mathcal{A}}(U,z) a A ( U , z ) depends only on U U U and z z z and takes values in [ − 1 , 1 ] [-1,1] [ − 1 , 1 ] .
For each fixed τ \tau τ , a uniform U U U is carried to a uniform τ − 1 U \tau^{-1}U τ − 1 U . Consequently,
E U a A ( U , x [ U ] ) = E τ E S a A 0 ( S , ( x τ ( i ) ) i ∈ S ) = E τ ℓ A 0 ( x τ ) . \mathbb{E}_{U}a_{\mathcal{A}}(U,x[U])=\mathbb{E}_{\tau}\mathbb{E}_{S}a_{\mathcal{A}}^{0}\left(S,(x_{\tau(i)})_{i\in S}\right)
=\mathbb{E}_{\tau}\ell_{\mathcal{A}}^{0}(x^\tau). E U a A ( U , x [ U ]) = E τ E S a A 0 ( S , ( x τ ( i ) ) i ∈ S ) = E τ ℓ A 0 ( x τ ) .
Also,
h ˉ A ( x τ ) = h ˉ A ( x ) . \bar{h}_{\mathcal{A}}(x^\tau)=\bar{h}_{\mathcal{A}}(x). h ˉ A ( x τ ) = h ˉ A ( x ) .
Averaging
h ˉ A ( x τ ) = ℓ A 0 ( x τ ) + λ h R 0 ( A ) ( x τ ) \bar{h}_{\mathcal{A}}(x^\tau)=\ell_{\mathcal{A}}^{0}(x^\tau)+\lambda h_{\mathcal{R}^{0}(\mathcal{A})}(x^\tau) h ˉ A ( x τ ) = ℓ A 0 ( x τ ) + λ h R 0 ( A ) ( x τ )
over τ \tau τ proves (11) .
Before iterating the residual construction, we check that the resulting algorithm still satisfies the hypotheses needed for another application.
Remark 4.3 (Repeated application). The residual algorithm is an ordinary query algorithm with at most T T T queries to O x O_x O x . Its workspace may contain permutation registers, sample registers, and retained flags from its construction.
At the next application of Theorem 4.2, these registers are part of the algorithm’s accessible workspace. The new random relabeling is represented by a separate external permutation register initialized independently. The operator estimate (7) allows arbitrary accessible workspaces and entanglement with them. It therefore applies at every recursion level.
One Sample for the Geometric Expansion
Iterating the residual identity gives a geometric expansion. We show that every term can be evaluated from the same sample, so retaining more terms does not require additional queries.
Let A 0 \mathcal{A}_0 A 0 be the symmetrization of the original algorithm. For each integer j ≥ 0 j \ge0 j ≥ 0 , let
A j + 1 = R ( A j ) , h j = h A j . \mathcal{A}_{j+1} = \mathcal{R}(\mathcal{A}_j), \qquad h_j = h_{\mathcal{A}_j}. A j + 1 = R ( A j ) , h j = h A j .
Every A j \mathcal{A}_j A j is symmetrized, so h j = h ˉ A j h_j = \bar{h}_{\mathcal{A}_j} h j = h ˉ A j . Let a j a_j a j be the postprocessing function supplied by Theorem 4.2. Then
h j ( x ) = E S a j ( S , x [ S ] ) + λ h j + 1 ( x ) . h_j(x) = \mathbb{E}_{S} a_j(S,x[S]) + \lambda h_{j+1}(x). h j ( x ) = E S a j ( S , x [ S ]) + λ h j + 1 ( x ) .
Repeated substitution gives
h 0 ( x ) = E S ∑ j = 0 L − 1 λ j a j ( S , x [ S ] ) + λ L h L ( x ) . (15) h_0(x) = \mathbb{E}_{S}\sum_{j=0}^{L-1}\lambda^j a_j(S,x[S]) + \lambda^L h_L(x). \tag*{(15)} h 0 ( x ) = E S j = 0 ∑ L − 1 λ j a j ( S , x [ S ]) + λ L h L ( x ) . (15)
The sample S S S has the same distribution in every term. By linearity of expectation, we may therefore use a single sample S S S and evaluate all terms from x [ S ] x[S] x [ S ] . Their evaluations need not be independent. In particular, the number of queries is s s s , not L s Ls L s .
Define
g L ( S , x [ S ] ) = ( 1 − λ ) ∑ j = 0 L − 1 λ j a j ( S , x [ S ] ) . (16) g_L(S,x[S]) = (1-\lambda)\sum_{j=0}^{L-1}\lambda^j a_j(S,x[S]). \tag*{(16)} g L ( S , x [ S ]) = ( 1 − λ ) j = 0 ∑ L − 1 λ j a j ( S , x [ S ]) . (16)
The normalization ensures that this function can serve as a signed output expectation. Indeed,
∣ g L ( S , x [ S ] ) ∣ ≤ ( 1 − λ ) ∑ j = 0 L − 1 λ j = 1 − λ L ≤ 1. |g_L(S,x[S])| \le(1-\lambda)\sum_{j=0}^{L-1}\lambda^j = 1-\lambda^L \le1. ∣ g L ( S , x [ S ]) ∣ ≤ ( 1 − λ ) j = 0 ∑ L − 1 λ j = 1 − λ L ≤ 1.
Equation (15) also gives
E S g L ( S , x [ S ] ) = ( 1 − λ ) ( h 0 ( x ) − λ L h L ( x ) ) . (17) \mathbb{E}_{S}g_L(S,x[S]) = (1-\lambda)\left(h_0(x)-\lambda^L h_L(x)\right). \tag*{(17)} E S g L ( S , x [ S ]) = ( 1 − λ ) ( h 0 ( x ) − λ L h L ( x ) ) . (17)
Choosing the truncation depth and output precision gives the following guarantee.
Proposition 4.4 (Bias-preserving simulation). Let T ≥ 1 T \ge1 T ≥ 1 and 0 < β ≤ 1 / 2 0 < \beta\le1/2 0 < β ≤ 1/2 . Suppose a quantum algorithm using at most T T T queries succeeds with probability at least 1 / 2 + β 1/2+\beta 1/2 + β on every promised input of a permutation-invariant function f f f . Then there is a nonadaptive randomized algorithm with success probability at least 1 / 2 + 3 β / 4 1/2+3\beta/4 1/2 + 3 β /4 using O ( T 2 ) O(T^2) O ( T 2 ) queries.
The simulator uses a finite table determined by the geometric expansion. Set L = ⌈ log 8 ( 4 / β ) ⌉ L = \lceil\log_8(4/\beta)\rceil L = ⌈ log 8 ( 4/ β )⌉ and d = ⌈ log 2 ( 32 / β ) ⌉ d = \lceil\log_2(32/\beta)\rceil d = ⌈ log 2 ( 32/ β )⌉ . For each possible sample ( S , z ) (S,z) ( S , z ) , fix m S , z ∈ { 0 , … , 2 d } m_{S,z} \in\{0,\ldots,2^d\} m S , z ∈ { 0 , … , 2 d } so that p ( S , z ) = m S , z / 2 d p(S,z) = m_{S,z}/2^d p ( S , z ) = m S , z / 2 d is a nearest grid point to ( 1 + g L ( S , z ) ) / 2 (1+g_L(S,z))/2 ( 1 + g L ( S , z )) /2 , with g L g_L g L defined in (16) . The alphabet and the collection of samples are finite, so this table forms part of the simulator’s input-independent description. A single run chooses S S S uniformly, queries all s s s coordinates in S S S , and outputs 1 1 1 with probability p ( S , x [ S ] ) p(S,x[S]) p ( S , x [ S ]) .
Proof. We analyze a single run. Let F ( x ) = 2 f ( x ) − 1 F(x)=2f(x)-1 F ( x ) = 2 f ( x ) − 1 . Symmetrization preserves the promise and the correct answer, so the initial symmetrized algorithm satisfies
F ( x ) h 0 ( x ) ≥ 2 β F(x)h_0(x) \ge2\beta F ( x ) h 0 ( x ) ≥ 2 β
on every promised input.
The choice of L L L ensures λ L ≤ β / 4 \lambda^L \le\beta/4 λ L ≤ β /4 . By (17) and ∣ h L ( x ) ∣ ≤ 1 \lvert h_L(x)\rvert\le1 ∣ h L ( x )∣ ≤ 1 ,
F ( x ) E S g L ( S , x [ S ] ) ≥ ( 1 − λ ) ( 2 β − λ L ) ≥ 49 32 β . F(x)\mathbb{E}_{S}g_L(S,x[S]) \ge(1-\lambda)(2\beta-\lambda^L) \ge\frac{49}{32}\beta. F ( x ) E S g L ( S , x [ S ]) ≥ ( 1 − λ ) ( 2 β − λ L ) ≥ 32 49 β .
Finite output precision. The rounded signed expectation g ~ L = 2 p − 1 \widetilde{g}_L=2p-1 g L = 2 p − 1 satisfies
∣ g ~ L ( S , z ) − g L ( S , z ) ∣ ≤ 2 − d ≤ β 32 . \lvert\widetilde{g}_L(S,z)-g_L(S,z)\rvert\le2^{-d} \le\frac{\beta}{32}. ∣ g L ( S , z ) − g L ( S , z )∣ ≤ 2 − d ≤ 32 β .
Combining this rounding bound with the preceding estimate gives
F ( x ) E S g ~ L ( S , x [ S ] ) ≥ 49 32 β − β 32 = 3 2 β . F(x)\mathbb{E}_{S}\widetilde{g}_L(S,x[S]) \ge\frac{49}{32}\beta-\frac{\beta}{32}=\frac{3}{2}\beta. F ( x ) E S g L ( S , x [ S ]) ≥ 32 49 β − 32 β = 2 3 β .
By (1) , the success probability is at least 1 / 2 + 3 β / 4 1/2+3\beta/4 1/2 + 3 β /4 .
A single run uses s s s nonadaptive queries. The parameters L , d = O ( log ( 1 / β ) ) L,d=O(\log(1/\beta)) L , d = O ( log ( 1/ β )) affect only its fixed decision rule and output randomness. For T ≥ 1 T\ge1 T ≥ 1 ,
s ≤ ( 4 K + 1 ) T 2 , s\le(4K+1)T^2, s ≤ ( 4 K + 1 ) T 2 ,
which proves the stated query bound.
Proof of Theorem 1.1
For 1 / 6 ≤ ε < 1 / 2 1/6\le\varepsilon<1/2 1/6 ≤ ε < 1/2 , taking the majority of three independent runs of the preceding simulator restores the original success guarantee. This increases the query cost by only a factor of three, independently of ε \varepsilon ε .
Theorem 1.1 (restated). For every finite alphabet A A A , every permutation-invariant function f : D ⊆ A N → { 0 , 1 } f:D\subseteq A^N\to\{0,1\} f : D ⊆ A N → { 0 , 1 } , and every 1 / 6 ≤ ε < 1 / 2 1/6\le\varepsilon<1/2 1/6 ≤ ε < 1/2 , there is a randomized algorithm that computes f f f with error at most ε \varepsilon ε on every promised input using O ( Q ε ( f ) 2 ) O(Q_\varepsilon(f)^2) O ( Q ε ( f ) 2 ) queries.
Algorithm 1 chooses all three samples before reading any input value.
Table 1 (PDF p. 20).
Proof. Fix 1 / 6 ≤ ε < 1 / 2 1/6 \le\varepsilon< 1/2 1/6 ≤ ε < 1/2 and let
T = Q ε ( f ) , β = 1 2 − ε . T = Q_{\varepsilon}(f), \qquad\beta= \frac{1}{2} - \varepsilon. T = Q ε ( f ) , β = 2 1 − ε .
Then 0 < β ≤ 1 / 3 0 < \beta\le1/3 0 < β ≤ 1/3 .
If T = 0 T = 0 T = 0 , then f f f is constant on its promise and requires no randomized queries. Assume that T ≥ 1 T \ge1 T ≥ 1 . By Theorem 4.4, each bit B r B_r B r in Algorithm 1 has success bias at least 3 β / 4 3\beta/4 3 β /4 . On a fixed input with single-run bias α \alpha α , the majority of three independent runs has bias m ( α ) = 3 α / 2 − 2 α 3 m(\alpha) = 3\alpha/2 - 2\alpha^3 m ( α ) = 3 α /2 − 2 α 3 . This function is nondecreasing on [ 0 , 1 / 2 ] [0,1/2] [ 0 , 1/2 ] . Since 0 < β ≤ 1 / 3 0 < \beta\le1/3 0 < β ≤ 1/3 ,
m ( α ) ≥ m ( 3 β / 4 ) = 9 8 β − 27 32 β 3 ≥ 33 32 β ≥ β . m(\alpha) \ge m(3\beta/4) = \frac{9}{8}\beta- \frac{27}{32}\beta^3 \ge\frac{33}{32}\beta\ge\beta. m ( α ) ≥ m ( 3 β /4 ) = 8 9 β − 32 27 β 3 ≥ 32 33 β ≥ β .
Thus three independent runs restore success probability at least 1 / 2 + β = 1 − ε 1/2+\beta= 1-\varepsilon 1/2 + β = 1 − ε . The three runs use at most
3 s = O ( T 2 ) 3s = O(T^2) 3 s = O ( T 2 )
queries. Their sample sets and random choices can all be selected before observing the input values. The resulting simulator is nonadaptive, and the constant in its query bound is independent of ε \varepsilon ε throughout 1 / 6 ≤ ε < 1 / 2 1/6 \le\varepsilon< 1/2 1/6 ≤ ε < 1/2 .
For completeness, consider 0 < ε < 1 / 6 0 < \varepsilon< 1/6 0 < ε < 1/6 . Apply the bound just proved at error 1 / 3 1/3 1/3 and take the majority of O ( log ( 2 / ε ) ) O(\log(2/\varepsilon)) O ( log ( 2/ ε )) independent runs. A standard concentration bound reduces the error to ε \varepsilon ε . Since Q 1 / 3 ( f ) ≤ Q ε ( f ) Q_{1/3}(f) \le Q_{\varepsilon}(f) Q 1/3 ( f ) ≤ Q ε ( f ) , this uses
O ( Q ε ( f ) 2 log ( 2 / ε ) ) O\left(Q_{\varepsilon}(f)^2 \log(2/\varepsilon)\right) O ( Q ε ( f ) 2 log ( 2/ ε ) )
queries. The resulting simulator remains nonadaptive.
For a power of two n ≥ 2 n \ge2 n ≥ 2 , the permutation-invariant Deutsch–Jozsa problem D J n \mathrm{DJ}_n DJ n distinguishes constant strings in { 0 , 1 } n \{0,1\}^n { 0 , 1 } n from strings of Hamming weight n / 2 n/2 n /2 . The exact quantum algorithm [10 Section 3] and Bera’s classical lower bound [6 Theorem 2] , together with the standard sampling upper bound, give
Q 0 ( D J n ) = 1 , R ε ( D J n ) = Θ ( min { n , log ( 1 / ε ) } ) , 0 < ε ≤ 1 / 3. Q_0(\mathrm{DJ}_n) = 1, \qquad R_{\varepsilon}(\mathrm{DJ}_n) = \Theta(\min\{n,\log(1/\varepsilon)\}), \qquad0 < \varepsilon\le1/3. Q 0 ( DJ n ) = 1 , R ε ( DJ n ) = Θ ( min { n , log ( 1/ ε )}) , 0 < ε ≤ 1/3.
Taking n n n sufficiently large for each ε \varepsilon ε shows that the logarithmic factor in the preceding string simulation bound is necessary in general.
Simulation of Graph and Hypergraph Properties
We extend the string simulation to k k k -uniform hypergraph properties, with graph properties as the case k = 2 k = 2 k = 2 . Fix k ≥ 2 k \ge2 k ≥ 2 and a bound T ≥ 1 T \ge1 T ≥ 1 on the number of queries made by the quantum algorithm. We use the representation and query model from § 2.3 .
The simulator chooses a uniform set of O k ( T 2 ) O_k(T^2) O k ( T 2 ) vertices and queries the induced hypergraph. The main difference from strings is that one hyperedge query requires relabeling k k k vertices. All these relabelings use the same permutation, so the operator estimates and residual construction from the preceding sections apply to a single permutation register. We verify the compilation and the dependence on the sampled hypergraph, then use the residual identity to prove Theorem 1.2.
Compiling Hypergraph Queries
For a hypergraph H H H on [ N ] [N] [ N ] , the input oracle acts as
O H ∣ v 1 , … , v k , z ⟩ = ∣ v 1 , … , v k , z ⊕ H ( v 1 , … , v k ) ⟩ . O_H\lvert v_1,\ldots,v_k,z\rangle=\lvert v_1,\ldots,v_k,z\oplus H(v_1,\ldots,v_k)\rangle. O H ∣ v 1 , … , v k , z ⟩ = ∣ v 1 , … , v k , z ⊕ H ( v 1 , … , v k )⟩ .
The ordered representation assigns value zero whenever two vertex arguments coincide. We also extend the oracle to act as the identity if any argument is ⊥ \perp ⊥ . This extension uses one ordinary query as in Theorem 4.1.
For a permutation π ∈ S N \pi\in S_N π ∈ S N , the relabeled input satisfies
H π ( v 1 , … , v k ) = H ( π ( v 1 ) , … , π ( v k ) ) . H^\pi(v_1,\ldots,v_k)=H(\pi(v_1),\ldots,\pi(v_k)). H π ( v 1 , … , v k ) = H ( π ( v 1 ) , … , π ( v k )) .
Lemma 5.1 (Compilation of hypergraph queries). Let A \mathcal{A} A make at most T T T hypergraph queries, and let π \pi π be a uniform vertex permutation. Its execution on H π H^\pi H π can be compiled into a circuit with exactly T T T queries to O H O_H O H and
q = 2 k T (18) q=2kT \tag*{(18)} q = 2 k T (18) auxiliary queries to the same permutation oracle.
Proof. Pad the circuit to exactly T T T queries as in § 2 . For each query, allocate k k k fresh auxiliary address registers initialized to ∣ ⊥ ⟩ \lvert\perp\rangle ∣ ⊥ ⟩ and retain them afterward.
To query H π H^\pi H π on ( v 1 , … , v k ) (v_1,\ldots,v_k) ( v 1 , … , v k ) , compute π ( v 1 ) , … , π ( v k ) \pi(v_1),\ldots,\pi(v_k) π ( v 1 ) , … , π ( v k ) into the fresh registers, apply O H O_H O H once, and reverse the k k k address computations. In the ideal execution, the auxiliary registers return to ∣ ⊥ ⟩ \lvert\perp\rangle ∣ ⊥ ⟩ . Each computation and its reversal uses the permutation query from § 3.1 . Thus every query uses 2 k 2k 2 k auxiliary queries to the same permutation. The construction also applies to superpositions of vertex tuples. Only the T T T queries to O H O_H O H are charged.
Sampling Vertices
We choose one vertex sample for all auxiliary permutation queries and show that the sampled circuit depends only on the induced hypergraph. Let K = 10 8 K=10^8 K = 1 0 8 and q = 2 k T q=2kT q = 2 k T . If N ≤ ⌈ K q 2 ⌉ N\leq\lceil Kq^2\rceil N ≤ ⌈ K q 2 ⌉ , query the entire hypergraph and compute the function exactly. This costs at most
( N k ) ≤ N k ≤ ⌈ K ( 2 k T ) 2 ⌉ k = O k ( T 2 k ) . \binom{N}{k}\leq N^k\leq\left\lceil K(2kT)^2\right\rceil^k=O_k(T^{2k}). ( k N ) ≤ N k ≤ ⌈ K ( 2 k T ) 2 ⌉ k = O k ( T 2 k ) .
For the rest of the construction, assume N > ⌈ K q 2 ⌉ N>\lceil Kq^2\rceil N > ⌈ K q 2 ⌉ and set
s = ⌈ K q 2 ⌉ . (19) s=\lceil Kq^2\rceil. \tag*{(19)} s = ⌈ K q 2 ⌉ . (19)
Choose S S S uniformly among the s s s -element subsets of [ N ] [N] [ N ] . Write H [ S ] H[S] H [ S ] for the induced hypergraph, namely the restriction of H H H to ( S k ) \binom{S}{k} ( k S ) . Reading H [ S ] H[S] H [ S ] uses
( s k ) ≤ s k = O k ( T 2 k ) (20) \binom{s}{k}\leq s^k=O_k(T^{2k}) \tag*{(20)} ( k s ) ≤ s k = O k ( T 2 k ) (20)
queries and determines every ordered query whose vertex arguments lie in S S S .
Use the isometry W = J S V N W=J_SV_N W = J S V N and the sampled permutation queries from § 3 , including their extensions to the ambient spaces. Let η = η N , s , q \eta=\eta_{N,s,q} η = η N , s , q . For each ideal auxiliary query P P P with sampled counterpart P ^ \widehat{P} P , the one-query estimate (7) gives
∥ ( P ^ W − W P ) Π ≤ d ∥ ≤ η , 0 ≤ d ≤ q . (21) \left\|(\widehat{P}W-WP)\Pi_{\leq d}\right\|\leq\eta,\qquad0\leq d\leq q. \tag*{(21)} ( P W − W P ) Π ≤ d ≤ η , 0 ≤ d ≤ q . (21)
The parameter choice in (19) satisfies the hypotheses of that estimate, and (8) yields
2 q η ≤ λ , λ = 1 8 . 2q\eta\le\lambda,\qquad\lambda= \frac{1}{8}. 2 q η ≤ λ , λ = 8 1 .
After d d d ideal auxiliary queries, the external permutation state has degree at most d d d .
Lemma 5.2 (Dependence on the induced hypergraph). Replace the auxiliary queries in the circuit of Theorem 5.1 by the sampled queries above. For every fixed sample S S S , the resulting circuit depends on the input only through H [ S ] H[S] H [ S ] . Its signed output expectation is a function a A 0 ( S , H [ S ] ) ∈ [ − 1 , 1 ] a_A^0(S,H[S]) \in[-1,1] a A 0 ( S , H [ S ]) ∈ [ − 1 , 1 ] , and the overall sampled expectation is
ℓ A 0 ( H ) = E S a A 0 ( S , H [ S ] ) . \ell_A^0(H)=\mathbb{E}_{S}a_A^0(S,H[S]). ℓ A 0 ( H ) = E S a A 0 ( S , H [ S ]) .
Proof. Fix S S S . The address-support argument in Theorem 3.4 shows that each fresh auxiliary address register is supported on { ⊥ } ∪ S \{\perp\}\cup S { ⊥ } ∪ S after its first sampled permutation query.
If an argument is ⊥ \perp ⊥ , the input oracle acts as the identity. Otherwise all arguments lie in S S S . Its response is then determined by H [ S ] H[S] H [ S ] , with value zero on repeated-vertex tuples. Hence each query can be answered from H [ S ] H[S] H [ S ] . Fresh address registers make the same argument valid at every query.
The initial sample label is uniform and all subsequent operations preserve it. The output measurement acts only on accessible registers, so the overall expectation is the uniform average over S S S .
A Residual Identity for Hypergraphs
The preceding estimates allow us to apply the residual construction without increasing the query bound. For an algorithm A A A querying hypergraphs, write
h ˉ A ( H ) = E π ∈ S N h A ( H π ) \bar{h}_A(H)=\mathbb{E}_{\pi\in S_N}h_A(H^\pi) h ˉ A ( H ) = E π ∈ S N h A ( H π )
for its symmetrized signed expectation.
Lemma 5.3 (Residual identity for hypergraphs). Let T ≥ 1 T\ge1 T ≥ 1 and assume N > ⌈ K ( 2 k T ) 2 ⌉ N>\lceil K(2kT)^2\rceil N > ⌈ K ( 2 k T ) 2 ⌉ . For every algorithm A A A making at most T T T hypergraph queries, there are a function a A ( S , H [ S ] ) ∈ [ − 1 , 1 ] a_A(S,H[S])\in[-1,1] a A ( S , H [ S ]) ∈ [ − 1 , 1 ] and a symmetrized algorithm R ( A ) R(A) R ( A ) making at most T T T hypergraph queries such that
h ˉ A ( H ) = E S a A ( S , H [ S ] ) + λ h R ( A ) ( H ) , λ = 1 8 . (22) \bar{h}_A(H)=\mathbb{E}_{S}a_A(S,H[S])+\lambda h_{R(A)}(H),\qquad\lambda=\frac{1}{8}. \tag*{(22)} h ˉ A ( H ) = E S a A ( S , H [ S ]) + λ h R ( A ) ( H ) , λ = 8 1 . (22) Here S S S is uniform among the s s s -element subsets of [ N ] [N] [ N ] , with s s s as in (19) .
Proof. Apply the construction of Theorem 4.2 to the compiled circuit from Theorem 5.1, with q = 2 k T q=2kT q = 2 k T . The operators K j K_j K j defined by (12) are contractions by (21) . The map W W W commutes with every intervening operation, including O H O_H O H , and each ideal prefix and sampled suffix together use T T T input queries. Thus Steps 1 and 2 of that proof apply. Since 2 q η ≤ λ 2q\eta\le\lambda 2 q η ≤ λ , they give an algorithm R 0 ( A ) R^0(A) R 0 ( A ) using at most T T T queries and satisfying
h ˉ A ( H ) = ℓ A 0 ( H ) + λ h R 0 ( A ) ( H ) . \bar{h}_A(H)=\ell_A^0(H)+\lambda h_{R^0(A)}(H). h ˉ A ( H ) = ℓ A 0 ( H ) + λ h R 0 ( A ) ( H ) .
To symmetrize, let R ( A ) R(A) R ( A ) run R 0 ( A ) R^0(A) R 0 ( A ) on H τ H^\tau H τ for a uniform τ ∈ S N \tau\in S_N τ ∈ S N . A query to H τ H^\tau H τ requires only a known relabeling of the k k k vertex arguments and one query to H H H , so the query bound remains T T T .
For an s s s -element set U U U and a hypergraph Z Z Z on U U U , define Z τ Z^\tau Z τ on τ − 1 U \tau^{-1}U τ − 1 U by Z τ ( e ) = Z ( τ ( e ) ) Z^\tau(e)=Z(\tau(e)) Z τ ( e ) = Z ( τ ( e )) . Set
a A ( U , Z ) = E τ ∈ S N a A 0 ( τ − 1 U , Z τ ) . a_A(U,Z)=\mathbb{E}_{\tau\in S_N}a_A^0(\tau^{-1}U,Z^\tau). a A ( U , Z ) = E τ ∈ S N a A 0 ( τ − 1 U , Z τ ) .
This function takes values in [ − 1 , 1 ] [-1,1] [ − 1 , 1 ] and uses only the supplied hypergraph Z Z Z . For each fixed τ \tau τ , the set τ − 1 U \tau^{-1}U τ − 1 U is a uniform s s s -element subset when U U U is. Consequently,
E U a A ( U , H [ U ] ) = E τ ∈ S N E U 0 a A ( H τ ) . \mathbb{E}_{U} a_A(U,H[U])=\mathbb{E}_{\tau\in S_N}\mathbb{E}_{U}^0 a_A(H^\tau). E U a A ( U , H [ U ]) = E τ ∈ S N E U 0 a A ( H τ ) .
Averaging the preceding residual identity over τ \tau τ and using h ˉ A ( H τ ) = h ˉ A ( H ) \bar{h}_A(H^\tau)=\bar{h}_A(H) h ˉ A ( H τ ) = h ˉ A ( H ) proves (22) .
For a fixed original bound T T T , every residual algorithm uses at most T T T queries, so the same values of q q q and s s s apply at every recursion level. Previous auxiliary registers become part of the accessible workspace, and the next application uses a fresh external permutation register, as in the string construction.
Proposition 5.4 (Bias preservation for hypergraph properties). Let T ≥ 1 T \ge1 T ≥ 1 and 0 < β ≤ 1 / 2 0 < \beta\le1/2 0 < β ≤ 1/2 . If a quantum algorithm using at most T T T queries computes a k k k -uniform hypergraph property with success probability at least 1 / 2 + β 1/2+\beta 1/2 + β on every promised input, then a nonadaptive randomized algorithm succeeds with probability at least 1 / 2 + 3 β / 4 1/2+3\beta/4 1/2 + 3 β /4 using O k ( T 2 k ) O_k(T^{2k}) O k ( T 2 k ) queries.
Proof. The full-input case was handled above, so assume N > ⌈ K q 2 ⌉ N > \lceil Kq^2\rceil N > ⌈ K q 2 ⌉ . Symmetrization preserves the success guarantee. Iterate Theorem 5.3 with the original bound T T T fixed. The geometric expansion and probability rounding from Theorem 4.4 apply with x [ S ] x[S] x [ S ] replaced by H [ S ] H[S] H [ S ] , giving success probability at least 1 / 2 + 3 β / 4 1/2+3\beta/4 1/2 + 3 β /4 from one sampled induced hypergraph. Each residual uses the same uniform distribution on s s s -element vertex sets, so all terms can be evaluated from this one sample.
The only queries read H [ S ] H[S] H [ S ] , at cost at most s k = O k ( T 2 k ) s^k=O_k(T^{2k}) s k = O k ( T 2 k ) . The set S S S is chosen before observing the input, so the simulator is nonadaptive.
Proof of Theorem 1.2
We now restore the original error guarantee using the same majority argument as for strings.
Theorem 1.2 (restated). For every fixed integer k ≥ 2 k \ge2 k ≥ 2 , every k k k -uniform hypergraph property f f f , and every 1 / 6 ≤ ε < 1 / 2 1/6 \le\varepsilon< 1/2 1/6 ≤ ε < 1/2 , there is a randomized algorithm that computes f f f with error at most ε \varepsilon ε on every promised input using O k ( Q ε ( f ) 2 k ) O_k(Q_\varepsilon(f)^{2k}) O k ( Q ε ( f ) 2 k ) hyperedge-membership queries.
Proof. If Q ε ( f ) = 0 Q_\varepsilon(f)=0 Q ε ( f ) = 0 and ε < 1 / 2 \varepsilon<1/2 ε < 1/2 , then f f f is constant on its promise and requires no randomized queries. Otherwise, let T = Q ε ( f ) ≥ 1 T=Q_\varepsilon(f)\ge1 T = Q ε ( f ) ≥ 1 and β = 1 / 2 − ε \beta=1/2-\varepsilon β = 1/2 − ε . For 1 / 6 ≤ ε < 1 / 2 1/6\le\varepsilon<1/2 1/6 ≤ ε < 1/2 , we have 0 < β ≤ 1 / 3 0<\beta\le1/3 0 < β ≤ 1/3 .
By Theorem 5.4, one randomized run has success bias at least 3 β / 4 3\beta/4 3 β /4 and uses O k ( T 2 k ) O_k(T^{2k}) O k ( T 2 k ) queries. The majority of three independent runs restores bias at least β \beta β , by the calculation in § 4.4 . Thus
R ε ( f ) = O k ( Q ε ( f ) 2 k ) . R_\varepsilon(f)=O_k\left(Q_\varepsilon(f)^{2k}\right). R ε ( f ) = O k ( Q ε ( f ) 2 k ) .
All sample sets can be chosen in advance, so the simulator is nonadaptive. Taking k = 2 k=2 k = 2 gives the quartic bound for graph properties in the adjacency-matrix model.
For the small-error extension, let 0 < ε < 1 / 6 0<\varepsilon<1/6 0 < ε < 1/6 . Apply the theorem at error 1 / 3 1/3 1/3 and take a majority vote over O ( log ( 2 / ε ) ) O(\log(2/\varepsilon)) O ( log ( 2/ ε )) independent runs. Since Q 1 / 3 ( f ) ≤ Q ε ( f ) Q_{1/3}(f)\le Q_\varepsilon(f) Q 1/3 ( f ) ≤ Q ε ( f ) , this gives
R ε ( f ) = O k ( Q ε ( f ) 2 k log ( 2 / ε ) ) . R_\varepsilon(f)=O_k\left(Q_\varepsilon(f)^{2k}\log(2/\varepsilon)\right). R ε ( f ) = O k ( Q ε ( f ) 2 k log ( 2/ ε ) ) .
The resulting simulator remains nonadaptive.
Hypergraph Query Separations
We now prove that the bound in Theorem 1.2 is nearly tight. Fix an integer k ≥ 2 k \ge2 k ≥ 2 . We encode a Boolean promise problem into an uncolored connected simple k k k -uniform hypergraph. Structural recovery makes the source input independent of the vertex labeling, and the query reductions in Theorem 6.5 transfer its classical lower bound and quantum upper bound. Applying this encoding to Forrelation with increasing order will prove Theorem 1.3.
We use the representation and query model from § 2.3 . Throughout this section, O ~ k \widetilde{O}_k O k suppresses logarithmic factors in the relevant input size and constants depending only on k k k .
Encoding Construction
The encoding uses data vertices to store the source input and address vertices to identify each data vertex after relabeling.
Let g : D g ⊆ { 0 , 1 } m → { 0 , 1 } g : D_g \subseteq\{0,1\}^{m} \to\{0,1\} g : D g ⊆ { 0 , 1 } m → { 0 , 1 } be nonconstant. Fix b ≥ b 0 ( k ) b \ge b_0(k) b ≥ b 0 ( k ) and set
d = 2 b − 1 , d ∗ = 2 b − 2 = d + 1 4 , N = d + b . d = 2^b - 1,\qquad d_* = 2^{b-2} = \frac{d+1}{4},\qquad N = d+b. d = 2 b − 1 , d ∗ = 2 b − 2 = 4 d + 1 , N = d + b .
The constant b 0 ( k ) ≥ 7 b_0(k) \ge7 b 0 ( k ) ≥ 7 will be chosen sufficiently large that d ≥ 4 k d \ge4k d ≥ 4 k and the two vertex classes below have separated degree ranges. Assume m ≤ ( d ∗ k ) m \le\binom{d_*}{k} m ≤ ( k d ∗ ) .
The vertex set is the disjoint union
V = X ∪ A , X = { x w : w ∈ { 0 , 1 } b ∖ { 0 b } } , A = { a 1 , … , a b } . V = X \cup A,\qquad X = \{x_w : w \in\{0,1\}^b \setminus\{0^b\}\},\qquad A = \{a_1,\ldots,a_b\}. V = X ∪ A , X = { x w : w ∈ { 0 , 1 } b ∖ { 0 b }} , A = { a 1 , … , a b } .
The vertices in A A A encode the binary addresses of the vertices in X X X . We store the source bits only on k k k -subsets of
X ∗ = { x w : w 1 = w 2 = 1 } , X_* = \{x_w : w_1 = w_2 = 1\}, X ∗ = { x w : w 1 = w 2 = 1 } ,
which has size d ∗ d_* d ∗ . This restriction separates the degrees of X X X and A A A while retaining Θ k ( d k ) \Theta_k(d^k) Θ k ( d k ) possible source positions. Order X ∗ X_* X ∗ by binary address, order its k k k -subsets lexicographically, and let
e : [ m ] ⟶ ( X ∗ k ) e : [m] \longrightarrow\binom{X_*}{k} e : [ m ] ⟶ ( k X ∗ )
enumerate the first m m m subsets.
On A A A , define the tree T \mathcal{T} T with center a 1 a_1 a 1 and three paths
( a 1 , a 2 ) , ( a 1 , a 3 , a 4 ) , ( a 1 , a 5 , a 6 , … , a b ) . (a_1,a_2),\qquad(a_1,a_3,a_4),\qquad(a_1,a_5,a_6,\ldots,a_b). ( a 1 , a 2 ) , ( a 1 , a 3 , a 4 ) , ( a 1 , a 5 , a 6 , … , a b ) .
Their lengths are 1 1 1 , 2 2 2 , and b − 4 b-4 b − 4 , which are distinct because b ≥ 7 b \ge7 b ≥ 7 . Every automorphism fixes the unique vertex of degree three, then each branch and every vertex on that branch. Thus T \mathcal{T} T has only the identity automorphism and will identify the order of the address coordinates.
For z ∈ { 0 , 1 } m z \in\{0,1\}^m z ∈ { 0 , 1 } m and E ∈ ( V k ) E \in\binom{V}{k} E ∈ ( k V ) , define
H z ( E ) = { z j , E = e ( j ) , ⋁ x w ∈ Y w i , E = { a i } ∪ Y , Y ∈ ( X k − 1 ) , 1 [ { a i , a j } ∈ E ( T ) ] , E = { a i , a j } ∪ C , i < j , C ∈ ( X k − 2 ) , 0 , otherwise . (23) H_z(E) =
\begin{cases}
z_j, & E = e(j),\\
\bigvee_{x_w \in Y} w_i, & E = \{a_i\} \cup Y,\quad Y \in\binom{X}{k-1},\\
\mathbf{1}[\{a_i,a_j\} \in E(\mathcal{T})], & E = \{a_i,a_j\} \cup C,\quad i < j,\quad C \in\binom{X}{k-2},\\
0, & \text{otherwise}.
\end{cases} \tag*{(23)} H z ( E ) = ⎩ ⎨ ⎧ z j , ⋁ x w ∈ Y w i , 1 [{ a i , a j } ∈ E ( T )] , 0 , E = e ( j ) , E = { a i } ∪ Y , Y ∈ ( k − 1 X ) , E = { a i , a j } ∪ C , i < j , C ∈ ( k − 2 X ) , otherwise . (23)
Here ∨ \vee ∨ denotes Boolean OR and 1 [ ⋅ ] \mathbf{1}[\cdot] 1 [ ⋅ ] is the indicator of the stated condition. The cases are disjoint, and every entry is either a known constant or one source bit.
For k = 2 k=2 k = 2 , this is an ordinary graph: the pairs e ( j ) ⊆ X ∗ e(j)\subseteq X_\ast e ( j ) ⊆ X ∗ store the source bits, the edge { a i , x w } \{a_i,x_w\} { a i , x w } records w i w_i w i , and A A A induces the rigid tree T T T . For larger k k k , the second case records the OR of the corresponding address bits and the third case extends each tree edge with k − 2 k-2 k − 2 vertices of X X X . The sets X X X and A A A describe structural classes; no vertex colors or distinguished labels are supplied with the input.
Structural Recovery
We show that the hypergraph itself identifies both vertex classes and every binary address, so its isomorphism type determines the source input.
Lemma 6.1 (Structural recovery). For sufficiently large b 0 ( k ) b_0(k) b 0 ( k ) , the following properties hold for every b ≥ b 0 ( k ) b\ge b_0(k) b ≥ b 0 ( k ) and every z z z . The hypergraph H z H_z H z is connected. There are a threshold τ \tau τ , determined only by k k k and b b b , and a constant γ k > 0 \gamma_k>0 γ k > 0 such that
deg ( x ) ≤ τ − γ k d k − 1 ( x ∈ X ) , deg ( a ) ≥ τ + γ k d k − 1 ( a ∈ A ) . \deg(x)\le\tau-\gamma_kd^{k-1}\qquad(x\in X),\qquad\deg(a)\ge\tau+\gamma_kd^{k-1}\qquad(a\in A). deg ( x ) ≤ τ − γ k d k − 1 ( x ∈ X ) , deg ( a ) ≥ τ + γ k d k − 1 ( a ∈ A ) . The hypergraph uniquely identifies every a i a_i a i and every address in X X X . Consequently,
H z ≅ H z ′ ⟺ z = z ′ . (24) H_z\cong H_{z'}\quad\Longleftrightarrow\quad z=z'. \tag*{(24)} H z ≅ H z ′ ⟺ z = z ′ . (24)
Proof. After checking connectivity, we recover the vertex classes by degree, order the address coordinates using the rigid tree, and identify each data vertex from its address.
The hyperedges extending the edges of T T T connect all vertices in A A A . Every x w x_w x w has a nonzero coordinate w i w_i w i , and hence belongs to a hyperedge containing a i a_i a i and any k − 2 k-2 k − 2 other vertices of X X X . Thus H z H_z H z is connected, independently of z z z .
To distinguish X X X from A A A , we compare their degrees. Use the convention ( n t ) = 0 \binom{n}{t}=0 ( t n ) = 0 for t < 0 t<0 t < 0 or t > n t>n t > n . The three nonzero cases of (23) give
deg ( x w ) ≤ ( d ∗ − 1 k − 1 ) + b ( d − 1 k − 2 ) + ( b − 1 ) ( d − 1 k − 3 ) , (25) \deg(x_w)\le\binom{d_\ast-1}{k-1}+b\binom{d-1}{k-2}+(b-1)\binom{d-1}{k-3}, \tag*{(25)} deg ( x w ) ≤ ( k − 1 d ∗ − 1 ) + b ( k − 2 d − 1 ) + ( b − 1 ) ( k − 3 d − 1 ) , (25)
deg ( a i ) = ( d k − 1 ) − ( ( d − 1 ) / 2 k − 1 ) + deg T ( a i ) ( d k − 2 ) . (26) \deg(a_i)=\binom{d}{k-1}-\binom{(d-1)/2}{k-1}+\deg_T(a_i)\binom{d}{k-2}. \tag*{(26)} deg ( a i ) = ( k − 1 d ) − ( k − 1 ( d − 1 ) /2 ) + deg T ( a i ) ( k − 2 d ) . (26)
In the second formula, exactly ( d − 1 ) / 2 (d-1)/2 ( d − 1 ) /2 vertices of X X X have their i i i -th address bit equal to zero. Define
c X = 4 − ( k − 1 ) ( k − 1 ) ! , c A = 1 − 2 − ( k − 1 ) ( k − 1 ) ! . c_X=\frac{4^{-(k-1)}}{(k-1)!},\qquad c_A=\frac{1-2^{-(k-1)}}{(k-1)!}. c X = ( k − 1 )! 4 − ( k − 1 ) , c A = ( k − 1 )! 1 − 2 − ( k − 1 ) .
Uniformly over z , w , i z,w,i z , w , i , the degree bounds imply
deg ( x w ) d k − 1 ≤ c X + O k ( b / d ) , deg ( a i ) d k − 1 = c A + O k ( b / d ) . \frac{\deg(x_w)}{d^{k-1}}\le c_X+O_k(b/d),\qquad\frac{\deg(a_i)}{d^{k-1}}=c_A+O_k(b/d). d k − 1 deg ( x w ) ≤ c X + O k ( b / d ) , d k − 1 deg ( a i ) = c A + O k ( b / d ) .
For every k ≥ 2 k\ge2 k ≥ 2 , we have c A > c X c_A>c_X c A > c X . Since b / d → 0 b/d\to0 b / d → 0 , choose b 0 ( k ) b_0(k) b 0 ( k ) so that the error terms are at most ( c A − c X ) / 4 (c_A-c_X)/4 ( c A − c X ) /4 in absolute value. Then
τ = c X + c A 2 d k − 1 , γ k = c A − c X 4 \tau=\frac{c_X+c_A}{2}d^{k-1},\qquad\gamma_k=\frac{c_A-c_X}{4} τ = 2 c X + c A d k − 1 , γ k = 4 c A − c X
have the stated properties.
Degrees therefore identify X X X and A A A . Choose any C 0 ∈ ( X k − 2 ) C_0 \in\binom{X}{k-2} C 0 ∈ ( k − 2 X ) . The values H z ( C 0 ∪ { a , a ′ } ) H_z(C_0 \cup\{a,a'\}) H z ( C 0 ∪ { a , a ′ }) for pairs of vertices in A A A recover T \mathcal{T} T , whose rigidity identifies each a i a_i a i .
It remains to recover the address bits from the OR values. For k = 2 k=2 k = 2 , set C i = ∅ C_i=\varnothing C i = ∅ for every i i i . For k ≥ 3 k \ge3 k ≥ 3 , choose any Y i ∈ ( X k − 1 ) Y_i \in\binom{X}{k-1} Y i ∈ ( k − 1 X ) such that
H z ( { a i } ∪ Y i ) = 0 , H_z(\{a_i\}\cup Y_i)=0, H z ({ a i } ∪ Y i ) = 0 ,
and let C i C_i C i be any ( k − 2 ) (k-2) ( k − 2 ) -subset of Y i Y_i Y i . Such a Y i Y_i Y i exists because ( d − 1 ) / 2 ≥ k − 1 (d-1)/2 \ge k-1 ( d − 1 ) /2 ≥ k − 1 vertices have their i i i -th bit equal to zero. Conversely, a zero answer certifies that every vertex in Y i Y_i Y i has its i i i -th bit equal to zero. Writing C i = ( c i , 1 , … , c i , k − 2 ) C_i=(c_{i,1},\ldots,c_{i,k-2}) C i = ( c i , 1 , … , c i , k − 2 ) in any order, we obtain
H z ( a i , x w , c i , 1 , … , c i , k − 2 ) = w i for every x w ∈ X . (27) H_z(a_i,x_w,c_{i,1},\ldots,c_{i,k-2})=w_i \qquad\text{for every }x_w\in X. \tag*{(27)} H z ( a i , x w , c i , 1 , … , c i , k − 2 ) = w i for every x w ∈ X . (27)
If x w ∉ C i x_w\notin C_i x w ∈ / C i , this follows from the OR in (23) . If x w ∈ C i x_w\in C_i x w ∈ C i , its i i i -th bit is zero and the ordered query has a repeated vertex, so its answer is also zero.
Every allowed choice of the sets Y i Y_i Y i and C i C_i C i therefore recovers the same binary addresses. An isomorphism preserves the classes, the ordered address vertices, and the zero answers used to choose these sets. By (27) , it sends each x w x_w x w to the vertex with the same address. It consequently preserves each e ( j ) e(j) e ( j ) and hence each z j z_j z j . This proves the forward implication in (24) ; the reverse implication is immediate. □
This structural recovery lets us define the invariant promise problem. Identify the canonical vertex set with [ N ] [N] [ N ] and use the relabeling convention H π ( E ) = H ( π ( E ) ) H^\pi(E)=H(\pi(E)) H π ( E ) = H ( π ( E )) for π ∈ S N \pi\in S_N π ∈ S N . Define
D F g = { H z π : z ∈ D g , π ∈ S N } , F g ( H z π ) = g ( z ) . \mathcal{D}_{F_g}=\{H_z^\pi:z\in\mathcal{D}_g,\ \pi\in S_N\},\qquad F_g(H_z^\pi)=g(z). D F g = { H z π : z ∈ D g , π ∈ S N } , F g ( H z π ) = g ( z ) .
We suppress the fixed parameter b b b in the notation F g F_g F g . By Theorem 6.1, different representations of the same hypergraph give the same source input. Thus F g F_g F g is well defined, its promise is closed under vertex permutations, and its value is unchanged by them.
Query Reductions
The classical reduction uses only the canonical labeling, where each hyperedge query can be answered using at most one source query. For the quantum reduction, we must also handle arbitrary vertex relabelings: we first recover the address vertices and then locate each data vertex coherently when it is needed.
Lemma 6.2 (Classical reduction). For every b ≥ b 0 ( k ) b\ge b_0(k) b ≥ b 0 ( k ) satisfying m ≤ ( 2 b − 2 k ) m\le\binom{2^{b-2}}{k} m ≤ ( k 2 b − 2 ) and every 0 < ε < 1 / 2 0<\varepsilon<1/2 0 < ε < 1/2 ,
R ε ( F g ) ≥ R ε ( g ) . R_\varepsilon(F_g)\ge R_\varepsilon(g). R ε ( F g ) ≥ R ε ( g ) . Proof. Simulate an algorithm for F g F_g F g on the canonical labeling of H z H_z H z . Every entry in (23) is a known constant or one source bit, and repeated-vertex tuples have the known value zero. Each hypergraph query therefore costs at most one query to z z z , with no change in the error probability.
For the quantum reductions, let H H H be an arbitrary relabeling of H z H_z H z . Write X ( H ) X(H) X ( H ) and A ( H ) A(H) A ( H ) for its structural classes, α i \alpha_i α i for the input label corresponding to a i a_i a i , and ξ w \xi_w ξ w for the input label of the vertex with address w w w . These labels are uniquely determined by Theorem 6.1 but are initially unknown to the algorithm.
Lemma 6.3 (Preprocessing). There is a quantum preprocessing procedure with worst-case query cost
O k ( N b log N + b 2 ) . O_k\left(\sqrt{N}b\log N+b^2\right). O k ( N b log N + b 2 ) .
It either aborts or returns fixed sampled sets defining a deterministic classifier c ^ \widehat{c} c , candidate labels for α 1 , … , α b \alpha_1,\ldots,\alpha_b α 1 , … , α b , and sets C 1 , … , C b C_1,\ldots,C_b C 1 , … , C b of size k − 2 k-2 k − 2 . With probability at least 0.99, the classifier correctly identifies both classes on every vertex, all address labels are correct, and
C i ⊆ X ( H ) , every vertex in C i has its i -th address bit equal to zero. C_i \subseteq X(H), \qquad\text{every vertex in } C_i \text{ has its } i\text{-th address bit equal to zero.} C i ⊆ X ( H ) , every vertex in C i has its i -th address bit equal to zero.
A reversible evaluation and uncomputation of c ^ ( v ) \widehat{c}(v) c ( v ) uses O k ( log N ) O_k(\log N) O k ( log N ) hypergraph queries.
Proof. We build a fixed classifier, recover the ordered address vertices, and select padding sets for the coherent source queries in Theorem 6.4.
Classifying vertices. Independently sample L 0 = ⌈ K k log N ⌉ L_0=\lceil K_k\log N\rceil L 0 = ⌈ K k log N ⌉ uniform sets D 1 , … , D L 0 ∈ ( V k − 1 ) D_1,\ldots,D_{L_0}\in\binom{V}{k-1} D 1 , … , D L 0 ∈ ( k − 1 V ) and keep them fixed. For each vertex v v v , let Y t ( v ) = H ( v , D t ) Y_t(v)=H(v,D_t) Y t ( v ) = H ( v , D t ) and define
c ^ ( v ) = { A , L 0 − 1 ∑ t = 1 L 0 Y t ( v ) ≥ θ , X , otherwise, θ = τ ( N k − 1 ) . \widehat{c}(v)=
\begin{cases}
A, & L_0^{-1}\sum_{t=1}^{L_0}Y_t(v)\geq\theta,\\
X, & \text{otherwise,}
\end{cases}
\qquad
\theta=\frac{\tau}{\binom{N}{k-1}}. c ( v ) = { A , X , L 0 − 1 ∑ t = 1 L 0 Y t ( v ) ≥ θ , otherwise, θ = ( k − 1 N ) τ .
The classifier is evaluated reversibly on demand. For each fixed v v v , the variables Y t ( v ) Y_t(v) Y t ( v ) are independent and satisfy
E [ Y t ( v ) ] = p v : = deg H ( v ) ( N k − 1 ) . \mathbb{E}[Y_t(v)]=p_v:=\frac{\deg_H(v)}{\binom{N}{k-1}}. E [ Y t ( v )] = p v := ( k − 1 N ) deg H ( v ) .
By Theorem 6.1 and N = Θ ( d ) N=\Theta(d) N = Θ ( d ) , every true mean is at distance at least a constant Δ k > 0 \Delta_k>0 Δ k > 0 from θ \theta θ . Hoeffding’s inequality [14 Theorem 2] and a union bound show that the event E \mathcal{E} E on which every vertex is classified correctly satisfies
Pr [ E c ] ≤ 2 N exp ( − 2 L 0 Δ k 2 ) ≤ 1 200 . \Pr[\mathcal{E}^{c}]\leq2N\exp(-2L_0\Delta_k^2)\leq\frac{1}{200}. Pr [ E c ] ≤ 2 N exp ( − 2 L 0 Δ k 2 ) ≤ 200 1 .
Choose K k K_k K k so that 2 L 0 Δ k 2 ≥ ln ( 400 N ) 2L_0\Delta_k^2\geq\ln(400N) 2 L 0 Δ k 2 ≥ ln ( 400 N ) .
The fixed samples define a deterministic classifier c ^ \widehat{c} c whose reversible evaluation and uncomputation use O k ( log N ) O_k(\log N) O k ( log N ) queries. On E \mathcal{E} E , the same classifier is correct on all vertices, including when evaluated in superposition.
Finding and ordering the address vertices. Start with an empty list B B B . For j = b , b − 1 , … , 1 j=b,b-1,\ldots,1 j = b , b − 1 , … , 1 , apply exact amplitude amplification to the predicate c ^ ( v ) = A \widehat{c}(v)=A c ( v ) = A and v ∉ B v\notin B v ∈ / B with prescribed solution count j j j . After each search, measure a vertex label and append it to B B B . Abort unless the b b b labels are distinct and all classified as A A A . On E \mathcal{E} E , each search has exactly j j j solutions and succeeds using O ( N / j ) O(\sqrt{N/j}) O ( N / j ) predicate evaluations [7 Theorem 4] . Thus the recovered labels are exactly A ( H ) A(H) A ( H ) , and the total search cost is
O k ( log N ) ∑ j = 1 b O ( N / j ) = O k ( N b log N ) . O_k(\log N)\sum_{j=1}^{b}O(\sqrt{N/j})=O_k(\sqrt{Nb}\log N). O k ( log N ) j = 1 ∑ b O ( N / j ) = O k ( N b log N ) .
Let X ′ = V ∖ B X'=V\setminus B X ′ = V ∖ B be the candidate complement and choose any C 0 ∈ ( X ′ k − 2 ) C_0\in\binom{X'}{k-2} C 0 ∈ ( k − 2 X ′ ) . Query H ( u , v , C 0 ) H(u,v,C_0) H ( u , v , C 0 ) for every pair { u , v } ∈ ( B 2 ) \{u,v\}\in\binom{B}{2} { u , v } ∈ ( 2 B ) to obtain a graph G G G on B B B . Abort unless G ≅ T G\cong\mathcal{T} G ≅ T . Otherwise, use the unique isomorphism to order the labels as α 1 , … , α b \alpha_1,\ldots,\alpha_b α 1 , … , α b . On E \mathcal{E} E , we have X ′ = X ( H ) X'=X(H) X ′ = X ( H ) , so these queries reproduce T \mathcal{T} T and give the correct ordering. The verification and tree reconstruction use O k ( b log N + b 2 ) O_k(b\log N+b^2) O k ( b log N + b 2 ) queries.
Choosing the sets C i C_i C i . For k = 2 k = 2 k = 2 , take C i = ∅ C_i = \varnothing C i = ∅ for every i i i . For k ≥ 3 k \ge3 k ≥ 3 , set J = ⌈ 4 k − 1 ln ( 300 b ) ⌉ J = \lceil4^{k-1}\ln(300b)\rceil J = ⌈ 4 k − 1 ln ( 300 b )⌉ . For each i i i , sample independent uniform sets Y ∈ ( X ′ k − 1 ) Y \in\binom{X'}{k-1} Y ∈ ( k − 1 X ′ ) and query H ( { α i } ∪ Y ) H(\{\alpha_i\} \cup Y) H ({ α i } ∪ Y ) until the first zero answer or J J J trials have been made. Abort if all J J J answers are one. Otherwise, choose C i C_i C i as any ( k − 2 ) (k-2) ( k − 2 ) -subset of the first zero-answer set. This stage uses at most b J = O k ( b log b ) bJ = O_k(b\log b) b J = O k ( b log b ) queries.
Conditional on E \mathcal{E} E , the complement equals X ( H ) X(H) X ( H ) . For each coordinate, exactly q = ( d − 1 ) / 2 q = (d-1)/2 q = ( d − 1 ) /2 of these vertices have address bit zero. The probability of a zero answer in each trial is therefore
ρ = ( q k − 1 ) ( d k − 1 ) = ∏ j = 0 k − 2 q − j d − j ≥ 4 − ( k − 1 ) , \rho= \frac{\binom{q}{k-1}}{\binom{d}{k-1}} = \prod_{j=0}^{k-2}\frac{q-j}{d-j} \ge4^{-(k-1)}, ρ = ( k − 1 d ) ( k − 1 q ) = j = 0 ∏ k − 2 d − j q − j ≥ 4 − ( k − 1 ) ,
where the last inequality uses d ≥ 4 k d \ge4k d ≥ 4 k . The probability of finding no such set for some coordinate is at most
b ( 1 − ρ ) J ≤ b exp ( − ρ J ) ≤ 1 300 . b(1-\rho)^J \le b\exp(-\rho J) \le\frac{1}{300}. b ( 1 − ρ ) J ≤ b exp ( − ρ J ) ≤ 300 1 .
Every zero answer certifies that all vertices in the selected C i C_i C i have their i i i -th bit equal to zero, as in (27) . If no stage aborts, return the fixed samples, ordered address labels, and sets C i C_i C i . The probability of returning correct preprocessing data is at least
1 − 1 200 − 1 300 > 0.99. 1-\frac{1}{200}-\frac{1}{300}>0.99. 1 − 200 1 − 300 1 > 0.99.
All searches use predetermined amplification counts and all sampling loops have fixed budgets. Its query bound therefore also holds on E c \mathcal{E}^{c} E c . Since b = Θ ( log N ) b = \Theta(\log N) b = Θ ( log N ) and b log b = O ( b 2 ) b\log b = O(b^2) b log b = O ( b 2 ) , the total worst-case cost is O k ( N b log N + b 2 ) O_k(\sqrt{N}b\log N+b^2) O k ( N b log N + b 2 ) .
The preprocessing data allow us to recognize a vertex from its address. The next lemma turns this test into a coherent implementation of the source oracle.
Lemma 6.4 (Coherent source query). Suppose the preprocessing data satisfy the correctness conditions of Theorem 6.3. Then the source oracle
O z ∣ j , t ⟩ = ∣ j , t ⊕ z j ⟩ O_z\lvert j,t\rangle=\lvert j,t\oplus z_j\rangle O z ∣ j , t ⟩ = ∣ j , t ⊕ z j ⟩ can be implemented exactly using O k ( N log N ) O_k(\sqrt{N}\log N) O k ( N log N ) hypergraph queries, with all auxiliary registers returned to their initial states. The circuit has the same query bound for any candidate data returned by preprocessing.
Proof. We implement a source query by coherently locating its k k k data vertices, querying the resulting hyperedge, and reversing the location procedures. We first build the unitary for locating one vertex, then show that the complete computation restores every auxiliary register.
Locating a data vertex. For a nonzero binary address w w w , let P w ( v ) = 1 P_w(v)=1 P w ( v ) = 1 precisely when c ^ ( v ) = X \widehat{c}(v)=X c ( v ) = X and
H ( α i , v , c i , 1 , … , c i , k − 2 ) = w i H(\alpha_i,v,c_{i,1},\ldots,c_{i,k-2})=w_i H ( α i , v , c i , 1 , … , c i , k − 2 ) = w i
for every i ∈ [ b ] i\in[b] i ∈ [ b ] , where each C i = ( c i , 1 , … , c i , k − 2 ) C_i=(c_{i,1},\ldots,c_{i,k-2}) C i = ( c i , 1 , … , c i , k − 2 ) is ordered arbitrarily. Compute the classifier and the b b b query values, compare them with w w w , and uncompute the intermediate data. This reversible predicate uses O k ( log N ) O_k(\log N) O k ( log N ) queries. By (27) , it has exactly one solution ξ w \xi_w ξ w .
Starting from a uniform superposition of the N N N input labels, exact amplitude amplification [7 Theorem 4] gives a unitary
U : ∣ w ⟩ ∣ 0 ⟩ ∣ 0 ⟩ w o r k ⟼ e i θ w ∣ w ⟩ ∣ ξ w ⟩ ∣ 0 ⟩ w o r k (28) U:\lvert w\rangle\lvert0\rangle\lvert0\rangle_{\mathrm{work}}\longmapsto e^{i\theta_w}\lvert w\rangle\lvert\xi_w\rangle\lvert0\rangle_{\mathrm{work}} \tag*{(28)} U : ∣ w ⟩ ∣ 0 ⟩ ∣ 0 ⟩ work ⟼ e i θ w ∣ w ⟩ ∣ ξ w ⟩ ∣ 0 ⟩ work (28)
using O k ( N log N ) O_k(\sqrt{N}\log N) O k ( N log N ) queries. The marked fraction is always 1 / N 1/N 1/ N , so the amplification counts and phase corrections are independent of w w w . The same circuit therefore works coherently on superpositions of addresses. Its inverse has the same query cost. Implementing the source oracle. Given j j j , compute the k k k binary addresses in e ( j ) e(j) e ( j ) and apply U U U to each. Query the resulting hyperedge and apply U † U^\dagger U † to remove the recovered labels. Finally, uncompute the binary addresses. The hyperedge answer is z j z_j z j . The query changes only the answer bit, so each address-dependent phase in (28) cancels under U † U^\dagger U † and every auxiliary register is restored. This implements O z O_z O z exactly, using O k ( N log N ) O_k(\sqrt{N}\log N) O k ( N log N ) queries because k k k is fixed.
For incorrect candidate data, the same fixed sequence of unitary operations is still defined and has the same query bound. □
Encoding Proposition
Proposition 6.5 (Uncolored hypergraph encoding). Let g : D g ⊆ { 0 , 1 } m → { 0 , 1 } g:D_g\subseteq\{0,1\}^m\to\{0,1\} g : D g ⊆ { 0 , 1 } m → { 0 , 1 } be nonconstant. For every b ≥ b 0 ( k ) b\ge b_0(k) b ≥ b 0 ( k ) satisfying m ≤ ( 2 b − 2 k ) m\le\binom{2^{b-2}}{k} m ≤ ( k 2 b − 2 ) , set d = 2 b − 1 d=2^b-1 d = 2 b − 1 and N = d + b N=d+b N = d + b . The function F g F_g F g defined above is permutation-invariant on a promise of uncolored connected simple k k k -uniform hypergraphs with N N N vertices and satisfies
R ε ( F g ) ≥ R ε ( g ) , 0 < ε < 1 / 2 , (29) R_\varepsilon(F_g)\ge R_\varepsilon(g),\qquad0<\varepsilon<1/2, \tag*{(29)} R ε ( F g ) ≥ R ε ( g ) , 0 < ε < 1/2 , (29) and
Q 1 / 3 ( F g ) = O k ( N b log N + b 2 + N log N Q 1 / 3 ( g ) ) . (30) Q_{1/3}(F_g)=O_k\left(\sqrt{N}b\log N+b^2+\sqrt{N}\log N Q_{1/3}(g)\right). \tag*{(30)} Q 1/3 ( F g ) = O k ( N b log N + b 2 + N log N Q 1/3 ( g ) ) . (30) Choosing the smallest admissible b b b gives N = Θ k ( m 1 / k ) N=\Theta_k(m^{1/k}) N = Θ k ( m 1/ k ) and
Q 1 / 3 ( F g ) = O ~ k ( m 1 / ( 2 k ) Q 1 / 3 ( g ) ) . (31) Q_{1/3}(F_g)=\widetilde{O}_k\left(m^{1/(2k)}Q_{1/3}(g)\right). \tag*{(31)} Q 1/3 ( F g ) = O k ( m 1/ ( 2 k ) Q 1/3 ( g ) ) . (31) Proof. The promise and invariance properties follow from Theorem 6.1, and Theorem 6.2 gives the classical lower bound. We obtain the quantum bound by combining preprocessing with the coherent source oracle, then choose the smallest admissible b b b to express the cost in terms of m m m .
For the quantum bound, run the preprocessing procedure of Theorem 6.3. If it aborts, output an arbitrary bit. Otherwise, amplify a quantum algorithm for g g g to error at most 1 / 12 1/12 1/12 with a constant number of repetitions and replace each source query using Theorem 6.4. With probability at least 0.99 0.99 0.99 , the preprocessing data are correct and every source query is simulated exactly. The total error is at most 0.01 + 1 / 12 < 1 / 3 0.01+1/12<1/3 0.01 + 1/12 < 1/3 . Combining the query bounds in Theorems 6.3 and 6.4 proves (30) .
For the final assertion, choose the smallest b ≥ b 0 ( k ) b\ge b_0(k) b ≥ b 0 ( k ) with ( 2 b − 2 k ) ≥ m \binom{2^{b-2}}{k}\ge m ( k 2 b − 2 ) ≥ m . Since ( 2 b − 2 k ) = Θ k ( d k ) \binom{2^{b-2}}{k}=\Theta_k(d^k) ( k 2 b − 2 ) = Θ k ( d k ) , minimality gives
d = Θ k ( m 1 / k ) , N = d + b = Θ k ( m 1 / k ) , d=\Theta_k(m^{1/k}),\qquad N=d+b=\Theta_k(m^{1/k}), d = Θ k ( m 1/ k ) , N = d + b = Θ k ( m 1/ k ) , with the lower cutoff b 0 ( k ) b_0(k) b 0 ( k ) absorbed into the constants. Since b = Θ ( log N ) b=\Theta(\log N) b = Θ ( log N ) , substitution in (30) gives (31) .
Forrelation with Increasing Order
To obtain the desired hypergraph separation, we need source problems with nearly linear randomized query complexity and polylogarithmic quantum query complexity. We use Forrelation with increasing order, so the dependence on that order must remain explicit.
Lemma 6.6 (Forrelation separation). For every integer ℓ ≥ 2 \ell\ge2 ℓ ≥ 2 and every power of two L ≥ 2 20 ℓ L\ge2^{20\ell} L ≥ 2 20 ℓ , there is an explicit nonconstant partial Boolean function g ℓ , L g_{\ell,L} g ℓ , L on m = ℓ L m=\ell L m = ℓ L bits such that
Q 1 / 3 ( g ℓ , L ) = O ( ℓ 2 10 ℓ ) , (32) Q_{1/3}(g_{\ell,L})=O(\ell2^{10\ell}), \tag*{(32)} Q 1/3 ( g ℓ , L ) = O ( ℓ 2 10 ℓ ) , (32)
and, for every 0 < β < 1 / 2 0 < \beta< 1/2 0 < β < 1/2 ,
R 1 / 2 − β ( g ℓ , L ) = Ω ( β 2 ℓ 2 β ( L log ( ℓ L ) ) 1 − 1 / ℓ ) . (33) R_{1/2-\beta}(g_{\ell,L}) = \Omega\left(\frac{\beta^2}{\ell^{2\beta}}\left(\frac{L}{\log(\ell L)}\right)^{1-1/\ell}\right). \tag*{(33)} R 1/2 − β ( g ℓ , L ) = Ω ( ℓ 2 β β 2 ( log ( ℓ L ) L ) 1 − 1/ ℓ ) . (33)
The implicit constants are independent of ℓ \ell ℓ , L L L , and β \beta β .
Proof. Let δ = 2 − 5 ℓ \delta= 2^{-5\ell} δ = 2 − 5 ℓ and let g ℓ , L g_{\ell,L} g ℓ , L be the ( δ , ℓ ) (\delta,\ell) ( δ , ℓ ) -Forrelation problem of Bansal and Sinha [8 ] , with its ℓ L \ell L ℓ L sign coordinates encoded as bits. The quantum bound (32) follows from [8 Corollary 1.4] , and [8 Theorem 1.3] with η = 2 β \eta= 2\beta η = 2 β gives (33) .
The assumption L ≥ 2 20 ℓ L \ge2^{20\ell} L ≥ 2 20 ℓ ensures
4 δ 2 L ≤ 2 2 − 10 ℓ ≤ δ . \frac{4}{\delta^2 L} \le2^{2-10\ell} \le\delta. δ 2 L 4 ≤ 2 2 − 10 ℓ ≤ δ .
Thus the uniform-input exceptional probability in [8 Theorem 3.1] is at most δ \delta δ . The remaining parameter dependence is explicit in these bounds, so the constants are uniform in ℓ \ell ℓ , L L L , and β \beta β .
Proof of Theorem 1.3
We apply Theorem 6.5 to the source problems in Theorem 6.6.
Theorem 1.3 (restated). For every fixed integer k ≥ 2 k \ge2 k ≥ 2 , there is an explicit infinite family { F N } \{F_N\} { F N } of k k k -uniform hypergraph properties with promises consisting of connected, uncolored, simple hypergraphs on N N N vertices such that
R 1 / 3 ( F N ) ≥ N k − o ( 1 ) , Q 1 / 3 ( F N ) ≤ N 1 / 2 + o ( 1 ) . R_{1/3}(F_N) \ge N^{k-o(1)}, \qquad Q_{1/3}(F_N) \le N^{1/2+o(1)}. R 1/3 ( F N ) ≥ N k − o ( 1 ) , Q 1/3 ( F N ) ≤ N 1/2 + o ( 1 ) .
Proof. We choose the source input size to fill a constant fraction of the available data hyperedges and let the Forrelation order grow slowly. The source then has polylogarithmic quantum query complexity and nearly linear randomized query complexity.
For each sufficiently large integer b b b , let d = 2 b − 1 d = 2^b - 1 d = 2 b − 1 , d ∗ = 2 b − 2 d_* = 2^{b-2} d ∗ = 2 b − 2 , and
ℓ = ⌊ log 2 log 2 d ⌋ . \ell= \left\lfloor\log_2 \log_2 d \right\rfloor. ℓ = ⌊ log 2 log 2 d ⌋ .
Let L L L be the largest power of two satisfying
ℓ L ≤ ( d ∗ k ) . \ell L \le\binom{d_*}{k}. ℓ L ≤ ( k d ∗ ) .
Maximality implies
1 2 ( d ∗ k ) < ℓ L ≤ ( d ∗ k ) . \frac{1}{2}\binom{d_*}{k} < \ell L \le\binom{d_*}{k}. 2 1 ( k d ∗ ) < ℓ L ≤ ( k d ∗ ) .
Apply Theorem 6.5 to g ℓ , L g_{\ell,L} g ℓ , L with this b b b and m = ℓ L m = \ell L m = ℓ L . Let F N F_N F N denote the resulting function on
vertices. The parameters satisfy
d ∗ = Θ ( d ) , d = Θ ( N ) , b = Θ ( log N ) , m = Θ k ( d k ) , d_* = \Theta(d), \qquad d = \Theta(N), \qquad b = \Theta(\log N), \qquad m = \Theta_k(d^k), d ∗ = Θ ( d ) , d = Θ ( N ) , b = Θ ( log N ) , m = Θ k ( d k ) ,
ℓ = Θ ( log log d ) , L = Θ k ( d k / ℓ ) . \ell= \Theta(\log\log d), \qquad L = \Theta_k(d^k/\ell). ℓ = Θ ( log log d ) , L = Θ k ( d k / ℓ ) .
This defines an explicit infinite family along the increasing sequence of vertex counts obtained from b b b .
For all sufficiently large d d d ,
2 20 ℓ ≤ ( log 2 d ) 20 . 2^{20\ell} \le(\log_2 d)^{20}. 2 20 ℓ ≤ ( log 2 d ) 20 .
Since L = Θ k ( d k / ℓ ) L = \Theta_k(d^k/\ell) L = Θ k ( d k / ℓ ) , it follows that L ≥ 2 20 ℓ L \ge2^{20\ell} L ≥ 2 20 ℓ . Thus Theorem 6.6 applies.
For the quantum upper bound,
Q 1 / 3 ( g ℓ , L ) = O ( ℓ 2 10 ℓ ) = O ( ( ℓ log d ) 10 ) . Q_{1/3}(g_{\ell,L}) = O(\ell2^{10\ell}) = O\left((\ell\log d)^{10}\right). Q 1/3 ( g ℓ , L ) = O ( ℓ 2 10 ℓ ) = O ( ( ℓ log d ) 10 ) .
Substituting these bounds into (30) gives
Q 1 / 3 ( F N ) ≤ C k N ( log N ) 12 = N 1 / 2 + o ( 1 ) Q_{1/3}(F_N) \le C_k\sqrt{N}(\log N)^{12} = N^{1/2+o(1)} Q 1/3 ( F N ) ≤ C k N ( log N ) 12 = N 1/2 + o ( 1 )
for a constant C k C_k C k and all sufficiently large N N N in the family.
Since L = Θ k ( d k / ℓ ) L = \Theta_k(d^k/\ell) L = Θ k ( d k / ℓ ) and log ( ℓ L ) = Θ k ( log d ) \log(\ell L) = \Theta_k(\log d) log ( ℓ L ) = Θ k ( log d ) , (29) and (33) imply
R 1 / 2 − β ( F N ) ≥ c k β 2 ℓ 29 ( d k ℓ log d ) 1 − 1 / ℓ . R_{1/2-\beta}(F_N) \ge c_k \frac{\beta^2}{\ell^{29}}\left(\frac{d^k}{\ell\log d}\right)^{1-1/\ell}. R 1/2 − β ( F N ) ≥ c k ℓ 29 β 2 ( ℓ log d d k ) 1 − 1/ ℓ .
for some c k > 0 c_k > 0 c k > 0 and every 0 < β < 1 / 2 0 < \beta< 1/2 0 < β < 1/2 .
Since ℓ → ∞ \ell\to\infty ℓ → ∞ and ℓ = O ( log log d ) \ell= O(\log\log d) ℓ = O ( log log d ) ,
1 ℓ 29 ( d k ℓ log d ) 1 − 1 / ℓ = d k − o ( 1 ) . \frac{1}{\ell^{29}}\left(\frac{d^k}{\ell\log d}\right)^{1-1/\ell} = d^{k-o(1)}. ℓ 29 1 ( ℓ log d d k ) 1 − 1/ ℓ = d k − o ( 1 ) .
Using N = Θ k ( d ) N = \Theta_k(d) N = Θ k ( d ) and absorbing fixed constants into the o ( 1 ) o(1) o ( 1 ) term gives
R 1 / 2 − β ( F N ) ≥ β 2 N k − o ( 1 ) , R_{1/2-\beta}(F_N) \ge\beta^2 N^{k-o(1)}, R 1/2 − β ( F N ) ≥ β 2 N k − o ( 1 ) ,
with an o ( 1 ) o(1) o ( 1 ) term independent of β \beta β .
Taking β = 1 / 6 \beta= 1/6 β = 1/6 gives the claimed bounded-error lower bound. □
The same family also satisfies
R 1 / 2 − β N ( F N ) ≥ N k − o ( 1 ) , Q 1 / 2 − β N ( F N ) ≤ N 1 / 2 + o ( 1 ) R_{1/2-\beta_N}(F_N) \ge N^{k-o(1)}, \qquad Q_{1/2-\beta_N}(F_N) \le N^{1/2+o(1)} R 1/2 − β N ( F N ) ≥ N k − o ( 1 ) , Q 1/2 − β N ( F N ) ≤ N 1/2 + o ( 1 )
for every sequence with 0 < β N ≤ 1 / 6 0 < \beta_N \le1/6 0 < β N ≤ 1/6 and β N = N − o ( 1 ) \beta_N = N^{-o(1)} β N = N − o ( 1 ) . The randomized lower bound follows from β N 2 = N − o ( 1 ) \beta_N^2 = N^{-o(1)} β N 2 = N − o ( 1 ) in the preceding proof. The quantum upper bound follows from Q 1 / 2 − β N ( F N ) ≤ Q 1 / 3 ( F N ) Q_{1/2-\beta_N}(F_N) \le Q_{1/3}(F_N) Q 1/2 − β N ( F N ) ≤ Q 1/3 ( F N ) .
Acknowledgments
We thank Penghui Yao for helpful discussions. Yunqi Huang and Shenggen Zheng were supported by the Guangdong Provincial Quantum Science Strategic Initiative (Grant No. GDZX2503001) and the Shenzhen Science and Technology Program (Grant No. ZDYJ20251211120859002). Lvzhou Li was supported by the National Key Research and Development Program of China (Grant No. 2024YFB4504004), the National Natural Science Foundation of China (Grant Nos. 92465202 and 62272492), the Guangdong Provincial Quantum Science Strategic Initiative (Grant No. GDZX2303007), and the Guangzhou Science and Technology Program (Grant No. 2024A04J4892). Zekun Ye was supported by start-up research funding from Fuzhou University (Grant No. XRC-26004).
AI Methodology
We used OpenAI ChatGPT (Codex) from August to November 2026 to assist with developing and organizing the proofs, checking intermediate calculations, and reviewing and revising the manuscript. This assistance included the sampling argument in § 3 , the residual expansion in § 4 , the hypergraph simulation in § 5 , and the hypergraph encoding in § 6 . The tool also assisted with numerical consistency checks of finite-dimensional instances of the restriction identity in Theorem 3.2. The authors take full responsibility for the correctness, originality, and integrity of the paper, including its proofs, references, and attribution.