Forrelation, Bent Functions, and a Spectral Criterion for Hardness

J. Landers

1. Introduction

The Forrelation problem, introduced by Aaronson and Ambainis (2015), serves as one of the cleanest demonstrations of an exponential separation between quantum and classical query complexity. Given oracle access to two Boolean functions \( f, g : \{0,1\}^n \to \{-1,1\} \), one must estimate their correlation \[\Phi(f,g) = \frac{1}{2^{3n/2}} \sum_{x,y} f(x)(-1)^{x\cdot y}g(y).\] Equivalently, \(\Phi(f,g) = \langle \widehat f, g \rangle\), where \(\widehat f\) denotes the Walsh–Hadamard (Fourier) transform of \(f\). The problem captures a fundamental contrast: a quantum computer can estimate \(\Phi(f,g)\) with one query, whereas any classical randomized algorithm requires exponentially many. This note extends the framework by introducing a spectral criterion for hardness; a quantitative relation between Fourier flatness, resilience, and classical query complexity that unifies the random and bent-function extremes into a continuous spectrum of Forrelation difficulty.

2. Background and the Two Extremes

2.1 Aaronson & Ambainis (2015)

In their foundational paper, Aaronson and Ambainis formulated the Forrelation problem to exhibit an optimal quantum-classical separation. The task is to distinguish whether \(\Phi(f,g) \geq \tau\) or \(|\Phi(f,g)| \leq \tau/2\), given a promise that one holds. They showed that a quantum computer can solve this with \(O(1)\) queries, while any classical algorithm requires \(\Omega(2^{n/2})\) queries.

Their analysis treats \(f\) and \(g\) as unstructured oracles, essentially random Boolean functions. In this case, the Fourier spectra are typically non-flat and uncorrelated, yielding moderate forrelation. Yet quantum interference can exploit the global structure of the Hadamard transform in a single step. This randomness-based regime represents one extreme of the spectrum, a coarse-grained demonstration that exponential advantage exists, without specifying the spectral structure that makes it hardest.

2.2 Girish & Servedio (2025)

In contrast, Girish and Servedio's recent work identifies a structured extremal case. They prove that when \(f\) and \(g\) are bent functions, Boolean functions with perfectly flat Fourier spectra, the Forrelation achieves its maximal value \(|\Phi(f,g)| = 1\). These functions are maximally nonlinear and unpredictable to classical sampling. They show that distinguishing maximally forrelated pairs \((f,g)\) from anti-forrelated pairs requires \(\Omega(2^{n/4})\) classical queries, while quantum algorithms still need only \(O(1)\).

Thus, Aaronson’s random-oracle regime and Servedio’s bent-function regime represent the two extremes of Forrelation hardness, the former a statistical proof of existence, the latter a constructive identification of the maximally hard instances.

3. Bent Functions: Algebraic and Spectral Definitions

Two equivalent characterizations of bent functions are central in the literature:

These two definitions are mathematically equivalent; the quadratic form guarantees constant-magnitude Walsh coefficients, while any flat-spectrum Boolean function corresponds, up to affine transformation, to such a quadratic polynomial.

4. A Spectral Criterion for Hardness

We now generalize the extremal Forrelation result by formulating a spectral criterion for hardness that interpolates between random and bent cases. Let \(f,g:\{0,1\}^n\to\{-1,1\}\) be Boolean functions with Fourier transforms \(\widehat f, \widehat g\).

Theorem 1 (Spectral Criterion for Hardness).
Suppose \(f\) and \(g\) are both \(\eta\)-flat and \(\kappa\)-resilient, meaning \[\|\widehat f\|_\infty \le 2^{-(1/2-\eta)n}, \quad \sum_{|S|\le d} \widehat f(S)^2 \le 2^{-\kappa n},\] and likewise for \(g\). Then any classical randomized algorithm that distinguishes whether \(\Phi(f,g) \ge \tau\) or \(\Phi(f,g) \le \tau/2\) with bias \(\tau\) must make at least \[T \ge \frac{\tau}{8} \cdot 2^{(1/2 - 2\eta - \kappa)n}\] queries to \(f\) and \(g\).

When \(\eta = \kappa = 0\), we recover the bent extremal bound \(T = \Omega(2^{n/2})\). As the spectrum becomes more peaked (larger \(\eta\)) or concentrated in low degrees (larger \(\kappa\)), the bound smoothly weakens, interpolating down to trivial classical hardness. Thus, this criterion describes a continuous spectrum between Aaronson’s random regime and Servedio’s bent extremal regime.

Intuitively, this spectral perspective provides a way to quantify structure in Boolean functions. Instead of viewing hardness as binary (random vs. structured), the parameters \(\eta\) and \(\kappa\) measure how much spectral energy escapes the ideal flat distribution. The smaller these quantities, the more evenly the Fourier coefficients are spread, implying greater unpredictability for classical algorithms. In contrast, high spectral concentration (large \(\eta\)) or strong low-degree bias (large \(\kappa\)) reveal exploitable regularities. This viewpoint reframes Forrelation as a study in spectral entropy and energy distribution, offering a continuous and geometric language for understanding quantum advantage.

5. Discussion: Beyond Bent Functions

Beyond bent functions, recent works have explored related function classes in Forrelation and similar problems:

This broader context suggests that Forrelation hardness is governed by spectral flatness and low-degree suppression, the same properties that drive pseudorandomness and cryptographic resistance.

6. Conclusion

The Forrelation problem provides a unifying stage for examining how spectral properties of Boolean functions translate into computational hardness. Aaronson and Ambainis revealed the existence of exponential quantum advantage in the random regime; Girish and Servedio located the extremal bent frontier. The spectral criterion presented here bridges these extremes, defining a quantitative continuum of hardness based on Fourier flatness and resilience. This framework invites future work on intermediate and structured families, advancing our understanding of where, and why, quantum advantage persists.

References

  1. S. Aaronson and A. Ambainis. Forrelation: A Problem that Optimally Separates Quantum from Classical Computing. SIAM J. Comput. 47(3):982–1038, 2018. (Conference version in STOC 2015.)
  2. U. Girish and R. A. Servedio. Forrelation is Extremally Hard. arXiv preprint arXiv:2508.02514, 2025.