English

Hadamard-Pi: Equational Quantum Programming

Quantum Physics 2025-11-26 v2 Programming Languages

Abstract

Quantum computing offers advantages over classical computation, yet the precise features that set the two apart remain unclear. In the standard quantum circuit model, adding a 1-qubit basis-changing gate -- commonly chosen to be the Hadamard gate -- to a universal set of classical reversible gates yields computationally universal quantum computation. However, the computational behaviours enabled by this addition are not fully characterised. We give such a characterisation by introducing a small quantum programming language extending the universal classical reversible programming language Π\Pi with a single primitive corresponding to the Hadamard gate. The language comes equipped with a sound and complete categorical semantics that is specified by a purely equational theory. Completeness is shown by means of a novel finite presentation, and a corresponding synthesis algorithm, for the groups of orthogonal matrices with entries in the ring Z[12]\mathbb{Z}[\tfrac{1}{\sqrt{2}}].

Keywords

Cite

@article{arxiv.2506.06835,
  title  = {Hadamard-Pi: Equational Quantum Programming},
  author = {Wang Fang and Chris Heunen and Robin Kaarsgaard},
  journal= {arXiv preprint arXiv:2506.06835},
  year   = {2025}
}

Comments

116 pages; v2: Extended version of POPL 2026 publication

R2 v1 2026-07-01T03:05:02.736Z