Universality and kernel-adaptive training for classically trained, quantum-deployed generative models

Andrii Kurkin, Kevin Shen, Susanne Pielawa, Hao Wang, Vedran Dunjko · DOI

Abstract

The instantaneous quantum polynomial (IQP) quantum circuit Born machine (QCBM) has been proposed as a promising quantum generative model over bitstrings. Recent works have shown that the training of IQP-QCBM is classically tractable w.r.t. the so-called Gaussian kernel maximum mean discrepancy (MMD) loss function, while maintaining the potential of a quantum advantage for sampling itself. Nonetheless, the model has a number of aspects where improvements would be important for more general utility: (1) the basic model is known to be not universal - i.e. it is not capable of representing arbitrary distributions, and it was not known whether it is possible to achieve universality by adding hidden (ancillary) qubits; (2) a fixed Gaussian kernel used in the MMD loss can cause training issues, e.g., vanishing gradients. In this paper, we resolve the first question and make decisive strides on the second. We prove that for an $n$-qubit IQP generator, adding $n + 1$ hidden qubits makes the model universal. For the latter, we propose a kernel-adaptive training method, where the kernel is adversarially trained. We show that in the kernel-adaptive method, the convergence of the MMD value implies weak convergence in distribution of the generator. We also analytically analyze the limitations of the MMD-based training method. Finally, we verify the performance benefits on the dataset crafted to spotlight improvements by the suggested method. The results show that kernel-adaptive training outperforms a fixed Gaussian kernel in total variation distance, and the gap increases with the dataset dimensionality. These modifications and analyses shed light on the limits and potential of these new quantum generative methods, which could offer the first truly scalable insights in the comparative capacities of classical versus quantum models, even without access to scalable quantum computers.

Introduction

Quantum computing promises significant leaps for machine learning, but current hardware limitations make it difficult to train and evaluate quantum models at scale. The Instantaneous Quantum Polynomial Quantum Circuit Born Machine (IQP-QCBM) is a unique model that can be efficiently trained on classical computers while maintaining the potential for a quantum advantage during sample generation.

Despite these advantages, the IQP-QCBM has historically faced two major limitations: a lack of universality (the inability to represent arbitrary probability distributions) and training stagnation due to vanishing gradients when using fixed kernels in the Maximum Mean Discrepancy (MMD) loss function. This paper addresses both issues through architectural modifications and a novel adaptive training framework.

Architectural Universality via Hidden Qubits

To solve the universality problem, the authors propose an IQP-QCBM architecture that incorporates "hidden" or ancillary qubits. These qubits are part of the quantum circuit's evolution but are marginalized (traced out) before the final output is measured.

The IQP-QCBM architecture featuring $m$ hidden qubits and $n$ visible qubits. The hidden qubits are traced out to enhance the model's expressive capacity.

The paper provides a constructive mathematical proof that adding exactly $n + 1$ hidden qubits to an $n$-qubit IQP generator makes the model exactly universal. This mirrors the function of hidden neurons in classical deep learning, where unobserved layers allow the model to learn and represent far more complex patterns than a single-layer system.

Kernel-Adaptive Adversarial Training

The second major contribution is a Kernel-Adaptive Adversarial Training method. Standard training often uses a fixed Gaussian kernel, which the authors prove can suffer from "blind spots" where the loss function's sensitivity decays exponentially. This leads to vanishing gradients, causing training to stall.

Instead of a fixed kernel, the authors parameterize the kernel using a classical autoregressive neural network. Training then becomes a min-max game similar to Generative Adversarial Networks (GANs):

  1. The Critic: A classical network learns to adapt the kernel to find the specific features where the quantum generator's output differs most from the target data.
  2. The Generator: The quantum model updates its parameters to minimize the discrepancy highlighted by the adaptive kernel.

Key Results

The authors evaluated their methods on synthetic parity-check datasets designed to be particularly difficult for standard Gaussian kernels. These datasets feature unique frequencies concentrated at high Hamming weights, intentionally spotlighting the weaknesses of fixed kernels.

Total Variation Distance (TVD) convergence across iterations for varying numbers of ancilla (hidden) qubits. Increasing the number of ancillas leads to significantly lower TVD and better convergence.

Empirical results demonstrate that increasing the number of hidden qubits significantly improves the model's ability to minimize the Total Variation Distance (TVD). Furthermore, the kernel-adaptive training consistently outperformed fixed kernels, with the performance gap widening as the problem dimensionality increased. For a 16-bit task, the adaptive method achieved a TVD of 0.580, while the fixed kernel stagnated at 0.733.

Limitations and Future Work

While the $n+1$ hidden qubit proof establishes theoretical universality, the authors note that this setup requires an exponentially large number of parameters, making it practically untrainable in its exact form. Real-world applications will require a balance between the number of hidden qubits and computational feasibility. Additionally, the authors prove that MMD-based training has inherent mathematical limits; certain "worst-case" distributions will always be difficult to train, regardless of the kernel used. Future research will explore tighter bounds for practical universality and test these methods on non-synthetic, real-world datasets.

Summary updated

BibTeX
@misc{kurkin2025universality,
  author = {Andrii Kurkin and Kevin Shen and Susanne Pielawa and Hao Wang and Vedran Dunjko},
  title = {{Universality and kernel-adaptive training for classically trained, quantum-deployed generative models}},
  year = {2025},
  eprint = {2510.08476},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2510.08476},
  howpublished = {arXiv},
}
Figure