Experimental Quantum Generative Adversarial Networks for Image Generation

Heliang Huang, Yuxuan Du, Ming Gong, Youwei Zhao, Yulin Wu, Chaoyue Wang, Shaowei Li, Futian Liang, Jin Lin, Yu Xu, Rui Yang, Tongliang Liu, Min-Hsiu Hsieh, Hui Deng, Hao Rong, Cheng-Zhi Peng, Chao-Yang Lu, Yu-Ao Chen, Dacheng Tao, Xiaobo Zhu, Jian-Wei PanarXiv 2020 · DOI

Abstract

Quantum machine learning is expected to be one of the first practical applications of near-term quantum devices. Pioneer theoretical works suggest that quantum generative adversarial networks (GANs) may exhibit a potential exponential advantage over classical GANs, thus attracting widespread attention. However, it remains elusive whether quantum GANs implemented on near-term quantum devices can actually solve real-world learning tasks. Here, we devise a flexible quantum GAN scheme to narrow this knowledge gap, which could accomplish image generation with arbitrarily high-dimensional features, and could also take advantage of quantum superposition to train multiple examples in parallel. For the first time, we experimentally achieve the learning and generation of real-world hand-written digit images on a superconducting quantum processor. Moreover, we utilize a gray-scale bar dataset to exhibit the competitive performance between quantum GANs and the classical GANs based on multilayer perceptron and convolutional neural network architectures, respectively, benchmarked by the Fr'echet Distance score. Our work provides guidance for developing advanced quantum generative models on near-term quantum devices and opens up an avenue for exploring quantum advantages in various GAN-related learning tasks.

Introduction

Generative Adversarial Networks (GANs) have become a cornerstone of modern artificial intelligence, with applications ranging from synthetic media generation to drug discovery. Despite their success, training classical GANs is computationally intensive, often requiring massive hardware resources. Quantum Generative Adversarial Networks (QGANs) have been proposed as a potentially more efficient alternative, with theoretical models suggesting an exponential advantage. However, experimental validation has largely been confined to "toy" problems due to the limitations of Noisy Intermediate-Scale Quantum (NISQ) hardware. This research bridges the gap by demonstrating that current quantum processors can indeed handle the high-dimensional features required for real-world image generation.

Methodology: Patch and Batch Strategies

To overcome the constraints of limited qubit counts and high error rates in NISQ devices, the researchers developed two resource-efficient strategies:

  1. Quantum Patch GAN: This approach addresses the dimensionality mismatch between small quantum processors and large image data. By dividing an image into "patches," multiple sub-generators—implemented as Parameterized Quantum Circuits (PQCs)—can generate segments of the image independently. These are then assembled for evaluation by a classical discriminator.
  2. Quantum Batch GAN: Leveraging the principle of quantum superposition, this strategy allows for the parallel processing of multiple training examples. An "index register" enables the quantum computer to calculate gradients for an entire batch of data simultaneously, offering a path toward significant speedups in large-scale training tasks.
Overview of the Quantum GAN architecture featuring patch and batch strategies, including the PQC design for generators and discriminators.

The experiments were conducted on a superconducting quantum processor using up to 6 qubits. The generators were built using PQCs, where gate angles are iteratively updated during training, analogous to weights in a classical neural network.

Experimental Results

The study utilized two primary datasets: 8x8 handwritten digits ('0' and '1') from a standard optical recognition dataset and a synthetic 2x2 gray-scale bar dataset for quantitative benchmarking.

Qualitative Success in Digit Generation

The team successfully generated 8x8 images of handwritten digits that were qualitatively similar to both the original real-world data and noiseless numerical simulations. This represents the first experimental generation of such real-world data on a quantum processor.

Comparison of real handwritten digit data with results from Quantum GAN experiments and simulations, demonstrating successful generation of '0' and '1' digits.

Quantitative Performance and Parameter Efficiency

A key finding of the research is the extreme parameter efficiency of the QGAN. In tests using the gray-scale bar dataset, a QGAN with only 9 trainable parameters outperformed classical Multilayer Perceptron (MLP) and Convolutional Neural Network (CNN) GANs with 10 parameters. Furthermore, the 9-parameter quantum model matched the performance of classical models utilizing 60 parameters, as measured by the Fréchet Distance (FD) score.

Discussion and Conclusion

The experimental results also highlighted the surprising noise resilience of the variational quantum circuits. The model successfully converged despite minimal hardware calibration during the training process, suggesting that the flexible nature of PQCs can mitigate some inherent hardware noise.

While challenges such as "barren plateaus"—regions of vanishing gradients that hinder optimization—remain a hurdle for scaling to even larger systems, this work provides a critical proof-of-concept. By demonstrating successful image generation and competitive performance against classical architectures, this research paves the way for the next generation of quantum generative models on near-term hardware.

Summary updated

BibTeX
@misc{huang2020experimental,
  author = {Heliang Huang and Yuxuan Du and Ming Gong and Youwei Zhao and Yulin Wu and Chaoyue Wang and Shaowei Li and Futian Liang and Jin Lin and Yu Xu and Rui Yang and Tongliang Liu and Min-Hsiu Hsieh and Hui Deng and Hao Rong and Cheng-Zhi Peng and Chao-Yang Lu and Yu-Ao Chen and Dacheng Tao and Xiaobo Zhu and Jian-Wei Pan},
  title = {{Experimental Quantum Generative Adversarial Networks for Image Generation}},
  year = {2020},
  eprint = {2010.06201},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2010.06201},
}
Figure