arXiv:2609.07060quant-phSep 2026

Manuscript Offprint

arXiv:2609.07060

2-Fold Forrelation is in QAC0^0

Francisca Vasconcelos

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

We show that 2-fold Forrelation with inverse-polylogarithmic promise gap can be solved, with bounded error, by polynomial-size QAC⁰ circuits. Unlike the standard oracle-based Forrelation algorithm, our circuits receive the input explicitly, in the same form as the AC⁰ circuits against which Forrelation is known to be hard. At constant gap, this yields a natural promise-problem separation between QAC⁰ and AC⁰.

1 Introduction

A central open question in shallow quantum circuit complexity is whether Parity ∈ QAC⁰ [Moo99]. Here, QAC⁰ denotes constant-depth quantum circuits with arbitrary single-qubit gates and generalized Toffoli gates. QAC⁰ is a quantum analogue of AC⁰, or polynomial-size, constant-depth classical circuits composed of unbounded-fanin AND/OR gates and NOT gates. One fundamental difference between the two models is fan-out. AC⁰ circuits can copy a bit to arbitrarily many gates at no depth cost, whereas it remains open whether the corresponding unbounded quantum fan-out operation can be implemented by polynomial-size QAC⁰ circuits. Unbounded quantum fan-out is known to substantially increase the power of shallow quantum circuits [HŞ05] and is equivalent to Parity up to constant-depth reductions [GHMP02, HŞ05]. Thus, determining whether Parity ∈ QAC⁰ is closely related to understanding whether QAC⁰ can achieve unbounded fan-out. Since Parity �notin AC⁰ [Has86], a positive answer would also give an immediate decision separation between QAC⁰ and AC⁰.

Recent work has substantially advanced our understanding of QAC⁰'s powers and limitations. Upper-bound results include general Dicke-state preparation [JV26], pseudorandom unitary constructions [FPVY26], exact polylogarithmic fan-out [Ros21, GMW26], and the simulation of classical threshold circuits on replicated inputs [GMW26]. A growing body of work has developed learning algorithms and structural results for QAC⁰ [BG26, DOY25, VH25, GGJ26], alongside increasingly strong circuit lower bounds [Ros21, NPVY24, ADOY25, FGPT25, JTVW26]. More recently, decision separations based on Majority have emerged as well, including a pointwise separation using replicated inputs [GMW26] and a correlation separation in the standard single-copy model [GGJ26]. These developments motivate the search for further natural decision problems that illuminate the power of QAC⁰ relative to AC⁰.

We show that 2-fold Forrelation provides such an example. Introduced to exhibit a large separation between quantum and randomized query complexity [AA15], Forrelation is one of the canonical problems in quantum complexity theory and a natural candidate for studying shallow quantum–classical separations. Let N=2mN = 2^m, and let HNH_N denote the normalized Walsh–Hadamard matrix indexed by u,v∈{0,1}mu, v \in \{0,1\}^m, with

(HN)u,v:=(−1)u⋅vN.(1.1)(H_N)_{u,v} := \frac{(-1)^{u\cdot v}}{\sqrt{N}}. \tag{1.1}

For sign vectors s,t∈{±1}Ns, t \in \{\pm 1\}^N, their 2-fold Forrelation is

ForrN(s,t):=1NsTHNt=1N3/2∑u,v∈0,1msutv(−1)u⋅v.(1.2)\mathrm{Forr}_{N}(s,t):=\frac{1}{N}s^{\mathsf{T}}H_{N}t=\frac{1}{N^{3/2}}\sum_{u,v\in0,1^{m}}s_{u}t_{v}(-1)^{u\cdot v}. \tag{1.2}

Our main result shows that this problem also separates shallow quantum and classical circuits.

Theorem 1.1 (Informal main theorem; see Theorem 3.1). For every inverse-polylogarithmic gap, 2-fold Forrelation can be solved with bounded error by polynomial-size constant-depth QAC 0^{0} circuits, with pointwise correctness on every input satisfying the promise. In particular, at constant gap,

