Challenges
Datasets
Workspaces
Papers
Discussions
Leaderboard
Log inSign up
Challenges
Datasets
Workspaces
Papers
Discussions
Leaderboard
Blog
Job Board
Q3AS

© 2026 Aqora Quantum S.A.S.

TermsPrivacyLegal Notice

Efficient quantum algorithms for (Gapped) group testing and junta testing

Andris Ambainis, Aleksandrs Belovs, Oded Regev, de Wolf, Ronald

Published Jan 1, 2016• 20 citations
OpenAlex

Abstract

In the k-junta testing problem, a tester has to efficiently decide whether a given function f: {0,1}n → {0,1} is a k-junta (i.e., depends on at most k of its input bits) or is ∈-far from any k-junta. Our main result is a quantum algorithm for this problem with query complexity Ō(√∈) and time complexity Ō(n√∈). This quadratically improves over the query complexity of the previous best quantum junta tester, due to Atici and Servedio. Our tester is based on a new quantum algorithm for a gapped version of the combinatorial group testing problem, with an up to quartic improvement over the query complexity of the best classical algorithm. For our upper bound on the time complexity we give a near-linear time implementation of a shallow variant of the quantum Fourier transform over the symmetric group, similar to the Schur-Weyl transform. We also prove a lower bound of ω(k1/3) queries for junta-testing (for constant ∈).

Related papers

Efficient Quantum Algorithms for (Gapped) Group Testing and Junta Testing

Andris Ambainis, Aleksandrs Belovs, Oded Regev +1 more

In the k-junta testing problem, a tester has to efficiently decide whether a given function f: {0, 1}n → {0, 1} is a k-junta (i.e., depends on at most k of its input bits) or is ∊-far from any k-junta. Our main result is a quantum algorithm for this problem with query complexity and time complexity . This quadratically improves over the query complexity of the previous best quantum junta tester, due to Atıcı and Servedio. Our tester is based on a new quantum algorithm for a gapped version of the combinatorial group testing problem, with an up to quartic improvement over the query complexity of the best classical algorithm. For our upper bound on the time complexity we give a near-linear time implementation of a shallow variant of the quantum Fourier transform over the symmetric group, similar to the Schur-Weyl transform. We also prove a lower bound of Ω(k1/3) queries for junta-testing (for constant ∊).

ACM-SIAM Symposium on Discrete Algorithms (SODA)•Dec 21, 2015•58 citations

Optimal Quantum Junta Testing

Jinge Bao, Minbo Gao, Penghui Yao

We determine the quantum query complexity of testing $k$-juntas for Boolean functions, unitaries, and quantum channels. Let $n$ denote the number of input bits or qubits and $\varepsilon$ the distance parameter. For all sufficiently large $k$, $n \ge 2k$, and $2^{-k/16} \le \varepsilon \le 1/16$, we establish the following tight bounds. $\bullet$ Junta functions: The query complexity is $Θ(\sqrt{k/\varepsilon})$, closing the gap left by Ambainis, Belovs, Regev, and de Wolf (SODA 2016) and Bun, Kothari, and Thaler (STOC 2018, ToC 2020). $\bullet$ Junta unitaries: The query complexity is $Θ(\sqrt{k}/\varepsilon)$, closing the gap left by Chen, Nadimpalli, and Yuen (SODA 2023). With forward-only access, the query complexity is $Θ(k/(\varepsilon^2 \log k))$. At constant $\varepsilon$, these bounds establish a separation between $Θ(\sqrt{k})$ queries with forward and inverse access and $Θ(k/\log k)$ queries with forward-only access. $\bullet$ Junta channels: The query complexity is $Θ(k/(\varepsilon^2 \log k))$, closing the gap left by Bao and Yao (COLT 2023, TPAMI 2025). The upper bounds for channels and forward-only unitaries are achieved by nonadaptive, ancilla-free testers using product inputs and single-qubit measurements. Our upper bounds follow from a reduction to \emph{union size testing}, a generalization of support size testing to distributions over subsets of a ground set. We develop optimal testers for this problem both from independent samples and from a reversible sampler. Our matching lower bounds use moment-matching constructions and a phase-masked unitary ensemble. For this ensemble, the average acceptance probability of every forward-only quantum algorithm admits an exact representation in terms of independent classical samples.

