Classically Approximating Variational Quantum Machine Learning with Random Fourier Features
Jonas Landman, Slimane Thabet, Constantin Dalyac, Hela Mhiri, Elham Kashefi
TL;DR
The paper reframes variational quantum circuits as shift-invariant kernels whose Fourier spectrum Ω is determined by encoding Hamiltonians, and proposes classical Random Fourier Feature (RFF) surrogates to approximate VQCs without running on quantum hardware. Three RFF strategies—Distinct, Tree, and Grid sampling—are developed to sample frequencies from Ω and construct scalable classical models via kernel ridge regression, with theoretical bounds showing linear scaling in input dimensionality and logarithmic dependence on spectrum size. Empirical results across Pauli and more complex encodings, including real datasets like Fashion-MNIST and California Housing, demonstrate that RFF surrogates can match or even outperform VQCs using only a small fraction of Ω, particularly when frequency redundancy is high. These findings challenge the assumed quantum advantage of VQCs in many practical settings and emphasize the role of encoding structure and spectrum properties in determining learnability, while outlining conditions under which quantum advantage might still emerge.
Abstract
Many applications of quantum computing in the near term rely on variational quantum circuits (VQCs). They have been showcased as a promising model for reaching a quantum advantage in machine learning with current noisy intermediate scale quantum computers (NISQ). It is often believed that the power of VQCs relies on their exponentially large feature space, and extensive works have explored the expressiveness and trainability of VQCs in that regard. In our work, we propose a classical sampling method that may closely approximate a VQC with Hamiltonian encoding, given only the description of its architecture. It uses the seminal proposal of Random Fourier Features (RFF) and the fact that VQCs can be seen as large Fourier series. We provide general theoretical bounds for classically approximating models built from exponentially large quantum feature space by sampling a few frequencies to build an equivalent low dimensional kernel, and we show experimentally that this approximation is efficient for several encoding strategies. Precisely, we show that the number of required samples grows favorably with the size of the quantum spectrum. This tool therefore questions the hope for quantum advantage from VQCs in many cases, but conversely helps to narrow the conditions for their potential success. We expect VQCs with various and complex encoding Hamiltonians, or with large input dimension, to become more robust to classical approximations.