ConstGap2Forr∈(Promise−BQAC0∩Promise−TC0)∖Promise−AC0.(1.3)\mathrm{ConstGap2Forr}\in(\mathrm{Promise}-\mathrm{BQAC}^{0}\cap\mathrm{Promise}-\mathrm{TC}^{0})\setminus\mathrm{Promise}-\mathrm{AC}^{0}. \tag{1.3}

The classical side of the separation follows from known lower bounds for Forrelation [Tal17, RT19, BS21]. The main technical contribution is therefore the QAC 0^0 upper-bound. At first sight, such an upper-bound might seem immediate from the standard quantum algorithm for Forrelation, which already has constant query depth. That algorithm is naturally formulated using a binary-addressed phase oracle. Writing su=(−1)xus_u = (-1)^{x_u} and tv=(−1)yvt_v = (-1)^{y_v} for x,y∈{0,1}Nx, y \in \{0,1\}^N, with N=2mN = 2^m, the oracle for xx acts on an mm-qubit address register as

∣u⟩⟼(−1)xu∣u⟩.(1.4)\left|u\right\rangle\longmapsto(-1)^{x_{u}}\left|u\right\rangle. \tag{1.4}

In this binary representation, the rest of the Forrelation computation is extremely simple. The Walsh–Hadamard transform is just HN=H⊗mH_N = H^{\otimes m}, so the desired interference is obtained by alternating Hadamard layers with the two phase queries. The recent work of Buzet and Chailloux sharpened this observation, showing that even the computation surrounding the two queries can be restricted to two IQP circuits together with efficient classical processing [BC26]. Thus, from the perspective of shallow circuits, the main obstacle is not implementing the Hadamard interference pattern, but realizing the binary-addressed queries themselves from the explicit input strings.

Indeed, the oracle in Equation (1.4) performs a coherent indexing operation. Concretely, an mm-qubit binary address uu must select one of the NN input wires x1,…,xNx_1, \ldots, x_N and apply a phase determined by the selected bit. A natural way to realize this lookup is to first convert the binary address into its one-hot (or unary) representation,

∣u⟩∣0N⟩⟼∣u⟩∣oh(u)⟩.(1.5)\left|u\right\rangle\left|0^{N}\right\rangle\longmapsto\left|u\right\rangle\left|\mathrm{oh}(u)\right\rangle. \tag{1.5}

Once this conversion is available, the lookup becomes trivial. Namely, if UaU_{a} denotes the aath qubit of the one-hot register, then the NN disjoint gates CZ(Xa,Ua)\mathsf{CZ}(X_{a}, U_{a}) implement

∣oh(u)⟩⟼(−1)xu∣oh(u)⟩,(1.6)\left|\mathrm{oh}(u)\right\rangle\longmapsto(-1)^{x_{u}}\left|\mathrm{oh}(u)\right\rangle, \tag{1.6}

after which the binary-to-one-hot conversion can be reversed.

This exposes precisely where the standard query algorithm encounters the unresolved power of QAC 0^{0}. In particular, unbounded quantum fan-out suffices to perform binary-to-one-hot conversion in constant depth. Namely, after distributing the mm address bits, all NN equality predicates [u=a][u = a] can be evaluated in parallel. Without unbounded fan-out, however, no polynomial-size constant-depth QAC 0^{0} construction for this coherent indexing operation is known. Thus, directly realizing the standard binary-addressed phase oracle would require solving the binary-to-one-hot conversion problem that underlies this fan-out bottleneck.

Our construction avoids this bottleneck by working directly in the one-hot representation, rather than starting from a binary-addressed register. In particular, we exploit the fact that the N-qubit W state

∣WN⟩=1N∑u∈0,1m∣oh(u)⟩|W_{N}\rangle=\frac{1}{\sqrt{N}}\sum_{u\in0,1^{m}}|\mathrm{oh}(u)\rangle

(1.7) can be prepared in QAC 0^0 [GMW26, JV26]. For an input string x∈{0,1}Nx \in \{0,1\}^N, define the corresponding phase-encoded WW state by

