betaFeedback

WorksPhysics and Astronomy

Optimal Separations Between Randomized and Quantum Query Complexity under Permutation Symmetry

Abstract

A function f:\cD\subseteq A^N\to\{0,1\} is permutation-invariant if every permutation of its input positions preserves both its domain and its value. We study how this symmetry limits quantum speedups. For 1/6≤ε<1/21/6\leq\varepsilon<1/2, we prove that every such function over an arbitrary finite alphabet AA satisfies Rε(f)=O(Qε(f)2)R_\varepsilon(f)=O(Q_\varepsilon(f)^2), where RεR_\varepsilon and QεQ_\varepsilon denote randomized and quantum query complexities with error at most ε\varepsilon. This improves the previous cubic bound (ITCS 2019). We further establish bounds for graph and hypergraph properties, for which vertex relabeling preserves both the promise and the answer. For the same range of ε\varepsilon, we obtain Rε(f)=O(Qε(f)4)R_\varepsilon(f)=O(Q_\varepsilon(f)^4) for graph properties in the adjacency-matrix model and Rε(f)=Ok(Qε(f)2k)R_\varepsilon(f)=O_k(Q_\varepsilon(f)^{2k}) for kk-uniform hypergraph properties with fixed k≥2k\geq2, where the implicit constant depends only on kk. These improve the previous bounds R1/3(f)=O(Q1/3(f)6)R_{1/3}(f)=O(Q_{1/3}(f)^6) and R1/3(f)=Ok(Q1/3(f)3k)R_{1/3}(f)=O_k(Q_{1/3}(f)^{3k}), respectively (SICOMP 2024) These bounds are tight for permutation-invariant functions and nearly tight for graph and hypergraph properties. Unstructured search gives a matching quadratic separation with R1/3(f)=Θ ⁣(Q1/3(f)2)R_{1/3}(f)=Θ\!\left(Q_{1/3}(f)^2\right). For every fixed k≥2k\geq 2, we construct explicit families of invariant promise problems on kk-uniform hypergraphs satisfying R1/3(f)≥Q1/3(f)2k−o(1)R_{1/3}(f)\geq Q_{1/3}(f)^{2k-o(1)}.

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) is the minimum number of queries needed in the worst case by a deterministic algorithm that computes ff on every input. The randomized query complexity R(f)R(f) is the minimum number of queries needed in the worst case by a randomized algorithm that computes ff with error probability at most 1/31/3 on every input. The quantum query complexity 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) and 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) [2]. Since R(f)≤D(f)R(f) \le 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 kk-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) and 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 kk-uniform hypergraph property is defined analogously, with each query asking whether a given set of kk 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=2k=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) for graph properties and R(f)=Ok(Q(f)3k)R(f) = O_k(Q(f)^{3k}) for kk-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) and 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) and Q(f)Q(f) for graph and hypergraph properties?

Our Results

Let Qε(f)Q_{\varepsilon}(f) and Rε(f)R_{\varepsilon}(f) denote the worst-case quantum and randomized query complexities of ff with error at most ε\varepsilon on every input. The notation Ok(⋅)O_k(\cdot) indicates that the implicit constants depend only on kk.

Theorem 1.1 (Permutation-invariant functions over arbitrary alphabets). For every permutation-invariant function f:D⊆AN→{0,1}f:D\subseteq A^N\to\{0,1\} over arbitrary finite alphabet AA and 1/6≤ε<1/21/6\leq\varepsilon<1/2, there is a randomized algorithm that computes ff with error at most ε\varepsilon using O(Qε(f)2)O(Q_{\varepsilon}(f)^2) queries.

Theorem 1.2 (Graph and hypergraph properties). For every fixed integer k≥2k\geq2, kk-uniform hypergraph property ff, and 1/6≤ε<1/21/6\leq\varepsilon<1/2, there is a randomized algorithm that computes ff with error at most ε\varepsilon on every promised input using Ok(Qε(f)2k)O_k(Q_{\varepsilon}(f)^{2k}) queries.

The randomized algorithms in Theorems 1.1 and 1.2 can be nonadaptive. For example, in Theorem 1.1, for every TT-query quantum algorithm, there is a randomized algorithm using O(T2)O(T^2) queries that achieves the same success probability as the quantum algorithm.

Theorem 1.3 (Hypergraph separations). For every fixed integer k≥2k\geq2, there is an explicit family {FN}\{F_N\} of kk-uniform hypergraph properties on NN vertices such that

R1/3(FN)≥Nk−o(1),Q1/3(FN)≤N1/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)}.

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.

Input representationPrevious upper boundOur upper boundSeparating families
Arbitrary-alphabet stringsR(f)=O(Q(f)3)R(f)=O(Q(f)^3) [11]R(f)=O(Q(f)2)R(f)=O(Q(f)^2)R(f)=Ω(Q(f)2)R(f)=\Omega(Q(f)^2) [13, 3]
Graph adjacency matricesR(f)=O(Q(f)6)R(f)=O(Q(f)^6) [5]R(f)=O(Q(f)4)R(f)=O(Q(f)^4)R(f)≥Q(f)4−o(1)R(f)\geq Q(f)^{4-o(1)} (this work)
Fixed kk-uniform hypergraphsR(f)=Ok(Q(f)3k)R(f)=O_k(Q(f)^{3k}) [5]R(f)=Ok(Q(f)2k)R(f)=O_k(Q(f)^{2k})R(f)≥Q(f)2k−o(1)R(f)\geq Q(f)^{2k-o(1)} (this work)

