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.
arXiv comment120 pages, various figures
References in corpus (56)
- Quantum Computing in the NISQ era and beyond
- Elementary gates for quantum computation
- Quantum random access memory
- On the Power of One Bit of Quantum Information
- Quantum Decoherence
- Superconducting Quantum Computing: A Review
- Architectures for a quantum random access memory
- Interacting Quantum Observables: Categorical Algebra and Diagrammatics
- Concrete Categorical Model of a Quantum Circuit Description Language with Measurement
- Reversible transformations from pure to mixed states, and the unique measure of information
- The Bitter Truth About Quantum Algorithms in the NISQ Era
- Universal quantum computation using only projective measurement, quantum memory, and preparation of the 0 state
- The Interpretation of Quantum Mechanics: Many Worlds or Many Words?
- Non-Abelian Topological Order and Anyons on a Trapped-Ion Processor
- Quantum Picturalism
- Circuit-Based Quantum Random Access Memory for Classical Data
- Handling Algebraic Effects
- Quipper: A Scalable Quantum Programming Language
- Homotopy theoretic models of identity types
- On the robustness of bucket brigade quantum RAM
- A functional quantum programming language
- Asymptotically Optimal Topological Quantum Compiling
- A Verified Optimizer for Quantum Circuits
- Topological Quantum Compiling
- A topos for algebraic quantum theory
- An Introduction to Quantum Programming in Quipper
- Categorical formulation of quantum algebras
- QWIRE Practice: Formal Verification of Quantum Circuits in Coq
- Monads need not be endofunctors
- An -categorical approach to -line bundles, -module Thom spectra, and twisted -homology
- Unitary quantum gates, perfect entanglers and unistochastic maps
- A new description of orthogonal bases
- Logical Relations for Monadic Types
- Quantum Analogue Computing
- Is Your Quantum Program Bug-Free?
- Testing integrability with a single bit of quantum information
- A Categorical Quantum Logic
- A Categorical Model for a Quantum Circuit Description Language (Extended Abstract)
- A lambda calculus for quantum computation with classical control
- The character map in (twisted differential) non-abelian cohomology
- Classical Control, Quantum Circuits and Linear Logic in Enriched Category Theory
- Quantum sets
- 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
- Modal Descent
- DQC1 as an Open Quantum System
- Finite Vector Spaces as Model of Simply-Typed Lambda-Calculi
- All unital qubit channels are -noisy operations
- Quantum CPOs
- Bohrification of local nets
- A Biset-Enriched Categorical Model for Proto-Quipper with Dynamic Lifting
- Whence deep realism for Everettian quantum mechanics?