Bayesian Quantum Circuit

Yuxuan Du, Tongliang Liu, Dacheng TaoarXiv 2018 · DOI

Abstract

Parameterized quantum circuits (PQCs) represent a cornerstone of quantum machine learning on near-term hardware. However, existing generative models often suffer from mode contraction, the generation of invalid data, and difficulties in direct sampling. We present the Bayesian Quantum Circuit (BQC), a framework that addresses these limitations by incorporating ancillary qubits to represent prior distributions. By decomposing the circuit into prior and likelihood components, BQC enables robust generative and semi-supervised learning. Numerical simulations on the Rigetti Forest platform demonstrate that BQC significantly outperforms standard Quantum Circuit Born Machines (QCBM), achieving nearly double the accuracy on complex synthetic benchmarks.

1. Introduction

In the Noisy Intermediate-Scale Quantum (NISQ) era, the search for quantum advantage focuses heavily on Parameterized Quantum Circuits (PQCs). These circuits serve as trainable statistical models capable of representing high-dimensional probability distributions. Despite their potential, current generative approaches—most notably Data-Driven Quantum Circuit Learning (DDQCL) and Quantum Circuit Born Machines (QCBM)—face significant practical hurdles.

First, they frequently encounter mode contraction, where the model fails to capture the diversity of the target distribution, focusing instead on a narrow subset of patterns. Second, as the state space expands, these models often allocate significant probability mass to invalid data, reducing efficiency. Finally, the "black-box" nature of standard PQCs makes it difficult to perform conditional sampling or extract latent features. This paper introduces the Bayesian Quantum Circuit (BQC) to resolve these issues by grounding quantum circuit design in Bayesian inference.

2. The Bayesian Quantum Circuit (BQC) Framework

The BQC architecture departs from traditional PQCs by explicitly separating the representation of latent variables from the data itself.

2.1 Architecture and Probability Decomposition

A BQC utilizes $m$ ancillary qubits to represent a prior distribution $P(\lambda)$ and $n$ data qubits to represent the likelihood $P(x|\lambda)$. The total system state is prepared such that the joint distribution is captured: $$P(x, \lambda) = P(x|\lambda)P(\lambda)$$

The circuit is structured into two primary blocks:

  1. Prior Block ($U(\gamma)$): Prepares the ancillary qubits in a state representing the latent structure (e.g., clusters or categories).
  2. Likelihood Block ($U(\theta)$): Applies gates to the data qubits, conditioned on the state of the ancillary qubits.

This structure allows the model to act as a "mapping operator," transforming a structured prior into a complex data distribution, which provides a more stable learning signal than mapping a vacuum state directly to data.

2.2 Optimization Strategy

BQC employs a hybrid quantum-classical optimization loop. The quantum processor generates samples, which are then evaluated by a classical optimizer using the Squared Maximum Mean Discrepancy (MMD) loss function. This kernel-based loss measures the distance between the generated distribution and the target data, allowing for the simultaneous training of both the prior parameters ($\gamma$) and likelihood parameters ($\theta$).

3. Experimental Evaluation

The efficacy of BQC was tested using the Rigetti Forest simulation platform across two distinct tasks.

3.1 Generative Modeling: Bars and Stripes (BAS)

The Bars and Stripes dataset is a standard benchmark for discrete generative models. On the $3 \times 3$ pixel version of this task, BQC was compared against the standard QCBM.

  • Accuracy: BQC achieved an accuracy of 89.91%, whereas QCBM reached only 46.76%.
  • Distribution Quality: While QCBM suffered from significant mode contraction, BQC generated all valid patterns with nearly uniform probability, demonstrating a superior ability to capture the full entropy of the target set.

3.2 Semi-Supervised Learning: Gaussian Mixture Model

To test BQC’s ability to learn unknown priors, the authors used a synthetic Gaussian mixture model. The task required the circuit to estimate the mixing coefficients of two Gaussian distributions. The BQC successfully converged to the correct prior probabilities (e.g., $P(\lambda_1) = 0.7$), demonstrating its utility in scenarios where the underlying data structure is partially unknown.

4. Discussion and Limitations

The BQC framework offers a more interpretable and robust alternative to standard PQCs. By using ancillary qubits as latent variables, it provides a natural mechanism for semi-supervised learning and conditional generation.

However, several challenges remain for hardware implementation. The reliance on controlled gates (such as CRY and Toffoli gates) to link ancillary and data qubits increases circuit depth and susceptibility to noise. Additionally, while the parameter count scales favorably, approximating continuous distributions (like Gaussians) with a finite number of discrete gates introduces inherent approximation errors.

5. Conclusion

The Bayesian Quantum Circuit represents a significant step toward integrating classical probabilistic reasoning with quantum computation. By addressing the fundamental weaknesses of current generative PQCs—mode contraction and invalid data generation—BQC provides a scalable path for quantum machine learning applications in the NISQ era and beyond.

Summary updated

BibTeX
@misc{du2018bayesian,
  author = {Yuxuan Du and Tongliang Liu and Dacheng Tao},
  title = {{Bayesian Quantum Circuit}},
  year = {2018},
  eprint = {1805.11089},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1805.11089},
}
Figure