Simulating Quantum Computation Using Probabilistic Programming
Yafei Yang, Chung-chieh Shan
Abstract
Developing quantum programs requires not only running them on quantum hardware but also simulating them on classical hardware. Because the meaning of a quantum program can be defined in terms of state vectors, it can be viewed as a form of weighted nondeterminism and simulated using any implementation of probabilistic programming that supports complex or at least negative weights. In this study, we compile a high-level quantum programming language to one such implementation of probabilistic programming, a solver for factor graph grammars. We also extend the solver with an optimization that commutes the tensor operations einsum and expand. We prove that the compiler and the optimization preserve the denotational semantics of the source language. We perform benchmarks that show our straightforward implementation, by repurposing existing infrastructure for probabilistic programming, attains simulation performance in the ballpark of several other quantum simulators.
Create a lesson
Related papers
A Complete Calculus for Hamiltonian Quantum Programming
Shared title terminology · Jacques Carette, Chris Heunen, Robin Kaarsgaard et al.
Stochastic Summaries: Characterizing Structured Datasets Using Probabilistic Programs
Shared title terminology · Jack Stanek, Adithya Murali
Countable Nondeterminism in Weighted Programming with an Application to Mechanized Foundations for Probabilistic Program Verification
Shared title terminology · Sebastian Körner, Oliver Emil Bøving, Christoph Matheja
Automated Verification of Hamiltonian Simulation by Quantum Signal Processing
Shared title terminology · Min Lai, Yu-Fang Chen, Shih-Han Hung
Compositional Information Geometry of Probabilistic Programs
Shared title terminology · Jacek Karwowski, Frank Nielsen, Sam Staton
Bayes Rule for Conditioning Probabilistic Programs
Shared title terminology · Feras A. Saad