Table 1. Randomized and quantum query bounds for invariant promise problems at error 1/31/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 TT-query algorithm on a uniformly relabeled string xπx^{\pi}, where xiπ=xπ(i)x_i^{\pi}=x_{\pi(i)}. Each query computes π(i)\pi(i), queries xx, and uncomputes the address. The resulting circuit has TT queries and q=2Tq=2T auxiliary permutation queries. Only the TT 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 DD from [N][N] to [N][N]. Compression by itself does not provide a small classical sample, because the database range can contain any label in [N][N].

An exact norm formula for restriction to a sample. We next restrict the database range to a uniformly random ss-element set S⊆[N]S\subseteq[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<Nt<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)}

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}) over qq auxiliary permutation queries when s=Kq2<Ns=Kq^2<N and KK is a sufficiently large constant. Since q=2Tq=2T, a sufficiently small constant error therefore requires only O(T2)O(T^2) sampled positions.

For a fixed sample SS, every query in the sampled circuit can be answered from x[S]x[S] and the prescribed response at ⊥\perp. Here ⊥∉[N]\perp\notin[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, we need more than a constant additive approximation. Let hA(x)∈[−1,1]h_{\mathcal{A}}(x)\in[-1,1] be the signed output expectation of a symmetrized TT-query algorithm. We construct a bounded postprocessing function aA(S,x[S])a_{\mathcal{A}}(S,x[S]) and another symmetrized algorithm R(A)\mathcal{R}(\mathcal{A}) such that

hA(x)=ESaA(S,x[S])+λhR(A)(x),λ=18.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}.

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 TT 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 TT input queries. Controlled state preparation represents each resulting cross term as a signed output expectation. Its two branches share the same TT input-query slots. An input-independent randomized choice among these constructions gives the residual algorithm with at most TT 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. The sample SS has the same distribution in every term. By linearity of expectation, we may therefore use a single sample SS and evaluate all terms from x[S]x[S]. After a fixed normalization, choosing L=O(log⁡(1/β))L = O(\log(1/\beta)) retains a constant fraction of the original bias without increasing the sample size. Three independent repetitions restore the original error throughout 1/6≤ε<1/21/6 \le\varepsilon< 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 kk-uniform hypergraph properties to prove Theorem 1.2. Each hyperedge query relabels kk vertex arguments using the same permutation, makes one query, and then reverses the relabeling. A TT-query algorithm therefore uses q=2kTq = 2kT auxiliary permutation queries. We sample Ok(T2)O_k(T^2) vertices and read the induced hypergraph, using Ok(T2k)O_k(T^{2k}) queries. The same single-permutation estimates and residual construction preserve the original success guarantee. Taking k=2k = 2 gives the quartic bound for graph properties.

Encoding near-maximal separations in hypergraphs. For the lower bound, we encode an arbitrary mm-bit promise problem into an uncolored, connected, simple kk-uniform hypergraph on N=Θk(m1/k)N = \Theta_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}) 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 m1−o(1)m^{1-o(1)} randomized queries but only polylogarithmically many quantum queries. The encoding transfers this separation to hypergraph properties and yields

R1/3(FN)≥Nk−o(1),Q1/3(FN)≤N1/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)}.

This proves Theorem 1.3 using connected simple kk-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\} and f:D⊆AN→{0,1}f : \mathcal{D} \subseteq A^N \to\{0,1\} be a function on strings over a finite alphabet AA. Its domain D\mathcal{D} is the promise. The function is total when D=AN\mathcal{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\}. Fix a known injective encoding enc⁡A:A→{0,1}b\operatorname{enc}_A : A \to\{0,1\}^b. The input oracle acts as

Ox∣i,z⟩=∣i,z⊕enc⁡A(xi)⟩,i∈[N].O_x|i,z\rangle= |i,z\oplus\operatorname{enc}_A(x_i)\rangle,\qquad i \in[N].

We identify alphabet symbols with their encodings when no confusion arises. Each application of OxO_x counts as one query, regardless of the encoding length bb. 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/20 \le\varepsilon< 1/2, the quantum query complexity Qε(f)Q_\varepsilon(f) is the minimum number of queries required by a quantum algorithm to compute ff with error at most ε\varepsilon on every input in its domain. The randomized query complexity Rε(f)R_\varepsilon(f) is defined analogously using randomized algorithms. In both definitions, the number of queries is measured in the worst case. We write Q(f)=Q1/3(f)Q(f) = Q_{1/3}(f) and R(f)=R1/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 TT queries can be modified to make exactly TT 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\| for the Euclidean norm and ∥B∥=sup⁡∥v∥=1∥Bv∥\|B\| = \sup_{\|v\|=1}\|Bv\| for the operator norm. An operator BB is a contraction if ∥B∥≤1\|B\| \le1 and an isometry if B†B=IB^\dagger B = I.

