Proto-Quipper with dynamic lifting
Quipper is a functional language for programming quantum circuits. Proto-Quipper is a family of languages aiming to provide a formal foundation for Quipper. In this paper, we extend Proto-Quipper-M with a construct called dynamic lifting, which is present in Quipper. By virtue of being a circuit description language, Proto-Quipper has two separate runtimes: circuit generation time and circuit execution time. Values that are known at circuit generation time are called parameters, and values that are known at circuit execution time are called states. Dynamic lifting is an operation that enables a state, such as the result of a measurement, to be lifted to a parameter, where it can influence the generation of the next portion of the circuit. As a result, dynamic lifting enables Proto-Quipper programs to interleave classical and quantum computation. We describe the syntax of a language we call Proto-Quipper-Dyn. Its type system uses a system of modalities to keep track of the use of dynamic lifting. We then provide an operational semantics, as well as a notion of categorical model for dynamic lifting. We also construct a concrete instance of such a model based on biset-enrichment. We prove that both the type system and the operational semantics are sound with respect to our categorical semantics. Finally, we give some examples of Proto-Quipper-Dyn programs that make essential use of dynamic lifting.
Authors
- Peng Fu (ORCID: https://orcid.org/0000-0002-3123-0867)
- Neil J. Ross (ORCID: https://orcid.org/0000-0003-0941-4333)
- Peter Selinger (ORCID: https://orcid.org/0000-0003-3161-856X)
- Kohei Kishida (ORCID: https://orcid.org/0000-0002-6719-1521)
Institutions
- Dalhousie University (CA)
- University of South Carolina (US)
- University of Illinois Urbana-Champaign (US)
Publication Details
- Journal
- Journal of Functional Programming
- Published
- 2026-09-15
- DOI
- https://doi.org/10.46298/jfp.18066
- Primary Topic
- Quantum Computing Algorithms and Architecture
- Type
- article
- Field-Weighted Citation Impact
- 0.00
Funders
- U.S. Air Force
- Natural Sciences and Engineering Research Council of Canada