Forrelation is a promise problem defined by the inner product between a Boolean function and the Fourier transform of another, serving as a benchmark for quantum versus classical query complexities.
It demonstrates a nearly optimal exponential separation: one-query quantum algorithms solve the problem while classical methods require nearly √N queries, underpinning key oracle separation results.
Extensions like k-fold Forrelation and variants (extremal, XOR, random-orthogonal) broaden its applications to quantum algorithm design, BQP-completeness proofs, and experimental validations.
Forrelation is a promise problem and correlation quantity on Boolean functions over the hypercube that measures how strongly one function aligns with the Fourier, or Walsh–Hadamard, transform of another. In its original two-function form, it was introduced by Aaronson and Ambainis as a query-complexity benchmark that yields an essentially maximal separation between quantum and classical randomized query complexity; in higher-fold form, it also serves as an explicit complete problem for quantum computation in the PromiseBQP sense (Aaronson et al., 2014).
1. Definition and formal variants
Let f,g:{0,1}n→{−1,1}, and write N=2n. The standard 2-fold Forrelation quantity is
Accordingly, 2-fold Forrelation is “simply the inner product between a Boolean function and Fourier transformation of another Boolean function” [(Aaronson et al., 2014); (Li et al., 2016)].
The standard promise version asks one to distinguish
∣Φf,g∣≤1001fromΦf,g≥53,
promised that one of the two holds. The asymmetry is important: the YES case is large positive Forrelation, not merely large absolute value (Aaronson et al., 2014).
for Boolean functions f1,…,fk:{0,1}n→{−1,1}. The corresponding promise problem uses the same thresholds,
∣Φf1,…,fk∣≤1001orΦf1,…,fk≥53,
and for N=2n0 the chained phase pattern is exactly the same, with factors N=2n1 (Li et al., 2016).
A closely related notation in later work writes
N=2n2
which is the same Fourier-correlation quantity in normalized Fourier form. In that convention the extremal promise becomes N=2n3 versus N=2n4 (Canonne et al., 7 Feb 2026).
2. Quantum query complexity and extremal separations
The importance of Forrelation in query complexity comes from the fact that its defining correlation is itself a quantum circuit amplitude. For 2-fold Forrelation,
N=2n5
where the phase oracles satisfy
N=2n6
This yields a 1-query quantum algorithm for 2-fold Forrelation, while any randomized classical algorithm requires
N=2n7
queries. Aaronson and Ambainis also proved the converse simulation theorem that any N=2n8-query quantum algorithm can be simulated by a randomized algorithm using
N=2n9
queries, so the 1-versus-Φf,g=23n/21x,y∈{0,1}n∑f(x)(−1)x⋅yg(y)=N3/21x,y∈{0,1}n∑f(x)(−1)x⋅yg(y).0 gap is essentially optimal for partial Boolean decision problems (Aaronson et al., 2014).
For the Φf,g=23n/21x,y∈{0,1}n∑f(x)(−1)x⋅yg(y)=N3/21x,y∈{0,1}n∑f(x)(−1)x⋅yg(y).1-fold problem, the same interference pattern gives a quantum algorithm with
In the explicit-input setting, where the Φf,g=23n/21x,y∈{0,1}n∑f(x)(−1)x⋅yg(y)=N3/21x,y∈{0,1}n∑f(x)(−1)x⋅yg(y).3 are given by circuits rather than as black-box oracles, Φf,g=23n/21x,y∈{0,1}n∑f(x)(−1)x⋅yg(y)=N3/21x,y∈{0,1}n∑f(x)(−1)x⋅yg(y).4-fold Forrelation with Φf,g=23n/21x,y∈{0,1}n∑f(x)(−1)x⋅yg(y)=N3/21x,y∈{0,1}n∑f(x)(−1)x⋅yg(y).5 is PromiseBQP-complete, and the original paper further emphasized that this yields “what’s arguably the simplest BQP-complete problem yet known” (Aaronson et al., 2014).
Forrelation also separates rounds of quantum adaptivity. For Φf,g=23n/21x,y∈{0,1}n∑f(x)(−1)x⋅yg(y)=N3/21x,y∈{0,1}n∑f(x)(−1)x⋅yg(y).6, the Φf,g=23n/21x,y∈{0,1}n∑f(x)(−1)x⋅yg(y)=N3/21x,y∈{0,1}n∑f(x)(−1)x⋅yg(y).7-fold problem can be solved by an Φf,g=23n/21x,y∈{0,1}n∑f(x)(−1)x⋅yg(y)=N3/21x,y∈{0,1}n∑f(x)(−1)x⋅yg(y).8-round quantum algorithm with one query per round, but any Φf,g=23n/21x,y∈{0,1}n∑f(x)(−1)x⋅yg(y)=N3/21x,y∈{0,1}n∑f(x)(−1)x⋅yg(y).9-round quantum algorithm requires f(y)=N1x∈{0,1}n∑(−1)x⋅yf(x),0 parallel queries per round; more generally, the paper gives f(y)=N1x∈{0,1}n∑(−1)x⋅yf(x),1 versus f(y)=N1x∈{0,1}n∑(−1)x⋅yf(x),2 round separations derived from new Fourier-growth bounds for low-round quantum query algorithms (Girish et al., 2023).
3. Classical algorithms, simulations, and stronger classical lower bounds
The classical side of Forrelation has two distinct strands: nearly optimal black-box algorithms, and lower bounds that remain valid in stronger classical models. For the standard additive-approximation task
f(y)=N1x∈{0,1}n∑(−1)x⋅yf(x),3
there is a classical randomized algorithm with query complexity
f(y)=N1x∈{0,1}n∑(−1)x⋅yf(x),4
and runtime
f(y)=N1x∈{0,1}n∑(−1)x⋅yf(x),5
which is a nearly quadratic runtime improvement over the naive f(y)=N1x∈{0,1}n∑(−1)x⋅yf(x),6-scale estimator. The same paper also repaired a gap in the literature by proving that the acceptance probability of any f(y)=N1x∈{0,1}n∑(−1)x⋅yf(x),7-query quantum algorithm can be approximated to additive error f(y)=N1x∈{0,1}n∑(−1)x⋅yf(x),8 with
f(y)=N1x∈{0,1}n∑(−1)x⋅yf(x),9
classical queries, matching known lower bounds up to polynomial factors. In a structured graph-based variant, however, hardness can disappear: graph-based Forrelation can be estimated in runtime
Φf,g=N1y∈{0,1}n∑f(y)g(y).0
when the graph can be partitioned into two induced subgraphs of treewidth at most Φf,g=N1y∈{0,1}n∑f(y)g(y).1, which specializes to
Φf,g=N1y∈{0,1}n∑f(y)g(y).2
for bipartite and planar graphs; that tractability was then used to simulate level-2 RQAOA on planar graphs up to Φf,g=N1y∈{0,1}n∑f(y)g(y).3 qubits (Bravyi et al., 2021).
On the lower-bound side, Forrelation remains hard even if classical algorithms are strengthened from ordinary decision trees to parity decision trees. Using new Fourier bounds for randomized parity decision trees together with a theorem of Bansal and Sinha, one obtains
Φf,g=N1y∈{0,1}n∑f(y)g(y).4
while quantum query complexity remains
Φf,g=N1y∈{0,1}n∑f(y)g(y).5
For constant Φf,g=N1y∈{0,1}n∑f(y)g(y).6, this is the familiar
Φf,g=N1y∈{0,1}n∑f(y)g(y).7
separation, now against a strictly stronger classical query model in which nodes may query arbitrary parities of the input bits (Girish et al., 2021).
4. Extremal, XOR, and random-orthogonal variants
A particularly rigid version is the extremal promise
Φf,g=N1y∈{0,1}n∑f(y)g(y).8
In this regime the quantum algorithm becomes exact: one quantum query suffices with success probability Φf,g=N1y∈{0,1}n∑f(y)g(y).9. The structural reason is that equality in ∣Φf,g∣≤1001fromΦf,g≥53,0 forces ∣Φf,g∣≤1001fromΦf,g≥53,1 to be a bent function and ∣Φf,g∣≤1001fromΦf,g≥53,2 to be its rescaled Fourier transform. One paper established a classical randomized lower bound of
∣Φf,g∣≤1001fromΦf,g≥53,3
for this extremal problem and analyzed it through a linear-algebraic characterization of bent functions (Girish et al., 4 Aug 2025). A later paper improved the classical lower bound to
∣Φf,g∣≤1001fromΦf,g≥53,4
equivalently
∣Φf,g∣≤1001fromΦf,g≥53,5
using a different construction based on partial spread bent functions and high-order collision arguments (Canonne et al., 7 Feb 2026).
Beyond ordinary ∣Φf,g∣≤1001fromΦf,g≥53,6-fold Forrelation, Tal introduced ∣Φf,g∣≤1001fromΦf,g≥53,7-fold Rorrelation by replacing the Hadamard matrix with a random orthogonal matrix ∣Φf,g∣≤1001fromΦf,g≥53,8. The resulting promise problem still has a quantum algorithm using ∣Φf,g∣≤1001fromΦf,g≥53,9 queries, but for most k0 any randomized algorithm requires
k1
queries, yielding k2 versus k3 for constant k4. Tal further showed that stronger Fourier bounds for classical decision trees would imply k5 versus k6 separations for partial Boolean functions (Tal, 2019).
The XOR of many independent Forrelation copies provides another route below the usual k7 classical-advantage barrier. For the XOR of k8 independent copies, any family of Boolean functions closed under restrictions and with bounded level-k9 Fourier mass has advantage at most
and a later note rederived the analytic core of this result by representing the relevant Forrelation distribution as stopped Brownian motion and applying Dynkin’s formula to obtain an Φf1,…,fk=2(k+1)n/21x1,…,xk∈{0,1}n∑(j=1∏k−1(−1)xj⋅xj+1)(j=1∏kfj(xj)),1 bound in terms of restricted level-Φf1,…,fk=2(k+1)n/21x1,…,xk∈{0,1}n∑(j=1∏k−1(−1)xj⋅xj+1)(j=1∏kfj(xj)),2 Fourier mass (Girish et al., 2020, Wu, 2021).
5. Restricted quantum models and physical realizations
Forrelation is not confined to the full BQP model. A three-qubit liquid-state NMR experiment implemented 2-fold and 3-fold Forrelation on Φf1,…,fk=2(k+1)n/21x1,…,xk∈{0,1}n∑(j=1∏k−1(−1)xj⋅xj+1)(j=1∏kfj(xj)),3C-labeled diethyl-fluoromalonate, with Φf1,…,fk=2(k+1)n/21x1,…,xk∈{0,1}n∑(j=1∏k−1(−1)xj⋅xj+1)(j=1∏kfj(xj)),4C as ancilla and Φf1,…,fk=2(k+1)n/21x1,…,xk∈{0,1}n∑(j=1∏k−1(−1)xj⋅xj+1)(j=1∏kfj(xj)),5H and Φf1,…,fk=2(k+1)n/21x1,…,xk∈{0,1}n∑(j=1∏k−1(−1)xj⋅xj+1)(j=1∏kfj(xj)),6F as work qubits. The circuit was compiled into Φf1,…,fk=2(k+1)n/21x1,…,xk∈{0,1}n∑(j=1∏k−1(−1)xj⋅xj+1)(j=1∏kfj(xj)),7 ms GRAPE pulses, the ancilla observable satisfied
and the measured values tracked the targets Φf1,…,fk=2(k+1)n/21x1,…,xk∈{0,1}n∑(j=1∏k−1(−1)xj⋅xj+1)(j=1∏kfj(xj)),9 closely enough to distinguish the promise thresholds f1,…,fk:{0,1}n→{−1,1}0 and f1,…,fk:{0,1}n→{−1,1}1. The authors explicitly did not interpret the three-qubit NMR demonstration as a literal quantum-supremacy result; rather, they presented it as a small-scale validation that the relevant interference patterns and threshold accuracies are experimentally accessible (Li et al., 2016).
The problem also persists in computational models weaker than BQP. In the f1,…,fk:{0,1}n→{−1,1}2BQP model, where the computation acts on one half of an EPR state and learns the random input basis string only after measurement, 2-Forrelation can be solved with f1,…,fk:{0,1}n→{−1,1}3 quantum queries by defining
f1,…,fk:{0,1}n→{−1,1}4
and using the identity
f1,…,fk:{0,1}n→{−1,1}5
That inclusion lifts the Raz–Tal oracle problem to f1,…,fk:{0,1}n→{−1,1}6BQP and yields an oracle f1,…,fk:{0,1}n→{−1,1}7 such that f1,…,fk:{0,1}n→{−1,1}8; the same paper conjectures that already 3-Forrelation lies beyond f1,…,fk:{0,1}n→{−1,1}9BQP (Jacobs et al., 2024).
A different restricted model is IQP. Recent work showed that signed 2-Forrelation is solvable by a single IQP computation with one query to the joint oracle ∣Φf1,…,fk∣≤1001orΦf1,…,fk≥53,0, and the unsigned ∣Φf1,…,fk∣≤1001orΦf1,…,fk≥53,1 version by two IQP runs and two total queries. The construction hinges on the quadratic identity
∣Φf1,…,fk∣≤1001orΦf1,…,fk≥53,2
which allows the inner-product phase ∣Φf1,…,fk∣≤1001orΦf1,…,fk≥53,3 to be synthesized inside a commuting diagonal layer. The same paper derives an oracle separation
∣Φf1,…,fk∣≤1001orΦf1,…,fk≥53,4
and proves Fourier-growth bounds showing that any IQP algorithm solving 2-Forrelation must accept on an exponentially large set of outputs (Buzet et al., 16 Apr 2026).
6. Explicit-input completeness, oracle constructions, and related offshoots
In the explicit-input setting, Forrelation becomes a vehicle for reductions and embeddings rather than only a black-box separation. One line of work restricts each ∣Φf1,…,fk∣≤1001orΦf1,…,fk≥53,5 in explicit ∣Φf1,…,fk∣≤1001orΦf1,…,fk≥53,6-Forrelation to be either constant or of the form
∣Φf1,…,fk∣≤1001orΦf1,…,fk≥53,7
where ∣Φf1,…,fk∣≤1001orΦf1,…,fk≥53,8 is a product of at most three input bits, with at least one function depending on exactly three bits. Under that restriction, explicit ∣Φf1,…,fk∣≤1001orΦf1,…,fk≥53,9-Forrelation remains PromiseBQP-complete, and the same structure yields direct feature maps and quantum kernels showing that a variational quantum classifier or a QSVM with a carefully engineered Forrelation embedding can solve a PromiseBQP-complete classification task efficiently (Jäger et al., 2022).
The Forrelation distribution also functions as an oracle gadget. One paper describes it as “a sort of cryptographic code” by which an oracle can make information available to BQP while keeping it hidden from classical machines. There the Raz–Tal Forrelation distribution N=2n00 is used to encode answers to other computations inside oracle blocks that are quantumly distinguishable from uniform but pseudorandom to N=2n01 and N=2n02. This idea underlies oracle constructions such as N=2n03 and N=2n04 via the composed problems N=2n05 and N=2n06 (Aaronson et al., 2021).
Privacy-preserving variants also preserve the underlying separation. In a covert verifiable learning model with public quantum phase queries and private classical membership queries, Forrelation can be solved with polynomially many public and private queries while maintaining either exact target-covertness against unidirectional adversaries or cheat-sensitive privacy against i.i.d. ancilla-free adversaries. The paper presents this as evidence that the exponential quantum-classical separation for Forrelation survives under covertness constraints (Anand et al., 8 Oct 2025).
Finally, a related but distinct operator-norm variant, spectral Forrelation, replaces Boolean sign functions by two subsets N=2n07 and asks whether
N=2n08
is above or below a threshold. Equivalently, the question is whether there exists a quantum state whose computational-basis measurement distribution is concentrated on N=2n09 while its Fourier-basis measurement distribution is concentrated on N=2n10. That matrix-norm formulation underlies a classical-oracle separation between QMA and QCMA (Bostanci et al., 12 Nov 2025).
Forrelation therefore occupies a rare position in quantum complexity theory: it is at once a concrete Fourier-analytic quantity, a nearly extremal witness of quantum query advantage, a robust source of oracle separations, a flexible template for restricted and experimental models, and a starting point for generalizations in which the same Hadamard-structured interference is recast as parity-decision-tree hardness, random-orthogonal correlation, covert learning, or operator-norm geometry.