quant-pharXiv:2609.37926•Sep 30, 2026•1 citation

Efficient Quantum Algorithms for (Gapped) Group Testing and Junta Testing

Andris Ambainis, Aleksandrs Belovs, Oded Regev +1 more

In the $k$-junta testing problem, a tester has to efficiently decide whether a given function $f:\{0,1\}^n\rightarrow \{0,1\}$ is a $k$-junta (i.e., depends on at most $k$ of its input bits) or is $ε$-far from any $k$-junta. Our main result is a quantum algorithm for this problem with query complexity $\tilde O(\sqrt{k/ε})$ and time complexity $\tilde O(n\sqrt{k/ε})$. This quadratically improves over the query complexity of the previous best quantum junta tester, due to Atıcı and Servedio. Our tester is based on a new quantum algorithm for a gapped version of the combinatorial group testing problem, with an up to quartic improvement over the query complexity of the best classical algorithm. For our upper bound on the time complexity we give a near-linear time implementation of a shallow variant of the quantum Fourier transform over the symmetric group, similar to the Schur-Weyl transform. We also prove a lower bound of $Ω(k^{1/3})$ queries for junta-testing (for constant $ε$).

arXiv:1507.03126•Jul 11, 2015•14 citations

Efficient Non-Adaptive Quantum Algorithms for Tolerant Junta Testing

Zongbo Bao, Yuxuan Liu, Penghui Yao +2 more

We consider the problem of deciding whether an \(n\)-qubit unitary (or \(n\)-bit Boolean function) is \(\varepsilon_1\)-close to some \(k\)-junta or \(\varepsilon_2\)-far from every \(k\)-junta, where \(k\)-junta unitaries act non-trivially on at most \(k\) qubits and as the identity on the rest, and \(k\)-junta Boolean functions depend on at most \(k\) variables. For constant numbers \(\varepsilon_1, \varepsilon_2\) such that \(0 \lt \varepsilon_1 \lt \varepsilon_2 \lt 1\), we show the following.1.A non-adaptive \(O(k \log k)\)-query tolerant (\(\varepsilon_1, \varepsilon_2\))-tester for \(k\)-junta unitaries when \(2\sqrt2\varepsilon_1 \lt \varepsilon_2\).2.A non-adaptive tolerant (\(\varepsilon_1, \varepsilon_2\))-tester for \(k\)-junta Boolean functions with \(O(k \log k)\) quantum queries when \(4\varepsilon_1 \lt \varepsilon_2\).3.A \(2^{\widetilde{O}(k)}\)-query tolerant (\(\varepsilon_1, \varepsilon_2\))-tester for \(k\)-junta unitaries for any \(\varepsilon_1, \varepsilon_2\).The first algorithm provides an exponential improvement over the best-known quantum algorithms [CLL24, ADG25]. The second algorithm shows an exponential quantum advantage over any non-adaptive classical algorithm [CDL+24]. The third tester gives the first tolerant junta unitary testing result for an arbitrary gap.

arXiv:2508.17306•Society for Industrial and Applied Mathematics eBooks•Jan 1, 2026•6 citations

Quantum Advantage in Tolerant Junta Testing

Avishay Tal, Weiqiang Yuan

