Bayesian Inference in Quantum Programs

Christina Gehnen, Dominique Unruh, Joost-Pieter Katoen

arXiv:2504.20732·cs.LO·Published 2025-04-29

Conditioning is a key feature in probabilistic programming to enable modeling the influence of data (also known as observations) to the probability distribution described by such programs. Determining the posterior distribution is also known as Bayesian inference. This paper equips a quantum while-language with conditioning, defines its denotational and operational semantics over infinite-dimensional Hilbert spaces, and shows their equivalence. We provide sufficient conditions for the existence of weakest (liberal) precondition-transformers and derive inductive characterizations of these transformers. It is shown how w(l)p-transformers can be used to assess the effect of Bayesian inference on (possibly diverging) quantum programs.

TopicsGenerative Models & Discovery

Tagsbayesian-inference

arXiv categoriescs.LO, quant-ph

arXiv abstract pagePDF