References

  1. [1]Scott Aaronson and Andris Ambainis. The Need for Structure in Quantum Speedups. Theory of Computing, 10(6):133–166, 2014.
  2. [2]Scott Aaronson, Shalev Ben-David, Robin Kothari, Shravas Rao, and Avishay Tal. Degree vs. Approximate Degree and Quantum Implications of Huang’s Sensitivity Theorem. In Proceedings of the 53rd Annual ACM SIGACT Symposium on Theory of Computing, pages 1330–1342. ACM, 2021.arxiv.org/abs/2010.12629
  3. [3]Charles H. Bennett, Ethan Bernstein, Gilles Brassard, and Umesh Vazirani. Strengths and Weaknesses of Quantum Computing. SIAM Journal on Computing, 26(5):1510–1523, 1997.DOI
  4. [4]Robert Beals, Harry Buhrman, Richard Cleve, Michele Mosca, and Ronald de Wolf. Quantum Lower Bounds by Polynomials. Journal of the ACM, 48(4):778–797, 2001.
  5. [5]Shalev Ben-David, Andrew M. Childs, András Gilyén, William Kretschmer, Supartha Podder, and Daochen Wang. Symmetries, Graph Properties, and Quantum Speedups. SIAM Journal on Computing, 53(6):FOCS20–368–FOCS20–415, 2024.
  6. [6]Debajyoti Bera. A different Deutsch–Jozsa. Quantum Information Processing, 14(6):1777–1785, 2015.DOI
  7. [7]Gilles Brassard, Peter Høyer, Michele Mosca, and Alain Tapp. Quantum Amplitude Amplification and Estimation. In Quantum Computation and Information, volume 305 of Contemporary Mathematics, pages 53–74. American Mathematical Society, 2002.DOI
  8. [8]Nikhil Bansal and Makrand Sinha. k-Forrelation Optimally Separates Quantum and Classical Query Complexity. In Proceedings of the 53rd Annual ACM SIGACT Symposium on Theory of Computing, pages 1303–1316. ACM, 2021.arxiv.org/abs/2008.07003
  9. [9]Joseph Carolan. Compressed Permutation Oracles. In Proceedings of the 58th Annual ACM Symposium on Theory of Computing. ACM, 2026.arxiv.org/abs/2509.18586
  10. [10]Richard Cleve, Artur Ekert, Chiara Macchiavello, and Michele Mosca. Quantum algorithms revisited. Proceedings of the Royal Society of London. Series A: Mathematical, Physical and Engineering Sciences, 454(1969):339–354, 1998.DOI
  11. [11]André Chailloux. A Note on the Quantum Query Complexity of Permutation Symmetric Functions. In 10th Innovations in Theoretical Computer Science Conference (ITCS 2019), volume 124 of Leibniz International Proceedings in Informatics, pages 19:1–19:7. Schloss Dagstuhl–Leibniz-Zentrum für Informatik, 2019.arxiv.org/abs/1810.01790
  12. [12][CM26] Joseph Carolan and Christian Majenz. Compressed Permutation Oracles Revisited. arXiv:2609.28469, 2026. Version 1, September 23, 2026.arxiv.org/abs/2609.28469
  13. [13][Gro96] Lov K. Grover. A Fast Quantum Mechanical Algorithm for Database Search. In Proceedings of the 28th Annual ACM Symposium on Theory of Computing, pages 212–219. ACM, 1996.arxiv.org/abs/quant-ph/9605043
  14. [14][Hoe63] Wassily Hoeffding. Probability Inequalities for Sums of Bounded Random Variables. Journal of the American Statistical Association, 58(301):13–30, 1963.
  15. [15][Rob18] P. L. Robinson. Julia Operators and Halmos Dilations. arXiv:1803.09329, 2018.arxiv.org/abs/1803.09329
  16. [16][Sim97] Daniel R. Simon. On the Power of Quantum Computation. SIAM Journal on Computing, 26(5):1474–1483, 1997.
  17. [17][SSW23] Alexander A. Sherstov, Andrey A. Storozhenko, and Pei Wu. An Optimal Separation of Randomized and Quantum Query Complexity. SIAM Journal on Computing, 52(2):525–567, 2023.
  18. [18][Zha15] Mark Zhandry. A Note on the Quantum Collision and Set Equality Problems. Quantum Information and Computation, 15(7–8):557–567, 2015.arxiv.org/abs/1312.1027
  19. [19][Zha19] Mark Zhandry. How to Record Quantum Queries, and Applications to Quantum Indifferentiability. In Alexandra Boldyreva and Daniele Micciancio, editors, Advances in Cryptology – CRYPTO 2019: 39th Annual International Cryptology Conference, Part II, volume 11693 of Lecture Notes in Computer Science, pages 239–268. Springer, 2019.DOI

Paper details

vlnc:W_xadnt7yn
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 16

downloads · 4

A view counts once per browser per day, a download each time the PDF is requested.

  • Physics and Astronomy

Codex

View statement
Looking for related papers…
Contents