Variational Quantum Generative Modeling by Sampling Expectation Values of Tunable Observables

Kevin Shen, Andrii Kurkin, Alejandra Salinas, Elvira Shishenina, Vedran Dunjko, Hao WangarXiv 2024 · DOI

Abstract

Expectation Value Samplers (EVSs) are quantum generative models that can learn high-dimensional continuous distributions by measuring the expectation values of parameterized quantum circuits. However, these models can demand impractical quantum resources for good performance. We investigate how observable choices affect EVS performance and propose an Observable-Tunable Expectation Value Sampler (OT-EVS), which achieves greater expressivity than standard EVS. By restricting the selectable observables, it is possible to use the classical shadows measurement scheme to reduce the sample complexity of our algorithm. In addition, we propose an adversarial training method adapted to the needs of OT-EVS. This training prioritizes classical updates of observables, minimizing the more costly updates of quantum circuit parameters. Numerical experiments, using an original simulation technique for correlated shot noise, confirm our model's expressivity and sample efficiency advantages compared to previous designs. We envision our proposal to encourage the exploration of continuous generative models running with few quantum resources.

Introduction

Generative modeling—the task of learning to synthesize new data samples from a target distribution—is a fundamental challenge in machine learning. While quantum computers offer a promising frontier for generative tasks, most existing models focus on discrete data. Expectation Value Samplers (EVS) provide a native pathway for continuous data by mapping the expectation values of quantum measurements to data points. Despite their potential, standard EVS models suffer from limited expressivity due to fixed observable choices and high resource costs associated with the large number of measurements (shots) required for accurate estimation.

The OT-EVS Framework

To address these limitations, we introduce the Observable-Tunable Expectation Value Sampler (OT-EVS). Unlike traditional models that rely on fixed, pre-selected observables, OT-EVS incorporates a learnable weight matrix ($\alpha$). This allows the model to optimize linear combinations of observables concurrently with the quantum circuit parameters ($\theta$).

Mathematically, this tunability ensures that the model's expressivity is at least equal to, and typically greater than, fixed-observable counterparts. This flexibility allows shallower quantum circuits to achieve performance levels previously only possible with significantly deeper architectures.

Resource Efficiency via Classical Shadows

A primary bottleneck in quantum generative modeling is the measurement overhead. We employ classical shadows, a technique that allows for the estimation of a vast number of expectation values from a single set of quantum measurements. By restricting our selectable observables to $k$-local Pauli strings, we achieve a super-polynomial resource advantage. This "shadow-frugal" parameterization enables the model to estimate an exponential number of observables with only a polynomial number of measurements.

Performance comparison of OT-EVS against fixed-observable baselines and visual MNIST generation results.

As shown in the figure above, OT-EVS (Shadows) achieves lower KL divergence with significantly fewer measurements ($N_s$) compared to fixed-observable (OF-EVS) models. The qualitative results on MNIST digits demonstrate the model's ability to capture the underlying structure of the data even under resource constraints.

Adversarial Training and Noise Robustness

Training OT-EVS utilizes a Wasserstein GAN (WGAN) framework. We propose Asynchronous and Decoupled training schemes to exploit the fact that updating the classical weight matrix is computationally inexpensive compared to updating quantum circuit parameters. By prioritizing classical updates, we maximize the utility of every expensive quantum execution.

Interestingly, our research indicates that moderate shot noise (measurement error) can act as a beneficial regularizer. Similar to noise injection in classical GANs, this stochasticity helps stabilize the alignment between the generated and target distributions, preventing the model from getting stuck in poor local minima.

Results on Image Datasets

We evaluated OT-EVS on MNIST and Fashion-MNIST datasets, compressed into latent spaces via autoencoders. The results confirm that increasing the "locality" of observables (e.g., moving from 1-local to 2-local Pauli strings) significantly enhances the model's ability to generate high-fidelity images.

KL divergence and generated samples for MNIST and Fashion-MNIST as a function of input dimension.

As illustrated in the scaling analysis, OT-EVS with $k=2$ locality consistently outperforms both 1-local variants and, in several cases, classical Multi-Layer Perceptron (MLP) baselines of comparable size. This scalability suggests that OT-EVS is a robust candidate for higher-dimensional generative tasks as quantum hardware matures.

Conclusion

The OT-EVS model represents a significant step toward practical quantum generative modeling. By making the measurement stage learnable and leveraging classical shadows, we reduce the quantum resource requirements while simultaneously increasing model expressivity. Our findings on the benefits of shot noise and the efficiency of decoupled training provide a roadmap for deploying these models on near-term quantum devices.

Summary updated

BibTeX
@misc{shen2024variational,
  author = {Kevin Shen and Andrii Kurkin and Alejandra Salinas and Elvira Shishenina and Vedran Dunjko and Hao Wang},
  title = {{Variational Quantum Generative Modeling by Sampling Expectation Values of Tunable Observables}},
  year = {2024},
  eprint = {2412.17039},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2412.17039},
}
Figure