Manuscript Offprint
arXiv:2610.41694Exponential quantum-classical query separations for cyclic Forrelation
Abstract
We study the randomized classical query complexity of cyclic Forrelation, a cyclic analogue of the -Forrelation problem introduced by Aaronson and Ambainis [AA15, STOC'15] and known to achieve an optimal separation between quantum and randomized query complexities [BS21, STOC'21]. In -cyclic Forrelation, we are given Boolean functions , and the goal is to estimate , where , is the Hadamard gate, and . The problem arises naturally as a normalized-trace estimation problem in the DQC1 query model and can be solved with quantum queries. Its classical query complexity was recently posed as an open problem in [JLS26, FOCS'26], which conjectured a lower bound of .
We establish a nearly complete characterization of the nonadaptive classical query complexity of cyclic Forrelation. For even , we prove a tight bound of for constant additive error. For odd , we obtain a lower bound of and an upper bound of . Surprisingly, the case admits a polylogarithmic-query nonadaptive classical algorithm, disproving the previous conjecture in this case. These results suggest an unexpected parity-dependent structure: the nonadaptive classical query complexity may be governed by the independence number of the -cycle, leading to the exponent , rather than the previously conjectured , which was motivated by a Fourier-growth heuristic. Finally, allowing adaptivity, we prove a lower bound of for every .
Although formally close to -Forrelation, the cyclic structure leads to rather different classical behavior, and the standard techniques for -Forrelation do not apply. Our lower bounds are instead based on hidden-shift collision constructions, and our upper bounds follow from randomized sampling together with cycle-specific conditional-moment estimates. While recent work of Girish [Gir26, STOC'26] has revealed strong limitations of the model, our results provide a systematic understanding of its query advantages over classical computation.
*zhang.yuxin@renyi.hu †changpeng.shao@amss.ac.cn
1 Introduction
Forrelation is a fundamental problem in the study of quantum advantages in the query complexity model. Introduced by Aaronson [Aar10] and generalized by Aaronson and Ambainis [AA15], the -Forrelation problem gives query access to Boolean functions , and the goal is to estimate
(1)
where , and is the Hadamard gate. A quantum algorithm can estimate using queries [AA15]. On the classical side, it is known that any -query quantum algorithm can be simulated by a randomized classical algorithm using queries [AA15, BGGS21]. So for constant additive error, -Forrelation admits a randomized classical algorithm with query complexity [BGGS21, Theorem 4]. Following earlier progress by Tal [Tal20] on the related -Rorrelation problem, Bansal and Sinha [BS21] established a matching lower bound of , showing that the randomized query complexity of -Forrelation is tight up to logarithmic factors. Sherstov, Storozhenko, and Wu [SSW21] independently obtained a similar result for -Rorrelation. Moreover, -Forrelation (with growing polynomially in ) is BQP-complete [AA15], and it underlies the oracle separation of BQP and the polynomial hierarchy [RT19]. Beyond these results, Forrelation and its variants have also been used to establish exponential quantum-classical separations in communication complexity [GRT21, GRZ21] and in the query complexity of matrix functions [MS24], to prove further oracle separations in quantum complexity theory [AIK22], to separate quantum query algorithms with different numbers of rounds of adaptivity [GSTW24], and to construct quantum cryptographic primitives relative to classical oracles [KQST23], etc.
In this paper, we study how much quantum query advantage is possible in a restricted model of quantum computation. The one-clean-qubit model, also known as DQC1 (deterministic quantum computation with one qubit), was introduced by Knill and Laflamme [KL98] to capture the computational power of quantum systems whose state is almost completely mixed. In this model, a polynomial-size unitary circuit acts on the initial state
in which only the first qubit is pure and is measured at the end of the computation. Although DQC1 is contained in BQP and is believed to be strictly weaker, it provides a natural setting for understanding the resources underlying quantum computational advantages.
Despite its simple structure and limited purity, DQC1 can efficiently solve certain problems for which no efficient classical algorithms are known. A natural task in this model is estimating normalized traces of unitaries. If one applies a Hadamard gate to the clean qubit, then a unitary controlled by it, and then another Hadamard gate, the clean qubit is measured as 0 with probability
so repetitions suffice to estimate to additive error . This problem is DQC1-complete [KL98, She06], and underlies many other natural DQC1-complete problems, such as approximating Jones polynomials [SJ08] and estimating spectral sums such as the normalized trace of the inverse [EHLG25]; see [JLS+26] and the references therein. Moreover, it was shown that, for suitable variants of the model, efficient classical simulation of DQC1 would collapse the polynomial hierarchy [MFF14, FKM⁺¹⁸]. These results provide complexity-theoretic evidence for the computational advantage of DQC1 over classical computation. A complementary approach is to establish unconditional quantum-classical separations, as has been achieved in the one-clean-qubit communication model [KL21, AGL23]. In this work, we turn to query complexity, which provides another natural framework for studying the computational advantages of DQC1 unconditionally.
The DQC1 query model has the same alternating circuit structure as the standard quantum query model, with the restrictions on initial states and measurement described above. The input consists of Boolean functions , accessed through their phase oracles . In a -query DQC1 algorithm, the unitary in the circuit above has the form
where are unitaries independent of input and each is one of the given oracles. Recently, Girish [Gir26] showed that 2-Forrelation requires queries in the DQC1 model, establishing an exponential query complexity separation between DQC1 and BQP.
While this result highlights the limitations of DQC1 relative to BQP, a complementary question is whether DQC1 can nevertheless offer substantial query advantages over classical computation. To establish such an advantage, we seek problems that DQC1 can solve efficiently but are hard for classical algorithms. The central role of normalized trace estimation suggests a natural candidate: a cyclic analogue of Forrelation. Whereas standard Forrelation in (1) is defined by a matrix element of a product of Hadamard transforms and diagonal phase oracles, replacing the matrix element by a normalized trace leads to a cyclic analogue. This seemingly simple modification makes the problem naturally suited to DQC1, while its classical query complexity remains unclear. A lower bound on its classical query complexity was conjectured in [JLS⁺²⁶]. In this paper, we systematically study the randomized classical query complexity of this problem, in both the nonadaptive and adaptive settings.
Cyclic Forrelation. We consider a cyclic analogue of the -Forrelation problem, replacing a matrix entry by a normalized trace:
(2)
We define -cyclic Forrelation as the problem of estimating . Since all matrices involved are real and orthogonal, is a real number in . Compared with , the phase differs in a single term: the phase of follows the path , whereas the additional term in closes this path into a cycle. Each run of the DQC1 circuit with makes one query to each , so can be estimated to constant additive error using queries in DQC1, as shown in Figure 1. Moreover, just as Forrelation is BQP-complete, when is allowed to grow with the input size, estimating is DQC1-complete [JLS⁺²⁶, Proposition 1.3]. Cyclic Forrelation also plays a central role in establishing exponential classical query lower bounds for estimating normalized traces of functions of sparse Hamiltonians [JLS⁺²⁶].
Since is applied controlled by the clean qubit, each is implemented as a controlled-, which counts as one query. Each controlled- operation can be implemented using one query to the standard oracle and Hadamard gates on the answer qubit [Gir26, Section 2.2].

Figure 1: A k-query DQC1 circuit for k-cyclic Forrelation.
The classical complexity of cyclic Forrelation. Much less is known about the classical query complexity of cyclic Forrelation. For , Shepherd's hidden-subspace construction [She10, Proposition 3.3.6] establishes a deterministic classical query lower bound for a closely related normalized-trace problem. However, the randomized classical query complexity of cyclic Forrelation remained largely unexplored. For general , it was conjectured in [JLS26, Conjecture 1.4] that estimating to constant additive error requires classical queries. Using a similar technique as in [BS21], one can prove a lower bound of , but only for additive error of order , which is too small to be meaningful. The classical query complexity of cyclic Forrelation thus remained open, even for , a gap remained between the known lower bound and the conjectured .
- Even case (Theorems 4 and 10): For and ,
This confirms Conjecture 1.4 of [JLS26] for nonadaptive algorithms.
-
(Proposition 15): Surprisingly, can be efficiently estimated to additive error using nonadaptive queries. This refutes the conjecture for , where it predicts , and contrasts sharply with 3-Forrelation, which requires randomized queries [BS21].
-
Odd case (Theorem 8 and Corollary 12): For odd and constant ,
The full -dependent bounds match when (see Remark 13).
²We count the total number of queries to all functions in the worst case over inputs and internal randomness. The success probability is over the algorithm's internal randomness. A nonadaptive algorithm fixes all queries before any answers are observed, while an adaptive algorithm may choose queries based on previous answers.
³In contrast to Forrelation, when , we have , the product of the zeroth Fourier coefficients of and , which can be efficiently estimated classically.
- Adaptive lower bound (Theorem 16): By adapting Shepherd's hidden-subspace construction [She10] to Boolean phase oracles, we establish an lower bound against randomized adaptive classical algorithms for every .
| Nonadaptive lower bound | Nonadaptive upper bound | Adaptive lower bound | |
|---|---|---|---|
| 2 | — | — | |
| 3 | — | Prop. 15 | — |
| even | Cor. 5 | Thm. 10 | Thm. 16 |
| odd | Cor. 9 | Cor. 12 | Thm. 16 |
Table 1: Classical query complexity of cyclic Forrelation for constant additive error.
Our results suggest that the nonadaptive query complexities of and may have the same polynomial dependence on , revealing an unexpected parity-dependent structure. In particular, we conjecture that the complexity exponent is determined by , which is the independence number of the -cycle for , rather than by itself.
Conjecture 1. For every and every constant ,
Our results confirm this conjecture for even and, up to polylogarithmic factors, for . For odd , our lower bound has the conjectured exponent, while a matching upper bound remains open (see Remark 14). For odd , this prediction differs from the exponent suggested by the Fourier-growth heuristic in [JLS26]. This contrasts with the standard -Forrelation problem, for which Fourier-analytic methods yield the optimal randomized query complexity exponent (see, e.g., [BS21]). Our results suggest that the cyclic structure introduces additional features that are not reflected in the Fourier degree or the levelwise -norms of the Fourier coefficients alone.
1.2 Technical overview
Nonadaptive lower bounds. We illustrate the main idea behind our lower bound for the case . In this case, admits the following simple expression:
If we choose for some unknown , then
This expression measures the correlation between and a shift of . In particular, if and only if for every , while if and only if for every .
For , define the character . For a function , we use the normalized Fourier transform , where is uniform on . For background on Fourier analysis of Boolean functions, we refer to [O'D14].
This observation motivates the following construction. Let be a hidden sign, and let be a uniformly random Boolean function. Define . Then we have .
We therefore define our hard input distribution as follows. Choose and independently and uniformly at random, and choose an independent uniformly random Boolean function . Set
By construction, for every input in the support of this distribution. Thus, estimating to additive error suffices to recover by the sign of the estimate.
The key observation is that a classical algorithm can obtain information about only by finding a collision between queries to and . Indeed, for any satisfying , we have . Conversely, if no such collision occurs, the sets of entries of accessed through and are disjoint. Consequently, the joint distribution of the query answers is independent of , and the algorithm cannot distinguish from with nonzero advantage.
Now consider a randomized nonadaptive algorithm making at most queries. Condition on its internal randomness, and let denote the resulting fixed query sets for and , respectively. Define the collision event
Since is uniformly random, for every fixed pair , we have . By the union bound,
where the last inequality follows from and the AM-GM inequality. Averaging over the algorithm's internal randomness gives . If does not occur, the query transcript is independent of . Since is uniformly random, the algorithm can correctly determine with probability at most in this case. On the other hand, if occurs, we upper-bound the success probability by 1. Therefore, by conditioning on whether a collision occurs,
Consequently, achieving a constant distinguishing advantage requires .
The same idea naturally extends to the general 2m-function case. Instead of hiding a single shift between two random functions, we introduce independent hidden shifts and random functions, and construct the final function so that all these random functions cancel when the corresponding query locations are correctly matched. We then choose the remaining character functions to ensure that . To recover , a nonadaptive classical algorithm must find an -way collision satisfying all hidden-shift relations simultaneously. Since each fixed candidate tuple satisfies these relations with probability , the probability of finding such a collision with queries is at most . Consequently, achieving a constant distinguishing advantage requires .
The lower bound for the odd case follows naturally from the even case. For odd , the key idea is to modify the even-cycle hard instances using fixed quadratic phases and append one additional known oracle. This construction transforms the even-cycle identity into , where is a known constant satisfying . Since the additional phase functions are completely known, every query to the odd-cycle oracles can be simulated using the original even-cycle oracles without increasing the number of queries, while preserving nonadaptivity. Consequently, the odd-cycle construction inherits the same collision-based lower bound as the even case, giving nonadaptive classical queries for functions.
Nonadaptive classical algorithms. We again illustrate the main idea for . Write
so that for independent uniform . For each , we independently sample uniform points and query at these points. We then form the unbiased estimator
Although the estimator contains terms, it requires only oracle queries. Clearly, . The main challenge is to bound the variance, namely, to control the correlations between these terms in . We bound the variance by grouping pairs of summands according to their shared sample indices, as in the standard variance analysis of -statistics [Hoe48]. Pairs with no shared samples are independent. Among pairs sharing two coordinates, opposite positions in the cycle give the largest contribution. For example, averaging over gives
By Parseval's identity, its squared norm is at most , giving a variance contribution of at most as there are pairs of sampling indices with this coincidence pattern. Accounting for all overlap patterns yields
Thus suffices to estimate to any prescribed constant additive error with success probability at least 2/3.
The same estimator extends to general . The overlap analysis reflects the geometry of the cycle: shared coordinates containing adjacent positions admit stronger moment bounds than those forming an independent set. For , the resulting variance bound is
The two terms arise from maximum independent sets and full overlap, respectively. For even , both are controlled at the scale , matching our constant-error lower bound. For odd
, the independent-set term is controlled at the smaller scale , but the full-overlap term still requires . This explains why this estimator does not close the gap in the odd case.
The case admits a substantially faster algorithm based on a different idea. The key observation is that we can express as
where wt(s) refers to the Hamming weight of , and . By the Parseval identity and the Cauchy–Schwarz inequality, the terms for which is small contribute negligibly to the sum. Thus, it suffices to identify the heavy Fourier coefficients of and estimate the corresponding coefficients of and . Using a nonadaptive implementation of the Goldreich–Levin algorithm [GL89,O'D14], we obtain an -query classical algorithm for constant additive error.
Adaptive lower bounds. The nonadaptive hard instances above are easy for adaptive algorithms. For , querying at the standard basis vectors reveals , after which two further queries determine . Thus these instances can be solved with only adaptive queries.
To obtain an adaptive lower bound, we hide this structure using random signs on cosets of a hidden subspace and its orthogonal complement, following Shepherd [She10]. Choose a uniformly random subspace of dimension , independent uniform shifts , and an independent uniform sign . Let and be independent uniformly random sign functions on and , respectively. Define
The orthogonality of and ensures that , while the random coset signs conceal the character phases. Every query that accesses a previously unused entry of or returns a fresh uniformly random sign. Consequently, information about can arise only when distinct oracle-input pairs access the same random mask.
The main issue is to control this collision event despite adaptivity. We first run the algorithm against four independent uniformly random Boolean functions. Although the queries depend on previous answers, this ideal query sequence is independent of the hidden subspace and shifts. We couple the real and ideal executions so that they agree until the first repeated mask. Conditioned on the ideal query sequence, any pair of distinct queries accesses the same mask with probability , by the randomness of the subspace and shifts. A union bound therefore bounds the collision probability after queries by
Until this event occurs, the transcript carries no information about , yielding the adaptive lower bound . Padding with constant oracles extends the bound to larger even , and the quadratic-phase construction extends it to odd .
1.3 Discussion
We discuss several observations and questions that emerged during the course of our investigation.
The conjectured parity effect. Two features of our proofs motivate Conjecture 1. On the lower-bound side, for , our hard distributions require an -way collision, where , yielding the exponent . On the upper-bound side, the conditional second-moment bound improves by a factor of whenever the overlap pattern contains two adjacent positions of the cycle (Claim 11). Among independent overlap sets, the largest have size , again giving the query scale .
For odd , all proper-overlap contributions can be controlled at this conjectured scale. The obstruction in our variance analysis is the full-overlap term, corresponding to two summands using the same samples at every oracle position. This term is of order , where is the number of samples per oracle, and leads to the larger scale (Remark 14). This restriction arises from the current estimator and does not establish a barrier for other nonadaptive algorithms.
The case provides evidence that this obstruction can be overcome. The same sampling analysis gives a query bound of , whereas our specialized algorithm uses only polylogarithmically many queries, consistent with the conjectured exponent. That algorithm relies on a Fourier identity specific to the three-cycle. Whether a different estimator or a related algebraic approach can achieve the conjectured exponent for larger odd cycles remains open.
Adaptive versus nonadaptive lower bounds. The distinction between adaptive and nonadaptive algorithms is essential to our lower-bound constructions. Our nonadaptive hard distribution hides a sign in correlations between randomly shifted functions, while the shifts themselves are encoded by character oracles. An adaptive algorithm can first recover these shifts by querying the character oracles on the standard basis vectors, and then query the random-mask oracles at the corresponding shifted locations to determine the hidden sign. Consequently, increasing the number of hidden shifts strengthens the nonadaptive lower bound but does not make this construction hard for adaptive algorithms. Our adaptive lower bound therefore uses a different construction, in which random functions on hidden cosets conceal the locations of the relevant correlations.
The exponent for adaptive lower bound arises from our coupling argument, which bounds the probability of the first collision between hidden coset labels. A natural approach to strengthening the lower bound for general would be to introduce more hidden shifts and random coset functions, as in the nonadaptive case. However, this does not immediately lead to stronger adaptive lower bounds. In our construction, the hidden quotient spaces contain approximately cosets, so pairwise collisions already occur at the birthday-paradox scale , as in related hidden-subgroup problems [Sim97, She10, YHLW21]. Thus, our coupling argument, which relies on the absence of such collisions, cannot yield a stronger lower bound.
More importantly, unlike nonadaptive algorithms, adaptive algorithms may exploit these early collisions to learn information about the hidden subspaces or shifts, and then use this information to choose subsequent query locations. For instance, in natural extensions that reuse the same hidden subspace, learning this subspace can make the remaining shifts much easier to recover. Consequently, introducing additional hidden shifts does not necessarily force adaptive algorithms to discover higher-order collisions by chance. Stronger lower bounds may therefore require a more refined analysis of the information revealed by partial collisions, or fundamentally different hard distributions in which the relevant correlations remain difficult to locate even after some hidden structure has been learned. In particular, the exponent is a limitation of our current approach, rather than a known barrier for adaptive query complexity.
2 Nonadaptive classical query complexity lower bounds
2.1 Even-cycle case
Construction 2 (The multi-shift distribution). Choose independent uniformly distributed shifts , and set . Let for . Choose independent uniform random Boolean functions , and an independent uniform sign . Define
The 2m-input functions are
(8)
The following identity is the algebraic core of the construction.
Proposition 3. For every realization of Construction 2, we have
and
Proof. We first derive a Fourier representation of . Expanding the normalized trace and grouping the variables at odd and even positions gives
where . By the definition of the Fourier transform, this becomes
Setting and for , with , we obtain
Now consider the functions in Construction 2. Since and if and 0 otherwise, the product of Fourier coefficients is nonzero only when , for . Since , these conditions successively imply for all , and the last condition is automatically satisfied. Thus the Fourier sum reduces to a single term:
Substituting and , we obtain
Finally, since is unitary and , we must have , as claimed.
The Fourier representation also explains the motivation behind Construction 2. By choosing the odd-indexed oracles as character functions, their Fourier coefficients force the summation variables to equal the prescribed hidden shifts . The final oracle is then chosen so that all random functions cancel in the resulting correlation, leaving only the hidden sign . This structure also motivates the -way collision argument used in the following lower-bound proof.
Theorem 4 (Even-cycle nonadaptive lower bound). For every integer and , we have
Proof. We use Construction 2, but replace the last oracle by
where is a random sign function, independent of and . The same calculation as in Proposition 3 gives . Consequently,
Consider a randomized nonadaptive algorithm making at most queries. Condition on its internal randomness, and let be its fixed query set for , where . Define the collision event
and let , so event occurs if and only if .
We next bound the expected number of collisions. For any fixed tuple , the collision conditions determine the hidden shifts: , for . Since the shifts are independent and uniformly random, these conditions hold with probability . Since , linearity of expectation and AM-GM inequality give
Averaging over the algorithm's internal randomness gives
First, take so that under our hard distribution. Any -additive estimator determines by taking the sign of its estimate, since . When does not occur, the query answers reveal no information about the uniform sign . Therefore,
Achieving success probability at least 2/3 requires
We now strengthen this bound to capture the dependence on . For , conditional on , we choose independently according to
Let and denote the joint distributions of the algorithm's randomness, the shifts, and all query answers when and , respectively. We next bound the total variation distance between and . Note that if and are distributions of independent signs with means and , respectively, then
where the first inequality follows from Cauchy-Schwarz. Averaging the bound and using (13) gives
On the other hand, conditional on ,
Chebyshev's inequality gives
Whenever the estimator succeeds and , its output has sign . It therefore determines with probability at least . For equal prior probabilities, any test has success probability at most . Hence (16) and gives
which implies
When does not occur, the joint distribution of all query answers is independent of . Indeed, for every , at least one factor has not been directly queried and remains a uniform random sign. Since distinct locations use disjoint sets of entries of the , the answers at these remaining locations are independent uniform signs, independent of and the answers at collision locations.
This choice ensures the probability in (15) is smaller than 1, and the lower bound in (17) is positive.
where the last inequality uses .
The bound (14) already covers and bounded . For sufficiently large , applying (18) gives for all . Altogether, we obtain
as claimed.
Corollary 5. For every fixed integer and constant accuracy , we have
Remark 6 (The role of nonadaptivity). The hard distribution above is not difficult for adaptive algorithms. The collision estimate (13) uses the fact that the query sets are independent of the hidden shifts. An adaptive algorithm can recover by querying the first character oracles, using queries, hence recover the hidden shifts, since . For any chosen , it can then query and using further queries. These answers recover for Construction 2, or for the modified construction. Thus Theorem 4 is specifically a nonadaptive lower bound, it does not imply the same lower bound for unrestricted adaptive classical algorithms.
2.2 Odd-cycle case
We now extend the even-cycle lower bound to the odd-cycle case, which requires an additional algebraic ingredient. Since our even-cycle hard instances satisfy in Proposition 3, simply appending a factor yields a normalized trace of magnitude at most . Thus, such a direct extension cannot preserve a constant trace gap. To overcome this obstruction, we introduce a three-Hadamard quadratic cap, which allows us to construct the odd-cycle hard distribution from the even-cycle one while preserving a constant trace gap. Since the additional phase functions are explicitly known, the same collision analysis applies.
Denote the quadratic phase function
and define
where . Let
Lemma 7. We have
Proof. Write
and let if , and otherwise. Thus and . Expanding the normalized trace gives
Let . Since , we have
(mod 2).
This choice of cancels the inner product terms from the Hadamard matrices. Replacing gives
For each , has solutions. Thus
Finally, since , , and
we have
So when (mod 4), we have u = 0 and
When , we have u = 1 and
The claims now follow directly.
The choice of is essential when . Without the correction , there would be no need to introduce , as we could simply take throughout. Hence by (20) when . By choosing , we instead have , which gives (21), and so . Thus the correction prevents the cancellation and ensures that for all .
Theorem 8 (Odd-cycle nonadaptive lower bound). For every integer and ,
Proof. We construct a hard distribution for using Construction 2, with the modification introduced in the proof of Theorem 4. The even-cycle hard distribution consists of the Boolean functions
We now define Boolean functions by
Similarly to Proposition 3, . Then we have
Consequently,
where is the y-th diagonal entry
Note that we have
We next prove the query lower bound. Each query to for can be simulated by one query to at the same location, followed by multiplication by a known sign. The last oracle is completely known. Thus the simulation preserves nonadaptivity and does not increase the number of queries. Consider a randomized nonadaptive algorithm making at most queries, and let denote the collision event in the even-case:
The same collision counting arguments apply. Taking gives . Since , any additive- estimator with can determine from the sign of its estimate divided by . Now the argument leading to (14) therefore gives
For , conditional on , choose the values independently with mean and variance using a similar construction to (15). By (22) and (23),
Since , the same concentration and testing argument as in the even-case proof applies, using the sign of the estimate divided by to determine . Together with the total variation estimate with bias , this gives
The remaining ranges of and follow from (24) and monotonicity in , as in the even-case proof, which yields the claimed complexity.
Corollary 9. For every fixed integer and constant accuracy , we have
3 A randomized nonadaptive algorithm
For even , we now present a randomized nonadaptive algorithm that estimates to additive error , with query complexity matching the lower bound in Theorem 4.
Theorem 10. For every even integer , , and , there exists a randomized nonadaptive classical algorithm that estimates to additive error with success probability at least , using
oracle queries.
Proof. Writing , define
Expanding the normalized trace gives
where are independent and uniformly distributed over .
For each function , independently sample uniform points and query at these locations. All query locations are chosen in advance. We define the estimator
Clearly, . Thus, it remains to bound the variance. For any nonempty subset , define and
where the coordinates in are fixed and all remaining coordinates are independent and uniform. We regard as the vertex set of the -cycle graph. A subset is called independent if it contains no two adjacent vertices.
Claim 11. For every nonempty , let . Then
In fact, equality holds in the second case.
Proof of Claim 11. List the vertices of in cyclic order as , with . For each , consider the segment of the cycle from to , and denote its vertices in order by . Define . Thus, the element represents the sum over all intermediate variables along this segment. In particular, if the two vertices are adjacent, then . Expanding the matrix products gives
Define matrix via . Since is orthogonal, is doubly stochastic. Taking the squared norm yields
Since a product of doubly stochastic matrices is doubly stochastic, . This proves the first bound.
If contains two adjacent vertices, then at least one , so , where is the all-ones matrix. Since for every doubly stochastic matrix , we obtain . Consequently, , and hence . This proves the second bound.
We now use Claim 11 to analyze the variance of the estimator. Consider two terms in sum (28). Let be the set of coordinates in which their sample indices coincide. This is the standard variance decomposition for (multi-sample) U-statistics [Hoe48]. Conditioned on the shared samples, all other samples are independent. Hence the expectation of the product of the two terms is . For a fixed overlap pattern , the probability that two uniformly chosen index tuples coincide exactly in the coordinates of is . Writing , we therefore obtain
Applying Claim 11 gives
To bound the variance, we use the fact that every independent set of the even -cycle has size at most . Choose
If , we query all oracle values and compute exactly. Otherwise, we use the estimator above. Let . For an independent set with ,
For a non-independent set , we have , and similarly,
Consequently, . Our choice of implies . Since and ,
Chebyshev's inequality now gives
Thus, the estimator achieves additive error with constant success probability, using
queries. To increase the success probability to , we run the algorithm independently times and take the median of the estimates. This increases the query complexity by a factor of .
Although the above algorithm was presented for even , its estimator and conditional-moment bound remain valid for odd . We obtain the following upper bound.
Corollary 12. For every odd integer and constant , there exists a randomized nonadaptive classical algorithm that estimates to additive error with success probability at least 2/3, using
oracle queries.
Proof. The estimator (28) and Claim 11 remain valid for odd . Thus, the same variance bound applies. Choose , where depends only on and . Every independent set of the cycle graph satisfies , so
For every non-independent set , we similarly have , since . The same variance bound therefore gives
Choosing sufficiently large and applying Chebyshev's inequality completes the proof.
Remark 13. The dependence on can be made explicit. For every odd and , the same estimator achieves constant success probability using
oracle queries. The first term inside the maximum dominates when . In this regime, the upper bound matches the lower bound in Theorem 8. For constant , a gap remains between our lower and upper bounds:
Remark 14. For odd , the variance analysis reveals a specific obstacle to achieving the conjectured query complexity . Indeed, suppose we choose . For every nonempty proper subset , the variance contribution is bounded by if is independent, since ; and by , otherwise, since . The only obstruction comes from the full-overlap term , whose contribution to the variance is exactly
where and . Thus, the present Cartesian-product estimator cannot achieve bounded variance at the conjectured query scale. If this full-overlap contribution could be suppressed while retaining the bounds for all proper subsets, the resulting variance analysis would yield a matching nonadaptive upper bound. Whether a different estimator can achieve this remains an interesting open question.
4 A fast randomized algorithm for estimating
We show that can be estimated with nonadaptive classical queries for any fixed additive error and constant success probability.
Expanding the normalized trace gives
The key observation is the identity
where denotes the Hamming weight of x. Define
Since , we have
Fourier inversion gives
The Fourier representation shows that it suffices to identify the heavy Fourier coefficients of . Indeed, for any , define . By Parseval's identity, . Moreover, Cauchy-Schwarz gives
Thus, the total contribution from the terms indexed by is at most in absolute value. We use the Goldreich–Levin algorithm [O'D14, Section 3.5] to identify the indices for which . For completeness, we briefly explain how its Fourier-prefix search can be implemented with nonadaptive oracle queries in our setting.
For a prefix , let
Writing , where and , Parseval's identity gives
This is [O'D14, Proposition 3.40], adapted to complex-valued Boolean functions.
Each sample in (31) requires only two queries to , at locations and . The key observation is that, for each fixed , these query locations are independent of the prefix , only the factor depends on . Thus, the same query answers can be used to estimate for different prefixes . We can therefore make all oracle queries in advance and then identify the large Fourier coefficients using only classical postprocessing. In particular, the algorithm is nonadaptive.
Proposition 15. For every and , there exists a randomized nonadaptive classical algorithm that estimates to additive error with success probability at least , using
oracle queries. In particular, for constants , the query complexity is .
Proof. Let and . By the standard Goldreich–Levin algorithm, applied to the prefix energies in (31), we can identify a set such that , with probability at least , using queries to . Here the prefix energies are estimated to additive error , and at most prefixes are examined at each level. As observed above, all queries can be chosen in advance, independently of the prefixes examined during the search.
Next, let . Independently query each oracle at uniformly random locations, and use these samples to estimate for every . By Hoeffding's inequality and a union bound, with probability at least , all these estimates satisfy . We output the estimate
On the joint success event, the contribution from indices outside is at most . Moreover, by the triangle inequality and Parseval's identity, we have
A telescoping expansion, followed by Cauchy-Schwarz, gives
Consequently, . The success probability is at least . The total number of queries is . All oracle queries are chosen in advance, so the algorithm is nonadaptive.
5 Adaptive classical query complexity lower bounds
We briefly consider adaptive classical algorithms. By adapting Shepherd's hidden-subspace construction [She10, Proposition 3.3.6] to Boolean phase oracles, we obtain a uniform randomized query lower bound for cyclic Forrelation.
Theorem 16. For every integer and ,
Proof. We first consider . Let be a uniformly random subspace of dimension . Choose independent uniform and , and independent uniform Boolean functions and . Define
Note that since is constant on cosets of . Moreover, we have and for . Thus by the Fourier representation of in (6),
Consider an adaptive algorithm making at most queries. We may assume that no oracle-location pair is queried twice. Run the algorithm in an ideal experiment with four independent uniform random Boolean oracles. The resulting adaptive query sequence is independent of the hidden parameters .
We couple this ideal experiment with the planted distribution. Suppose the algorithm queries at with the answer . If the label has not appeared previously, then is still an unused independent uniform sign. We may therefore choose its value so that the planted answer agrees with the corresponding ideal answer. The same is true for queries to , whose hidden -label is , and similarly for and , whose hidden -labels are and , respectively. Consequently, the planted and ideal executions can be made identical until the algorithm queries a hidden - or -label that has already appeared before. Thus it suffices to bound the probability that such a collision occurs.
Let denote such a collision along the ideal query sequence. Since this sequence is independent of , we may fix it when bounding . For two distinct queries to the same oracle, the collision probability is or . For queries to different oracles sharing or , the uniform shift gives collision probability or . Since there are at most pairs of queries, the union bound gives
The ideal transcript and are jointly independent of , and the two executions coincide on . Consequently, any guess satisfies
Since , a successful estimate with determines . Success probability at least 2/3 thus requires .
For even , append constant-one oracles and use . For , let be an input above. Its four-oracle operator is orthogonal with normalized trace , and hence equals . Using from Subsection 2.2, let
The construction gives , where . Each query to this input requires at most one query to the corresponding , and is known. A successful estimate with therefore determines from the sign of its output divided by . The same lower bound follows for . Appending constant-one oracles extends it to every odd .
6 Conclusion
In this work, we studied the classical query complexity of cyclic trace Forrelation. We obtained tight nonadaptive bounds for every fixed even cycle length, polynomial lower and upper bounds with a remaining exponent gap for odd cycle lengths, a polylogarithmic-query classical algorithm for , and a uniform polynomial lower bound for adaptive classical algorithms. These results show that cyclic Forrelation exhibits a rich dependence on the cycle length and on whether classical queries are adaptive. Determining the optimal odd-cycle and adaptive complexities, and understanding how these phenomena extend to more general inter-query unitaries, remain interesting directions for future work.
Acknowledgment
CS was supported by the National Key Research Project of China under Grant No. 2025YFA1017200. YZ was supported by the European Research Council (ERC) via the Starting Grant QuanThermal (101222179). We would like to thank Kewen Wu for his helpful discussions.
AI disclosure: The lower bound results in this paper were developed in part through interactive discussions with GPT-5.6 Plus, which was used to explore possible proof ideas and formulations. The manuscript was written by the authors, with assistance from GPT-6 in revising the exposition, polishing the language, and checking the arguments. All mathematical statements and proofs were verified by the authors, who take full responsibility for the content of the paper.
References
[AA15] Scott Aaronson and Andris Ambainis. Forrelation: A problem that optimally separates quantum from classical computing. In Proceedings of the 47th Annual ACM Symposium on Theory of Computing (STOC), pages 307–316, 2015. doi:10.1145/2746539.2746547.
[Aar10] Scott Aaronson. BQP and the polynomial hierarchy. In Proceedings of the 42nd Annual ACM Symposium on Theory of Computing (STOC), pages 141–150, 2010. doi:10.1145/1806689.1806711.
[AGL23] Srinivasan Arunachalam, Uma Girish, and Noam Lifshitz. One clean qubit suffices for quantum communication advantage. arXiv:2310.02406, 2023. doi:10.48550/arXiv.2310.02406.
[AIK22] Scott Aaronson, DeVon Ingram, and William Kretschmer. The acrobatics of BQP. In 37th Computational Complexity Conference (CCC 2022), volume 234 of LIPIcs, pages 20:1–20:17, 2022. doi:10.4230/LIPIcs.CCC.2022.20.
[BGGS21] Sergey Bravyi, David Gosset, Daniel Grier, and Luke Schaeffer. Classical algorithms for Forrelation. arXiv:2102.06963, 2021. doi:10.48550/arXiv.2102.06963.
[BS21] Nikhil Bansal and Makrand Sinha. k-Forrelation optimally separates quantum and classical query complexity. In Proceedings of the 53rd Annual ACM Symposium on Theory of Computing (STOC), pages 1303–1316, 2021. arXiv:2008.07003. doi:10.1145/3406325.3451040.
[EHLG25] Roman Edenhofer, Atsuya Hasegawa, and François Le Gall. Dequantization and hardness of spectral sum estimation. arXiv:2509.20183, 2025. doi:10.48550/arXiv.2509.20183.
[FKM+18] Keisuke Fujii, Hirotada Kobayashi, Tomoyuki Morimae, Harumichi Nishimura, Shuhei Tamate, and Seiichiro Tani. Impossibility of classically simulating one-clean-qubit model with multiplicative error. Physical Review Letters, 120(20):200502, 2018. doi:10.1103/PhysRevLett.120.200502.
[Gir26] Uma Girish. Fourier spectrum of noisy quantum algorithms. In Proceedings of the 58th Annual ACM Symposium on Theory of Computing (STOC), pages 305–313, 2026. arXiv:2510.06385. doi:10.1145/3798129.3800750.
[GL89] Oded Goldreich and Leonid A Levin. A hard-core predicate for all one-way functions. In Proceedings of the 21st Annual ACM Symposium on Theory of Computing (STOC), pages 25–32, 1989. doi:10.1145/73007.73010.
[GRT21] Uma Girish, Ran Raz, and Avishay Tal. Quantum versus randomized communication complexity, with efficient players. In 12th Innovations in Theoretical Computer Science Conference (ITCS), volume 185 of LIPIcs, pages 54:1–54:20, 2021. doi:10.4230/LIPIcs.ITCS.2021.54.
[GRZ21] Uma Girish, Ran Raz, and Wei Zhan. Lower bounds for XOR of forrelations. In Approximation, Randomization, and Combinatorial Optimization. Algorithms and Techniques (APPROX/RANDOM), volume 207 of LIPIcs, pages 52:1–52:14, 2021. doi:10.4230/LIPIcs.APPROX/RANDOM.2021.52.
[GSTW24] Uma Girish, Makrand Sinha, Avishay Tal, and Kewen Wu. The power of adaptivity in quantum query algorithms. In Proceedings of the 56th Annual ACM Symposium on Theory of Computing (STOC), pages 1488–1497, 2024. doi:10.1145/3618260.3649621.
[Hoe48] Wassily Hoeffding. A class of statistics with asymptotically normal distribution. The Annals of Mathematical Statistics, 19(3):293–325, 1948. doi:10.1214/aoms/1177730196.
[JLS 26] Zhengfeng Ji, Tongyang Li, Changpeng Shao, Xinzhao Wang, and Yuxin Zhang. DQC1-completeness of normalized trace estimation for functions of log-local Hamiltonians. arXiv:2604.01519, 2026. to appear in FOCS 2026. doi:10.48550/arXiv.2604.01519.
[KL98] Emanuel Knill and Raymond Laflamme. Power of one bit of quantum information. Physical Review Letters, 81(25):5672, 1998. doi:10.1103/PhysRevLett.81.5672.
[KL21] Hartmut Klauck and Debbie Lim. The power of one clean qubit in communication complexity. In 46th International Symposium on Mathematical Foundations of Computer Science (MFCS), volume 202 of LIPIcs, pages 69:1–69:23, 2021. doi:10.4230/LIPIcs.MFCS.2021.69.
[KQST23] William Kretschmer, Luowen Qian, Makrand Sinha, and Avishay Tal. Quantum cryptography in Algorithmica. In Proceedings of the 55th Annual ACM Symposium on Theory of Computing (STOC), pages 1589–1602, 2023. doi:10.1145/3564246.3585225.
[MFF14] Tomoyuki Morimae, Keisuke Fujii, and Joseph F Fitzsimons. Hardness of classically simulating the one-clean-qubit model. Physical Review Letters, 112(13):130502, 2014. doi:10.1103/PhysRevLett.112.130502.
[MS24] Ashley Montanaro and Changpeng Shao. Quantum and classical query complexities of functions of matrices. In Proceedings of the 56th Annual ACM Symposium on Theory of Computing (STOC), pages 573–584, 2024. doi:10.1145/3618260.3649665.
[O'D14] Ryan O'Donnell. Analysis of Boolean Functions. Cambridge University Press, 2014. doi:10.1017/CB09781139814782.
[RT19] Ran Raz and Avishay Tal. Oracle separation of BQP and PH. In Proceedings of the 51st Annual ACM Symposium on Theory of Computing (STOC), pages 13–23, 2019. doi:10.1145/3313276.3316315.
[She06] Daniel James Shepherd. Computation with unitaries and one pure qubit. arXiv preprint quant-ph/0608132, 2006. doi:10.48550/arXiv.quant-ph/0608132.
[She10] Daniel James Shepherd. Quantum complexity: restrictions on algorithms and architectures. arXiv:1005.1425, 2010. doi:10.48550/arXiv.1005.1425.
[Sim97] Daniel R. Simon. On the power of quantum computation. SIAM Journal on Computing, 26(5):1474–1483, 1997. doi:10.1137/S0097539796298637.
[SJ08] Peter W Shor and Stephen P Jordan. Estimating Jones polynomials is a complete problem for one clean qubit. Quantum Information & Computation, 8(8-9):681–714, 2008. doi:10.26421/QIC8.8-9-1.
[SSW21] Alexander A. Sherstov, Andrey A. Storozhenko, and Pei Wu. An optimal separation of randomized and quantum query complexity. In Proceedings of the 53rd Annual ACM Symposium on Theory of Computing (STOC), pages 1289–1302, 2021. doi:10.1145/3406325.3451019.
[Tal20] Avishay Tal. Towards optimal separations between quantum and randomized query complexities. In Proceedings of the 61st Annual IEEE Symposium on Foundations of Computer Science (FOCS), pages 228–239, 2020. doi:10.1109/FOCS46700.2020.00030.
[YHLW21] Zekun Ye, Yunqi Huang, Lvzhou Li, and Yuyi Wang. Query complexity of generalized Simon's problem. Information and Computation, 281:104790, 2021. doi:10.1016/j.ic.2021.104790.