∣Wx⟩:=1N∑u∈0,1m(−1)xu∣oh(u)⟩.(1.8)\left|W_{x}\right\rangle:=\frac{1}{\sqrt{N}}\sum_{u\in0,1^{m}}\left(-1\right)^{x_{u}}\left|\mathrm{o h}(u)\right\rangle. \tag{1.8}

Because the address is represented one-hot, these phases can be applied transversally. In particular, the NN disjoint gates CZ(Xa,Ua)\mathrm{CZ}(X_{a}, U_{a}) implement

∣x⟩∣WN⟩⟼∣x⟩∣Wx⟩.(1.9)\left|x\right\rangle\left|W_{N}\right\rangle\longmapsto\left|x\right\rangle\left|W_{x}\right\rangle. \tag{1.9}

Thus, the input dependence can be incorporated directly into the WW state, with no coherent lookup required. Crucially, the circuit coherently sums the amplitudes corresponding to all address pairs (u,v)(u,v), with phases (−1)xu+yv+u⋅v(-1)^{x_u+y_v+u\cdot v}, so that the resulting amplitude is proportional to ForrN(x,y)\mathrm{Forr}_N(x,y) before it is squared by measurement. This gives the rare-event acceptance probability

q(x,y)=ForrN(x,y)2N.(1.10)q(x,y)=\frac{\mathrm{Forr}_{N}(x,y)^{2}}{N}. \tag{1.10}

By contrast, the elementary classical two-query test accepts with probability

p(x,y)=12+ForrN(x,y)2N.(1.11)p(x,y)=\frac{1}{2}+\frac{\mathrm{Forr}_{N}(x,y)}{2\sqrt{N}}. \tag{1.11}

Thus, the classical signal appears only as a small bias around the constant baseline 1/2, whereas quantum interference turns the same correlation into a probability with no constant background term.

Under the promise, the quantum test accepts with probability at least δ2/N\delta^2/N on YES instances and at most δ2/(4N)\delta^2/(4N) on NO instances. Although both probabilities vanish with NN, they differ by a constant multiplicative factor. Running R=Θ(N/δ2)R = \Theta(N/\delta^2) copies in parallel and accepting if any copy accepts converts this multiplicative separation into a constant additive gap. Note that the same strategy would not work for the classical two-query test. Specifically, each trial already accepts with probability close to 1/21/2. So, accepting whenever any trial succeeds would drive both cases close to acceptance probability one.

It remains to implement these repetitions in QAC0\mathrm{QAC}^{0} using only a single copy of the input. Naively preparing ∣Wx⟩⊗R|W_{x}\rangle^{\otimes R} would require that each input bit xax_{a} participate in RR different phase gates, which in turn would require O(R)O(R)-fan-out of the input bits. Since unbounded fan-out is not available in QAC0\mathrm{QAC}^{0}, we instead avoid this input-reuse bottleneck using the truncated phase-state repetition construction of Grier-Morris-Wu [GMW26, Appendix C.1, Claim 29]. We briefly explain the idea, since it is the key ingredient that enables us to implement the amplification in QAC0\mathrm{QAC}^{0}. If CaC_{a} denotes the number of one-hot registers selecting address aa, then

(−1)∑j=1Rxuj=(−1)∑a=1Nxa(Ca mod 2).(1.12)(-1)^{\sum_{j=1}^{R}x_{u_{j}}}=(-1)^{\sum_{a=1}^{N}x_{a}(C_{a}\bmod2)}. \tag{1.12}

Hence all dependence on a fixed input bit xax_a can be consolidated into a single phase gate controlled by the parity of its occupancy CaC_a. Grier–Morris–Wu show that this parity can be computed in constant depth whenever the occupancy is below a polylogarithmic cutoff TT. Outside this low-weight regime, the circuit may output an arbitrary fixed value. In our inverse-polylogarithmic-gap regime, the occupancies exceed this cutoff only on branches of negligible total weight. Thus, this truncated parity computation reproduces the desired phases up to negligible error, allowing all RR effective tests to be realized in constant depth. Together, the one-hot interference test and the phase-state repetition construction give the QAC0\mathrm{QAC}^0 upper bound of Theorem 3.1.

