Table of Contents
Fetching ...

With a Few Square Roots, Quantum Computing is as Easy as Π

Jacques Carette, Chris Heunen, Robin Kaarsgaard, Amr Sabry

TL;DR

The paper introduces a minimal yet powerful semantic framework—rig groupoids extended with an 8th-root of identity and a square root of symmetry—to model universal quantum computation with a sound and complete equational theory for Clifford, Clifford+T (up to 2 qubits), and Gaussian Clifford+T circuits. The core idea is to treat quantum gates as composable, verifiable morphisms within Π, extended to √Π, enabling circuit reasoning via rig-category coherence rather than explicit linear algebra. The authors demonstrate full abstraction results for multiple gate sets, derive Gaussian dyadic rational unitary completeness, and provide a practical Agda formalization to verify circuit identities such as Sleator–Weinfurter. This framework yields SPiLang, a universal quantum programming language with an equational theory that remains gate-set-agnostic, offering a principled bridge between high-level programming and the gate-level circuit model with broad implications for quantum language design and verification.

Abstract

Rig groupoids provide a semantic model of \PiLang, a universal classical reversible programming language over finite types. We prove that extending rig groupoids with just two maps and three equations about them results in a model of quantum computing that is computationally universal and equationally sound and complete for a variety of gate sets. The first map corresponds to an $8^{\text{th}}$ root of the identity morphism on the unit $1$. The second map corresponds to a square root of the symmetry on $1+1$. As square roots are generally not unique and can sometimes even be trivial, the maps are constrained to satisfy a nondegeneracy axiom, which we relate to the Euler decomposition of the Hadamard gate. The semantic construction is turned into an extension of \PiLang, called \SPiLang, that is a computationally universal quantum programming language equipped with an equational theory that is sound and complete with respect to the Clifford gate set, the standard gate set of Clifford+T restricted to $\le 2$ qubits, and the computationally universal Gaussian Clifford+T gate set.

With a Few Square Roots, Quantum Computing is as Easy as Π

TL;DR

The paper introduces a minimal yet powerful semantic framework—rig groupoids extended with an 8th-root of identity and a square root of symmetry—to model universal quantum computation with a sound and complete equational theory for Clifford, Clifford+T (up to 2 qubits), and Gaussian Clifford+T circuits. The core idea is to treat quantum gates as composable, verifiable morphisms within Π, extended to √Π, enabling circuit reasoning via rig-category coherence rather than explicit linear algebra. The authors demonstrate full abstraction results for multiple gate sets, derive Gaussian dyadic rational unitary completeness, and provide a practical Agda formalization to verify circuit identities such as Sleator–Weinfurter. This framework yields SPiLang, a universal quantum programming language with an equational theory that remains gate-set-agnostic, offering a principled bridge between high-level programming and the gate-level circuit model with broad implications for quantum language design and verification.

Abstract

Rig groupoids provide a semantic model of \PiLang, a universal classical reversible programming language over finite types. We prove that extending rig groupoids with just two maps and three equations about them results in a model of quantum computing that is computationally universal and equationally sound and complete for a variety of gate sets. The first map corresponds to an root of the identity morphism on the unit . The second map corresponds to a square root of the symmetry on . As square roots are generally not unique and can sometimes even be trivial, the maps are constrained to satisfy a nondegeneracy axiom, which we relate to the Euler decomposition of the Hadamard gate. The semantic construction is turned into an extension of \PiLang, called \SPiLang, that is a computationally universal quantum programming language equipped with an equational theory that is sound and complete with respect to the Clifford gate set, the standard gate set of Clifford+T restricted to qubits, and the computationally universal Gaussian Clifford+T gate set.
Paper Structure (25 sections, 12 theorems, 49 equations, 13 figures)

This paper contains 25 sections, 12 theorems, 49 equations, 13 figures.

Key Result

theorem 1

$\Pi$ is universal for classical reversible circuits, i.e., boolean bijections $\mathbb{2}^n \to \mathbb{2}^n$ (for any natural number $n$).

Figures (13)

  • Figure 1: $XZX$ and $ZXZ$ rotations with all angles at $\pi/2$.
  • Figure 2: Quantum circuit for $\mathsf{CCX}$.
  • Figure 3: The syntax of $\Pi$.
  • Figure 4: Types for $\Pi$ combinators
  • Figure 5: Derived $\Pi$ constructs.
  • ...and 8 more figures

Theorems & Definitions (36)

  • definition 1: Computational universality aharonov:toffolihadamard
  • theorem 1: $\Pi$ Expressivity
  • theorem 2: $\Pi$ Full Abstraction and Adequacy 10.1145/3498667
  • definition 2
  • definition 3
  • proposition 1
  • proof
  • definition 4: Models
  • proposition 2
  • proof
  • ...and 26 more