NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Classically Approximating Variational Quantum Machine Learning with Random Fourier Features

Jonas Landman, Slimane Thabet, Constantin Dalyac, Hela Mhiri, Elham KashefiICLR 2023

TL;DR

This paper demonstrates that many Variational Quantum Circuits (VQCs) used in machine learning can be efficiently approximated by classical models. By leveraging Random Fourier Features (RFF) to sample a small number of frequencies from the quantum model’s spectrum, the authors show that classical computers can often match or exceed the performance of quantum models. This finding significantly narrows the search space for true "quantum advantage" in near-term quantum machine learning.

The Problem: Is the Quantum Feature Space Truly Unique?

In the current era of Noisy Intermediate-Scale Quantum (NISQ) devices, VQCs are a leading candidate for achieving quantum advantage in machine learning. The prevailing intuition is that VQCs gain their power by projecting data into an exponentially large Hilbert space—a "quantum feature space"—that classical computers simply cannot handle.

However, recent research has shown that VQCs with data encoding gates act essentially as high-dimensional Fourier series. This paper asks a critical question: If a VQC is just a Fourier series, can we use classical sampling techniques to pick the most important frequencies and build a classical surrogate that performs just as well? If the answer is yes, then the "exponentially large feature space" isn't providing a unique advantage, and we need to rethink what makes a quantum model truly superior.

High-level comparison of training a model using a quantum computer versus the proposed classical approximation using Random Fourier Features.

Methods: Bridging Quantum Circuits and Classical Kernels

The authors bridge the gap between quantum circuits and classical kernel methods using Random Fourier Features (RFF). Because a VQC with Hamiltonian encoding is a Fourier series, its "spectrum" (the set of available frequencies) is determined by the eigenvalues of its encoding gates.

The paper proposes three classical sampling strategies to approximate a VQC:

  1. Distinct Sampling: Explicitly calculating the full spectrum $\Omega$ and sampling $D$ frequencies from it.
  2. Tree Sampling: Navigating the "tree" of eigenvalues generated by successive encoding gates. This is highly efficient because it naturally accounts for frequency redundancy, which is common in Pauli-based circuits.
  3. Grid Sampling: Sampling from a regular grid of frequencies when the encoding Hamiltonians are too complex to diagonalize easily.

The core of the method involves taking these sampled frequencies, building a classical linear model (Linear Ridge Regression), and training it on the same data.

Key Insights and Ideas

  • The Logarithmic Shortcut: The most striking theoretical insight is that while the quantum spectrum $\Omega$ grows exponentially with the number of qubits and gates, the number of classical samples $D$ required for a good approximation only grows logarithmically with the size of that spectrum.
  • Redundancy is a Classical Friend: In many common VQC designs (like those using Pauli $R_Z$ gates), many frequencies are redundant. The "Tree Sampling" method exploits this, showing that a tiny fraction of the total frequencies (sometimes as low as 0.001%) is enough to reproduce the quantum model's behavior.
  • "Ghost" Frequencies: The authors found that even when a VQC theoretically has access to high frequencies, those frequencies often end up with near-zero coefficients after training. These "ghost" frequencies contribute nothing to the model's power but are easily ignored by classical RFF.
  • A Recipe for Resilience: By identifying where RFF succeeds, the authors implicitly define where it fails. To build a VQC that is "resilient" to classical approximation, one should use non-local Hamiltonians that are hard to diagonalize, very high-dimensional inputs, or alternative encoding schemes.

Key Results

The authors evaluated their methods using a mix of synthetic and real-world benchmarks, including Fashion-MNIST and California Housing datasets.

  • Matching Performance: On the real-world datasets, the classical RFF model (using Tree Sampling) achieved accuracy and Mean Squared Error (MSE) nearly identical to the trained VQC while using a radically lower number of frequencies.
  • Outperforming Quantum: In synthetic tests, the classical RFF model using "Distinct Sampling" was actually able to learn high-frequency target functions that the VQC failed to capture, despite the VQC having those frequencies in its theoretical spectrum.
1D function fitting demonstrating the classical RFF model capturing high-frequency target signals better than the trained VQC.
  • Efficiency: The authors proved that the classical approximation error is bounded and that the sample complexity scales favorably with input dimension $d$, making classical surrogates highly practical for many current QML research setups.

Limitations and Future Work

The authors acknowledge several boundaries where classical approximation becomes difficult:

  • High Dimensionality: As the input dimension $d$ increases significantly, the "Grid Sampling" method suffers from the curse of dimensionality.
  • Complex Hamiltonians: If the encoding Hamiltonians are "many-body" and highly non-local, they become computationally expensive to diagonalize, hindering the "Tree" and "Distinct" sampling methods.
  • Circuit Depth: Extremely deep circuits might create spectral densities that are harder to sample effectively.

Future Work: The authors suggest exploring non-Fourier encodings (e.g., Chebyshev expansions) and investigating how these classical approximation tools can be used to design more robust quantum kernels that might actually offer a verifiable advantage.

Summary updated

BibTeX
@inproceedings{landman2023classically,
  author = {Jonas Landman and Slimane Thabet and Constantin Dalyac and Hela Mhiri and Elham Kashefi},
  title = {{Classically Approximating Variational Quantum Machine Learning with Random Fourier Features}},
  booktitle = {International Conference on Learning Representations},
  year = {2023},
  url = {https://openreview.net/forum?id=ymFhZxw70uz},
}

Loading related content...

Figure