Abstract
Most of the existing quantum neural network models, such as variational quantum circuits (VQCs), are limited in their ability to explore the non-linear relationships in input data. This gradually becomes the main obstacle for it to tackle realistic applications, such as natural language processing, medical image processing, and wireless communications. Recently, there have emerged research efforts that enable VQCs to perform non-linear operations. However, it is still unclear on the approximability of a given VQC (i.e., the order of non-linearity that can be handled by a specified design). In response to this issue, we developed an automated tool designed to benchmark the approximation of a given VQC. The proposed tool will generate a set of synthetic datasets with different orders of non-linearity and train the given VQC on these datasets to estimate their approximability. Our experiments benchmark VQCs with different designs, where we know their theoretic approximability. We then show that the proposed tool can precisely estimate the approximability, which is consistent with the theoretic value, indicating that the proposed tool can be used for benchmarking the approximability of a given quantum circuit for learning tasks.
TL;DR
QuApprox is a new automated benchmarking framework designed to measure exactly how much non-linearity a Variational Quantum Circuit (VQC) can handle. By testing circuits against synthetic datasets with controlled levels of polynomial complexity, it provides a quantitative "Approximability Score," helping researchers move beyond trial-and-error when designing quantum machine learning models for complex, real-world data.
The Challenge: The Linearity Trap in Quantum ML
In the world of classical machine learning, non-linearity is essential. Deep neural networks succeed because they use non-linear activation functions (like ReLU or Sigmoid) to model complex relationships. However, Variational Quantum Circuits (VQCs)—the "neural networks" of the quantum world—are fundamentally linear. A quantum circuit is essentially a series of matrix multiplications (unitary transformations) acting on a statevector.
This inherent linearity makes it incredibly difficult for VQCs to tackle real-world tasks like natural language processing or medical image analysis, where the relationships between data points are rarely straight lines. While researchers have developed techniques to introduce non-linearity (such as data re-uploading or specific encoding schemes), there has lacked a standard way to measure their effectiveness. We didn't know the "approximability" of a circuit—essentially, the maximum "order" of non-linearity a specific design could actually process.
Methods: The QuApprox Pipeline
The authors introduce QuApprox, an automated pipeline that evaluates a VQC’s capacity for non-linearity. The framework consists of four main stages:
- Quantum Neural Network Design: The user inputs their VQC design, including the data encoder, the computation circuit, and the measurement scheme.
- Dataset Generator: The tool generates groups of synthetic datasets ($G_1, G_2, \dots, G_n$). Each group corresponds to a specific degree of polynomial non-linearity. For example, a Group 2 ($G_2$) dataset might be built using 4th-order polynomials.
- Trainer: The VQC is trained on these datasets using standard classical optimization techniques.
- Approximability Quantifier: The tool calculates a final score based on a weighted combination of Root Mean Squared Error (RMSE) and the $R^2$ coefficient. This score tells you how well the circuit "fit" the non-linear curve.
A key technique highlighted is ST-VQC (Spatial-Temporal VQC), which introduces non-linearity by selectively duplicating input data groups. QuApprox is used to prove exactly how much this duplication helps.
Benchmarking Datasets
The paper uses two primary synthetic benchmarking datasets:
- D1: A simpler setup with 2 input variables and 1 output.
- D2: A more complex setup with 4 input variables and 1 output.
Each dataset is divided into four groups (G1 to G4). The group index $X$ represents the order of polynomials used ($2X$). So, G1 uses 2nd-order polynomials, while G4 uses 8th-order polynomials. Each group contains 10 different polynomial combinations with 400 sample points each, providing a robust test of the model's generalization.
Key Insights and Ideas
- The Linearity Ceiling: The paper confirms that "vanilla" VQCs (using standard amplitude or angle encoding) are effectively limited to 2nd-order polynomials. Once the data complexity hits G2 or higher, their performance craters.
- Encoding is Everything: The results show that non-linearity isn't just about the gates in the circuit; it's about how data enters the system. Duplicating inputs (as seen in ST-VQC) acts as a "non-linearity multiplier."
- Theoretical Alignment: One of the most important findings is that QuApprox’s empirical scores match theoretical predictions. If a circuit is mathematically designed to handle 4th-order polynomials, QuApprox correctly identifies that its performance drops off exactly when it hits 6th-order ($G_3$) datasets.
- No Universal Solution: The authors demonstrate that a circuit might perform perfectly on one dataset but fail on another if the underlying non-linearity is different. This highlights the need for task-specific benchmarking.
Key Results
- ST-VQC Superiority: In tests on Dataset D1, the ST-VQC(2 dup.) model (which duplicates inputs twice) maintained an approximability score of 0.979 even on the most complex G4 (8th-order) data. In contrast, standard Amplitude encoding dropped to 0.509.
- The Complexity Ceiling: On the more difficult D2 dataset, even the advanced ST-VQC models saw a performance dip at G4 (dropping to a score of 0.52). This suggests that as input dimensions increase, the number of parameters and qubits must scale significantly to maintain approximability.
Limitations and Future Work
- Computational Cost: Training quantum circuits—even in simulation—is slow. Scaling QuApprox to very large circuits will require more efficient simulation or faster hardware.
- The Search Space Problem: While QuApprox can evaluate a design, it doesn't yet optimize one. Future work could integrate QuApprox with Neural Architecture Search (NAS) to automatically discover the best circuit for a specific non-linearity level.
- Noise in the Real World: These experiments were largely conducted in ideal (noise-free) environments. Testing how hardware noise affects a circuit's ability to handle non-linearity is a crucial next step for the NISQ era.
Summary updated