The Quantum Monadology
arXiv:2310.15735 · doi:10.1007/s40509-025-00368-5
Abstract
The modern theory of functional programming languages uses monads for encoding computational side-effects and side-contexts, beyond bare-bone program logic. Even though quantum computing is intrinsically side-effectful (as in quantum measurement) and context-dependent (as on mixed ancillary states), little of this monadic paradigm has previously been brought to bear on quantum programming languages. Here we systematically analyze the (co)monads on categories of parameterized module spectra which are induced by Grothendieck's "motivic yoga of operations" -- for the present purpose specialized to HC-modules and further to set-indexed complex vector spaces. Interpreting an indexed vector space as a collection of alternative possible quantum state spaces parameterized by quantum measurement results, as familiar from Proto-Quipper-semantics, we find that these (co)monads provide a comprehensive natural language for functional quantum programming with classical control and with "dynamic lifting" of quantum measurement results back into classical contexts. We close by indicating a domain-specific quantum programming language (QS) expressing these monadic quantum effects in transparent do-notation, embeddable into the recently constructed Linear Homotopy Type Theory (LHoTT) which interprets into parameterized module spectra. Once embedded into LHoTT, this should make for formally verifiable universal quantum programming with linear quantum types, classical control, dynamic lifting, and notably also with topological effects.
120 pages, various figures
References in corpus (24)
- Quantum random access memory
- Quantum Decoherence
- Architectures for a quantum random access memory
- Concrete Categorical Model of a Quantum Circuit Description Language with Measurement
- The Bitter Truth About Quantum Algorithms in the NISQ Era
- Non-Abelian Topological Order and Anyons on a Trapped-Ion Processor
- Circuit-Based Quantum Random Access Memory for Classical Data
- Homotopy theoretic models of identity types
- Topological Quantum Compiling
- A topos for algebraic quantum theory
- An -categorical approach to -line bundles, -module Thom spectra, and twisted -homology
- Is Your Quantum Program Bug-Free?
- The formal theory of relative monads
- Quantum Gauge Field Theory in Cohesive Homotopy Type Theory
- Anyonic Topological Order in Twisted Equivariant Differential (TED) K-Theory
- What Makes a Strong Monad?
- Topological Quantum Gates in Homotopy Type Theory
- On Multiplicative Linear Logic, Modality and Quantum Circuits
- DQC1 as an Open Quantum System
- Finite Vector Spaces as Model of Simply-Typed Lambda-Calculi
- Quantum CPOs
- A Biset-Enriched Categorical Model for Proto-Quipper with Dynamic Lifting
- Bohrification of local nets
- Whence deep realism for Everettian quantum mechanics?