English

Automating Equational Proofs in Dirac Notation

Programming Languages 2024-11-20 v1

Abstract

Dirac notation is widely used in quantum physics and quantum programming languages to define, compute and reason about quantum states. This paper considers Dirac notation from the perspective of automated reasoning. We prove two main results: first, the first-order theory of Dirac notation is decidable, by a reduction to the theory of real closed fields and Tarski's theorem. Then, we prove that validity of equations can be decided efficiently, using term-rewriting techniques. We implement our equivalence checking algorithm in Mathematica, and showcase its efficiency across more than 100 examples from the literature.

Keywords

Cite

@article{arxiv.2411.11617,
  title  = {Automating Equational Proofs in Dirac Notation},
  author = {Yingte Xu and Gilles Barthe and Li Zhou},
  journal= {arXiv preprint arXiv:2411.11617},
  year   = {2024}
}

Comments

61 pages, 14 figures, extending the article accepted at POPL'25, artifacts available at https://zenodo.org/records/13995586

R2 v1 2026-06-28T20:03:36.783Z