English

Typed compositional quantum computation with lenses

Programming Languages 2026-05-12 v4 Logic in Computer Science

Abstract

We propose a type-theoretic framework for describing and proving properties of quantum computations, in particular those presented as quantum circuits. Our proposal is based on an observation that, in the polymorphic type system of Coq, currying on quantum states allows us to apply quantum gates directly inside a complex circuit. By introducing a discrete notion of lens to control this currying, we are further able to separate the combinatorics of the circuit structure from the computational content of gates. We apply our development to define quantum circuits recursively from the bottom up, and prove their correctness compositionally.

Keywords

Cite

@article{arxiv.2311.14347,
  title  = {Typed compositional quantum computation with lenses},
  author = {Jacques Garrigue and Takafumi Saikawa},
  journal= {arXiv preprint arXiv:2311.14347},
  year   = {2026}
}

Comments

Accepted by Journal of Automated Reasoning

R2 v1 2026-06-28T13:30:11.509Z