We establish the first super-polynomial quantum advantage for the tolerant junta testing problem in the adaptive setting. Specifically, we show that within a certain parameter regime, tolerant $k$-junta testing with high precision can be solved using $\mathrm{poly}(k)$ quantum queries, whereas any classical algorithm requires at least $k^{Ω(\log k)}$ queries. The problem of tolerant $k$-junta testing is as follows: given parameters $(k, ε_1, ε_2)$, with $0\le ε_1<ε_2 \le 1/2$, and black-box access to a Boolean function $f$ (defined on $n$ variables), distinguish whether $f$ is $ε_1$-close to some $k$-junta or $ε_2$-far from every $k$-junta. We show the quantum advantage for a range of parameters close to $1/2$, for example, $ε_1 = 1/2-1/k$ and $ε_2 = 1/2-1/(2k^2)$. The (non-adaptive) quantum tester we use was given by a recent work of Bao, Liu, Yao, Ye, and Zhang (SOSA 2026). We slightly adapt their analysis to show that it holds in the above parameter regime. On the other hand, our classical lower bound requires substantial new ideas. Inspired by the lower bound techniques of Chen and Patel (FOCS 2023), we introduce a new hard distribution of ``yes'' instances (i.e., instances with distance at most $ε_1$ to $k$-juntas) that is based on planting an ``approximate-junta'' as follows: we randomly pick $k$ out of $n$ coordinates, and for each fixing of the $k$ coordinates, the $2^{n-k}$ values in the restricted subcube are drawn randomly except for the set of points in an error-correcting code on which we place the same random bit. We show that this distribution is much closer to $k$-juntas than the uniform distribution, but on the other hand, they are indistinguishable with respect to any classical algorithm making $k^{o(\log k)}$ queries.

cs.CCCross-listedarXiv:2606.23194•Leibniz international proceedings in informatics•Jun 23, 2026•1 citation

Testing and Learning Quantum Juntas Nearly Optimally

Thomas Chen, Shivam Nadimpalli, Henry Yuen

We consider the problem of testing and learning quantum k-juntas: n-qubit unitary matrices which act non-trivially on just k of the n qubits and as the identity on the rest. As our main algorithmic results, we give 1. A -query quantum algorithm that can distinguish quantum k-juntas from unitary matrices that are “far” from every quantum k-junta; and 2. A O(4k)-query algorithm to learn quantum k-juntas. We complement our upper bounds for testing and learning quantum k-juntas with near-matching lower bounds of and Ω(4k/k), respectively. Our techniques are Fourier-analytic and make use of a notion of influence of qubits on unitaries. * The full version of the paper can be accessed at https://arxiv.org/abs/2207.05898

