Bayesian machine learning for Boltzmann machine in quantum-enhanced feature spaces

Yusen Wu, Chao-Hua Yu, Su-Juan Qin, Qiaoyan Wen, Fei GaoarXiv 2019

Abstract

Bayesian learning is ubiquitous for implementing classification and regression tasks; however, it is accompanied by computationally intractable limitations when the feature spaces become extremely large. Aiming to solve this problem, we develop a quantum Bayesian learning framework of the restricted Boltzmann machine (RBM) in quantum-enhanced feature spaces. Our framework provides an encoding phase to map real data and Boltzmann weights onto quantum feature spaces and a training phase to learn an optimal inference function. Specifically, the training phase provides a physical quantity to measure the posterior distribution in quantum feature spaces, and this measure is utilized to design the quantum maximum a posterior (QMAP) algorithm and the quantum predictive distribution estimator (QPDE). It is shown that both quantum algorithms achieve exponential speed-up over their classical counterparts. Furthermore, our framework can process classical data and output corresponding classical labels. Simulations performed on an open-source software framework for quantum computing illustrate that our algorithms show comparable classification performance to their classical counterparts. Utilizing shallow circuits, this work is expected to be implemented on noisy intermediate-scale quantum (NISQ) devices and is a promising candidate to achieve quantum supremacy.

Introduction: The Challenge of Scale

Bayesian learning is a cornerstone of modern statistical inference, prized for its ability to account for uncertainty in classification and regression. However, it faces a significant bottleneck: computational intractability. As feature spaces grow, calculating posterior and predictive distributions becomes exponentially difficult for classical hardware. Restricted Boltzmann Machines (RBMs), a class of generative neural networks, are particularly susceptible to these scaling issues. This paper explores a quantum-enhanced approach, investigating whether quantum states can represent high-dimensional feature spaces more efficiently than classical bits.

Methodology: A Hybrid Quantum-Classical Framework

The proposed framework operates in two distinct phases, leveraging the unique properties of quantum mechanics to bypass classical limitations.

1. Encoding Phase

In this stage, classical data and RBM weights are mapped onto quantum states. The researchers utilize a "parallel hardware-efficient ansatz"—a variational quantum circuit designed to represent the RBM's massive state space using a relatively small number of quantum parameters ($\theta$). This mapping is crucial for translating classical information into the quantum-enhanced feature space.

Quantum circuit diagrams for the encoding phase, mapping training data (a) and test data (b) into high-dimensional quantum states.

2. Training and Inference Phase

The framework introduces two primary algorithms for learning:

  • Quantum Maximum A Posterior (QMAP): This algorithm identifies the optimal weights by maximizing the overlap between the prior distribution and the likelihood. It employs the Simultaneous Perturbation Stochastic Approximation (SPSA) technique to iteratively update quantum parameters via classical optimization.
  • Quantum Predictive Distribution Estimator (QPDE): A more direct Bayesian approach, QPDE estimates the entire predictive distribution by sampling from the parameter space rather than searching for a single optimal weight.

The core "quantum advantage" in these algorithms is derived from the Swap Test, a quantum subroutine that measures the similarity (overlap) between two quantum states. Computing this overlap in high-dimensional spaces is a #P-hard problem classically, but can be performed efficiently on a quantum processor.

Key Results and Performance

The algorithms were evaluated using a synthetic 2D dataset for binary classification on the Huawei HiQ platform. The results demonstrate that the quantum framework is not only theoretically faster but also highly effective in practice.

  • High Accuracy: The QMAP algorithm achieved a peak success rate of 98.1%, while the QPDE algorithm reached 85%.
  • Scaling with Depth: A critical finding is the relationship between circuit depth and accuracy. As the layer depth of the quantum circuit increases, the accuracy of the model improves significantly, demonstrating the robustness of the quantum-enhanced feature space.
Performance analysis showing accuracy scaling with circuit layer depth (a) for the QMAP algorithm and the corresponding probability distribution (b).
  • Exponential Speedup: The study confirms that the quantum algorithms provide an exponential speedup over classical methods as the dimensionality of the feature space scales with the number of qubits.
  • NISQ Compatibility: By prioritizing shallow circuits, the framework is specifically designed for the constraints of current noisy intermediate-scale quantum (NISQ) hardware, which is limited by decoherence and gate noise.

Conclusion and Future Outlook

This research bridges the gap between Bayesian machine learning and quantum computing. By treating the posterior distribution as a measurable physical quantity (density matrix overlap), the framework enables efficient inference in spaces that are inaccessible to classical computers. While currently validated through high-performance simulations, the shallow-circuit design makes it a prime candidate for near-term quantum hardware. Future work will focus on scaling the number of hidden nodes in the RBM and extending the framework to other models, such as Quantum Gaussian Processes, further expanding the toolkit of quantum-enhanced Bayesian machine learning.

Summary updated

BibTeX
@misc{wu2019bayesian,
  author = {Yusen Wu and Chao-Hua Yu and Su-Juan Qin and Qiaoyan Wen and Fei Gao},
  title = {{Bayesian machine learning for Boltzmann machine in quantum-enhanced feature spaces}},
  year = {2019},
  eprint = {1912.10857},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1912.10857},
}
Figure