Abstract
Generating high-quality data (e.g., images or video) is one of the most exciting and challenging frontiers in unsupervised machine learning. Utilizing quantum computers in such tasks to potentially enhance conventional machine-learning algorithms has emerged as a promising application but poses big challenges due to the limited number of qubits and the level of gate noise in available devices. In this work, we provide the first practical and experimental implementation of a quantum-classical generative algorithm capable of generating high-resolution images of handwritten digits with state-of-the-art gate-based quantum computers. In our quantum-assisted machine-learning framework, we implement a quantum-circuit-based generative model to learn and sample the prior distribution of a generative adversarial network. We introduce a multibasis technique which leverages the unique possibility of measuring quantum states in different bases, hence enhancing the expressivity of the prior distribution. We train this hybrid algorithm on an ion-trap device based on ion qubits to generate high-quality images and quantitatively outperform comparable classical generative adversarial networks trained on the popular MNIST dataset for handwritten digits.
1 More- Received 26 November 2021
- Revised 19 April 2022
- Accepted 1 June 2022
DOI:https://doi.org/10.1103/PhysRevX.12.031010
Published by the American Physical Society under the terms of the Creative Commons Attribution 4.0 International license. Further distribution of this work must maintain attribution to the author(s) and the published article’s title, journal citation, and DOI.
Published by the American Physical Society
Physics Subject Headings (PhySH)
Focus
Quantum-Aided Machine Learning Shows Its Value
Published 15 July 2022
A machine-learning algorithm that includes a quantum circuit generates realistic handwritten digits and performs better than its classical counterpart.
See more in Physics
Popular Summary
Generative modeling is a subdomain of machine learning where the goal is to learn from collected data and generate similar but novel data. In the last decade, we have encountered classical techniques for generative modeling with an impressive performance in application domains ranging from image generation to natural language processing. And although modern computational hardware allows for training large models with billions of parameters, there is still a distinct yearning for a class of powerful, efficient, and compact generative algorithms. Quantum computers promise to fill that gap with their natural ability to encode and access complex data distributions. Our work demonstrates the first large-scale generative algorithm with a quantum component on quantum hardware capable of generating high-resolution images.
In our quantum-assisted approach, we leverage a family of classical algorithms named generative adversarial networks (GANs). While GANs are famous for generating images of fictitious human faces indistinguishable from real humans, they are notorious for displaying learning instabilities. We aim to stabilize and enhance GANs by providing them with quantum measurements from a flexible quantum circuit component. Our framework outperforms comparable conventional GANs on a canonical dataset of handwritten digits and maintains its performance when all quantum circuits are performed on an ion-trap quantum computer.
Our results indicate that current quantum computers can already be applied and tested for practical generative learning tasks using our quantum-assisted framework. As quantum algorithms improve and quantum computers become more robust, we expect quantum models to become a critical component of many large-scale generative algorithms.