internalization and categorical algebra
algebra object (associative, Lie, …)
quantum algorithms:
By the linear reader monad or quantum reader monad we shall mean the reader monad but on the category of vector spaces (in applications specifically of complex vector spaces, though essentially all discussion here applies over any ground field):
The reason for the quantum physics-terminology is that this monad is closely related to — in fact arguably is the fundamental formalization in categorical logic of — the concept of quantum measurement, including its subtle peculiarities such as the dependence on a choice of measurement basis and the phenomenon of wavefunction collapse entailed by the measurement process. It would in fact make good sense to speak of the quantum measurement monad — but notice that the conceptual difference between “reading” (say a global parameter, as is common interpretation for the reader monad when used as a monad in computer science) and “measuring” is small already informally and seems to all but vanish in the modal logic of the quantum reader (its “quantum modal logic”, if you wish).
Often one is interested in the case that the parameter set here is a finite set (explicitly so in applications to quantum information theory and quantum computing where eg. Bool for qbits, but it could probably be argued that any real measurement in experiment can only ever resolve a finite set of potential outcomes), and this is the case we shall focus on now unless otherwise specified.
In this case of finite parameter set , the existence of biproducts in VectorSpaces — namely of direct sums — implies that the underlying functor of the quantum -reader monad coincides with that of the -coreader comonad :
In fact, the induced joint monad- and comonad-structure on this functor are compatible to jointly make the quantum reader be a Frobenius monad:
An organized way to see this Frobenius monad-structure on the quantum reader monad over a finite parameter set is to observe (which is a straightforward inspection, but we spell it out below) that the quantum -reader monad is also isomorphic to the -writer monad corresponding to the associative algebra
which is generated by a -indexed set of mutually orthogonal projection operators (over the ground field ).
It is immediate to check that (2) canonically carries the further structure of a Frobenius algebra (see the example there) with coproduct given by duplication over the -basis: . But this makes manifest that the underlying functor of tensoring also carries the structure of a comonad in a compatible way to make a Frobenius monad.
In this its incarnation as the -writer Frobenius monad, the quantum -reader monad is famous in the literature on quantum information theory via dagger-compact categories as encoding quantum measurement with respect to the -basis – known as classical structures or Frobenius structures in these references [Coecke & Pavlović (2008), §1.5.1, Coecke & Paquette (2008), §2.3], as well as classically controlled quantum gates [Heunen & Vicary (2019), around Lem. 5.61, albeit not making the monadic algebra explicit] (See also at no-cloning theorem this Remark.)
In this guise, the quantum reader monad is reflected by the “green spiders” in the ZX-calculus.
We discuss the quantum reader monad as the reader monad induced by -dependent linear types which have biproducts, such as -indexed sets of vector spaces. Notation and graphics follows CQTS (2022).
(quantum -algebras are -dependent linear types)
For FiniteSets, the category of algebras for the -reader monad
on the category Vect of vector spaces (over any given ground field) is equivalent to that of vector bundles over (hence to -indexed sets of vector spaces):
(Something close to this statement, in its adjoint form for the quantum coreader comonad , is the content of Coecke & Pavlović 2008, Thm. 1.5.)
We state first an abstract proof and then a concrete proof.
Abstractly, observe that Vect has (finite) biproducts (given by the direct sum of vector spaces) which together with the assumption that is finite implies that :
is not only a right adjoint but also a left adjoint (hence an ambidextrous adjoint to pullback of vector bundles along ), hence in particular it preserves all colimits;
is a conservative functor (since the -components of any morphism of vector bundles over can still be extracted via (co-)projections from their image under forming the biproduct over ).
Therefore the conditions for the monadicity theorem are met (see there), implying that the functor is monadic functor, which in turn implies the claim.
Alternatively, we now check the claim more concretely by unwinding what it means for a vector space to carry -algebra structure and for a linear map between vector spaces to be a homomorphism for this structure:
First observe that the -monad product on a vector space is explicitly given by:
and that a -algebra structure on is a linear map of this form:
Of such maps, the -action property (here) demands that the following two linear maps are equal:
By considering the value of these maps on tuples of vectors which are non-zero only for single elements one finds that the above condition is equivalent to the following condition:
Moreover, the -unit is given by the diagonal map into the biproduct
so that the unitality property (here) of the -algebra structure demands equivalently that the composite
is the identity function on , hence that this system of projection operators is “complete” in that
In summary, this means that for -tuples of linear maps as in (4) to constitute a -module structure is equivalent to them being systems of orthogonal linear projection operators, whose images
span under direct sum:
Such structures, of course, are exactly the images under the right base change of -indexed sets of vector spaces.
Finally, the homomorphism-property on a linear map between the underlying vector spaces of two such -modules demands that the following diagram commutes:
The -indexed components of this condition require that commutes with all these projection operators, in that
But this evidently means that itself is the image under the direct sum-functor
of a -tuple of linear maps between the -indexed component spaces:
This is the defining property of morphisms in and hence shows that -algebra homomorphisms are equivalently morphisms of -indexed sets of vector spaces, hence that the two categories are agree.
(free quantum -algebras and quantum measurement bases)
The free -algebras in Vect are those whose underlying vector space is of the form for any , hence, under the equivalence of Prop. , are those -dependent linear types which happen to assign the same vector space for all .
But homomorphisms of such free -algebras are still allowed to be non-trivially -dependent families of linear maps. This is directly a special case of Prop. but is also immediate under the Kleisli equivalence from observing that -Kleisli morphisms are of the following form:
In quantum information theory the -algebras in complex vector spaces which are free on the tensor unit (the 1-dimensional complex vector space) play the role of (finite dimensional complex vector spaces underlying) finite-dimensional Hilbert spaces of quantum states which are spanned by the set regarded as a “quantum measurement basis”.
For example, the dependent linear type of qbits is the free -algebra spanned by the classical type Bool of bits, reflecting the two canonical quantum measurement-outcomes (, ) of qbits.
Curiously, from this one finds that quantum measurement is exactly indefiniteness handling
where
“indefiniteness” is understood as the the effect/modality expressed by the reader monad (see here),
“handling” is understood as effect handling in the sense of effect-monads in computer science (see here);
namely:
Notice that this process may be understood as the “dynamic lifting” of quantum measurement-results into the context (here: Bool) of the ambient dependent linear type theory.
For more on this see at quantum circuits via dependent linear types.
This naturally relates to the discussion of quantum measurement via Frobenius algebra-structures which is popular in the context of quantum information theory via dagger-compact categories – as follows:
(quantum reader monad is Frobenius)
Since the direct sum of vector spaces is a biproduct and using our running assumption that is a finite set, it follows that the underlying functor of the quantum reader monad from Prop. coincides with that of the coreader comonad, and hence that the quantum reader monad is a Frobenius monad (see there).
(quantum reader monad is special Frobenius writer monad)
Consider the -indexed the direct sum of the ground field with itself as a -algebra and write
for the writer monad corresponding to this monoid object in Vect: The monad which acts by forming the tensor product and whose monad multiplication and unit of a monad are induced from the multiplication and unit in this monoid.
The above proof of Prop. shows at once that this writer monad is isomorphic to the -reader monad:
Now the monad modules over a writer monad are just the ordinary modules over the corresponding monoid, so that
This provides a rather transparent re-derivation of and alternative perspective on Example .
Dually, as in Prop. , the quantum coreader comonad is isomorphic to the coreader comonad corresponding to the coalgebra-structure on .
Hence, as a Frobenius monad (Prop. ), the quantum reader corresponds to regarded as a Frobenius algebra, in fact as a commutative and special Frobenius algebra. In this form the quantum reader monad is prominent in the literature on quantum information theory via dagger-compact categories [Coecke & Pavlović (2008), §1.5.1, Coecke & Paquette (2008), §2.3].
The above quantum reader monad carries the structure of a symmetric monoidal monad with respect to the tensor product of vector spaces (or whatever the tensor product of the given linear types) as follows:
Dually, the quantum coreaders is comonoidal comonadic:
The monoidal monad structure from Prop. extends the above quantum measurement typing from pure states to mixed states, by implementing the decoherence process which eliminates the off-diagonal terms in the density matrix, as indicated in the following:
This operation hence sends quantum states (pure or not) to their corresponding probability distributions (under quantum measurement) just as demanded by the Born rule postulate.
The quantum reader monad – implicitly, in its incarnation as the -writer Frobenius monad – is highlighted in the literature on quantum information theory via dagger-compact categories as formalizing “classical structures” (namely linear bases for quantum measurement):
Bob Coecke, Duško Pavlović, §1.5.1 of: Quantum measurements without sums, in: Louis Kauffman, Samuel Lomonaco (eds.), Mathematics of Quantum Computation and Quantum Technology, Taylor & Francis (2008) 559-596 [arXiv:quant-ph/0608035, doi:10.1201/9781584889007]
Bob Coecke, Eric Oliver Paquette, §2.3 in: POVMs and Naimark’s theorem without sums, Electronic Notes in Theoretical Computer Science 210 (2008) 15-31 [arXiv:quant-ph/0608072, doi:10.1016/j.entcs.2008.04.015]
Bob Coecke, Eric Paquette, Duško Pavlović, Def. 2.8 in: Classical and quantum structures (2008) [pdf, pdf]
Bob Coecke, Eric Oliver Paquette, Duško Pavlović, Classical and quantum structuralism [arXiv:0904.1997]
and the evolution of the “classical structures”-monad into the “spider”-ingredient of the ZX-calculus:
Bob Coecke, Ross Duncan, §3 in: Interacting Quantum Observables, in Automata, Languages and Programming. ICALP 2008, Lecture Notes in Computer Science 5126, Springer (2008) [doi:10.1007/978-3-540-70583-3_25]
Aleks Kissinger, §§2 in: Graph Rewrite Systems for Classical Structures in -Symmetric Monoidal Categories, MSc thesis, Oxford (2008) [pdf, pdf]
Aleks Kissinger, §4 in: Exploring a Quantum Theory with Graph Rewriting and Computer Algebra, in: Intelligent Computer Mathematics. CICM 2009, Lecture Notes in Computer Science 5625 (2009) 90-105 [doi:10.1007/978-3-642-02614-0_12]
Bob Coecke, Ross Duncan, Def. 6.4 in: Interacting Quantum Observables: Categorical Algebra and Diagrammatics, New J. Phys. 13 (2011) 043016 [arXiv:0906.4725, doi:10.1088/1367-2630/13/4/043016]
Also, albeit without explicit mentioning of monadic structures:
See also:
The above discussion follows:
Last revised on April 18, 2024 at 07:48:38. See the history of this page for a list of all contributions to it.