Simulating Quantum Computation Using Probabilistic Programming
Yafei Yang, Chung-chieh Shan
Key points
From the paper's conclusion- 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.
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 $\mathsf{einsum}$ and $\mathsf{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.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Quantum Monte Carlo Estimation via Probabilistic ProgrammingProceedings of the ACM on Programming Languages · 2026
- A Complete Calculus for Hamiltonian Quantum ProgrammingarXiv · 2026
- Variational Programs with Open ClocksarXiv · 2026
- Automating quantum circuit optimization with AI agentsarXiv · 2026
- Verification and Evaluation of A Comprehensive Quantum Simulation CompilerarXiv · 2026
- Verified Pauli-Product Measurement Compilation for Fault-Tolerant Quantum ComputationarXiv · 2026