Expressivity of Variational Quantum Machine Learning on the Boolean Cube

Dylan Herman, Rudy Raymond, Muyuan Li, Nicolas Robles, Antonio Mezzacapo, Marco PistoiaIEEE Transactions on Quantum Engineering 2022

TL;DR

This paper investigates how variational quantum machine learning (VQML) models can effectively represent functions defined on the Boolean cube, a crucial step for handling categorical data. The authors introduce and analyze two quantum embedding techniques – phase embedding and quantum random access codes (QRAC) – demonstrating their expressivity and showing that even with fewer qubits, these models can represent complex functions, especially when used in ensembles.

What Problem Does This Paper Address?

Machine learning often deals with categorical data, where each category can be mapped to binary variables. This transforms the problem into learning a real-valued function on the n-dimensional Boolean cube ($B^n$). While existing VQML models typically encode continuous data, there's a need for methods that can efficiently handle discrete, Boolean-valued inputs. The challenge lies in understanding the "expressivity" of VQML models – what types of functions they can represent – specifically for these discrete inputs, and how to achieve this with limited quantum resources. This paper aims to bridge this gap by exploring quantum embeddings tailored for Boolean data and analyzing the representational power of VQML models using these embeddings.

Methods

The core of this work lies in analyzing the expressivity of "variational linear quantum models" (VLQMs). These models consist of a single quantum embedding step followed by a single trainable block. The authors leverage Fourier analysis on the Boolean cube to understand function representability. They investigate two primary quantum embedding strategies:

  • Phase Embedding: This method encodes each input bit into the relative phase of a single-qubit state. The number of qubits used directly corresponds to the number of input bits ($n$).
  • Quantum Random Access Codes (QRAC) Embedding: This technique, specifically the (3,1)-QRAC, encodes multiple bits into a single qubit probabilistically. This allows for a potential reduction in the number of qubits required.

The paper analyzes the expressivity of VLQMs using these embeddings, both for single models and for classical ensembles (where the outputs of multiple VLQMs are summed). They also explore the impact of data re-uploading (repeating embeddings) and variational SWAP networks to enhance expressivity. Numerical simulations and experiments on IBM quantum hardware were conducted to validate their theoretical findings.

Datasets

The paper does not introduce new datasets. Instead, it focuses on fitting synthetic target functions defined on the Boolean cube. For their experiments, they use the entire Boolean cube as the training set, meaning the models have access to all possible input combinations. The target functions are chosen to have specific low degrees in their Fourier spectrum, allowing for a direct comparison between the model's output and the theoretical predictions.

Key Insights and Ideas

  • Boolean Data is Key: The paper highlights that effectively handling categorical data is crucial for many real-world ML applications, and VQML needs specialized approaches for this.
  • Fourier Analysis is Powerful: Using Fourier analysis on the Boolean cube provides a rigorous framework to understand what functions VQML models can represent. The "degree" of a function in this context (related to the highest Hamming weight of non-zero Fourier coefficients) becomes a key metric.
  • Phase Embedding is Universally Expressive (with enough qubits): For any function on the Boolean cube, a VLQM with $n$ qubits using phase embedding can represent it. This is a strong theoretical guarantee.
  • Ensembles Offer Efficiency: While a single VLQM might need $n$ qubits for phase embedding, ensembles of VLQMs using phase embedding can represent functions of degree $d$ with only $d$ qubits. This is a significant resource saving.
  • QRACs Offer Qubit Reduction: QRAC embeddings allow for representing functions with fewer qubits than the input dimension, particularly for low-degree functions. A single QRAC-based VLQM can represent functions of degree $d \leq \lceil n/3 \rceil$ using $\lceil n/3 \rceil$ qubits.
  • Ensembles of QRACs are Powerful: Similar to phase embedding, ensembles of QRAC-based VLQMs can represent functions of degree $d \leq \lceil n/3 \rceil$.
  • Classical Preprocessing Matters: Both embeddings benefit from classical preprocessing of input bits, which can help map inputs to the quantum circuit and potentially reduce qubit requirements.
  • Hardware Validation: The theoretical findings are supported by experimental results on IBM quantum hardware, demonstrating the practical feasibility of these approaches.

Key Results

  • Theorem 1: Any real-valued function on the $n$-dimensional Boolean cube can be represented by a variational linear quantum model with $n$ qubits using phase embedding.
  • Theorem 2: An ensemble of variational linear quantum models using phase embedding with $d$ qubits can represent any function of degree at most $d$.
  • Theorem 3 & 4: A single variational linear quantum model using QRAC embedding can express functions of degree $d \leq \lceil n/3 \rceil$ using $\lceil n/3 \rceil$ qubits, especially with input permutations.
  • Theorem 5: An ensemble of QRAC-based variational linear quantum models can represent any function on the Boolean cube with degree $d \leq \lceil n/3 \rceil$.
  • Experimental Validation: Numerical simulations and experiments on IBM quantum processors successfully demonstrated the ability of both phase and QRAC embeddings to fit target functions with high accuracy, even with reduced qubit counts for QRAC. For instance, a 3-bit function was accurately fitted using a single qubit with QRAC, and a 6-bit function was fitted using two qubits with QRAC.

Limitations and Future Work

  • Ensemble Size: While ensembles offer efficiency, the number of models required can still be factorial in the degree of the function (e.g., $\binom{n}{d}$ for phase embedding), which can become computationally intractable. Future work could explore smaller ensembles.
  • Generalization: The current work focuses on expressivity and fitting the training data perfectly. Future research should investigate the generalization capabilities of these models to unseen data.
  • Classical Preprocessing Impact: The paper notes the benefits of classical preprocessing but suggests further study into its impact and potential for designing more efficient PQCs.
  • Observable Choice: The experiments primarily used $D=Z^{\otimes m}$, which is sufficient for the chosen low-degree functions. However, for more complex functions, a more general observable might be needed, and the expressivity with fixed observables is an open question.
  • Comparison to Classical ML: While a brief comparison to classical neural networks is made, a more in-depth benchmarking of model ensembles and their resource requirements would be valuable.
  • Hardware Limitations: The experiments were performed on near-term quantum hardware, and future work could explore the impact of noise and decoherence on these models.

Summary updated

BibTeX
@article{herman2022expressivity,
  author = {Dylan Herman and Rudy Raymond and Muyuan Li and Nicolas Robles and Antonio Mezzacapo and Marco Pistoia},
  title = {{Expressivity of Variational Quantum Machine Learning on the Boolean Cube}},
  journal = {IEEE Transactions on Quantum Engineering},
  year = {2022},
}
Figure