We next situate our result relative to the Raz–Tal oracle separation, which is also based on Forrelation. For each N=2mN = 2^m, both results concern the same NN-bit input strings indexed by addresses u∈{0,1}mu \in \{0,1\}^m,

PaperProblemInput ModelQuantum GuaranteeClassical Hardness
[GMW26]Copy-augmented Majority (total function)Replicated inputPointwise one-sided error on every inputNot in AC⁰[p], for every fixed prime p
[GGJ26]Majority (total function)Standard single-copy input1 − o(1) correlation under the uniform distributionOnly o(1) correlation for polynomial-size AC⁰[p], for every fixed prime p
This work2-fold Forrelation (promise problem)Standard single-copy inputPointwise bounded error on every promised inputDepth-d randomized AC⁰ requires exp(N^{Ω_d(1)}) size

Table 1: Comparison of recent decision separations for shallow quantum circuits. The results differ in their input model, quantum guarantee, and strength of the classical lower bound.

but they differ in how the quantum computation accesses those bits. Raz and Tal assume coherent access through the binary-addressed phase oracle in Equation (1.4), allowing their quantum algorithm to run in time polynomial in the address length m=log⁡Nm = \log N. Our QAC⁰ circuit instead receives the NN input bits directly as ordinary circuit input wires. Thus, the circuit may have size polynomial in NN and, hence, exponential in mm. For this reason, our upper bound does not by itself yield the polynomial-in-mm algorithm required for an analogous oracle separation from PH. The advantage of the explicit-input setting is that the QAC⁰ and AC⁰ circuits receive the input in exactly the same form. Overall, our result gives a direct decision separation between the two circuit classes on a common input model.

More broadly, our result complements the recent decision separations of Grier–Morris–Wu and Gretta–Gupta–Joshi. Grier–Morris–Wu show that QAC⁰ can simulate TC⁰ when given polynomially many copies of the input, and use this to obtain a pointwise separation from AC⁰[p] for every fixed prime pp [GMW26]. Their separating function is a copy-augmented version of Majority. The input consists of several blocks, the function agrees with Majority when those blocks are consistent, and it takes a fixed value otherwise. Although this gives a standard total-function separation, the replicated-input structure effectively supplies at the outset the copies that unbounded fan-out would otherwise have to create within the quantum circuit. In this sense, the separation assumes access to a resource closely related to the main fan-out obstacle in distinguishing QAC⁰ from AC⁰. Gretta–Gupta–Joshi instead study Majority on its standard single-copy input and obtain QAC⁰ circuits with 1−o(1)1 - o(1) correlation under the uniform distribution [GGJ26].¹ Our result likewise uses a standard single-copy input, but for the canonical Forrelation problem, and achieves bounded-error correctness on every input satisfying the promise. Thus, compared with Grier–Morris–Wu, we avoid assuming replicated access to the input, while compared with Gretta–Gupta–Joshi, we obtain a pointwise rather than distributional guarantee. The tradeoff is that Forrelation is a promise problem and our classical lower bound is only against AC⁰. Table 1 summarizes these complementary results.

The remainder of the paper is organized as follows. Section 2 fixes the circuit model and Forrelation promise and records the prior results used in the proof. Section 3 states the formal quantum upper bound and the resulting explicit-input separation. Finally, Section 4 proves the quantum upper-bound by constructing a single one-hot Forrelation test and amplifying it in constant depth using the phase-state repetition construction of Grier–Morris–Wu.

¹Gretta–Gupta–Joshi state their separation against AC⁰. Combining their quantum upper bound with Razborov–Smolensky-type correlation bounds for Majority also yields an average-case separation from polynomial-size AC⁰[p] circuits for every fixed prime pp. Such circuits have only o(1)o(1) correlation with Majority under the uniform distribution. See, e.g., [OS15, Propositions 3.4 and 4.2].