Ansatz-Independent Variational Quantum Classifiers and the Price of Ansatz

Hideyuki Miyahara, Vwani Roychowdhury

Abstract

The paradigm of variational quantum classifiers (VQCs) encodes classical information as quantum states, followed by quantum processing and then measurements to generate classical predictions. VQCs are promising candidates for efficient utilizations of noisy intermediate scale quantum (NISQ) devices: classifiers involving M-dimensional datasets can be implemented with only ⌈log2 M⌉ qubits by using an amplitude encoding. A general framework for designing and training VQCs, however, is lacking. An encouraging specific embodiment of VQCs, quantum circuit learning (QCL), utilizes an ansatz: a circuit with a predetermined circuit geometry and parametrized gates expressing a time-evolution unitary operator; training involves learning the gate parameters through a gradient- descent algorithm where the gradients themselves can be efficiently estimated by the quantum circuit. The representational power of QCL, however, depends strongly on the choice of the ansatz, as it limits the range of possible unitary operators that a VQC can search over. Equally importantly, the landscape of the optimization problem may have challenging properties such as barren plateaus and the associated gradient-descent algorithm may not find good local minima. Thus, it is critically important to estimate (i) the price of ansatz; that is, the gap between the performance of QCL and the performance of ansatz-independent VQCs, and (ii) the price of using quantum circuits as classical classifiers: that is, the performance gap between VQCs and equivalent classical classifiers. This paper develops a computational framework to address both these open problems. First, it shows that VQCs, including QCL, fit inside the well-known kernel method. Next it introduces a framework for efficiently designing ansatz-independent VQCs, which we call the unitary kernel method (UKM). The UKM framework enables one to estimate the first known bounds on both the price of anstaz and the price of any speedup advantages of VQCs: numerical results with datatsets of various dimensions, ranging from 4 to 256, show that the ansatz-induced gap can vary between 10−20%, while the VQC-induced gap (between VQC and kernel method) can vary between 10−16%. To further understand the role of ansatz in VQCs, we also propose a method of decomposing a given unitary operator into a quantum circuit, which we call the variational circuit realization (VCR): given any parameterized circuit block (as for example, used in QCL), it finds optimal parameters and the number of layers of the circuit block required to approximate any target unitary operator with a given precision.

Introduction

Variational Quantum Classifiers (VQCs) represent a significant effort to leverage Noisy Intermediate-Scale Quantum (NISQ) hardware for machine learning. By employing "amplitude encoding," these models can represent high-dimensional data using a logarithmic number of qubits. However, the standard approach, Quantum Circuit Learning (QCL), relies on a fixed circuit structure or "ansatz." This dependency introduces two critical challenges: expressivity (whether the circuit can represent the target function) and trainability (whether an optimizer can find the solution in a landscape often plagued by barren plateaus). This research introduces a framework to quantify the "Price of Ansatz"—the performance loss incurred by choosing a specific circuit structure—and the "Price of VQC"—the gap between quantum classifiers and their classical kernel-based counterparts.

Methodology: Beyond Fixed Circuit Structures

To address the limitations of fixed-ansatz models, the authors propose three interconnected tools:

  1. Unitary Kernel Method (UKM): Instead of optimizing individual gate parameters, UKM optimizes the entire unitary matrix $U$ directly. By using the Method of Splitting Orthogonal Constraints (SOC), it identifies the "ideal" quantum evolution for a dataset without the constraints of a specific circuit geometry.
  2. Variational Circuit Realization (VCR): Once an ideal unitary is found via UKM, VCR decomposes it into a layered quantum circuit. This allows researchers to determine the minimum circuit depth and optimal parameters required to approximate the target unitary with a specific precision.
  3. Kernel Correspondence: The paper mathematically demonstrates that VQCs are a constrained subset of classical kernel methods. This theoretical link provides a "hard ceiling" for VQC performance based on well-established classical machine learning theory.
Overview of the VQC, QCL, UKM, and VCR frameworks.

Experimental Results and Benchmarking

The framework was evaluated using standard datasets ranging from low dimensionality (Iris, Wine) to high dimensionality (Semeion, MNIST256).

Comparative performance of UKM, QCL, and classical kernel methods across various datasets.

Key findings include:

  • The Price of Ansatz: Comparing UKM (ansatz-independent) to QCL (fixed-ansatz) revealed a performance gap of 10–20%. For example, on the Sonar dataset, UKM achieved ~79% test accuracy, while the best QCL circuit managed only ~69%.
  • The Price of VQC: Even the "ideal" quantum classifier (UKM) often underperformed compared to standard classical kernel methods by 10–16%.
  • Optimization vs. Expressivity: In QCL, adding more layers sometimes reduced performance. UKM results suggest this is often due to optimization difficulties (trainability) rather than a lack of mathematical capacity (expressivity).

Discussion and Conclusion

The study establishes the first numerical bounds on the performance gaps inherent in current quantum classification paradigms. The VCR method further revealed that approximating ideal unitaries for complex datasets requires significantly deeper circuits (e.g., ~80 layers for the Cancer dataset) than are typically used in NISQ experiments. While currently limited by the classical simulation of large unitary matrices, this "unitary-first" approach provides a rigorous roadmap for designing optimal VQCs. Future work will extend this benchmarking to alternative encoding schemes and other variational algorithms like QAOA and VQE.

Summary updated

BibTeX
@inproceedings{miyahara2022ansatz,
  author = {Hideyuki Miyahara and Vwani Roychowdhury},
  title = {{Ansatz-Independent Variational Quantum Classifiers and the Price of Ansatz}},
  booktitle = {Scientific},
  year = {2022},
  doi = {10.1038/s41598-022-20688-5},
}
Figure