[Paper Review] Quantum Inference on Bayesian Networks
This paper presents an unrelativized quantum speedup for approximate inference on Bayesian networks using quantum rejection sampling. By exploiting the network's graphical structure, the authors design an efficient quantum circuit that prepares a quantum state representing the joint distribution and applies amplitude amplification, achieving a square-root speedup over classical sampling: $Ø(n2^mP(e)^{-1/2})$ vs. $Ø(nmP(e)^{-1})$ time per sample.
Performing exact inference on Bayesian networks is known to be #P-hard. Typically approximate inference techniques are used instead to sample from the distribution on query variables given the values $e$ of evidence variables. Classically, a single unbiased sample is obtained from a Bayesian network on $n$ variables with at most $m$ parents per node in time $\mathcal{O}(nmP(e)^{-1})$, depending critically on $P(e)$, the probability the evidence might occur in the first place. By implementing a quantum version of rejection sampling, we obtain a square-root speedup, taking $\mathcal{O}(n2^mP(e)^{-\frac12})$ time per sample. We exploit the Bayesian network's graph structure to efficiently construct a quantum state, a q-sample, representing the intended classical distribution, and also to efficiently apply amplitude amplification, the source of our speedup. Thus, our speedup is notable as it is unrelativized -- we count primitive operations and require no blackbox oracle queries.
Motivation & Objective
- To develop a practical quantum algorithm for approximate inference on Bayesian networks that avoids reliance on black-box oracles.
- To address the computational bottleneck in classical rejection sampling, which scales inversely with the evidence probability $P(e)$, especially when $P(e)$ is exponentially small.
- To leverage the conditional independence structure of Bayesian networks to efficiently construct quantum state preparation circuits.
- To demonstrate an unrelativized quantum speedup—counting physical gate operations—over classical sampling methods.
- To enable experimental feasibility of quantum Bayesian inference on small networks with current quantum hardware.
Proposed method
- Construct a quantum circuit using controlled-NOT gates and single-qubit rotations to prepare a pure quantum state $|\psi_P\rangle$ encoding the joint distribution $P(\mathcal{Q}, \mathcal{E})$ of the Bayesian network.
- Exploit the network's bounded indegree $m$ to ensure the state preparation complexity scales as $\mathcal{O}(n2^m)$, linear in the number of nodes $n$.
- Implement amplitude amplification via the Grover iterate $\hat{G} = -\hat{A}\hat{S}_0\hat{A}^\dagger\hat{S}_e$, where $\hat{A}$ prepares the state and $\hat{S}_e$, $\hat{S}_0$ mark the target and all-zero states.
- Use repeated application of the Grover iterate to amplify the amplitude of states consistent with the evidence $\mathcal{E} = e$, enabling efficient sampling from $P(\mathcal{Q}|\mathcal{E}=e)$.
- Measure the resulting quantum state to obtain a sample from the conditional distribution, with success probability proportional to $P(e)$.
- Ensure the entire algorithm is unrelativized by explicitly constructing all components from elementary quantum gates, avoiding reliance on abstract oracles.
Experimental results
Research questions
- RQ1Can quantum algorithms achieve a practical, unrelativized speedup for approximate inference on Bayesian networks without relying on black-box oracles?
- RQ2To what extent can the graphical structure of a Bayesian network be exploited to make quantum state preparation efficient?
- RQ3Does amplitude amplification provide a square-root speedup in the context of Bayesian network inference when the evidence probability $P(e)$ is small?
- RQ4Can the quantum rejection sampling framework be implemented with explicit, physical gate decompositions suitable for near-term quantum devices?
- RQ5What is the gate complexity of quantum inference on Bayesian networks, and how does it scale with network size and evidence probability?
Key findings
- The quantum algorithm achieves a square-root speedup over classical rejection sampling, reducing the time complexity from $\mathcal{O}(nmP(e)^{-1})$ to $\mathcal{O}(n2^mP(e)^{-1/2})$.
- The state preparation circuit for the joint distribution $P(\mathcal{Q}, \mathcal{E})$ is constructed explicitly using $\mathcal{O}(n2^m)$ CNOT gates and single-qubit rotations, leveraging the network's bounded indegree $m$.
- The Grover iterate, which enables amplitude amplification, has a total gate count dominated by the state preparation step, resulting in an overall runtime of $\mathcal{O}(n2^mP(e)^{-1/2})$ per sample.
- The algorithm is unrelativized: all components are explicitly constructed from physical quantum gates, avoiding the need for abstract oracles or query complexity assumptions.
- The method is experimentally feasible on current quantum hardware, with a two-node Bayesian network requiring only two qubits and a small circuit, as demonstrated in the proof-of-principle example.
- The framework suggests broader applicability to other probabilistic inference tasks such as Gibbs sampling and Metropolis-Hastings, potentially enabling similar square-root speedups in quantum machine learning.
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.