arXiv:2207.05898•Society for Industrial and Applied Mathematics eBooks•Jan 1, 2023•54 citations
In the k-junta testing problem, a tester has to efficiently decide whether a given function f: {0,1}n → {0,1} is a k-junta (i.e., depends on at most k of its input bits) or is ∈-far from any k-junta. Our main result is a quantum algorithm for this problem with query complexity Ō(√∈) and time complexity Ō(n√∈). This quadratically improves over the query complexity of the previous best quantum junta tester, due to Atici and Servedio. Our tester is based on a new quantum algorithm for a gapped version of the combinatorial group testing problem, with an up to quartic improvement over the query complexity of the best classical algorithm. For our upper bound on the time complexity we give a near-linear time implementation of a shallow variant of the quantum Fourier transform over the symmetric group, similar to the Schur-Weyl transform. We also prove a lower bound of ω(k1/3) queries for junta-testing (for constant ∈).
In the k-junta testing problem, a tester has to efficiently decide whether a given function f: {0, 1}n → {0, 1} is a k-junta (i.e., depends on at most k of its input bits) or is ∊-far from any k-junta. Our main result is a quantum algorithm for this problem with query complexity and time complexity . This quadratically improves over the query complexity of the previous best quantum junta tester, due to Atıcı and Servedio. Our tester is based on a new quantum algorithm for a gapped version of the combinatorial group testing problem, with an up to quartic improvement over the query complexity of the best classical algorithm. For our upper bound on the time complexity we give a near-linear time implementation of a shallow variant of the quantum Fourier transform over the symmetric group, similar to the Schur-Weyl transform. We also prove a lower bound of Ω(k1/3) queries for junta-testing (for constant ∊).
We determine the quantum query complexity of testing kkk-juntas for Boolean functions, unitaries, and quantum channels. Let nnn denote the number of input bits or qubits and ε\varepsilonε the distance parameter. For all sufficiently large kkk, n≥2kn \ge 2kn≥2k, and 2−k/16≤ε≤1/162^{-k/16} \le \varepsilon \le 1/162−k/16≤ε≤1/16, we establish the following tight bounds. ∙\bullet∙ Junta functions: The query complexity is Θ(k/ε)Θ(\sqrt{k/\varepsilon})Θ(k/ε​), closing the gap left by Ambainis, Belovs, Regev, and de Wolf (SODA 2016) and Bun, Kothari, and Thaler (STOC 2018, ToC 2020). ∙\bullet∙ Junta unitaries: The query complexity is Θ(k/ε)Θ(\sqrt{k}/\varepsilon)Θ(k​/ε), closing the gap left by Chen, Nadimpalli, and Yuen (SODA 2023). With forward-only access, the query complexity is Θ(k/(ε2log⁡k))Θ(k/(\varepsilon^2 \log k))Θ(k/(ε2logk)). At constant ε\varepsilonε, these bounds establish a separation between Θ(k)Θ(\sqrt{k})Θ(k​) queries with forward and inverse access and Θ(k/log⁡k)Θ(k/\log k)Θ(k/logk) queries with forward-only access. ∙\bullet∙ Junta channels: The query complexity is Θ(k/(ε2log⁡k))Θ(k/(\varepsilon^2 \log k))Θ(k/(ε2logk)), closing the gap left by Bao and Yao (COLT 2023, TPAMI 2025). The upper bounds for channels and forward-only unitaries are achieved by nonadaptive, ancilla-free testers using product inputs and single-qubit measurements. Our upper bounds follow from a reduction to \emph{union size testing}, a generalization of support size testing to distributions over subsets of a ground set. We develop optimal testers for this problem both from independent samples and from a reversible sampler. Our matching lower bounds use moment-matching constructions and a phase-masked unitary ensemble. For this ensemble, the average acceptance probability of every forward-only quantum algorithm admits an exact representation in terms of independent classical samples.
In the kkk-junta testing problem, a tester has to efficiently decide whether a given function f:{0,1}n→{0,1}f:\{0,1\}^n\rightarrow \{0,1\}f:{0,1}n→{0,1} is a kkk-junta (i.e., depends on at most kkk of its input bits) or is εεε-far from any kkk-junta. Our main result is a quantum algorithm for this problem with query complexity O~(k/ε)\tilde O(\sqrt{k/ε})O~(k/ε​) and time complexity O~(nk/ε)\tilde O(n\sqrt{k/ε})O~(nk/ε​). This quadratically improves over the query complexity of the previous best quantum junta tester, due to Atıcı and Servedio. Our tester is based on a new quantum algorithm for a gapped version of the combinatorial group testing problem, with an up to quartic improvement over the query complexity of the best classical algorithm. For our upper bound on the time complexity we give a near-linear time implementation of a shallow variant of the quantum Fourier transform over the symmetric group, similar to the Schur-Weyl transform. We also prove a lower bound of Ω(k1/3)Ω(k^{1/3})Ω(k1/3) queries for junta-testing (for constant εεε).
We consider the problem of deciding whether an nnn-qubit unitary (or nnn-bit Boolean function) is ε1\varepsilon_1ε1​-close to some kkk-junta or ε2\varepsilon_2ε2​-far from every kkk-junta, where kkk-junta unitaries act non-trivially on at most kkk qubits and as the identity on the rest, and kkk-junta Boolean functions depend on at most kkk variables. For constant numbers ε1,ε2\varepsilon_1, \varepsilon_2ε1​,ε2​ such that 0<ε1<ε2<10 \lt \varepsilon_1 \lt \varepsilon_2 \lt 10<ε1​<ε2​<1, we show the following.1.A non-adaptive O(klog⁡k)O(k \log k)O(klogk)-query tolerant (ε1,ε2\varepsilon_1, \varepsilon_2ε1​,ε2​)-tester for kkk-junta unitaries when 22ε1<ε22\sqrt2\varepsilon_1 \lt \varepsilon_222​ε1​<ε2​.2.A non-adaptive tolerant (ε1,ε2\varepsilon_1, \varepsilon_2ε1​,ε2​)-tester for kkk-junta Boolean functions with O(klog⁡k)O(k \log k)O(klogk) quantum queries when 4ε1<ε24\varepsilon_1 \lt \varepsilon_24ε1​<ε2​.3.A 2O~(k)2^{\widetilde{O}(k)}2O(k)-query tolerant (ε1,ε2\varepsilon_1, \varepsilon_2ε1​,ε2​)-tester for kkk-junta unitaries for any ε1,ε2\varepsilon_1, \varepsilon_2ε1​,ε2​.The first algorithm provides an exponential improvement over the best-known quantum algorithms [CLL24, ADG25]. The second algorithm shows an exponential quantum advantage over any non-adaptive classical algorithm [CDL+24]. The third tester gives the first tolerant junta unitary testing result for an arbitrary gap.
We establish the first super-polynomial quantum advantage for the tolerant junta testing problem in the adaptive setting. Specifically, we show that within a certain parameter regime, tolerant kkk-junta testing with high precision can be solved using poly(k)\mathrm{poly}(k)poly(k) quantum queries, whereas any classical algorithm requires at least kΩ(log⁡k)k^{Ω(\log k)}kΩ(logk) queries. The problem of tolerant kkk-junta testing is as follows: given parameters (k,ε1,ε2)(k, ε_1, ε_2)(k,ε1​,ε2​), with 0≤ε1<ε2≤1/20\le ε_1<ε_2 \le 1/20≤ε1​<ε2​≤1/2, and black-box access to a Boolean function fff (defined on nnn variables), distinguish whether fff is ε1ε_1ε1​-close to some kkk-junta or ε2ε_2ε2​-far from every kkk-junta. We show the quantum advantage for a range of parameters close to 1/21/21/2, for example, ε1=1/2−1/kε_1 = 1/2-1/kε1​=1/2−1/k and ε2=1/2−1/(2k2)ε_2 = 1/2-1/(2k^2)ε2​=1/2−1/(2k2). The (non-adaptive) quantum tester we use was given by a recent work of Bao, Liu, Yao, Ye, and Zhang (SOSA 2026). We slightly adapt their analysis to show that it holds in the above parameter regime. On the other hand, our classical lower bound requires substantial new ideas. Inspired by the lower bound techniques of Chen and Patel (FOCS 2023), we introduce a new hard distribution of ``yes'' instances (i.e., instances with distance at most ε1ε_1ε1​ to kkk-juntas) that is based on planting an ``approximate-junta'' as follows: we randomly pick kkk out of nnn coordinates, and for each fixing of the kkk coordinates, the 2n−k2^{n-k}2n−k values in the restricted subcube are drawn randomly except for the set of points in an error-correcting code on which we place the same random bit. We show that this distribution is much closer to kkk-juntas than the uniform distribution, but on the other hand, they are indistinguishable with respect to any classical algorithm making ko(log⁡k)k^{o(\log k)}ko(logk) queries.
We consider the problem of testing and learning quantum k-juntas: n-qubit unitary matrices which act non-trivially on just k of the n qubits and as the identity on the rest. As our main algorithmic results, we give 1. A -query quantum algorithm that can distinguish quantum k-juntas from unitary matrices that are “far” from every quantum k-junta; and 2. A O(4k)-query algorithm to learn quantum k-juntas. We complement our upper bounds for testing and learning quantum k-juntas with near-matching lower bounds of and Ω(4k/k), respectively. Our techniques are Fourier-analytic and make use of a notion of influence of qubits on unitaries. * The full version of the paper can be accessed at https://arxiv.org/abs/2207.05898