Typed Compositional Quantum Computation with Lenses
Jacques Garrigue, Takafumi Saikawa
Nagoya University
Abstract
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 Rocq , currying on quantum states allows one 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.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- A Lambda Calculus Based on Quantum LogicarXiv · 2026
- Granthi: Higher-Order Quantum Programming via Unitary WiringProceedings of the ACM on Programming Languages · 2026
- Controlled PROP: Theory and Applications to Quantum CircuitsarXiv · 2026
- A Complete Equational Theory for Quantum Circuits with Generalized ControlarXiv · 2026
- Essential Unitarity for Higher-Order Quantum Computation (Extended Abstract)arXiv · 2026
- Vy ZX: Formal Verification of a Graphical Quantum LanguageACM Transactions on Programming Languages and Systems · 2026