[Paper Review] Use of a Quantum Computer to do Importance and Metropolis-Hastings Sampling of a Classical Bayesian Network
This paper proposes a quantum algorithm for performing importance sampling and Metropolis-Hastings sampling on classical Bayesian networks using a quantum computer. By leveraging a quantum embedding technique that maps classical Bayesian networks into quantum Bayesian networks (QB nets), the method enables efficient sampling via quantum circuits, with theoretical guarantees of detailed balance and convergence to the target distribution.
Importance sampling and Metropolis-Hastings sampling (of which Gibbs sampling is a special case) are two methods commonly used to sample multi-variate probability distributions (that is, Bayesian networks). Heretofore, the sampling of Bayesian networks has been done on a conventional "classical computer". In this paper, we propose methods for doing importance sampling and Metropolis-Hastings sampling of a classical Bayesian network on a quantum computer.
Motivation & Objective
- To extend prior quantum sampling methods for Bayesian networks beyond rejection and likelihood weighting to include general importance sampling.
- To develop a quantum algorithm for Metropolis-Hastings sampling, including Gibbs sampling as a special case, on classical Bayesian networks.
- To establish a framework for simulating classical probabilistic inference on quantum hardware using quantum Bayesian networks (QB nets).
- To ensure that the proposed quantum sampling methods preserve detailed balance and converge to the correct target distribution.
- To generalize previous results from Ref.[5] by applying the embedding technique of Ref.[4] to a broader class of sampling algorithms.
Proposed method
- Utilizes a quantum embedding technique to map a classical Bayesian network (CB net) into a quantum Bayesian network (QB net), enabling quantum simulation of classical probabilistic models.
- Employs quantum circuits to implement importance sampling by preparing superposition states corresponding to proposal distributions and using amplitude amplification principles.
- Applies controlled quantum gates (e.g., CNOT, Toffoli) and single-qubit operations to simulate conditional probability transitions in the Bayesian network.
- Designs a quantum Metropolis-Hastings algorithm using a proposal distribution Q(yi|xt) and acceptance probability αi = min(1, F(xt_i ← yi)/F(yi ← xt_i)), where F denotes flux of probability.
- Uses projection operators P_a and Pauli matrices to encode classical variable states into qubit states, enabling unitary evolution over the joint state space.
- Implements a stochastic update rule on the quantum state: xt+1_i = yi with probability αi, otherwise xt+1_i = xt_i, realized via controlled rotations and measurement.
Experimental results
Research questions
- RQ1Can importance sampling of a classical Bayesian network be efficiently implemented on a quantum computer using quantum circuit-based methods?
- RQ2How can the Metropolis-Hastings algorithm, including Gibbs sampling, be adapted to run on a quantum computer while preserving detailed balance?
- RQ3What is the role of quantum Bayesian network (QB net) embeddings in enabling quantum simulation of classical probabilistic graphical models?
- RQ4How do quantum circuits ensure that the stationary distribution of the Markov chain matches the target posterior distribution of the classical Bayesian network?
- RQ5What are the quantum circuit implementations of the acceptance probability and state transition rules in quantum Metropolis-Hastings sampling?
Key findings
- The proposed quantum algorithm successfully generalizes prior quantum sampling methods to include all forms of importance sampling, not just rejection and likelihood weighting.
- The quantum Metropolis-Hastings algorithm preserves detailed balance, ensuring convergence to the correct target distribution P(x) as required by Markov chain Monte Carlo theory.
- The acceptance probability αi is defined as min(1, F(xt_i ← yi)/F(yi ← xt_i)), where F represents the probability flux, ensuring the algorithm remains within the bounds of a valid stochastic process.
- The method achieves convergence to the target distribution through repeated application of quantum-controlled transitions, with the probability of accepting a new state proportional to the ratio of forward and reverse fluxes.
- The algorithm is robust to the choice of proposal distribution Q(yi|xt) and maintains detailed balance even when Q is not symmetric.
- The framework is demonstrated via quantum circuits for two example networks (two-body scattering and Asia net), showing feasibility of implementation on existing quantum hardware.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.