Abstract A hybrid quantum–classical approach to model continuous classical probability distributions using a variational quantum circuit is proposed. The architecture of this quantum generator consists of a quantum circuit that encodes a classical random variable into a quantum state and a parameterized quantum circuit trained to mimic the target distribution. The model allows for easy interfacing with a classical function, such as a neural network, and is trained using an adversarial learning approach. It is shown that the quantum generator is able to learn using either a classical neural network or a variational quantum circuit as the discriminator model. This implementation takes advantage of automatic differentiation tools to perform the optimization of the variational circuits employed. The framework presented here for the design and implementation of the variational quantum generators can serve as a blueprint for designing hybrid quantum–classical models for other machine learning tasks.
Introduction
Generative modeling—the ability of a machine to learn an underlying data distribution and synthesize new, representative samples—stands as a cornerstone of modern artificial intelligence. While quantum machine learning has made significant strides, particularly with "Born machines" that utilize quantum mechanics to model discrete distributions (such as bitstrings), modeling continuous data remains a formidable challenge. Continuous-variable data, such as physical sensor readings, financial indices, or audio signals, are ubiquitous in real-world applications.
Current "Noisy Intermediate-Scale Quantum" (NISQ) devices are characterized by limited qubit counts and short coherence times. Bridging the gap between these hardware constraints and the requirements of continuous generative modeling requires innovative hybrid architectures. This paper introduces the Variational Quantum Generator (VQG), a framework that leverages the high-dimensional state space of quantum systems while remaining compatible with continuous classical data and robust classical optimization tools.
The Variational Quantum Generator Architecture
The core of the proposed approach is the Variational Quantum Generator (VQG). Unlike traditional quantum models that output discrete bitstrings, the VQG is designed to produce continuous numerical values by measuring the expectation values of quantum operators.
The VQG architecture consists of four distinct stages:
- Quantum Encoding: A classical random variable $z$, acting as latent noise, is mapped into a quantum state through a "quantum encoder" circuit $R(z)$.
- Variational Transformation: The encoded state is processed by a parameterized variational quantum circuit $G(\Theta_g)$. The parameters $\Theta_g$ are the learnable weights of the generator.
- Measurement Decoding: The system measures the expectation values $\langle P_i \rangle$ of a set of operators. This step is crucial as it naturally maps the quantum state back to a set of continuous classical values.
- Classical Post-processing: These expectation values can be further transformed by a classical function $f(P; \Omega_g)$, such as a small neural network, to produce the final "fake" sample $x_{Fake}$.
Adversarial Learning Schemes
The VQG is trained within a Generative Adversarial Network (GAN) framework. In this setup, a "Discriminator" model is tasked with distinguishing between real data samples and those produced by the VQG. Simultaneously, the VQG (the "Generator") is optimized to produce samples that are indistinguishable from real data to the Discriminator.
The authors explore two primary training configurations:
- Scheme I: Employs a standard classical feed-forward neural network as the discriminator. This demonstrates how a quantum generator can be integrated into existing classical deep learning pipelines.
- Scheme II: Utilizes a Variational Quantum Classifier (VQC) as the discriminator, creating a fully quantum-classical hybrid adversarial loop.
A key technical achievement of this work is the integration of Automatic Differentiation (AD) and analytical gradient techniques, such as the parameter-shift rule. This allows for efficient backpropagation of errors through both the classical and quantum components of the hybrid system.
Experimental Results
To validate the VQG, the authors conducted synthetic controlled experiments. The "real" data source was defined by a separate VQG instance with fixed, known parameters, allowing for precise benchmarking. The primary metric for success was the convergence of the generated distribution to the target distribution, measured via Kullback-Leibler (KL) divergence.
The results demonstrated successful convergence in both Scheme I and Scheme II. Over the course of training (approximately 7,000 epochs), the KL divergence decreased significantly. The statistical properties of the generated samples—specifically the mean ($\mu_x$) and standard deviation ($\sigma_x$)—closely matched those of the target data. Visual analysis of data histograms confirmed that the model's output evolved from initial random noise into a high-fidelity approximation of the target continuous distribution.
Discussion and Future Directions
While the VQG shows great promise for continuous generative modeling on NISQ devices, several challenges remain. As quantum circuits scale in depth and qubit count, they become susceptible to "barren plateaus," where gradients vanish and stall training. The authors suggest hierarchical or "block-by-block" training as potential mitigation strategies.
Furthermore, the impact of hardware noise—such as decoherence and gate errors—must be addressed when moving from simulations to real quantum processors. Future work will involve implementing error mitigation techniques and exploring more sophisticated "quantum feature maps" to scale the VQG to higher-dimensional datasets, such as images or complex molecular structures. The modularity of the VQG suggests it could eventually serve as a specialized "quantum layer" within larger, more complex classical deep learning architectures.
Summary updated