CLASSICALLY APPROXIMATING VARIATIONAL QUAN-TUM MACHINE LEARNING WITH RANDOM FOURIER FEATURES

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 can closely approximate most VQCs with Hamiltonian encoding, given only the description of their architecture. It uses the seminal proposal of Random Fourier Features (RFF) and the fact that VQCs can be seen as large Fourier series. We show theoretically and experimentally that models built from exponentially large quantum feature space can be classically reproduced by sampling a few frequencies to build an equivalent low dimensional kernel. 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.

INTRODUCTION

Many applications of quantum computing in the near term rely on variational quantum circuits (VQCs) (Bharti et al. (2021) ; Cerezo et al. ( 2021)), and in particular for solving machine learning (ML) tasks. VQCs are trained using classical optimization of their gates' parameters, a method borrowed from classical neural networks. Although the term VQCs encompasses various methods for different ML tasks, in this paper we refer to VQCs as a family of quantum models for supervised learning on classical data, as defined in B.1. Many early works have shown promising results, both empirically and in theory (Cong et al. (2019) ; Huang et al. ( 2021)). However, whether these variational methods can provide a quantum advantage in the general case with a scaling number of qubits has yet to be proved. The notion of quantum advantage with respect to classical methods is plural and can be defined as advantage in trainability (Larocca et al. ( 2021)), expressivity (Schuld et al. ( 2021)) or generalization (Caro et al. (2022) ). In this paper, we focus on the expressive power of VQCs as it is crucial to understand the capacity of VQCs to generate models that would be hard to do with classical approaches. The most common and intuitive answer for expressive power of VQCs is the formation of a large feature space, due to the projection of data points in an exponentially large Hilbert space. Understanding what is happening in this Hilbert space, and most importantly, knowing how we can exploit its size is an important question for this field. Regarding expressivity, Fair comparison

