Classical and quantum structuralism

Bob Coecke, Eric Oliver Paquette, Dusko Pavlovic

Introduction

Quantum systems are very different from their classical counterparts. This is captured within the quantum mechanical formalism as follows:

A compound quantum system is not described by a Cartesian structure — i.e. a structure in which all the properties of a joint system can be traced back to those of its components — but by a genuinely linear tensor. Physically, this fact is witnessed by ‘entangled states’.

A Hilbert space admits many different choices of a basis. Physically this means that a quantum system admits ‘incompatible observables’ to which no sharp values can be simultaneously attributed. Via the eigenvector-eigenvalue connection each of the bases also represents the classical data type corresponding to the observable.

These features will be the key players in a general abstract theory of quantum systems, and in particular, a theory of classical-quantum interaction. In [AC04] Abramsky and Coecke axiomatized entangled states in terms of dagger compact categories. Here, we refer to the objects in such a dagger compact category, each coming with a chosen Bell state, as quantum systems. In [CP07] Coecke and Pavlovic axiomatized quantum observables within this context as special dagger Frobenius algebras, to which we refer here as classical structures, or basis structures.

One can think of quantum observables as the ‘classical interfaces’ which provide (limited) access to a ‘quantum universe’; we will explore how information gets extracted by measurement at these interfaces, how it gets processed by applying suitable quantum operations, and how these operations are classically controlled.

In section 2, we describe the basic structures of quantum categorical semantics, i.e. the quantum universe, and its classical interfaces.

In section 3, we describe the families of morphisms between the classical interfaces, used to control the classical information flows. They include deterministic operations (functions, permutations), non-deterministic operations (relations) as well as probabilistic operations (stochastic matrices).

In Section 4, we describe how the quantum universe interacts with a fixed classical interface, a classical structure XX, how information flows from the quantum universe to XX, and how XX controls the quantum universe. We consider both closed (pure) and open (mixed) quantum systems. We then let XX vary over the different classical structures, connected by the morphisms described in section 3.

Section 5 unifies the above and poses a challenge for future research.

Previous structural models for quantum-classical interaction required either additional completeness assumptions, most notably biproducts, to model quantum spectra [AC04, Sel04, Sel07], or a second monoidal structure [Coe07a]. Our notion of classicality is internal, emergent from symmetric monoidal dagger structure by articulating the local capabilities, in terms of symmetric monoidal dagger language only, and hence formalizable in purely diagrammatic terms.

An earlier version of this paper has been in circulation since 2007 under the title Classical and quantum structures [CPP07]. Besides a complementary formal development, it contains several applications not discussed in this paper. A more detailed account on these is also in the 2nd author’s PhD. thesis [Paq08].

Elements of quantum semantics

We expect the reader to be familiar with symmetric monoidal categories and also to have some familiarity with compact (closed) categories [KL80, AC05, Sel07], as well as with the corresponding graphical calculus [JS91, FY89, Sel07].

By a symmetric monoidal dagger category we mean a symmetric monoidal category C{\bf C} together with an involutive contravariant identity-on-objects-functor

which coherently preserves the symmetric monoidal structure. In particular, this means that the natural isomorphisms θ\theta of the symmetric monoidal structure are all unitary, that is, θ−1=θ†\theta^{-1}=\theta^{\dagger}.

When the confusion seems unlikely, we elide g∘fg\circ f to gfgf and X⊗A⊗BX\otimes A\otimes B to XABXAB. The tensorial symmetry is denoted by \sigma:AB\lx@xy@svg{\hbox{\raise 0.0pt\hbox{\kern 3.0pt\hbox{\ignorespaces\immediate\immediate\immediate{\ignorespaces{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}\hbox{\vtop{{\immediate}\kern 0.0pt\offinterlineskip\halign{\entry@#!@&&\entry@@#!@\cr{\immediate}{\immediate}{\immediate}&{\immediate}{\immediate}{\immediate}\crcr}{\immediate}}}{\immediate}{\immediate}\ignorespaces{\immediate}{\immediate}\ignorespaces}\immediate\immediate\ignorespaces\ignorespaces\ignorespaces{\hbox{\kern-3.0pt\raise 0.0pt\hbox{\hbox{\kern 0.0pt\raise 0.0pt\hbox{\hbox{\kern 3.0pt\raise 0.0pt\hbox{\textstyle{\ignorespaces\ignorespaces\ignorespaces\ignorespaces}}}}}}}}\ignorespaces\ignorespaces\ignorespaces\ignorespaces{}{\hbox{\lx@xy@droprule}}\ignorespaces{\hbox{\kern 21.0pt\raise 0.0pt\hbox{\hbox{\kern 0.0pt\raise 0.0pt\hbox{\lx@xy@tip{1}\lx@xy@tip{-1}}}}}}{\hbox{\lx@xy@droprule}}{\hbox{\lx@xy@droprule}}{\hbox{\kern 21.0pt\raise 0.0pt\hbox{\hbox{\kern 0.0pt\raise 0.0pt\hbox{\hbox{\kern 3.0pt\raise 0.0pt\hbox{\textstyle{}}}}}}}}}}}}\ignorespaces BA. The set of abstract vectors, denoted as C(A){\bf C}(A), is just the hom-set C(I,A){\bf C}(I,A). An abstract scalar is just a morphism in C(I,I){\bf C}(I,I).

In the graphical calculus, morphisms are drawn upward. The identity on an object AA is depicted as

AA A morphism f:A→Bf:A\rightarrow B is depicted as

A<spanclass="katex−display"><spanclass="katex"><spanclass="katex−mathml"><mathxmlns="http://www.w3.org/1998/Math/MathML"display="block"><semantics><mrow><mi>B</mi></mrow><annotationencoding="application/x−tex">B</annotation></semantics></math></span><spanclass="katex−html"aria−hidden="true"><spanclass="base"><spanclass="strut"style="height:0.6833em;"></span><spanclass="mordmathnormal"style="margin−right:0.0502em;">B</span></span></span></span></span>fA<span class="katex-display"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><mi>B</mi></mrow><annotation encoding="application/x-tex">B</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.6833em;"></span><span class="mord mathnormal" style="margin-right:0.0502em;">B</span></span></span></span></span>f Given two morphisms f:A→Bf:A\rightarrow B and g:B→Cg:B\rightarrow C, their composition g∘f:A→Cg\circ f:A\rightarrow C is depicted as

A<spanclass="katex−display"><spanclass="katex"><spanclass="katex−mathml"><mathxmlns="http://www.w3.org/1998/Math/MathML"display="block"><semantics><mrow><mi>B</mi></mrow><annotationencoding="application/x−tex">B</annotation></semantics></math></span><spanclass="katex−html"aria−hidden="true"><spanclass="base"><spanclass="strut"style="height:0.6833em;"></span><spanclass="mordmathnormal"style="margin−right:0.0502em;">B</span></span></span></span></span>f<spanclass="katex−display"><spanclass="katex"><spanclass="katex−mathml"><mathxmlns="http://www.w3.org/1998/Math/MathML"display="block"><semantics><mrow><mi>g</mi></mrow><annotationencoding="application/x−tex">g</annotation></semantics></math></span><spanclass="katex−html"aria−hidden="true"><spanclass="base"><spanclass="strut"style="height:0.625em;vertical−align:−0.1944em;"></span><spanclass="mordmathnormal"style="margin−right:0.0359em;">g</span></span></span></span></span>CA<span class="katex-display"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><mi>B</mi></mrow><annotation encoding="application/x-tex">B</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.6833em;"></span><span class="mord mathnormal" style="margin-right:0.0502em;">B</span></span></span></span></span>f<span class="katex-display"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><mi>g</mi></mrow><annotation encoding="application/x-tex">g</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.625em;vertical-align:-0.1944em;"></span><span class="mord mathnormal" style="margin-right:0.0359em;">g</span></span></span></span></span>C Given two morphisms f:A→Bf:A\rightarrow B and g:C→Dg:C\rightarrow D, their tensor product f\otimes g:A\otimes C\lx@xy@svg{\hbox{\raise 0.0pt\hbox{\kern 3.0pt\hbox{\ignorespaces\immediate\immediate\immediate{\ignorespaces{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}\hbox{\vtop{{\immediate}\kern 0.0pt\offinterlineskip\halign{\entry@#!@&&\entry@@#!@\cr{\immediate}{\immediate}{\immediate}&{\immediate}{\immediate}{\immediate}\crcr}{\immediate}}}{\immediate}{\immediate}\ignorespaces{\immediate}{\immediate}\ignorespaces}\immediate\immediate\ignorespaces\ignorespaces\ignorespaces{\hbox{\kern-3.0pt\raise 0.0pt\hbox{\hbox{\kern 0.0pt\raise 0.0pt\hbox{\hbox{\kern 3.0pt\raise 0.0pt\hbox{\textstyle{\ignorespaces\ignorespaces\ignorespaces\ignorespaces}}}}}}}}\ignorespaces\ignorespaces\ignorespaces\ignorespaces{}{\hbox{\lx@xy@droprule}}\ignorespaces{\hbox{\kern 21.0pt\raise 0.0pt\hbox{\hbox{\kern 0.0pt\raise 0.0pt\hbox{\lx@xy@tip{1}\lx@xy@tip{-1}}}}}}{\hbox{\lx@xy@droprule}}{\hbox{\lx@xy@droprule}}{\hbox{\kern 21.0pt\raise 0.0pt\hbox{\hbox{\kern 0.0pt\raise 0.0pt\hbox{\hbox{\kern 3.0pt\raise 0.0pt\hbox{\textstyle{}}}}}}}}}}}}\ignorespaces B\otimes D is depicted as

A<spanclass="katex−display"><spanclass="katex"><spanclass="katex−mathml"><mathxmlns="http://www.w3.org/1998/Math/MathML"display="block"><semantics><mrow><mi>B</mi></mrow><annotationencoding="application/x−tex">B</annotation></semantics></math></span><spanclass="katex−html"aria−hidden="true"><spanclass="base"><spanclass="strut"style="height:0.6833em;"></span><spanclass="mordmathnormal"style="margin−right:0.0502em;">B</span></span></span></span></span>f<spanclass="katex−display"><spanclass="katex"><spanclass="katex−mathml"><mathxmlns="http://www.w3.org/1998/Math/MathML"display="block"><semantics><mrow><mi>g</mi></mrow><annotationencoding="application/x−tex">g</annotation></semantics></math></span><spanclass="katex−html"aria−hidden="true"><spanclass="base"><spanclass="strut"style="height:0.625em;vertical−align:−0.1944em;"></span><spanclass="mordmathnormal"style="margin−right:0.0359em;">g</span></span></span></span></span>CA<span class="katex-display"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><mi>B</mi></mrow><annotation encoding="application/x-tex">B</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.6833em;"></span><span class="mord mathnormal" style="margin-right:0.0502em;">B</span></span></span></span></span>f<span class="katex-display"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><mi>g</mi></mrow><annotation encoding="application/x-tex">g</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.625em;vertical-align:-0.1944em;"></span><span class="mord mathnormal" style="margin-right:0.0359em;">g</span></span></span></span></span>CDD Finally, given a morphism f:A→Bf:A\rightarrow B, the corresponding morphism f†:B→Af^{\dagger}:B\rightarrow A is depicted by flipping graphical components upside-down [Sel07].

Below we assume C{\bf C} to be a symmetric monoidal dagger category. We use it to model simple quantum processes, algorithms and protocols, along the lines of [AC04, Sel07, CP07, CD08, CPP08].

1 Bell states

Categorical quantum semantics started with the observation by Abramsky and one of the authors that the duality (or compactness) in monoidal dagger categories can be used to model interaction of entangled states and effects (or co-states) [AC04]. Our Bell state structure thus consists of dualities, modeled in terms of compact structures [KL80].

\scriptstyle{\eta\otimes A^{*}}<span class="katex-display"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><mstyle scriptlevel="1" displaystyle="false"><mrow><mi mathvariant="normal">i</mi><mi mathvariant="normal">d</mi></mrow></mstyle></mrow><annotation encoding="application/x-tex">\scriptstyle{{\rm id}}</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.4861em;"></span><span class="mord mtight sizing reset-size6 size3"><span class="mord mtight"><span class="mord mtight"><span class="mord mathrm mtight">id</span></span></span></span></span></span></span></span>\textstyle{A\ignorespaces\ignorespaces\ignorespaces\ignorespaces\ignorespaces\ignorespaces\ignorespaces\ignorespaces}<span class="katex-display"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><mstyle scriptlevel="1" displaystyle="false"><mrow><mi>A</mi><mo>⊗</mo><mi>η</mi></mrow></mstyle></mrow><annotation encoding="application/x-tex">\scriptstyle{A\otimes\eta}</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.6144em;vertical-align:-0.1361em;"></span><span class="mord mtight sizing reset-size6 size3"><span class="mord mathnormal mtight">A</span><span class="mbin mtight">⊗</span><span class="mord mathnormal mtight" style="margin-right:0.0359em;">η</span></span></span></span></span></span>\scriptstyle{{\rm id}}<span class="katex-display"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><mstyle scriptlevel="0" displaystyle="false"><mrow><mi>A</mi><mo>⊗</mo><msup><mi>A</mi><mo lspace="0em" rspace="0em">∗</mo></msup><mo>⊗</mo><mi>A</mi><mstyle mathcolor="#cc0000"><mtext>\ignorespaces</mtext></mstyle><mstyle mathcolor="#cc0000"><mtext>\ignorespaces</mtext></mstyle><mstyle mathcolor="#cc0000"><mtext>\ignorespaces</mtext></mstyle><mstyle mathcolor="#cc0000"><mtext>\ignorespaces</mtext></mstyle></mrow></mstyle></mrow><annotation encoding="application/x-tex">\textstyle{A\otimes A^{*}\otimes A\ignorespaces\ignorespaces\ignorespaces\ignorespaces}</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:1em;vertical-align:-0.25em;"></span><span class="mord"><span class="mord mathnormal">A</span><span class="mspace" style="margin-right:0.2222em;"></span><span class="mbin">⊗</span><span class="mspace" style="margin-right:0.2222em;"></span><span class="mord"><span class="mord mathnormal">A</span><span class="msupsub"><span class="vlist-t"><span class="vlist-r"><span class="vlist" style="height:0.6887em;"><span style="top:-3.063em;margin-right:0.05em;"><span class="pstrut" style="height:2.7em;"></span><span class="sizing reset-size6 size3 mtight"><span class="mord mtight"><span class="mord mtight">∗</span></span></span></span></span></span></span></span></span><span class="mspace" style="margin-right:0.2222em;"></span><span class="mbin">⊗</span><span class="mspace" style="margin-right:0.2222em;"></span><span class="mord mathnormal">A</span><span class="mord text" style="color:#cc0000;"><span class="mord" style="color:#cc0000;">\ignorespaces</span></span><span class="mord text" style="color:#cc0000;"><span class="mord" style="color:#cc0000;">\ignorespaces</span></span><span class="mord text" style="color:#cc0000;"><span class="mord" style="color:#cc0000;">\ignorespaces</span></span><span class="mord text" style="color:#cc0000;"><span class="mord" style="color:#cc0000;">\ignorespaces</span></span></span></span></span></span></span>\scriptstyle{\varepsilon\otimes A}<span class="katex-display"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><mstyle scriptlevel="0" displaystyle="false"><mrow><msup><mi>A</mi><mo lspace="0em" rspace="0em">∗</mo></msup><mo>⊗</mo><mi>A</mi><mo>⊗</mo><msup><mi>A</mi><mo lspace="0em" rspace="0em">∗</mo></msup><mstyle mathcolor="#cc0000"><mtext>\ignorespaces</mtext></mstyle><mstyle mathcolor="#cc0000"><mtext>\ignorespaces</mtext></mstyle><mstyle mathcolor="#cc0000"><mtext>\ignorespaces</mtext></mstyle><mstyle mathcolor="#cc0000"><mtext>\ignorespaces</mtext></mstyle></mrow></mstyle></mrow><annotation encoding="application/x-tex">\textstyle{A^{*}\otimes A\otimes A^{*}\ignorespaces\ignorespaces\ignorespaces\ignorespaces}</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:1em;vertical-align:-0.25em;"></span><span class="mord"><span class="mord"><span class="mord mathnormal">A</span><span class="msupsub"><span class="vlist-t"><span class="vlist-r"><span class="vlist" style="height:0.6887em;"><span style="top:-3.063em;margin-right:0.05em;"><span class="pstrut" style="height:2.7em;"></span><span class="sizing reset-size6 size3 mtight"><span class="mord mtight"><span class="mord mtight">∗</span></span></span></span></span></span></span></span></span><span class="mspace" style="margin-right:0.2222em;"></span><span class="mbin">⊗</span><span class="mspace" style="margin-right:0.2222em;"></span><span class="mord mathnormal">A</span><span class="mspace" style="margin-right:0.2222em;"></span><span class="mbin">⊗</span><span class="mspace" style="margin-right:0.2222em;"></span><span class="mord"><span class="mord mathnormal">A</span><span class="msupsub"><span class="vlist-t"><span class="vlist-r"><span class="vlist" style="height:0.6887em;"><span style="top:-3.063em;margin-right:0.05em;"><span class="pstrut" style="height:2.7em;"></span><span class="sizing reset-size6 size3 mtight"><span class="mord mtight"><span class="mord mtight">∗</span></span></span></span></span></span></span></span></span><span class="mord text" style="color:#cc0000;"><span class="mord" style="color:#cc0000;">\ignorespaces</span></span><span class="mord text" style="color:#cc0000;"><span class="mord" style="color:#cc0000;">\ignorespaces</span></span><span class="mord text" style="color:#cc0000;"><span class="mord" style="color:#cc0000;">\ignorespaces</span></span><span class="mord text" style="color:#cc0000;"><span class="mord" style="color:#cc0000;">\ignorespaces</span></span></span></span></span></span></span>\scriptstyle{A^{*}\otimes\varepsilon}<span class="katex-display"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><mstyle scriptlevel="0" displaystyle="false"><msup><mi>A</mi><mo lspace="0em" rspace="0em">∗</mo></msup></mstyle></mrow><annotation encoding="application/x-tex">\textstyle{A^{*}}</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.6887em;"></span><span class="mord"><span class="mord"><span class="mord mathnormal">A</span><span class="msupsub"><span class="vlist-t"><span class="vlist-r"><span class="vlist" style="height:0.6887em;"><span style="top:-3.063em;margin-right:0.05em;"><span class="pstrut" style="height:2.7em;"></span><span class="sizing reset-size6 size3 mtight"><span class="mord mtight"><span class="mord mtight">∗</span></span></span></span></span></span></span></span></span></span></span></span></span></span>\textstyle{A} When C{\bf C} is a symmetric monoidal dagger category, then we define a Bell state (A,A∗,η)(A,A^{*},\eta) on AA to be a compact structure (A,A∗,η†∘σ,η)(A,A^{*},\eta^{\dagger}\circ\sigma,\eta).

If C{\bf C} is viewed as a bicategory with one object, then a compact structure makes the 1-cell A∗A^{*} into a right adjoint of AA [KL80].

A dagger compact category is a symmetric monoidal dagger category where each object comes with a chosen Bell state. We call such objects quantum systems. For an arbitrary symmetric monoidal dagger category C{\bf C}, we denote by Cq{\bf C}_{q} the category with classical structures (X,X∗,η)(X,X^{*},\eta) as objects and with Cq((X,X∗,ηX),(Y,Y∗,ηY))=C(X,Y){\bf C}_{q}((X,X^{*},\eta_{X}),(Y,Y^{*},\eta_{Y}))={\bf C}(X,Y).

Obviously, rather than introducing Cq{\bf C}_{q} we could as well have assumed that in the symmetric monoidal dagger category C{\bf C} all objects come with coherently chosen Bell-states. Constructing Cq{\bf C}_{q} removes the need to single out a specific Bell state for each object.

When the structure is clear from the context, we often leave it implicit. For instance, we write AA instead of (A,A∗,ηA)(A,A^{*},\eta_{A}) in the case of a Bell state; the same also applies to classical structures defined below. We write (−)∗(-)^{*} for the contravariant transpose endofunctor on a compact category, that is, for a morphism f:A\lx@xy@svg{\hbox{\raise 0.0pt\hbox{\kern 3.0pt\hbox{\ignorespaces\immediate\immediate\immediate{\ignorespaces{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}\hbox{\vtop{{\immediate}\kern 0.0pt\offinterlineskip\halign{\entry@#!@&&\entry@@#!@\cr{\immediate}{\immediate}{\immediate}&{\immediate}{\immediate}{\immediate}\crcr}{\immediate}}}{\immediate}{\immediate}\ignorespaces{\immediate}{\immediate}\ignorespaces}\immediate\immediate\ignorespaces\ignorespaces\ignorespaces{\hbox{\kern-3.0pt\raise 0.0pt\hbox{\hbox{\kern 0.0pt\raise 0.0pt\hbox{\hbox{\kern 3.0pt\raise 0.0pt\hbox{\textstyle{\ignorespaces\ignorespaces\ignorespaces\ignorespaces}}}}}}}}\ignorespaces\ignorespaces\ignorespaces\ignorespaces{}{\hbox{\lx@xy@droprule}}\ignorespaces{\hbox{\kern 21.0pt\raise 0.0pt\hbox{\hbox{\kern 0.0pt\raise 0.0pt\hbox{\lx@xy@tip{1}\lx@xy@tip{-1}}}}}}{\hbox{\lx@xy@droprule}}{\hbox{\lx@xy@droprule}}{\hbox{\kern 21.0pt\raise 0.0pt\hbox{\hbox{\kern 0.0pt\raise 0.0pt\hbox{\hbox{\kern 3.0pt\raise 0.0pt\hbox{\textstyle{}}}}}}}}}}}}\ignorespaces B we have

We write (−)∗=(−)†∗=(−)∗†(-)_{*}=(-)^{{\dagger}*}=(-)^{*{\dagger}} for the covariant conjugate endofunctor. The dimension of an object AA relative to a compact structure is

As usual we represent ε\varepsilon and η\eta as:

A∗<spanclass="katex−display"><spanclass="katex"><spanclass="katex−mathml"><mathxmlns="http://www.w3.org/1998/Math/MathML"display="block"><semantics><mrow><mi>A</mi></mrow><annotationencoding="application/x−tex">A</annotation></semantics></math></span><spanclass="katex−html"aria−hidden="true"><spanclass="base"><spanclass="strut"style="height:0.6833em;"></span><spanclass="mordmathnormal">A</span></span></span></span></span>AA^{*}<span class="katex-display"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><mi>A</mi></mrow><annotation encoding="application/x-tex">A</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.6833em;"></span><span class="mord mathnormal">A</span></span></span></span></span>AA∗A^{*} so that compactness becomes:

=<spanclass="katex−display"><spanclass="katex"><spanclass="katex−mathml"><mathxmlns="http://www.w3.org/1998/Math/MathML"display="block"><semantics><mrow><mo>=</mo></mrow><annotationencoding="application/x−tex">=</annotation></semantics></math></span><spanclass="katex−html"aria−hidden="true"><spanclass="base"><spanclass="strut"style="height:0.3669em;"></span><spanclass="mrel">=</span></span></span></span></span>A∗<spanclass="katex−display"><spanclass="katex"><spanclass="katex−mathml"><mathxmlns="http://www.w3.org/1998/Math/MathML"display="block"><semantics><mrow><msup><mi>A</mi><molspace="0em"rspace="0em">∗</mo></msup></mrow><annotationencoding="application/x−tex">A∗</annotation></semantics></math></span><spanclass="katex−html"aria−hidden="true"><spanclass="base"><spanclass="strut"style="height:0.7387em;"></span><spanclass="mord"><spanclass="mordmathnormal">A</span><spanclass="msupsub"><spanclass="vlist−t"><spanclass="vlist−r"><spanclass="vlist"style="height:0.7387em;"><spanstyle="top:−3.113em;margin−right:0.05em;"><spanclass="pstrut"style="height:2.7em;"></span><spanclass="sizingreset−size6size3mtight"><spanclass="mordmtight"><spanclass="mordmtight">∗</span></span></span></span></span></span></span></span></span></span></span></span></span>A<spanclass="katex−display"><spanclass="katex"><spanclass="katex−mathml"><mathxmlns="http://www.w3.org/1998/Math/MathML"display="block"><semantics><mrow><mi>A</mi></mrow><annotationencoding="application/x−tex">A</annotation></semantics></math></span><spanclass="katex−html"aria−hidden="true"><spanclass="base"><spanclass="strut"style="height:0.6833em;"></span><spanclass="mordmathnormal">A</span></span></span></span></span>A∗<spanclass="katex−display"><spanclass="katex"><spanclass="katex−mathml"><mathxmlns="http://www.w3.org/1998/Math/MathML"display="block"><semantics><mrow><msup><mi>A</mi><molspace="0em"rspace="0em">∗</mo></msup></mrow><annotationencoding="application/x−tex">A∗</annotation></semantics></math></span><spanclass="katex−html"aria−hidden="true"><spanclass="base"><spanclass="strut"style="height:0.7387em;"></span><spanclass="mord"><spanclass="mordmathnormal">A</span><spanclass="msupsub"><spanclass="vlist−t"><spanclass="vlist−r"><spanclass="vlist"style="height:0.7387em;"><spanstyle="top:−3.113em;margin−right:0.05em;"><spanclass="pstrut"style="height:2.7em;"></span><spanclass="sizingreset−size6size3mtight"><spanclass="mordmtight"><spanclass="mordmtight">∗</span></span></span></span></span></span></span></span></span></span></span></span></span>A=<span class="katex-display"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><mo>=</mo></mrow><annotation encoding="application/x-tex">=</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.3669em;"></span><span class="mrel">=</span></span></span></span></span>A^{*}<span class="katex-display"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><msup><mi>A</mi><mo lspace="0em" rspace="0em">∗</mo></msup></mrow><annotation encoding="application/x-tex">A^{*}</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.7387em;"></span><span class="mord"><span class="mord mathnormal">A</span><span class="msupsub"><span class="vlist-t"><span class="vlist-r"><span class="vlist" style="height:0.7387em;"><span style="top:-3.113em;margin-right:0.05em;"><span class="pstrut" style="height:2.7em;"></span><span class="sizing reset-size6 size3 mtight"><span class="mord mtight"><span class="mord mtight">∗</span></span></span></span></span></span></span></span></span></span></span></span></span>A<span class="katex-display"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><mi>A</mi></mrow><annotation encoding="application/x-tex">A</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.6833em;"></span><span class="mord mathnormal">A</span></span></span></span></span>A^{*}<span class="katex-display"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><msup><mi>A</mi><mo lspace="0em" rspace="0em">∗</mo></msup></mrow><annotation encoding="application/x-tex">A^{*}</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.7387em;"></span><span class="mord"><span class="mord mathnormal">A</span><span class="msupsub"><span class="vlist-t"><span class="vlist-r"><span class="vlist" style="height:0.7387em;"><span style="top:-3.113em;margin-right:0.05em;"><span class="pstrut" style="height:2.7em;"></span><span class="sizing reset-size6 size3 mtight"><span class="mord mtight"><span class="mord mtight">∗</span></span></span></span></span></span></span></span></span></span></span></span></span>AAA — the arrows on the identities distinguish the object AA from A∗A^{*}.

2 Classical structure

Classical structures, first considered for this purpose in [CP07], are described using special commutative Frobenius algebras [Law69, CW87].

A Frobenius algebra in a symmetric monoidal category is an internal monoid

which together satisfy the Frobenius condition

\scriptstyle{\nabla}<span class="katex-display"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><mstyle scriptlevel="1" displaystyle="false"><mrow><mi mathvariant="normal">Δ</mi><mo>⊗</mo><mi>X</mi></mrow></mstyle></mrow><annotation encoding="application/x-tex">\scriptstyle{\Delta\otimes X}</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.5367em;vertical-align:-0.0583em;"></span><span class="mord mtight sizing reset-size6 size3"><span class="mord mtight">Δ</span><span class="mbin mtight">⊗</span><span class="mord mathnormal mtight" style="margin-right:0.0785em;">X</span></span></span></span></span></span>\scriptstyle{X\otimes\Delta}<span class="katex-display"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><mstyle scriptlevel="0" displaystyle="false"><mrow><mi>X</mi><mo>⊗</mo><mi>X</mi><mo>⊗</mo><mi>X</mi><mstyle mathcolor="#cc0000"><mtext>\ignorespaces</mtext></mstyle><mstyle mathcolor="#cc0000"><mtext>\ignorespaces</mtext></mstyle><mstyle mathcolor="#cc0000"><mtext>\ignorespaces</mtext></mstyle><mstyle mathcolor="#cc0000"><mtext>\ignorespaces</mtext></mstyle></mrow></mstyle></mrow><annotation encoding="application/x-tex">\textstyle{X\otimes X\otimes X\ignorespaces\ignorespaces\ignorespaces\ignorespaces}</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:1em;vertical-align:-0.25em;"></span><span class="mord"><span class="mord mathnormal" style="margin-right:0.0785em;">X</span><span class="mspace" style="margin-right:0.2222em;"></span><span class="mbin">⊗</span><span class="mspace" style="margin-right:0.2222em;"></span><span class="mord mathnormal" style="margin-right:0.0785em;">X</span><span class="mspace" style="margin-right:0.2222em;"></span><span class="mbin">⊗</span><span class="mspace" style="margin-right:0.2222em;"></span><span class="mord mathnormal" style="margin-right:0.0785em;">X</span><span class="mord text" style="color:#cc0000;"><span class="mord" style="color:#cc0000;">\ignorespaces</span></span><span class="mord text" style="color:#cc0000;"><span class="mord" style="color:#cc0000;">\ignorespaces</span></span><span class="mord text" style="color:#cc0000;"><span class="mord" style="color:#cc0000;">\ignorespaces</span></span><span class="mord text" style="color:#cc0000;"><span class="mord" style="color:#cc0000;">\ignorespaces</span></span></span></span></span></span></span>\scriptstyle{\nabla\otimes X}<span class="katex-display"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><mstyle scriptlevel="0" displaystyle="false"><mrow><mi>X</mi><mstyle mathcolor="#cc0000"><mtext>\ignorespaces</mtext></mstyle><mstyle mathcolor="#cc0000"><mtext>\ignorespaces</mtext></mstyle><mstyle mathcolor="#cc0000"><mtext>\ignorespaces</mtext></mstyle><mstyle mathcolor="#cc0000"><mtext>\ignorespaces</mtext></mstyle></mrow></mstyle></mrow><annotation encoding="application/x-tex">\textstyle{X\ignorespaces\ignorespaces\ignorespaces\ignorespaces}</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:1em;vertical-align:-0.25em;"></span><span class="mord"><span class="mord mathnormal" style="margin-right:0.0785em;">X</span><span class="mord text" style="color:#cc0000;"><span class="mord" style="color:#cc0000;">\ignorespaces</span></span><span class="mord text" style="color:#cc0000;"><span class="mord" style="color:#cc0000;">\ignorespaces</span></span><span class="mord text" style="color:#cc0000;"><span class="mord" style="color:#cc0000;">\ignorespaces</span></span><span class="mord text" style="color:#cc0000;"><span class="mord" style="color:#cc0000;">\ignorespaces</span></span></span></span></span></span></span>\scriptstyle{\Delta}<span class="katex-display"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><mstyle scriptlevel="0" displaystyle="false"><mrow><mi>X</mi><mo>⊗</mo><mi>X</mi><mo>⊗</mo><mi>X</mi><mstyle mathcolor="#cc0000"><mtext>\ignorespaces</mtext></mstyle><mstyle mathcolor="#cc0000"><mtext>\ignorespaces</mtext></mstyle><mstyle mathcolor="#cc0000"><mtext>\ignorespaces</mtext></mstyle><mstyle mathcolor="#cc0000"><mtext>\ignorespaces</mtext></mstyle></mrow></mstyle></mrow><annotation encoding="application/x-tex">\textstyle{X\otimes X\otimes X\ignorespaces\ignorespaces\ignorespaces\ignorespaces}</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:1em;vertical-align:-0.25em;"></span><span class="mord"><span class="mord mathnormal" style="margin-right:0.0785em;">X</span><span class="mspace" style="margin-right:0.2222em;"></span><span class="mbin">⊗</span><span class="mspace" style="margin-right:0.2222em;"></span><span class="mord mathnormal" style="margin-right:0.0785em;">X</span><span class="mspace" style="margin-right:0.2222em;"></span><span class="mbin">⊗</span><span class="mspace" style="margin-right:0.2222em;"></span><span class="mord mathnormal" style="margin-right:0.0785em;">X</span><span class="mord text" style="color:#cc0000;"><span class="mord" style="color:#cc0000;">\ignorespaces</span></span><span class="mord text" style="color:#cc0000;"><span class="mord" style="color:#cc0000;">\ignorespaces</span></span><span class="mord text" style="color:#cc0000;"><span class="mord" style="color:#cc0000;">\ignorespaces</span></span><span class="mord text" style="color:#cc0000;"><span class="mord" style="color:#cc0000;">\ignorespaces</span></span></span></span></span></span></span>\scriptstyle{X\otimes\nabla}X⊗X\textstyle{X\otimes X} A Frobenius algebra is called special if

A classical structure (X,∇,⊥)(X,\nabla,\bot) in a dagger symmetric monoidal category C{\bf C} is a commutative special Frobenius algebra for which

We denote by Cc{\bf C}_{c} the category with classical structures (X,∇,⊥)(X,\nabla,\bot) as objects and with Cc((X,∇X,⊥X),(Y,∇Y,⊥Y))=C(X,Y){\bf C}_{c}((X,\nabla_{X},\bot_{X}),(Y,\nabla_{Y},\bot_{Y}))={\bf C}(X,Y).

In the category FdHilb{\bf FdHilb} of finite dimensional Hilbert spaces and linear maps with the tensor product as monoidal structure, classical structures are in bijective correspondence with orthonormal bases. This fact was established by Vicary and two of the authors in [CPV08]. It supports the name ‘classical’ in terms of standard quantum theory, since given an orthonormal basis {∣i⟩}\{|i\rangle\} there is a corresponding non-degenerate observable with projector spectrum {∣i⟩⟨i∣}\{|i\rangle\langle i|\}. Concretely, the bijective correspondence is as follows: each classical structure arises as

for some orthonormal basis {∣i⟩}\{|i\rangle\}. There, the comultiplication copies the vectors of the corresponding basis while its unit uniformly deletes them. Hence classical structure counterfactually addresses the no-cloning and no-deleting theorems for quantum data [Die82, WZ82, PB00, Abr08]. The papers [CP07, CPV08] provide more details on this.

While the morphisms of Cc{\bf C}_{c} are initially completely oblivious to the classical structures, it will be convenient to have the category Cc{\bf C}_{c} at hand. The gamut of classical categories that we shall analyze in the next section will be extracted from Cc{\bf C}_{c}, as the morphisms are constrained to preserve various fragments of classical structure.

If the category C{\bf C} is viewed as a bicategory with a single 0-cell, then the objects of C{\bf C} are 1-cells. In the internal sense of this bicategory, classical structures are just those 1-cells which happen to be both monads and comonads. Such a structure is studied in [EM65] — one of the earliest papers about monads — in which Eilenberg and Moore introduced the monadic view of universal algebra.

The monoidal structure of the unit II is a canonical classical structure (I,λI:I≃I⊗I,idI)(I,\lambda_{I}:I\simeq I\otimes I,{\rm id}_{I}). Moreover, if (X,∇X,⊥X)(X,\nabla_{X},\bot_{X}) and (Y,∇X,⊥X)(Y,\nabla_{X},\bot_{X}) are classical structures, then so is (X⊗Y,∇X,Y,⊥X,Y)\left(X\otimes Y,\nabla_{X,Y},\bot_{X,Y}\right) where

From this, it follows that Cc{\bf C}_{c} is a symmetric monoidal dagger category. The forgetful functor {\bf C}_{c}\lx@xy@svg{\hbox{\raise 0.0pt\hbox{\kern 3.0pt\hbox{\ignorespaces\immediate\immediate\immediate{\ignorespaces{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}\hbox{\vtop{{\immediate}\kern 0.0pt\offinterlineskip\halign{\entry@#!@&&\entry@@#!@\cr{\immediate}{\immediate}{\immediate}&{\immediate}{\immediate}{\immediate}\crcr}{\immediate}}}{\immediate}{\immediate}\ignorespaces{\immediate}{\immediate}\ignorespaces}\immediate\immediate\ignorespaces\ignorespaces\ignorespaces{\hbox{\kern-3.0pt\raise 0.0pt\hbox{\hbox{\kern 0.0pt\raise 0.0pt\hbox{\hbox{\kern 3.0pt\raise 0.0pt\hbox{\textstyle{\ignorespaces\ignorespaces\ignorespaces\ignorespaces}}}}}}}}\ignorespaces\ignorespaces\ignorespaces\ignorespaces{}{\hbox{\lx@xy@droprule}}\ignorespaces{\hbox{\kern 21.0pt\raise 0.0pt\hbox{\hbox{\kern 0.0pt\raise 0.0pt\hbox{\lx@xy@tip{1}\lx@xy@tip{-1}}}}}}{\hbox{\lx@xy@droprule}}{\hbox{\lx@xy@droprule}}{\hbox{\kern 21.0pt\raise 0.0pt\hbox{\hbox{\kern 0.0pt\raise 0.0pt\hbox{\hbox{\kern 3.0pt\raise 0.0pt\hbox{\textstyle{}}}}}}}}}}}}\ignorespaces{\bf C} is thus full and faithful, monoidal, and preserves the dagger.

We represent Δ,⊤,∇,⊥\Delta,\top,\nabla,\bot respectively as:

For example, the Frobenius condition corresponds to:

==== The following fact is discussed in detail in [Lac04, CP08].

If in graphical representation a morphism generated from classical structure and symmetric monoidal dagger structure is connected, then it is completely characterized by its domain and codomain. So if the domain is X⊗…⊗X⏟n\underbrace{X\otimes\ldots\otimes X}_{n} and the codomain is X⊗…⊗X⏟m\underbrace{X\otimes\ldots\otimes X}_{m} then it can be reduced to a “spider” with nn input and mm output wires:

………………….…………….mmoutputsnninputs All the defining axioms of classical structure follow from this rewriting principle, since all expressions involved have connected graphical representations.

Each classical structure (X,∇,⊥)(X,\nabla,\bot) induces a ‘self-dual’ Bell state on XX namely

Moreover, by commutativity of the monoid, we have

Hence, the category Cc{\bf C}_{c} of classical structures is dagger compact.

Eq.(2) tells us that we can omit the arrows when depicting the Bell state induced by a classical structure. The equation η=Δ∘⊥\eta=\Delta\circ\bot then corresponds to:

Typically, a quantum system will admit more than one classical structure corresponding to incompatible observables — we won’t explicitly impose this in this paper, and refer the reader to [CD08] for work in this direction. In the light of proposition 2.4 this means that a Bell state may ‘factor’ in many different ways into a classical structure. Bell states extracted from different classical structures on the same object may be different, a fact which turns out to be closely related to the self-duality of those Bell states [CPP08].

For some constructions in this paper it is important to rely on a fixed Bell state for each quantum system, hence the dagger compact category Cq{\bf C}_{q}. For several other constructions involving a specific classical structure it is important that the Bell state is the one extracted from that classical structure, hence the dagger compact category Cc{\bf C}_{c}.

Classical varieties

In this section, we study the categories spanned by classical structures. The largest one is Cc{\bf C}_{c} itself, spanned by classical structures, and all C{\bf C}-morphisms between them, ignoring the classical structure. The smallest nontrivial one is a groupoid, where the morphisms preserve all of the classical structure, i.e. both monoid and comonoid homomorphisms [Koc03]. For C=FdHilb{\bf C}={\bf FdHilb}, it then follows from [CPV08] that this groupoid boils down to finite sets and permutations between them.

Let C{\bf C} be a dagger category. An endomorphism e∈C(A,A)e\in{\bf C}(A,A) is positive if there exist a morphism g:C\lx@xy@svg{\hbox{\raise 0.0pt\hbox{\kern 3.0pt\hbox{\ignorespaces\immediate\immediate\immediate{\ignorespaces{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}\hbox{\vtop{{\immediate}\kern 0.0pt\offinterlineskip\halign{\entry@#!@&&\entry@@#!@\cr{\immediate}{\immediate}{\immediate}&{\immediate}{\immediate}{\immediate}\crcr}{\immediate}}}{\immediate}{\immediate}\ignorespaces{\immediate}{\immediate}\ignorespaces}\immediate\immediate\ignorespaces\ignorespaces\ignorespaces{\hbox{\kern-3.0pt\raise 0.0pt\hbox{\hbox{\kern 0.0pt\raise 0.0pt\hbox{\hbox{\kern 3.0pt\raise 0.0pt\hbox{\textstyle{\ignorespaces\ignorespaces\ignorespaces\ignorespaces}}}}}}}}\ignorespaces\ignorespaces\ignorespaces\ignorespaces{}{\hbox{\lx@xy@droprule}}\ignorespaces{\hbox{\kern 21.0pt\raise 0.0pt\hbox{\hbox{\kern 0.0pt\raise 0.0pt\hbox{\lx@xy@tip{1}\lx@xy@tip{-1}}}}}}{\hbox{\lx@xy@droprule}}{\hbox{\lx@xy@droprule}}{\hbox{\kern 21.0pt\raise 0.0pt\hbox{\hbox{\kern 0.0pt\raise 0.0pt\hbox{\hbox{\kern 3.0pt\raise 0.0pt\hbox{\textstyle{}}}}}}}}}}}}\ignorespaces A such that

If an endomorphism e:A\lx@xy@svg{\hbox{\raise 0.0pt\hbox{\kern 3.0pt\hbox{\ignorespaces\immediate\immediate\immediate{\ignorespaces{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}\hbox{\vtop{{\immediate}\kern 0.0pt\offinterlineskip\halign{\entry@#!@&&\entry@@#!@\cr{\immediate}{\immediate}{\immediate}&{\immediate}{\immediate}{\immediate}\crcr}{\immediate}}}{\immediate}{\immediate}\ignorespaces{\immediate}{\immediate}\ignorespaces}\immediate\immediate\ignorespaces\ignorespaces\ignorespaces{\hbox{\kern-3.0pt\raise 0.0pt\hbox{\hbox{\kern 0.0pt\raise 0.0pt\hbox{\hbox{\kern 3.0pt\raise 0.0pt\hbox{\textstyle{\ignorespaces\ignorespaces\ignorespaces\ignorespaces}}}}}}}}\ignorespaces\ignorespaces\ignorespaces\ignorespaces{}{\hbox{\lx@xy@droprule}}\ignorespaces{\hbox{\kern 21.0pt\raise 0.0pt\hbox{\hbox{\kern 0.0pt\raise 0.0pt\hbox{\lx@xy@tip{1}\lx@xy@tip{-1}}}}}}{\hbox{\lx@xy@droprule}}{\hbox{\lx@xy@droprule}}{\hbox{\kern 21.0pt\raise 0.0pt\hbox{\hbox{\kern 0.0pt\raise 0.0pt\hbox{\hbox{\kern 3.0pt\raise 0.0pt\hbox{\textstyle{}}}}}}}}}}}}\ignorespaces A is positive then for every ‘element’ x∈C(A)x\in{\bf C}(A) the scalar

is also positive. The converse holds if II generates.

Let C{\bf C} be a monoidal dagger category. We call a morphism f:X\lx@xy@svg{\hbox{\raise 0.0pt\hbox{\kern 3.0pt\hbox{\ignorespaces\immediate\immediate\immediate{\ignorespaces{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}\hbox{\vtop{{\immediate}\kern 0.0pt\offinterlineskip\halign{\entry@#!@&&\entry@@#!@\cr{\immediate}{\immediate}{\immediate}&{\immediate}{\immediate}{\immediate}\crcr}{\immediate}}}{\immediate}{\immediate}\ignorespaces{\immediate}{\immediate}\ignorespaces}\immediate\immediate\ignorespaces\ignorespaces\ignorespaces{\hbox{\kern-3.0pt\raise 0.0pt\hbox{\hbox{\kern 0.0pt\raise 0.0pt\hbox{\hbox{\kern 3.0pt\raise 0.0pt\hbox{\textstyle{\ignorespaces\ignorespaces\ignorespaces\ignorespaces}}}}}}}}\ignorespaces\ignorespaces\ignorespaces\ignorespaces{}{\hbox{\lx@xy@droprule}}\ignorespaces{\hbox{\kern 21.0pt\raise 0.0pt\hbox{\hbox{\kern 0.0pt\raise 0.0pt\hbox{\lx@xy@tip{1}\lx@xy@tip{-1}}}}}}{\hbox{\lx@xy@droprule}}{\hbox{\lx@xy@droprule}}{\hbox{\kern 21.0pt\raise 0.0pt\hbox{\hbox{\kern 0.0pt\raise 0.0pt\hbox{\hbox{\kern 3.0pt\raise 0.0pt\hbox{\textstyle{}}}}}}}}}}}}\ignorespaces Y in C{\bf C} classical relative to classical structures (X,∇X,⊥X)(X,\nabla_{X},\bot_{X}) and (Y,∇Y,⊥Y)(Y,\nabla_{Y},\bot_{Y}) if the endomorphism

f<spanclass="katex−display"><spanclass="katex"><spanclass="katex−mathml"><mathxmlns="http://www.w3.org/1998/Math/MathML"display="block"><semantics><mrow><msup><mi>g</mi><molspace="0em"rspace="0em">†</mo></msup></mrow><annotationencoding="application/x−tex">g†</annotation></semantics></math></span><spanclass="katex−html"aria−hidden="true"><spanclass="base"><spanclass="strut"style="height:1.0935em;vertical−align:−0.1944em;"></span><spanclass="mord"><spanclass="mordmathnormal"style="margin−right:0.0359em;">g</span><spanclass="msupsub"><spanclass="vlist−t"><spanclass="vlist−r"><spanclass="vlist"style="height:0.8991em;"><spanstyle="top:−3.113em;margin−right:0.05em;"><spanclass="pstrut"style="height:2.7em;"></span><spanclass="sizingreset−size6size3mtight"><spanclass="mordmtight"><spanclass="mordmtight">†</span></span></span></span></span></span></span></span></span></span></span></span></span>g<spanclass="katex−display"><spanclass="katex"><spanclass="katex−mathml"><mathxmlns="http://www.w3.org/1998/Math/MathML"display="block"><semantics><mrow><mo>=</mo></mrow><annotationencoding="application/x−tex">=</annotation></semantics></math></span><spanclass="katex−html"aria−hidden="true"><spanclass="base"><spanclass="strut"style="height:0.3669em;"></span><spanclass="mrel">=</span></span></span></span></span>X<spanclass="katex−display"><spanclass="katex"><spanclass="katex−mathml"><mathxmlns="http://www.w3.org/1998/Math/MathML"display="block"><semantics><mrow><mi>Y</mi></mrow><annotationencoding="application/x−tex">Y</annotation></semantics></math></span><spanclass="katex−html"aria−hidden="true"><spanclass="base"><spanclass="strut"style="height:0.6833em;"></span><spanclass="mordmathnormal"style="margin−right:0.2222em;">Y</span></span></span></span></span>X<spanclass="katex−display"><spanclass="katex"><spanclass="katex−mathml"><mathxmlns="http://www.w3.org/1998/Math/MathML"display="block"><semantics><mrow><mi>Y</mi></mrow><annotationencoding="application/x−tex">Y</annotation></semantics></math></span><spanclass="katex−html"aria−hidden="true"><spanclass="base"><spanclass="strut"style="height:0.6833em;"></span><spanclass="mordmathnormal"style="margin−right:0.2222em;">Y</span></span></span></span></span>X<spanclass="katex−display"><spanclass="katex"><spanclass="katex−mathml"><mathxmlns="http://www.w3.org/1998/Math/MathML"display="block"><semantics><mrow><mi>Y</mi></mrow><annotationencoding="application/x−tex">Y</annotation></semantics></math></span><spanclass="katex−html"aria−hidden="true"><spanclass="base"><spanclass="strut"style="height:0.6833em;"></span><spanclass="mordmathnormal"style="margin−right:0.2222em;">Y</span></span></span></span></span>X<spanclass="katex−display"><spanclass="katex"><spanclass="katex−mathml"><mathxmlns="http://www.w3.org/1998/Math/MathML"display="block"><semantics><mrow><mi>Y</mi></mrow><annotationencoding="application/x−tex">Y</annotation></semantics></math></span><spanclass="katex−html"aria−hidden="true"><spanclass="base"><spanclass="strut"style="height:0.6833em;"></span><spanclass="mordmathnormal"style="margin−right:0.2222em;">Y</span></span></span></span></span>Cf<span class="katex-display"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><msup><mi>g</mi><mo lspace="0em" rspace="0em">†</mo></msup></mrow><annotation encoding="application/x-tex">g^{\dagger}</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:1.0935em;vertical-align:-0.1944em;"></span><span class="mord"><span class="mord mathnormal" style="margin-right:0.0359em;">g</span><span class="msupsub"><span class="vlist-t"><span class="vlist-r"><span class="vlist" style="height:0.8991em;"><span style="top:-3.113em;margin-right:0.05em;"><span class="pstrut" style="height:2.7em;"></span><span class="sizing reset-size6 size3 mtight"><span class="mord mtight"><span class="mord mtight">†</span></span></span></span></span></span></span></span></span></span></span></span></span>g<span class="katex-display"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><mo>=</mo></mrow><annotation encoding="application/x-tex">=</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.3669em;"></span><span class="mrel">=</span></span></span></span></span>X<span class="katex-display"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><mi>Y</mi></mrow><annotation encoding="application/x-tex">Y</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.6833em;"></span><span class="mord mathnormal" style="margin-right:0.2222em;">Y</span></span></span></span></span>X<span class="katex-display"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><mi>Y</mi></mrow><annotation encoding="application/x-tex">Y</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.6833em;"></span><span class="mord mathnormal" style="margin-right:0.2222em;">Y</span></span></span></span></span>X<span class="katex-display"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><mi>Y</mi></mrow><annotation encoding="application/x-tex">Y</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.6833em;"></span><span class="mord mathnormal" style="margin-right:0.2222em;">Y</span></span></span></span></span>X<span class="katex-display"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><mi>Y</mi></mrow><annotation encoding="application/x-tex">Y</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.6833em;"></span><span class="mord mathnormal" style="margin-right:0.2222em;">Y</span></span></span></span></span>C Classical maps are closed under composition:

f<spanclass="katex−display"><spanclass="katex"><spanclass="katex−mathml"><mathxmlns="http://www.w3.org/1998/Math/MathML"display="block"><semantics><mrow><mo>=</mo></mrow><annotationencoding="application/x−tex">=</annotation></semantics></math></span><spanclass="katex−html"aria−hidden="true"><spanclass="base"><spanclass="strut"style="height:0.3669em;"></span><spanclass="mrel">=</span></span></span></span></span>f′<spanclass="katex−display"><spanclass="katex"><spanclass="katex−mathml"><mathxmlns="http://www.w3.org/1998/Math/MathML"display="block"><semantics><mrow><mi>f</mi></mrow><annotationencoding="application/x−tex">f</annotation></semantics></math></span><spanclass="katex−html"aria−hidden="true"><spanclass="base"><spanclass="strut"style="height:0.8889em;vertical−align:−0.1944em;"></span><spanclass="mordmathnormal"style="margin−right:0.1076em;">f</span></span></span></span></span>f′<spanclass="katex−display"><spanclass="katex"><spanclass="katex−mathml"><mathxmlns="http://www.w3.org/1998/Math/MathML"display="block"><semantics><mrow><mo>=</mo></mrow><annotationencoding="application/x−tex">=</annotation></semantics></math></span><spanclass="katex−html"aria−hidden="true"><spanclass="base"><spanclass="strut"style="height:0.3669em;"></span><spanclass="mrel">=</span></span></span></span></span>f<spanclass="katex−display"><spanclass="katex"><spanclass="katex−mathml"><mathxmlns="http://www.w3.org/1998/Math/MathML"display="block"><semantics><mrow><msup><mi>f</mi><momathvariant="normal"lspace="0em"rspace="0em">′</mo></msup></mrow><annotationencoding="application/x−tex">f′</annotation></semantics></math></span><spanclass="katex−html"aria−hidden="true"><spanclass="base"><spanclass="strut"style="height:0.9963em;vertical−align:−0.1944em;"></span><spanclass="mord"><spanclass="mordmathnormal"style="margin−right:0.1076em;">f</span><spanclass="msupsub"><spanclass="vlist−t"><spanclass="vlist−r"><spanclass="vlist"style="height:0.8019em;"><spanstyle="top:−3.113em;margin−right:0.05em;"><spanclass="pstrut"style="height:2.7em;"></span><spanclass="sizingreset−size6size3mtight"><spanclass="mordmtight"><spanclass="mordmtight">′</span></span></span></span></span></span></span></span></span></span></span></span></span>=<spanclass="katex−display"><spanclass="katex"><spanclass="katex−mathml"><mathxmlns="http://www.w3.org/1998/Math/MathML"display="block"><semantics><mrow><msup><mi>g</mi><molspace="0em"rspace="0em">†</mo></msup></mrow><annotationencoding="application/x−tex">g†</annotation></semantics></math></span><spanclass="katex−html"aria−hidden="true"><spanclass="base"><spanclass="strut"style="height:1.0935em;vertical−align:−0.1944em;"></span><spanclass="mord"><spanclass="mordmathnormal"style="margin−right:0.0359em;">g</span><spanclass="msupsub"><spanclass="vlist−t"><spanclass="vlist−r"><spanclass="vlist"style="height:0.8991em;"><spanstyle="top:−3.113em;margin−right:0.05em;"><spanclass="pstrut"style="height:2.7em;"></span><spanclass="sizingreset−size6size3mtight"><spanclass="mordmtight"><spanclass="mordmtight">†</span></span></span></span></span></span></span></span></span></span></span></span></span>g<spanclass="katex−display"><spanclass="katex"><spanclass="katex−mathml"><mathxmlns="http://www.w3.org/1998/Math/MathML"display="block"><semantics><mrow><msup><msup><mi>g</mi><momathvariant="normal"lspace="0em"rspace="0em">′</mo></msup><molspace="0em"rspace="0em">†</mo></msup></mrow><annotationencoding="application/x−tex">g′†</annotation></semantics></math></span><spanclass="katex−html"aria−hidden="true"><spanclass="base"><spanclass="strut"style="height:1.2353em;vertical−align:−0.1944em;"></span><spanclass="mord"><spanclass="mord"><spanclass="mord"><spanclass="mordmathnormal"style="margin−right:0.0359em;">g</span><spanclass="msupsub"><spanclass="vlist−t"><spanclass="vlist−r"><spanclass="vlist"style="height:0.8019em;"><spanstyle="top:−3.113em;margin−right:0.05em;"><spanclass="pstrut"style="height:2.7em;"></span><spanclass="sizingreset−size6size3mtight"><spanclass="mordmtight"><spanclass="mordmtight">′</span></span></span></span></span></span></span></span></span></span><spanclass="msupsub"><spanclass="vlist−t"><spanclass="vlist−r"><spanclass="vlist"style="height:1.0409em;"><spanstyle="top:−3.2548em;margin−right:0.05em;"><spanclass="pstrut"style="height:2.7em;"></span><spanclass="sizingreset−size6size3mtight"><spanclass="mordmtight"><spanclass="mordmtight">†</span></span></span></span></span></span></span></span></span></span></span></span></span>g′<spanclass="katex−display"><spanclass="katex"><spanclass="katex−mathml"><mathxmlns="http://www.w3.org/1998/Math/MathML"display="block"><semantics><mrow><mi>h</mi></mrow><annotationencoding="application/x−tex">h</annotation></semantics></math></span><spanclass="katex−html"aria−hidden="true"><spanclass="base"><spanclass="strut"style="height:0.6944em;"></span><spanclass="mordmathnormal">h</span></span></span></span></span>h†f<span class="katex-display"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><mo>=</mo></mrow><annotation encoding="application/x-tex">=</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.3669em;"></span><span class="mrel">=</span></span></span></span></span>f^{\prime}<span class="katex-display"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><mi>f</mi></mrow><annotation encoding="application/x-tex">f</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.8889em;vertical-align:-0.1944em;"></span><span class="mord mathnormal" style="margin-right:0.1076em;">f</span></span></span></span></span>f^{\prime}<span class="katex-display"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><mo>=</mo></mrow><annotation encoding="application/x-tex">=</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.3669em;"></span><span class="mrel">=</span></span></span></span></span>f<span class="katex-display"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><msup><mi>f</mi><mo mathvariant="normal" lspace="0em" rspace="0em">′</mo></msup></mrow><annotation encoding="application/x-tex">f^{\prime}</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.9963em;vertical-align:-0.1944em;"></span><span class="mord"><span class="mord mathnormal" style="margin-right:0.1076em;">f</span><span class="msupsub"><span class="vlist-t"><span class="vlist-r"><span class="vlist" style="height:0.8019em;"><span style="top:-3.113em;margin-right:0.05em;"><span class="pstrut" style="height:2.7em;"></span><span class="sizing reset-size6 size3 mtight"><span class="mord mtight"><span class="mord mtight">′</span></span></span></span></span></span></span></span></span></span></span></span></span>=<span class="katex-display"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><msup><mi>g</mi><mo lspace="0em" rspace="0em">†</mo></msup></mrow><annotation encoding="application/x-tex">g^{\dagger}</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:1.0935em;vertical-align:-0.1944em;"></span><span class="mord"><span class="mord mathnormal" style="margin-right:0.0359em;">g</span><span class="msupsub"><span class="vlist-t"><span class="vlist-r"><span class="vlist" style="height:0.8991em;"><span style="top:-3.113em;margin-right:0.05em;"><span class="pstrut" style="height:2.7em;"></span><span class="sizing reset-size6 size3 mtight"><span class="mord mtight"><span class="mord mtight">†</span></span></span></span></span></span></span></span></span></span></span></span></span>g<span class="katex-display"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><msup><msup><mi>g</mi><mo mathvariant="normal" lspace="0em" rspace="0em">′</mo></msup><mo lspace="0em" rspace="0em">†</mo></msup></mrow><annotation encoding="application/x-tex">{g^{\prime}}^{\dagger}</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:1.2353em;vertical-align:-0.1944em;"></span><span class="mord"><span class="mord"><span class="mord"><span class="mord mathnormal" style="margin-right:0.0359em;">g</span><span class="msupsub"><span class="vlist-t"><span class="vlist-r"><span class="vlist" style="height:0.8019em;"><span style="top:-3.113em;margin-right:0.05em;"><span class="pstrut" style="height:2.7em;"></span><span class="sizing reset-size6 size3 mtight"><span class="mord mtight"><span class="mord mtight">′</span></span></span></span></span></span></span></span></span></span><span class="msupsub"><span class="vlist-t"><span class="vlist-r"><span class="vlist" style="height:1.0409em;"><span style="top:-3.2548em;margin-right:0.05em;"><span class="pstrut" style="height:2.7em;"></span><span class="sizing reset-size6 size3 mtight"><span class="mord mtight"><span class="mord mtight">†</span></span></span></span></span></span></span></span></span></span></span></span></span>g^{\prime}<span class="katex-display"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><mi>h</mi></mrow><annotation encoding="application/x-tex">h</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.6944em;"></span><span class="mord mathnormal">h</span></span></span></span></span>h^{\dagger} Since identities are also classical, it follows that classical structures and classical maps form a subcategory C©{\bf C}_{\copyright} of Cc{\bf C}_{c}.

As explained above, classical structures in FdHilb are in one-to-one correspondence with orthonormal bases. If a linear map f:X\lx@xy@svg{\hbox{\raise 0.0pt\hbox{\kern 3.0pt\hbox{\ignorespaces\immediate\immediate\immediate{\ignorespaces{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}\hbox{\vtop{{\immediate}\kern 0.0pt\offinterlineskip\halign{\entry@#!@&&\entry@@#!@\cr{\immediate}{\immediate}{\immediate}&{\immediate}{\immediate}{\immediate}\crcr}{\immediate}}}{\immediate}{\immediate}\ignorespaces{\immediate}{\immediate}\ignorespaces}\immediate\immediate\ignorespaces\ignorespaces\ignorespaces{\hbox{\kern-3.0pt\raise 0.0pt\hbox{\hbox{\kern 0.0pt\raise 0.0pt\hbox{\hbox{\kern 3.0pt\raise 0.0pt\hbox{\textstyle{\ignorespaces\ignorespaces\ignorespaces\ignorespaces}}}}}}}}\ignorespaces\ignorespaces\ignorespaces\ignorespaces{}{\hbox{\lx@xy@droprule}}\ignorespaces{\hbox{\kern 21.0pt\raise 0.0pt\hbox{\hbox{\kern 0.0pt\raise 0.0pt\hbox{\lx@xy@tip{1}\lx@xy@tip{-1}}}}}}{\hbox{\lx@xy@droprule}}{\hbox{\lx@xy@droprule}}{\hbox{\kern 21.0pt\raise 0.0pt\hbox{\hbox{\kern 0.0pt\raise 0.0pt\hbox{\hbox{\kern 3.0pt\raise 0.0pt\hbox{\textstyle{}}}}}}}}}}}}\ignorespaces Y is represented as an n×mn\times m-matrix in the bases induced by the classical structures XX and YY, then the operation on ff described in (4) redistributes the entries of this matrix over the diagonal of an (n×m)×(n×m)(n\times m)\times(n\times m) matrix. Classical maps in FdHilb thus correspond to the matrices with non-negative entries. They map basis vectors to linear combinations of basis vectors involving only non-negative coefficients.

[Sel07] Let AA and BB be quantum systems in the dagger compact category Cq{\bf C}_{q}. A morphism f:A^{*}A\lx@xy@svg{\hbox{\raise 0.0pt\hbox{\kern 3.0pt\hbox{\ignorespaces\immediate\immediate\immediate{\ignorespaces{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}\hbox{\vtop{{\immediate}\kern 0.0pt\offinterlineskip\halign{\entry@#!@&&\entry@@#!@\cr{\immediate}{\immediate}{\immediate}&{\immediate}{\immediate}{\immediate}\crcr}{\immediate}}}{\immediate}{\immediate}\ignorespaces{\immediate}{\immediate}\ignorespaces}\immediate\immediate\ignorespaces\ignorespaces\ignorespaces{\hbox{\kern-3.0pt\raise 0.0pt\hbox{\hbox{\kern 0.0pt\raise 0.0pt\hbox{\hbox{\kern 3.0pt\raise 0.0pt\hbox{\textstyle{\ignorespaces\ignorespaces\ignorespaces\ignorespaces}}}}}}}}\ignorespaces\ignorespaces\ignorespaces\ignorespaces{}{\hbox{\lx@xy@droprule}}\ignorespaces{\hbox{\kern 21.0pt\raise 0.0pt\hbox{\hbox{\kern 0.0pt\raise 0.0pt\hbox{\lx@xy@tip{1}\lx@xy@tip{-1}}}}}}{\hbox{\lx@xy@droprule}}{\hbox{\lx@xy@droprule}}{\hbox{\kern 21.0pt\raise 0.0pt\hbox{\hbox{\kern 0.0pt\raise 0.0pt\hbox{\hbox{\kern 3.0pt\raise 0.0pt\hbox{\textstyle{}}}}}}}}}}}}\ignorespaces B^{*}B in Cq{\bf C}_{q} is called completely positive if its transpose

f<spanclass="katex−display"><spanclass="katex"><spanclass="katex−mathml"><mathxmlns="http://www.w3.org/1998/Math/MathML"display="block"><semantics><mrow><msup><mi>g</mi><molspace="0em"rspace="0em">†</mo></msup></mrow><annotationencoding="application/x−tex">g†</annotation></semantics></math></span><spanclass="katex−html"aria−hidden="true"><spanclass="base"><spanclass="strut"style="height:1.0935em;vertical−align:−0.1944em;"></span><spanclass="mord"><spanclass="mordmathnormal"style="margin−right:0.0359em;">g</span><spanclass="msupsub"><spanclass="vlist−t"><spanclass="vlist−r"><spanclass="vlist"style="height:0.8991em;"><spanstyle="top:−3.113em;margin−right:0.05em;"><spanclass="pstrut"style="height:2.7em;"></span><spanclass="sizingreset−size6size3mtight"><spanclass="mordmtight"><spanclass="mordmtight">†</span></span></span></span></span></span></span></span></span></span></span></span></span>g<spanclass="katex−display"><spanclass="katex"><spanclass="katex−mathml"><mathxmlns="http://www.w3.org/1998/Math/MathML"display="block"><semantics><mrow><mo>=</mo></mrow><annotationencoding="application/x−tex">=</annotation></semantics></math></span><spanclass="katex−html"aria−hidden="true"><spanclass="base"><spanclass="strut"style="height:0.3669em;"></span><spanclass="mrel">=</span></span></span></span></span>A<spanclass="katex−display"><spanclass="katex"><spanclass="katex−mathml"><mathxmlns="http://www.w3.org/1998/Math/MathML"display="block"><semantics><mrow><msup><mi>B</mi><molspace="0em"rspace="0em">∗</mo></msup></mrow><annotationencoding="application/x−tex">B∗</annotation></semantics></math></span><spanclass="katex−html"aria−hidden="true"><spanclass="base"><spanclass="strut"style="height:0.7387em;"></span><spanclass="mord"><spanclass="mordmathnormal"style="margin−right:0.0502em;">B</span><spanclass="msupsub"><spanclass="vlist−t"><spanclass="vlist−r"><spanclass="vlist"style="height:0.7387em;"><spanstyle="top:−3.113em;margin−right:0.05em;"><spanclass="pstrut"style="height:2.7em;"></span><spanclass="sizingreset−size6size3mtight"><spanclass="mordmtight"><spanclass="mordmtight">∗</span></span></span></span></span></span></span></span></span></span></span></span></span>A<spanclass="katex−display"><spanclass="katex"><spanclass="katex−mathml"><mathxmlns="http://www.w3.org/1998/Math/MathML"display="block"><semantics><mrow><msup><mi>B</mi><molspace="0em"rspace="0em">∗</mo></msup></mrow><annotationencoding="application/x−tex">B∗</annotation></semantics></math></span><spanclass="katex−html"aria−hidden="true"><spanclass="base"><spanclass="strut"style="height:0.7387em;"></span><spanclass="mord"><spanclass="mordmathnormal"style="margin−right:0.0502em;">B</span><spanclass="msupsub"><spanclass="vlist−t"><spanclass="vlist−r"><spanclass="vlist"style="height:0.7387em;"><spanstyle="top:−3.113em;margin−right:0.05em;"><spanclass="pstrut"style="height:2.7em;"></span><spanclass="sizingreset−size6size3mtight"><spanclass="mordmtight"><spanclass="mordmtight">∗</span></span></span></span></span></span></span></span></span></span></span></span></span>A<spanclass="katex−display"><spanclass="katex"><spanclass="katex−mathml"><mathxmlns="http://www.w3.org/1998/Math/MathML"display="block"><semantics><mrow><msup><mi>B</mi><molspace="0em"rspace="0em">∗</mo></msup></mrow><annotationencoding="application/x−tex">B∗</annotation></semantics></math></span><spanclass="katex−html"aria−hidden="true"><spanclass="base"><spanclass="strut"style="height:0.7387em;"></span><spanclass="mord"><spanclass="mordmathnormal"style="margin−right:0.0502em;">B</span><spanclass="msupsub"><spanclass="vlist−t"><spanclass="vlist−r"><spanclass="vlist"style="height:0.7387em;"><spanstyle="top:−3.113em;margin−right:0.05em;"><spanclass="pstrut"style="height:2.7em;"></span><spanclass="sizingreset−size6size3mtight"><spanclass="mordmtight"><spanclass="mordmtight">∗</span></span></span></span></span></span></span></span></span></span></span></span></span>Af<span class="katex-display"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><msup><mi>g</mi><mo lspace="0em" rspace="0em">†</mo></msup></mrow><annotation encoding="application/x-tex">g^{\dagger}</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:1.0935em;vertical-align:-0.1944em;"></span><span class="mord"><span class="mord mathnormal" style="margin-right:0.0359em;">g</span><span class="msupsub"><span class="vlist-t"><span class="vlist-r"><span class="vlist" style="height:0.8991em;"><span style="top:-3.113em;margin-right:0.05em;"><span class="pstrut" style="height:2.7em;"></span><span class="sizing reset-size6 size3 mtight"><span class="mord mtight"><span class="mord mtight">†</span></span></span></span></span></span></span></span></span></span></span></span></span>g<span class="katex-display"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><mo>=</mo></mrow><annotation encoding="application/x-tex">=</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.3669em;"></span><span class="mrel">=</span></span></span></span></span>A<span class="katex-display"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><msup><mi>B</mi><mo lspace="0em" rspace="0em">∗</mo></msup></mrow><annotation encoding="application/x-tex">B^{*}</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.7387em;"></span><span class="mord"><span class="mord mathnormal" style="margin-right:0.0502em;">B</span><span class="msupsub"><span class="vlist-t"><span class="vlist-r"><span class="vlist" style="height:0.7387em;"><span style="top:-3.113em;margin-right:0.05em;"><span class="pstrut" style="height:2.7em;"></span><span class="sizing reset-size6 size3 mtight"><span class="mord mtight"><span class="mord mtight">∗</span></span></span></span></span></span></span></span></span></span></span></span></span>A<span class="katex-display"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><msup><mi>B</mi><mo lspace="0em" rspace="0em">∗</mo></msup></mrow><annotation encoding="application/x-tex">B^{*}</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.7387em;"></span><span class="mord"><span class="mord mathnormal" style="margin-right:0.0502em;">B</span><span class="msupsub"><span class="vlist-t"><span class="vlist-r"><span class="vlist" style="height:0.7387em;"><span style="top:-3.113em;margin-right:0.05em;"><span class="pstrut" style="height:2.7em;"></span><span class="sizing reset-size6 size3 mtight"><span class="mord mtight"><span class="mord mtight">∗</span></span></span></span></span></span></span></span></span></span></span></span></span>A<span class="katex-display"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><msup><mi>B</mi><mo lspace="0em" rspace="0em">∗</mo></msup></mrow><annotation encoding="application/x-tex">B^{*}</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.7387em;"></span><span class="mord"><span class="mord mathnormal" style="margin-right:0.0502em;">B</span><span class="msupsub"><span class="vlist-t"><span class="vlist-r"><span class="vlist" style="height:0.7387em;"><span style="top:-3.113em;margin-right:0.05em;"><span class="pstrut" style="height:2.7em;"></span><span class="sizing reset-size6 size3 mtight"><span class="mord mtight"><span class="mord mtight">∗</span></span></span></span></span></span></span></span></span></span></span></span></span>AB∗B^{*} A completely positive element is called mixed state. Let PC{\cal P}{\bf C} be the category with the same objects as Cq{\bf C}_{q} and with

for which the transpose (cf. map-state duality)

is positive, that is, it is a density operator up to a positive real scalar multiple. So these transposes provide the mixed states of the usual quantum mechanical formalism. General completely positive maps

Complete positivity and the category PC{\cal P}{\bf C} of mixed states and completely positive maps can be defined in any symmetric monoidal category, even in the absence of compactness [Coe07b].

It is easy to see that the constraint on ff in Def. 3.4 is equivalent to:

f<spanclass="katex−display"><spanclass="katex"><spanclass="katex−mathml"><mathxmlns="http://www.w3.org/1998/Math/MathML"display="block"><semantics><mrow><msub><mi>g</mi><molspace="0em"rspace="0em">∗</mo></msub></mrow><annotationencoding="application/x−tex">g∗</annotation></semantics></math></span><spanclass="katex−html"aria−hidden="true"><spanclass="base"><spanclass="strut"style="height:0.625em;vertical−align:−0.1944em;"></span><spanclass="mord"><spanclass="mordmathnormal"style="margin−right:0.0359em;">g</span><spanclass="msupsub"><spanclass="vlist−tvlist−t2"><spanclass="vlist−r"><spanclass="vlist"style="height:0.1757em;"><spanstyle="top:−2.55em;margin−left:−0.0359em;margin−right:0.05em;"><spanclass="pstrut"style="height:2.7em;"></span><spanclass="sizingreset−size6size3mtight"><spanclass="mordmtight"><spanclass="mordmtight">∗</span></span></span></span></span><spanclass="vlist−s">​</span></span><spanclass="vlist−r"><spanclass="vlist"style="height:0.15em;"><span></span></span></span></span></span></span></span></span></span></span>g<spanclass="katex−display"><spanclass="katex"><spanclass="katex−mathml"><mathxmlns="http://www.w3.org/1998/Math/MathML"display="block"><semantics><mrow><mo>=</mo></mrow><annotationencoding="application/x−tex">=</annotation></semantics></math></span><spanclass="katex−html"aria−hidden="true"><spanclass="base"><spanclass="strut"style="height:0.3669em;"></span><spanclass="mrel">=</span></span></span></span></span>h<spanclass="katex−display"><spanclass="katex"><spanclass="katex−mathml"><mathxmlns="http://www.w3.org/1998/Math/MathML"display="block"><semantics><mrow><msub><mi>h</mi><molspace="0em"rspace="0em">∗</mo></msub></mrow><annotationencoding="application/x−tex">h∗</annotation></semantics></math></span><spanclass="katex−html"aria−hidden="true"><spanclass="base"><spanclass="strut"style="height:0.8444em;vertical−align:−0.15em;"></span><spanclass="mord"><spanclass="mordmathnormal">h</span><spanclass="msupsub"><spanclass="vlist−tvlist−t2"><spanclass="vlist−r"><spanclass="vlist"style="height:0.1757em;"><spanstyle="top:−2.55em;margin−left:0em;margin−right:0.05em;"><spanclass="pstrut"style="height:2.7em;"></span><spanclass="sizingreset−size6size3mtight"><spanclass="mordmtight"><spanclass="mordmtight">∗</span></span></span></span></span><spanclass="vlist−s">​</span></span><spanclass="vlist−r"><spanclass="vlist"style="height:0.15em;"><span></span></span></span></span></span></span></span></span></span></span>=<spanclass="katex−display"><spanclass="katex"><spanclass="katex−mathml"><mathxmlns="http://www.w3.org/1998/Math/MathML"display="block"><semantics><mrow><msup><mi>A</mi><molspace="0em"rspace="0em">∗</mo></msup></mrow><annotationencoding="application/x−tex">A∗</annotation></semantics></math></span><spanclass="katex−html"aria−hidden="true"><spanclass="base"><spanclass="strut"style="height:0.7387em;"></span><spanclass="mord"><spanclass="mordmathnormal">A</span><spanclass="msupsub"><spanclass="vlist−t"><spanclass="vlist−r"><spanclass="vlist"style="height:0.7387em;"><spanstyle="top:−3.113em;margin−right:0.05em;"><spanclass="pstrut"style="height:2.7em;"></span><spanclass="sizingreset−size6size3mtight"><spanclass="mordmtight"><spanclass="mordmtight">∗</span></span></span></span></span></span></span></span></span></span></span></span></span>A<spanclass="katex−display"><spanclass="katex"><spanclass="katex−mathml"><mathxmlns="http://www.w3.org/1998/Math/MathML"display="block"><semantics><mrow><msup><mi>B</mi><molspace="0em"rspace="0em">∗</mo></msup></mrow><annotationencoding="application/x−tex">B∗</annotation></semantics></math></span><spanclass="katex−html"aria−hidden="true"><spanclass="base"><spanclass="strut"style="height:0.7387em;"></span><spanclass="mord"><spanclass="mordmathnormal"style="margin−right:0.0502em;">B</span><spanclass="msupsub"><spanclass="vlist−t"><spanclass="vlist−r"><spanclass="vlist"style="height:0.7387em;"><spanstyle="top:−3.113em;margin−right:0.05em;"><spanclass="pstrut"style="height:2.7em;"></span><spanclass="sizingreset−size6size3mtight"><spanclass="mordmtight"><spanclass="mordmtight">∗</span></span></span></span></span></span></span></span></span></span></span></span></span>B<spanclass="katex−display"><spanclass="katex"><spanclass="katex−mathml"><mathxmlns="http://www.w3.org/1998/Math/MathML"display="block"><semantics><mrow><msup><mi>B</mi><molspace="0em"rspace="0em">∗</mo></msup></mrow><annotationencoding="application/x−tex">B∗</annotation></semantics></math></span><spanclass="katex−html"aria−hidden="true"><spanclass="base"><spanclass="strut"style="height:0.7387em;"></span><spanclass="mord"><spanclass="mordmathnormal"style="margin−right:0.0502em;">B</span><spanclass="msupsub"><spanclass="vlist−t"><spanclass="vlist−r"><spanclass="vlist"style="height:0.7387em;"><spanstyle="top:−3.113em;margin−right:0.05em;"><spanclass="pstrut"style="height:2.7em;"></span><spanclass="sizingreset−size6size3mtight"><spanclass="mordmtight"><spanclass="mordmtight">∗</span></span></span></span></span></span></span></span></span></span></span></span></span>B<spanclass="katex−display"><spanclass="katex"><spanclass="katex−mathml"><mathxmlns="http://www.w3.org/1998/Math/MathML"display="block"><semantics><mrow><msup><mi>A</mi><molspace="0em"rspace="0em">∗</mo></msup></mrow><annotationencoding="application/x−tex">A∗</annotation></semantics></math></span><spanclass="katex−html"aria−hidden="true"><spanclass="base"><spanclass="strut"style="height:0.7387em;"></span><spanclass="mord"><spanclass="mordmathnormal">A</span><spanclass="msupsub"><spanclass="vlist−t"><spanclass="vlist−r"><spanclass="vlist"style="height:0.7387em;"><spanstyle="top:−3.113em;margin−right:0.05em;"><spanclass="pstrut"style="height:2.7em;"></span><spanclass="sizingreset−size6size3mtight"><spanclass="mordmtight"><spanclass="mordmtight">∗</span></span></span></span></span></span></span></span></span></span></span></span></span>A<spanclass="katex−display"><spanclass="katex"><spanclass="katex−mathml"><mathxmlns="http://www.w3.org/1998/Math/MathML"display="block"><semantics><mrow><msup><mi>A</mi><molspace="0em"rspace="0em">∗</mo></msup></mrow><annotationencoding="application/x−tex">A∗</annotation></semantics></math></span><spanclass="katex−html"aria−hidden="true"><spanclass="base"><spanclass="strut"style="height:0.7387em;"></span><spanclass="mord"><spanclass="mordmathnormal">A</span><spanclass="msupsub"><spanclass="vlist−t"><spanclass="vlist−r"><spanclass="vlist"style="height:0.7387em;"><spanstyle="top:−3.113em;margin−right:0.05em;"><spanclass="pstrut"style="height:2.7em;"></span><spanclass="sizingreset−size6size3mtight"><spanclass="mordmtight"><spanclass="mordmtight">∗</span></span></span></span></span></span></span></span></span></span></span></span></span>A<spanclass="katex−display"><spanclass="katex"><spanclass="katex−mathml"><mathxmlns="http://www.w3.org/1998/Math/MathML"display="block"><semantics><mrow><msup><mi>B</mi><molspace="0em"rspace="0em">∗</mo></msup></mrow><annotationencoding="application/x−tex">B∗</annotation></semantics></math></span><spanclass="katex−html"aria−hidden="true"><spanclass="base"><spanclass="strut"style="height:0.7387em;"></span><spanclass="mord"><spanclass="mordmathnormal"style="margin−right:0.0502em;">B</span><spanclass="msupsub"><spanclass="vlist−t"><spanclass="vlist−r"><spanclass="vlist"style="height:0.7387em;"><spanstyle="top:−3.113em;margin−right:0.05em;"><spanclass="pstrut"style="height:2.7em;"></span><spanclass="sizingreset−size6size3mtight"><spanclass="mordmtight"><spanclass="mordmtight">∗</span></span></span></span></span></span></span></span></span></span></span></span></span>Bf<span class="katex-display"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><msub><mi>g</mi><mo lspace="0em" rspace="0em">∗</mo></msub></mrow><annotation encoding="application/x-tex">g_{*}</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.625em;vertical-align:-0.1944em;"></span><span class="mord"><span class="mord mathnormal" style="margin-right:0.0359em;">g</span><span class="msupsub"><span class="vlist-t vlist-t2"><span class="vlist-r"><span class="vlist" style="height:0.1757em;"><span style="top:-2.55em;margin-left:-0.0359em;margin-right:0.05em;"><span class="pstrut" style="height:2.7em;"></span><span class="sizing reset-size6 size3 mtight"><span class="mord mtight"><span class="mord mtight">∗</span></span></span></span></span><span class="vlist-s">​</span></span><span class="vlist-r"><span class="vlist" style="height:0.15em;"><span></span></span></span></span></span></span></span></span></span></span>g<span class="katex-display"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><mo>=</mo></mrow><annotation encoding="application/x-tex">=</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.3669em;"></span><span class="mrel">=</span></span></span></span></span>h<span class="katex-display"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><msub><mi>h</mi><mo lspace="0em" rspace="0em">∗</mo></msub></mrow><annotation encoding="application/x-tex">h_{*}</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.8444em;vertical-align:-0.15em;"></span><span class="mord"><span class="mord mathnormal">h</span><span class="msupsub"><span class="vlist-t vlist-t2"><span class="vlist-r"><span class="vlist" style="height:0.1757em;"><span style="top:-2.55em;margin-left:0em;margin-right:0.05em;"><span class="pstrut" style="height:2.7em;"></span><span class="sizing reset-size6 size3 mtight"><span class="mord mtight"><span class="mord mtight">∗</span></span></span></span></span><span class="vlist-s">​</span></span><span class="vlist-r"><span class="vlist" style="height:0.15em;"><span></span></span></span></span></span></span></span></span></span></span>=<span class="katex-display"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><msup><mi>A</mi><mo lspace="0em" rspace="0em">∗</mo></msup></mrow><annotation encoding="application/x-tex">A^{*}</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.7387em;"></span><span class="mord"><span class="mord mathnormal">A</span><span class="msupsub"><span class="vlist-t"><span class="vlist-r"><span class="vlist" style="height:0.7387em;"><span style="top:-3.113em;margin-right:0.05em;"><span class="pstrut" style="height:2.7em;"></span><span class="sizing reset-size6 size3 mtight"><span class="mord mtight"><span class="mord mtight">∗</span></span></span></span></span></span></span></span></span></span></span></span></span>A<span class="katex-display"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><msup><mi>B</mi><mo lspace="0em" rspace="0em">∗</mo></msup></mrow><annotation encoding="application/x-tex">B^{*}</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.7387em;"></span><span class="mord"><span class="mord mathnormal" style="margin-right:0.0502em;">B</span><span class="msupsub"><span class="vlist-t"><span class="vlist-r"><span class="vlist" style="height:0.7387em;"><span style="top:-3.113em;margin-right:0.05em;"><span class="pstrut" style="height:2.7em;"></span><span class="sizing reset-size6 size3 mtight"><span class="mord mtight"><span class="mord mtight">∗</span></span></span></span></span></span></span></span></span></span></span></span></span>B<span class="katex-display"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><msup><mi>B</mi><mo lspace="0em" rspace="0em">∗</mo></msup></mrow><annotation encoding="application/x-tex">B^{*}</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.7387em;"></span><span class="mord"><span class="mord mathnormal" style="margin-right:0.0502em;">B</span><span class="msupsub"><span class="vlist-t"><span class="vlist-r"><span class="vlist" style="height:0.7387em;"><span style="top:-3.113em;margin-right:0.05em;"><span class="pstrut" style="height:2.7em;"></span><span class="sizing reset-size6 size3 mtight"><span class="mord mtight"><span class="mord mtight">∗</span></span></span></span></span></span></span></span></span></span></span></span></span>B<span class="katex-display"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><msup><mi>A</mi><mo lspace="0em" rspace="0em">∗</mo></msup></mrow><annotation encoding="application/x-tex">A^{*}</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.7387em;"></span><span class="mord"><span class="mord mathnormal">A</span><span class="msupsub"><span class="vlist-t"><span class="vlist-r"><span class="vlist" style="height:0.7387em;"><span style="top:-3.113em;margin-right:0.05em;"><span class="pstrut" style="height:2.7em;"></span><span class="sizing reset-size6 size3 mtight"><span class="mord mtight"><span class="mord mtight">∗</span></span></span></span></span></span></span></span></span></span></span></span></span>A<span class="katex-display"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><msup><mi>A</mi><mo lspace="0em" rspace="0em">∗</mo></msup></mrow><annotation encoding="application/x-tex">A^{*}</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.7387em;"></span><span class="mord"><span class="mord mathnormal">A</span><span class="msupsub"><span class="vlist-t"><span class="vlist-r"><span class="vlist" style="height:0.7387em;"><span style="top:-3.113em;margin-right:0.05em;"><span class="pstrut" style="height:2.7em;"></span><span class="sizing reset-size6 size3 mtight"><span class="mord mtight"><span class="mord mtight">∗</span></span></span></span></span></span></span></span></span></span></span></span></span>A<span class="katex-display"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><msup><mi>B</mi><mo lspace="0em" rspace="0em">∗</mo></msup></mrow><annotation encoding="application/x-tex">B^{*}</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.7387em;"></span><span class="mord"><span class="mord mathnormal" style="margin-right:0.0502em;">B</span><span class="msupsub"><span class="vlist-t"><span class="vlist-r"><span class="vlist" style="height:0.7387em;"><span style="top:-3.113em;margin-right:0.05em;"><span class="pstrut" style="height:2.7em;"></span><span class="sizing reset-size6 size3 mtight"><span class="mord mtight"><span class="mord mtight">∗</span></span></span></span></span></span></span></span></span></span></span></span></span>B As explained in [Sel07, CPP08], in order to keep the graphs of the compact structure planar, we swap the wires of the conjugate morphisms:

h<spanclass="katex−display"><spanclass="katex"><spanclass="katex−mathml"><mathxmlns="http://www.w3.org/1998/Math/MathML"display="block"><semantics><mrow><mi>A</mi></mrow><annotationencoding="application/x−tex">A</annotation></semantics></math></span><spanclass="katex−html"aria−hidden="true"><spanclass="base"><spanclass="strut"style="height:0.6833em;"></span><spanclass="mordmathnormal">A</span></span></span></span></span>B<spanclass="katex−display"><spanclass="katex"><spanclass="katex−mathml"><mathxmlns="http://www.w3.org/1998/Math/MathML"display="block"><semantics><mrow><mi>C</mi></mrow><annotationencoding="application/x−tex">C</annotation></semantics></math></span><spanclass="katex−html"aria−hidden="true"><spanclass="base"><spanclass="strut"style="height:0.6833em;"></span><spanclass="mordmathnormal"style="margin−right:0.0715em;">C</span></span></span></span></span>D<spanclass="katex−display"><spanclass="katex"><spanclass="katex−mathml"><mathxmlns="http://www.w3.org/1998/Math/MathML"display="block"><semantics><mrow><msub><mi>h</mi><molspace="0em"rspace="0em">∗</mo></msub></mrow><annotationencoding="application/x−tex">h∗</annotation></semantics></math></span><spanclass="katex−html"aria−hidden="true"><spanclass="base"><spanclass="strut"style="height:0.8444em;vertical−align:−0.15em;"></span><spanclass="mord"><spanclass="mordmathnormal">h</span><spanclass="msupsub"><spanclass="vlist−tvlist−t2"><spanclass="vlist−r"><spanclass="vlist"style="height:0.1757em;"><spanstyle="top:−2.55em;margin−left:0em;margin−right:0.05em;"><spanclass="pstrut"style="height:2.7em;"></span><spanclass="sizingreset−size6size3mtight"><spanclass="mordmtight"><spanclass="mordmtight">∗</span></span></span></span></span><spanclass="vlist−s">​</span></span><spanclass="vlist−r"><spanclass="vlist"style="height:0.15em;"><span></span></span></span></span></span></span></span></span></span></span>B∗<spanclass="katex−display"><spanclass="katex"><spanclass="katex−mathml"><mathxmlns="http://www.w3.org/1998/Math/MathML"display="block"><semantics><mrow><msup><mi>D</mi><molspace="0em"rspace="0em">∗</mo></msup></mrow><annotationencoding="application/x−tex">D∗</annotation></semantics></math></span><spanclass="katex−html"aria−hidden="true"><spanclass="base"><spanclass="strut"style="height:0.7387em;"></span><spanclass="mord"><spanclass="mordmathnormal"style="margin−right:0.0278em;">D</span><spanclass="msupsub"><spanclass="vlist−t"><spanclass="vlist−r"><spanclass="vlist"style="height:0.7387em;"><spanstyle="top:−3.113em;margin−right:0.05em;"><spanclass="pstrut"style="height:2.7em;"></span><spanclass="sizingreset−size6size3mtight"><spanclass="mordmtight"><spanclass="mordmtight">∗</span></span></span></span></span></span></span></span></span></span></span></span></span>A∗h<span class="katex-display"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><mi>A</mi></mrow><annotation encoding="application/x-tex">A</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.6833em;"></span><span class="mord mathnormal">A</span></span></span></span></span>B<span class="katex-display"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><mi>C</mi></mrow><annotation encoding="application/x-tex">C</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.6833em;"></span><span class="mord mathnormal" style="margin-right:0.0715em;">C</span></span></span></span></span>D<span class="katex-display"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><msub><mi>h</mi><mo lspace="0em" rspace="0em">∗</mo></msub></mrow><annotation encoding="application/x-tex">h_{*}</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.8444em;vertical-align:-0.15em;"></span><span class="mord"><span class="mord mathnormal">h</span><span class="msupsub"><span class="vlist-t vlist-t2"><span class="vlist-r"><span class="vlist" style="height:0.1757em;"><span style="top:-2.55em;margin-left:0em;margin-right:0.05em;"><span class="pstrut" style="height:2.7em;"></span><span class="sizing reset-size6 size3 mtight"><span class="mord mtight"><span class="mord mtight">∗</span></span></span></span></span><span class="vlist-s">​</span></span><span class="vlist-r"><span class="vlist" style="height:0.15em;"><span></span></span></span></span></span></span></span></span></span></span>B^{*}<span class="katex-display"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><msup><mi>D</mi><mo lspace="0em" rspace="0em">∗</mo></msup></mrow><annotation encoding="application/x-tex">D^{*}</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.7387em;"></span><span class="mord"><span class="mord mathnormal" style="margin-right:0.0278em;">D</span><span class="msupsub"><span class="vlist-t"><span class="vlist-r"><span class="vlist" style="height:0.7387em;"><span style="top:-3.113em;margin-right:0.05em;"><span class="pstrut" style="height:2.7em;"></span><span class="sizing reset-size6 size3 mtight"><span class="mord mtight"><span class="mord mtight">∗</span></span></span></span></span></span></span></span></span></span></span></span></span>A^{*}C∗C^{*} Since each classical structure (X,∇,⊥)(X,\nabla,\bot) induces a self-dual compact structure (X,X,η†,η)(X,X,\eta^{\dagger},\eta) where η=Δ∘⊥\eta=\Delta\circ\bot and hence σ∘η=η\sigma\circ\eta=\eta, the notion of complete positivity applies to the morphisms in the form

between the classical structures XX and YY. The following proposition is then easily proven in graphical language.

For a morphism f:X\lx@xy@svg{\hbox{\raise 0.0pt\hbox{\kern 3.0pt\hbox{\ignorespaces\immediate\immediate\immediate{\ignorespaces{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}\hbox{\vtop{{\immediate}\kern 0.0pt\offinterlineskip\halign{\entry@#!@&&\entry@@#!@\cr{\immediate}{\immediate}{\immediate}&{\immediate}{\immediate}{\immediate}\crcr}{\immediate}}}{\immediate}{\immediate}\ignorespaces{\immediate}{\immediate}\ignorespaces}\immediate\immediate\ignorespaces\ignorespaces\ignorespaces{\hbox{\kern-3.0pt\raise 0.0pt\hbox{\hbox{\kern 0.0pt\raise 0.0pt\hbox{\hbox{\kern 3.0pt\raise 0.0pt\hbox{\textstyle{\ignorespaces\ignorespaces\ignorespaces\ignorespaces}}}}}}}}\ignorespaces\ignorespaces\ignorespaces\ignorespaces{}{\hbox{\lx@xy@droprule}}\ignorespaces{\hbox{\kern 21.0pt\raise 0.0pt\hbox{\hbox{\kern 0.0pt\raise 0.0pt\hbox{\lx@xy@tip{1}\lx@xy@tip{-1}}}}}}{\hbox{\lx@xy@droprule}}{\hbox{\lx@xy@droprule}}{\hbox{\kern 21.0pt\raise 0.0pt\hbox{\hbox{\kern 0.0pt\raise 0.0pt\hbox{\hbox{\kern 3.0pt\raise 0.0pt\hbox{\textstyle{}}}}}}}}}}}}\ignorespaces Y between classical structures XX and YY the following statements are equivalent :

f:X\lx@xy@svg{\hbox{\raise 0.0pt\hbox{\kern 3.0pt\hbox{\ignorespaces\immediate\immediate\immediate{\ignorespaces{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}\hbox{\vtop{{\immediate}\kern 0.0pt\offinterlineskip\halign{\entry@#!@&&\entry@@#!@\cr{\immediate}{\immediate}{\immediate}&{\immediate}{\immediate}{\immediate}\crcr}{\immediate}}}{\immediate}{\immediate}\ignorespaces{\immediate}{\immediate}\ignorespaces}\immediate\immediate\ignorespaces\ignorespaces\ignorespaces{\hbox{\kern-3.0pt\raise 0.0pt\hbox{\hbox{\kern 0.0pt\raise 0.0pt\hbox{\hbox{\kern 3.0pt\raise 0.0pt\hbox{\textstyle{\ignorespaces\ignorespaces\ignorespaces\ignorespaces}}}}}}}}\ignorespaces\ignorespaces\ignorespaces\ignorespaces{}{\hbox{\lx@xy@droprule}}\ignorespaces{\hbox{\kern 21.0pt\raise 0.0pt\hbox{\hbox{\kern 0.0pt\raise 0.0pt\hbox{\lx@xy@tip{1}\lx@xy@tip{-1}}}}}}{\hbox{\lx@xy@droprule}}{\hbox{\lx@xy@droprule}}{\hbox{\kern 21.0pt\raise 0.0pt\hbox{\hbox{\kern 0.0pt\raise 0.0pt\hbox{\hbox{\kern 3.0pt\raise 0.0pt\hbox{\textstyle{}}}}}}}}}}}}\ignorespaces Y is classical ;

for ΞX=ΔX∘∇X\Xi_{X}=\Delta_{X}\circ\nabla_{X} and ΞY=ΔY∘∇Y\Xi_{Y}=\Delta_{Y}\circ\nabla_{Y}.

induced by a classical structure on XX is called a decoherence. Decoherent morphisms are completely positive maps that preserve decoherences, like in (5). The subcategory of P(Cc){\cal P}({\bf C}_{c}) consisting of all classical structures with decoherent completely positive maps is denoted by CΞ{\bf C}_{\Xi}.

In FdHilb{\bf FdHilb} a mixed states is decoherent for a classical structure — that is, an orthonormal basis — if its matrix representation in that basis is diagonal. Indeed, decoherences are completely positive maps which, when applied to a density matrix, erase the non-diagonal elements [CP07]. This justifies their name: they maximally destroy coherence. Physically, this means that these states correspond to a probability distribution on the basis vectors, up to a positive real scalar multiple. Since we interpret these basis vectors as classical data, decoherent mixed states correspond to probability distributions on classical data, up to a positive real scalar multiple. A completely positive map is decoherent if it maps mixed states with diagonal matrices to mixed states with diagonal matrices. Hence they map probability distributions on classical data to probability distributions on classical data, all again up to positive real scalar multiples. In Section 3.5 we define normalised probability distributions on classical data and corresponding mappings, i.e. stochastic maps.

Graphically, complete positivity of fΞf_{\Xi} means

f<spanclass="katex−display"><spanclass="katex"><spanclass="katex−mathml"><mathxmlns="http://www.w3.org/1998/Math/MathML"display="block"><semantics><mrow><mo>=</mo></mrow><annotationencoding="application/x−tex">=</annotation></semantics></math></span><spanclass="katex−html"aria−hidden="true"><spanclass="base"><spanclass="strut"style="height:0.3669em;"></span><spanclass="mrel">=</span></span></span></span></span>g∗f<span class="katex-display"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><mo>=</mo></mrow><annotation encoding="application/x-tex">=</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.3669em;"></span><span class="mrel">=</span></span></span></span></span>g_{*}gg As in Proposition 2.3, decoherences are graphically depicted as

Given a classical morphism f:X\lx@xy@svg{\hbox{\raise 0.0pt\hbox{\kern 3.0pt\hbox{\ignorespaces\immediate\immediate\immediate{\ignorespaces{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}\hbox{\vtop{{\immediate}\kern 0.0pt\offinterlineskip\halign{\entry@#!@&&\entry@@#!@\cr{\immediate}{\immediate}{\immediate}&{\immediate}{\immediate}{\immediate}\crcr}{\immediate}}}{\immediate}{\immediate}\ignorespaces{\immediate}{\immediate}\ignorespaces}\immediate\immediate\ignorespaces\ignorespaces\ignorespaces{\hbox{\kern-3.0pt\raise 0.0pt\hbox{\hbox{\kern 0.0pt\raise 0.0pt\hbox{\hbox{\kern 3.0pt\raise 0.0pt\hbox{\textstyle{\ignorespaces\ignorespaces\ignorespaces\ignorespaces}}}}}}}}\ignorespaces\ignorespaces\ignorespaces\ignorespaces{}{\hbox{\lx@xy@droprule}}\ignorespaces{\hbox{\kern 21.0pt\raise 0.0pt\hbox{\hbox{\kern 0.0pt\raise 0.0pt\hbox{\lx@xy@tip{1}\lx@xy@tip{-1}}}}}}{\hbox{\lx@xy@droprule}}{\hbox{\lx@xy@droprule}}{\hbox{\kern 21.0pt\raise 0.0pt\hbox{\hbox{\kern 0.0pt\raise 0.0pt\hbox{\hbox{\kern 3.0pt\raise 0.0pt\hbox{\textstyle{}}}}}}}}}}}}\ignorespaces Y, a completely positive map of the form

is decoherent. Indeed, since classical structures are special, we have

f<spanclass="katex−display"><spanclass="katex"><spanclass="katex−mathml"><mathxmlns="http://www.w3.org/1998/Math/MathML"display="block"><semantics><mrow><msub><mi>f</mi><mimathvariant="normal">Ξ</mi></msub></mrow><annotationencoding="application/x−tex">fΞ</annotation></semantics></math></span><spanclass="katex−html"aria−hidden="true"><spanclass="base"><spanclass="strut"style="height:0.8889em;vertical−align:−0.1944em;"></span><spanclass="mord"><spanclass="mordmathnormal"style="margin−right:0.1076em;">f</span><spanclass="msupsub"><spanclass="vlist−tvlist−t2"><spanclass="vlist−r"><spanclass="vlist"style="height:0.3283em;"><spanstyle="top:−2.55em;margin−left:−0.1076em;margin−right:0.05em;"><spanclass="pstrut"style="height:2.7em;"></span><spanclass="sizingreset−size6size3mtight"><spanclass="mordmtight"><spanclass="mordmtight">Ξ</span></span></span></span></span><spanclass="vlist−s">​</span></span><spanclass="vlist−r"><spanclass="vlist"style="height:0.15em;"><span></span></span></span></span></span></span></span></span></span></span>ff<span class="katex-display"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><msub><mi>f</mi><mi mathvariant="normal">Ξ</mi></msub></mrow><annotation encoding="application/x-tex">f_{\Xi}</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.8889em;vertical-align:-0.1944em;"></span><span class="mord"><span class="mord mathnormal" style="margin-right:0.1076em;">f</span><span class="msupsub"><span class="vlist-t vlist-t2"><span class="vlist-r"><span class="vlist" style="height:0.3283em;"><span style="top:-2.55em;margin-left:-0.1076em;margin-right:0.05em;"><span class="pstrut" style="height:2.7em;"></span><span class="sizing reset-size6 size3 mtight"><span class="mord mtight"><span class="mord mtight">Ξ</span></span></span></span></span><span class="vlist-s">​</span></span><span class="vlist-r"><span class="vlist" style="height:0.15em;"><span></span></span></span></span></span></span></span></span></span></span>f= Conversely, if a completely positive map gg is decoherent then

=g<spanclass="katex−display"><spanclass="katex"><spanclass="katex−mathml"><mathxmlns="http://www.w3.org/1998/Math/MathML"display="block"><semantics><mrow><msub><mi>g</mi><mtext>©</mtext></msub></mrow><annotationencoding="application/x−tex">g©</annotation></semantics></math></span><spanclass="katex−html"aria−hidden="true"><spanclass="base"><spanclass="strut"style="height:0.708em;vertical−align:−0.2774em;"></span><spanclass="mord"><spanclass="mordmathnormal"style="margin−right:0.0359em;">g</span><spanclass="msupsub"><spanclass="vlist−tvlist−t2"><spanclass="vlist−r"><spanclass="vlist"style="height:0.3448em;"><spanstyle="top:−2.4226em;margin−left:−0.0359em;margin−right:0.05em;"><spanclass="pstrut"style="height:2.7em;"></span><spanclass="sizingreset−size6size3mtight"><spanclass="mordmtight"><spanclass="mordtextmtight"><spanclass="mordaccentmtight"><spanclass="vlist−t"><spanclass="vlist−r"><spanclass="vlist"style="height:0.8889em;"><spanstyle="top:−2.7em;"><spanclass="pstrut"style="height:2.7em;"></span><spanclass="mordmtight"><spanclass="mordmtight">c</span></span></span><spanstyle="top:−2.8944em;"><spanclass="pstrut"style="height:2.7em;"></span><spanclass="accent−bodyaccent−full"style="left:0em;top:.2em;"><spanclass="mordmtight">◯</span></span></span></span></span></span></span></span></span></span></span></span><spanclass="vlist−s">​</span></span><spanclass="vlist−r"><spanclass="vlist"style="height:0.2774em;"><span></span></span></span></span></span></span></span></span></span></span>gg<span class="katex-display"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><msub><mi>g</mi><mtext>©</mtext></msub></mrow><annotation encoding="application/x-tex">g_{\copyright}</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.708em;vertical-align:-0.2774em;"></span><span class="mord"><span class="mord mathnormal" style="margin-right:0.0359em;">g</span><span class="msupsub"><span class="vlist-t vlist-t2"><span class="vlist-r"><span class="vlist" style="height:0.3448em;"><span style="top:-2.4226em;margin-left:-0.0359em;margin-right:0.05em;"><span class="pstrut" style="height:2.7em;"></span><span class="sizing reset-size6 size3 mtight"><span class="mord mtight"><span class="mord text mtight"><span class="mord accent mtight"><span class="vlist-t"><span class="vlist-r"><span class="vlist" style="height:0.8889em;"><span style="top:-2.7em;"><span class="pstrut" style="height:2.7em;"></span><span class="mord mtight"><span class="mord mtight">c</span></span></span><span style="top:-2.8944em;"><span class="pstrut" style="height:2.7em;"></span><span class="accent-body accent-full" style="left:0em;top:.2em;"><span class="mord mtight">◯</span></span></span></span></span></span></span></span></span></span></span></span><span class="vlist-s">​</span></span><span class="vlist-r"><span class="vlist" style="height:0.2774em;"><span></span></span></span></span></span></span></span></span></span></span>g so it indeed has the desired form, and that g©g_{\copyright} is a classical morphism follows from gg being completely positive.

The category C©{\bf C}_{\copyright} of classical structures and classical morphisms is isomorphic to the category CΞ{\bf C}_{\Xi} of classical structures and decoherent morphisms:

In the case of FdHilb{\bf FdHilb} the isomorphism (−)Ξ(-)_{\Xi} of corollary 3.7 takes a column vector with positive real entries and maps it on on a diagonal matrix with these entries on the diagonal, i.e. a mixed state. Similarly, it maps matrices with positive real entries on a map which takes these diagonal mixed states to other diagonal mixed states in the same way as the initial matrix transforms the underlying vectors.

A morphism in a dagger compact category is real if

preserves dagger symmetric monoidal structure. Hence C©{\bf C}_{\copyright} is a symmetric monoidal dagger category. Since for classical structure (X,∇,⊥)(X,\nabla,\bot) the two morphisms ∇\nabla and ⊥\bot are both classical morphisms relative to (X,∇,⊥)(X,\nabla,\bot), C©{\bf C}_{\copyright} inherits classical structures from Cc{\bf C}_{c} along this inclusion. Hence C©{\bf C}_{\copyright} is also dagger compact. Moreover, all morphisms in C©{\bf C}_{\copyright} are real.

For instance, that the comultiplication of a classical structure is itself classical relative to that classical structure holds by Proposition 2.3:

Δ\Delta=ggg†g^{\dagger} Similarly, we prove that classical maps are real:

f<spanclass="katex−display"><spanclass="katex"><spanclass="katex−mathml"><mathxmlns="http://www.w3.org/1998/Math/MathML"display="block"><semantics><mrow><mo>=</mo></mrow><annotationencoding="application/x−tex">=</annotation></semantics></math></span><spanclass="katex−html"aria−hidden="true"><spanclass="base"><spanclass="strut"style="height:0.3669em;"></span><spanclass="mrel">=</span></span></span></span></span>f<spanclass="katex−display"><spanclass="katex"><spanclass="katex−mathml"><mathxmlns="http://www.w3.org/1998/Math/MathML"display="block"><semantics><mrow><msub><mi>g</mi><molspace="0em"rspace="0em">∗</mo></msub></mrow><annotationencoding="application/x−tex">g∗</annotation></semantics></math></span><spanclass="katex−html"aria−hidden="true"><spanclass="base"><spanclass="strut"style="height:0.625em;vertical−align:−0.1944em;"></span><spanclass="mord"><spanclass="mordmathnormal"style="margin−right:0.0359em;">g</span><spanclass="msupsub"><spanclass="vlist−tvlist−t2"><spanclass="vlist−r"><spanclass="vlist"style="height:0.1757em;"><spanstyle="top:−2.55em;margin−left:−0.0359em;margin−right:0.05em;"><spanclass="pstrut"style="height:2.7em;"></span><spanclass="sizingreset−size6size3mtight"><spanclass="mordmtight"><spanclass="mordmtight">∗</span></span></span></span></span><spanclass="vlist−s">​</span></span><spanclass="vlist−r"><spanclass="vlist"style="height:0.15em;"><span></span></span></span></span></span></span></span></span></span></span>g<spanclass="katex−display"><spanclass="katex"><spanclass="katex−mathml"><mathxmlns="http://www.w3.org/1998/Math/MathML"display="block"><semantics><mrow><mo>=</mo></mrow><annotationencoding="application/x−tex">=</annotation></semantics></math></span><spanclass="katex−html"aria−hidden="true"><spanclass="base"><spanclass="strut"style="height:0.3669em;"></span><spanclass="mrel">=</span></span></span></span></span>g<spanclass="katex−display"><spanclass="katex"><spanclass="katex−mathml"><mathxmlns="http://www.w3.org/1998/Math/MathML"display="block"><semantics><mrow><msub><mi>g</mi><molspace="0em"rspace="0em">∗</mo></msub></mrow><annotationencoding="application/x−tex">g∗</annotation></semantics></math></span><spanclass="katex−html"aria−hidden="true"><spanclass="base"><spanclass="strut"style="height:0.625em;vertical−align:−0.1944em;"></span><spanclass="mord"><spanclass="mordmathnormal"style="margin−right:0.0359em;">g</span><spanclass="msupsub"><spanclass="vlist−tvlist−t2"><spanclass="vlist−r"><spanclass="vlist"style="height:0.1757em;"><spanstyle="top:−2.55em;margin−left:−0.0359em;margin−right:0.05em;"><spanclass="pstrut"style="height:2.7em;"></span><spanclass="sizingreset−size6size3mtight"><spanclass="mordmtight"><spanclass="mordmtight">∗</span></span></span></span></span><spanclass="vlist−s">​</span></span><spanclass="vlist−r"><spanclass="vlist"style="height:0.15em;"><span></span></span></span></span></span></span></span></span></span></span>=<spanclass="katex−display"><spanclass="katex"><spanclass="katex−mathml"><mathxmlns="http://www.w3.org/1998/Math/MathML"display="block"><semantics><mrow><msub><mi>f</mi><molspace="0em"rspace="0em">∗</mo></msub></mrow><annotationencoding="application/x−tex">f∗</annotation></semantics></math></span><spanclass="katex−html"aria−hidden="true"><spanclass="base"><spanclass="strut"style="height:0.8889em;vertical−align:−0.1944em;"></span><spanclass="mord"><spanclass="mordmathnormal"style="margin−right:0.1076em;">f</span><spanclass="msupsub"><spanclass="vlist−tvlist−t2"><spanclass="vlist−r"><spanclass="vlist"style="height:0.1757em;"><spanstyle="top:−2.55em;margin−left:−0.1076em;margin−right:0.05em;"><spanclass="pstrut"style="height:2.7em;"></span><spanclass="sizingreset−size6size3mtight"><spanclass="mordmtight"><spanclass="mordmtight">∗</span></span></span></span></span><spanclass="vlist−s">​</span></span><spanclass="vlist−r"><spanclass="vlist"style="height:0.15em;"><span></span></span></span></span></span></span></span></span></span></span>=f<span class="katex-display"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><mo>=</mo></mrow><annotation encoding="application/x-tex">=</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.3669em;"></span><span class="mrel">=</span></span></span></span></span>f<span class="katex-display"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><msub><mi>g</mi><mo lspace="0em" rspace="0em">∗</mo></msub></mrow><annotation encoding="application/x-tex">g_{*}</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.625em;vertical-align:-0.1944em;"></span><span class="mord"><span class="mord mathnormal" style="margin-right:0.0359em;">g</span><span class="msupsub"><span class="vlist-t vlist-t2"><span class="vlist-r"><span class="vlist" style="height:0.1757em;"><span style="top:-2.55em;margin-left:-0.0359em;margin-right:0.05em;"><span class="pstrut" style="height:2.7em;"></span><span class="sizing reset-size6 size3 mtight"><span class="mord mtight"><span class="mord mtight">∗</span></span></span></span></span><span class="vlist-s">​</span></span><span class="vlist-r"><span class="vlist" style="height:0.15em;"><span></span></span></span></span></span></span></span></span></span></span>g<span class="katex-display"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><mo>=</mo></mrow><annotation encoding="application/x-tex">=</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.3669em;"></span><span class="mrel">=</span></span></span></span></span>g<span class="katex-display"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><msub><mi>g</mi><mo lspace="0em" rspace="0em">∗</mo></msub></mrow><annotation encoding="application/x-tex">g_{*}</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.625em;vertical-align:-0.1944em;"></span><span class="mord"><span class="mord mathnormal" style="margin-right:0.0359em;">g</span><span class="msupsub"><span class="vlist-t vlist-t2"><span class="vlist-r"><span class="vlist" style="height:0.1757em;"><span style="top:-2.55em;margin-left:-0.0359em;margin-right:0.05em;"><span class="pstrut" style="height:2.7em;"></span><span class="sizing reset-size6 size3 mtight"><span class="mord mtight"><span class="mord mtight">∗</span></span></span></span></span><span class="vlist-s">​</span></span><span class="vlist-r"><span class="vlist" style="height:0.15em;"><span></span></span></span></span></span></span></span></span></span></span>=<span class="katex-display"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><msub><mi>f</mi><mo lspace="0em" rspace="0em">∗</mo></msub></mrow><annotation encoding="application/x-tex">f_{*}</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.8889em;vertical-align:-0.1944em;"></span><span class="mord"><span class="mord mathnormal" style="margin-right:0.1076em;">f</span><span class="msupsub"><span class="vlist-t vlist-t2"><span class="vlist-r"><span class="vlist" style="height:0.1757em;"><span style="top:-2.55em;margin-left:-0.1076em;margin-right:0.05em;"><span class="pstrut" style="height:2.7em;"></span><span class="sizing reset-size6 size3 mtight"><span class="mord mtight"><span class="mord mtight">∗</span></span></span></span></span><span class="vlist-s">​</span></span><span class="vlist-r"><span class="vlist" style="height:0.15em;"><span></span></span></span></span></span></span></span></span></span></span>= where we used (co)commutativity of the (co)multiplication.

2 Relations

Given classical structures XX and YY, we define the convolution monoid

Given the convolution monoid on C(X){\bf C}(X) induced by classical structure XX we can recover the inner-product of x,y∈C(X)x,y\in{\bf C}(X) as

Moreover, for morphisms f,g∈C(X,Y)f,g\in{\bf C}(X,Y) we have by compactness that

where (Xf)∘η,(Xg)∘η∈C(X⊗Y)(Xf)\circ\eta,(Xg)\circ\eta\in{\bf C}(X\otimes Y), that is

f<spanclass="katex−display"><spanclass="katex"><spanclass="katex−mathml"><mathxmlns="http://www.w3.org/1998/Math/MathML"display="block"><semantics><mrow><mi>g</mi></mrow><annotationencoding="application/x−tex">g</annotation></semantics></math></span><spanclass="katex−html"aria−hidden="true"><spanclass="base"><spanclass="strut"style="height:0.625em;vertical−align:−0.1944em;"></span><spanclass="mordmathnormal"style="margin−right:0.0359em;">g</span></span></span></span></span>=<spanclass="katex−display"><spanclass="katex"><spanclass="katex−mathml"><mathxmlns="http://www.w3.org/1998/Math/MathML"display="block"><semantics><mrow><mi>f</mi></mrow><annotationencoding="application/x−tex">f</annotation></semantics></math></span><spanclass="katex−html"aria−hidden="true"><spanclass="base"><spanclass="strut"style="height:0.8889em;vertical−align:−0.1944em;"></span><spanclass="mordmathnormal"style="margin−right:0.1076em;">f</span></span></span></span></span>g<spanclass="katex−display"><spanclass="katex"><spanclass="katex−mathml"><mathxmlns="http://www.w3.org/1998/Math/MathML"display="block"><semantics><mrow><mi>f</mi><mo>⋆</mo><mi>g</mi></mrow><annotationencoding="application/x−tex">f⋆g</annotation></semantics></math></span><spanclass="katex−html"aria−hidden="true"><spanclass="base"><spanclass="strut"style="height:0.8889em;vertical−align:−0.1944em;"></span><spanclass="mordmathnormal"style="margin−right:0.1076em;">f</span><spanclass="mspace"style="margin−right:0.2222em;"></span><spanclass="mbin">⋆</span><spanclass="mspace"style="margin−right:0.2222em;"></span></span><spanclass="base"><spanclass="strut"style="height:0.625em;vertical−align:−0.1944em;"></span><spanclass="mordmathnormal"style="margin−right:0.0359em;">g</span></span></span></span></span>((Xf)∘η)⋆((Xg)∘η)f<span class="katex-display"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><mi>g</mi></mrow><annotation encoding="application/x-tex">g</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.625em;vertical-align:-0.1944em;"></span><span class="mord mathnormal" style="margin-right:0.0359em;">g</span></span></span></span></span>=<span class="katex-display"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><mi>f</mi></mrow><annotation encoding="application/x-tex">f</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.8889em;vertical-align:-0.1944em;"></span><span class="mord mathnormal" style="margin-right:0.1076em;">f</span></span></span></span></span>g<span class="katex-display"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><mi>f</mi><mo>⋆</mo><mi>g</mi></mrow><annotation encoding="application/x-tex">f\star g</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.8889em;vertical-align:-0.1944em;"></span><span class="mord mathnormal" style="margin-right:0.1076em;">f</span><span class="mspace" style="margin-right:0.2222em;"></span><span class="mbin">⋆</span><span class="mspace" style="margin-right:0.2222em;"></span></span><span class="base"><span class="strut" style="height:0.625em;vertical-align:-0.1944em;"></span><span class="mord mathnormal" style="margin-right:0.0359em;">g</span></span></span></span></span>((Xf)\circ\eta)\star((Xg)\circ\eta) Hence, knowing how −⋆−-\star- acts on states implies knowing how it acts on morphisms. Speciality of classical structure just means that idX{\rm id}_{X} is an idempotent element of the convolution monoid C(X,X){\bf C}(X,X). In general it is, of course, not the only idempotent.

A morphism r∈Cc(X,Y)r\in{\bf C}_{c}(X,Y) is a relation if it is an idempotent of the convolution monoid, that is,

Every commutative monoid is a semilattice iff it is idempotent. Therefore, convolution of relations is written as the intersection operation

All relations are classical morphisms, and hence also real. If (X,∇,⊥)(X,\nabla,\bot) is a classical structure then ∇\nabla and ⊥\bot are relations relative to this classical structure.

That relations are classical is established as follows:

f<spanclass="katex−display"><spanclass="katex"><spanclass="katex−mathml"><mathxmlns="http://www.w3.org/1998/Math/MathML"display="block"><semantics><mrow><mo>=</mo></mrow><annotationencoding="application/x−tex">=</annotation></semantics></math></span><spanclass="katex−html"aria−hidden="true"><spanclass="base"><spanclass="strut"style="height:0.3669em;"></span><spanclass="mrel">=</span></span></span></span></span>f<spanclass="katex−display"><spanclass="katex"><spanclass="katex−mathml"><mathxmlns="http://www.w3.org/1998/Math/MathML"display="block"><semantics><mrow><msub><mi>f</mi><molspace="0em"rspace="0em">∗</mo></msub></mrow><annotationencoding="application/x−tex">f∗</annotation></semantics></math></span><spanclass="katex−html"aria−hidden="true"><spanclass="base"><spanclass="strut"style="height:0.8889em;vertical−align:−0.1944em;"></span><spanclass="mord"><spanclass="mordmathnormal"style="margin−right:0.1076em;">f</span><spanclass="msupsub"><spanclass="vlist−tvlist−t2"><spanclass="vlist−r"><spanclass="vlist"style="height:0.1757em;"><spanstyle="top:−2.55em;margin−left:−0.1076em;margin−right:0.05em;"><spanclass="pstrut"style="height:2.7em;"></span><spanclass="sizingreset−size6size3mtight"><spanclass="mordmtight"><spanclass="mordmtight">∗</span></span></span></span></span><spanclass="vlist−s">​</span></span><spanclass="vlist−r"><spanclass="vlist"style="height:0.15em;"><span></span></span></span></span></span></span></span></span></span></span>f†<spanclass="katex−display"><spanclass="katex"><spanclass="katex−mathml"><mathxmlns="http://www.w3.org/1998/Math/MathML"display="block"><semantics><mrow><mi>f</mi></mrow><annotationencoding="application/x−tex">f</annotation></semantics></math></span><spanclass="katex−html"aria−hidden="true"><spanclass="base"><spanclass="strut"style="height:0.8889em;vertical−align:−0.1944em;"></span><spanclass="mordmathnormal"style="margin−right:0.1076em;">f</span></span></span></span></span>=<spanclass="katex−display"><spanclass="katex"><spanclass="katex−mathml"><mathxmlns="http://www.w3.org/1998/Math/MathML"display="block"><semantics><mrow><msup><mi>g</mi><molspace="0em"rspace="0em">†</mo></msup></mrow><annotationencoding="application/x−tex">g†</annotation></semantics></math></span><spanclass="katex−html"aria−hidden="true"><spanclass="base"><spanclass="strut"style="height:1.0935em;vertical−align:−0.1944em;"></span><spanclass="mord"><spanclass="mordmathnormal"style="margin−right:0.0359em;">g</span><spanclass="msupsub"><spanclass="vlist−t"><spanclass="vlist−r"><spanclass="vlist"style="height:0.8991em;"><spanstyle="top:−3.113em;margin−right:0.05em;"><spanclass="pstrut"style="height:2.7em;"></span><spanclass="sizingreset−size6size3mtight"><spanclass="mordmtight"><spanclass="mordmtight">†</span></span></span></span></span></span></span></span></span></span></span></span></span>gf<span class="katex-display"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><mo>=</mo></mrow><annotation encoding="application/x-tex">=</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.3669em;"></span><span class="mrel">=</span></span></span></span></span>f<span class="katex-display"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><msub><mi>f</mi><mo lspace="0em" rspace="0em">∗</mo></msub></mrow><annotation encoding="application/x-tex">f_{*}</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.8889em;vertical-align:-0.1944em;"></span><span class="mord"><span class="mord mathnormal" style="margin-right:0.1076em;">f</span><span class="msupsub"><span class="vlist-t vlist-t2"><span class="vlist-r"><span class="vlist" style="height:0.1757em;"><span style="top:-2.55em;margin-left:-0.1076em;margin-right:0.05em;"><span class="pstrut" style="height:2.7em;"></span><span class="sizing reset-size6 size3 mtight"><span class="mord mtight"><span class="mord mtight">∗</span></span></span></span></span><span class="vlist-s">​</span></span><span class="vlist-r"><span class="vlist" style="height:0.15em;"><span></span></span></span></span></span></span></span></span></span></span>f^{\dagger}<span class="katex-display"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><mi>f</mi></mrow><annotation encoding="application/x-tex">f</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.8889em;vertical-align:-0.1944em;"></span><span class="mord mathnormal" style="margin-right:0.1076em;">f</span></span></span></span></span>=<span class="katex-display"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><msup><mi>g</mi><mo lspace="0em" rspace="0em">†</mo></msup></mrow><annotation encoding="application/x-tex">g^{\dagger}</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:1.0935em;vertical-align:-0.1944em;"></span><span class="mord"><span class="mord mathnormal" style="margin-right:0.0359em;">g</span><span class="msupsub"><span class="vlist-t"><span class="vlist-r"><span class="vlist" style="height:0.8991em;"><span style="top:-3.113em;margin-right:0.05em;"><span class="pstrut" style="height:2.7em;"></span><span class="sizing reset-size6 size3 mtight"><span class="mord mtight"><span class="mord mtight">†</span></span></span></span></span></span></span></span></span></span></span></span></span>g where we relied again on prop. 2.3.

In general, relations are not closed under composition in C{\bf C} however, they are closed under the tensor. We show below how composition in C{\bf C} induces a new composition on relations.

In FdHilb{\bf FdHilb}, the abstract relations as defined above correspond to the matrices ff such that fij=fij2f_{ij}=f_{ij}^{2}. Since the only idempotent complex numbers are and 11, these matrices correspond to the usual matrix representation of a binary relation, in this case relating basis vectors in Hilbert spaces. Relative to these bases they are the classical maps involving only ’s and 11’s as coefficients. However, this family of matrices is not closed under composition in FdHilb{\bf FdHilb}, for example,

is not a relation. However, when considering relational composition instead, we obtain:

Rather than a subcategory, FdHilbr{\bf FdHilb}_{r} can be viewed as a quotient category of FdHilb©{\bf FdHilb}_{\copyright}. The quotient {\bf FdHilb}_{\copyright}\lx@xy@svg{\hbox{\raise 0.0pt\hbox{\kern 3.0pt\hbox{\ignorespaces\immediate\immediate\immediate{\ignorespaces{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}\hbox{\vtop{{\immediate}\kern 0.0pt\offinterlineskip\halign{\entry@#!@&&\entry@@#!@\cr{\immediate}{\immediate}{\immediate}&{\immediate}{\immediate}{\immediate}\crcr}{\immediate}}}{\immediate}{\immediate}\ignorespaces{\immediate}{\immediate}\ignorespaces}\immediate\immediate\ignorespaces\ignorespaces\ignorespaces{\hbox{\kern-3.0pt\raise 0.0pt\hbox{\hbox{\kern 0.0pt\raise 0.0pt\hbox{\hbox{\kern 3.0pt\raise 0.0pt\hbox{\textstyle{\ignorespaces\ignorespaces\ignorespaces\ignorespaces}}}}}}}}\ignorespaces\ignorespaces\ignorespaces\ignorespaces{}{\hbox{\lx@xy@droprule}}\ignorespaces{\hbox{\kern 21.0pt\raise 0.0pt\hbox{\hbox{\kern 0.0pt\raise 0.0pt\hbox{\lx@xy@tip{1}\lx@xy@tip{-1}}}}}}{\hbox{\lx@xy@droprule}}{\hbox{\lx@xy@droprule}}{\hbox{\kern 21.0pt\raise 0.0pt\hbox{\hbox{\kern 0.0pt\raise 0.0pt\hbox{\hbox{\kern 3.0pt\raise 0.0pt\hbox{\textstyle{}}}}}}}}}}}}\ignorespaces{\bf FdHilb}_{r} is identity on the objects, and it maps each matrix of non-negative reals into a matrix of s and 11s, keeping the s, and mapping all positive reals to 11.

In general, settingFor clarity of the argument we assume all meets involved to be finite, as it is for example the case in FdHilb{\bf FdHilb}.

for classical maps f:X\lx@xy@svg{\hbox{\raise 0.0pt\hbox{\kern 3.0pt\hbox{\ignorespaces\immediate\immediate\immediate{\ignorespaces{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}\hbox{\vtop{{\immediate}\kern 0.0pt\offinterlineskip\halign{\entry@#!@&&\entry@@#!@\cr{\immediate}{\immediate}{\immediate}&{\immediate}{\immediate}{\immediate}\crcr}{\immediate}}}{\immediate}{\immediate}\ignorespaces{\immediate}{\immediate}\ignorespaces}\immediate\immediate\ignorespaces\ignorespaces\ignorespaces{\hbox{\kern-3.0pt\raise 0.0pt\hbox{\hbox{\kern 0.0pt\raise 0.0pt\hbox{\hbox{\kern 3.0pt\raise 0.0pt\hbox{\textstyle{\ignorespaces\ignorespaces\ignorespaces\ignorespaces}}}}}}}}\ignorespaces\ignorespaces\ignorespaces\ignorespaces{}{\hbox{\lx@xy@droprule}}\ignorespaces{\hbox{\kern 21.0pt\raise 0.0pt\hbox{\hbox{\kern 0.0pt\raise 0.0pt\hbox{\lx@xy@tip{1}\lx@xy@tip{-1}}}}}}{\hbox{\lx@xy@droprule}}{\hbox{\lx@xy@droprule}}{\hbox{\kern 21.0pt\raise 0.0pt\hbox{\hbox{\kern 0.0pt\raise 0.0pt\hbox{\hbox{\kern 3.0pt\raise 0.0pt\hbox{\textstyle{}}}}}}}}}}}}\ignorespaces Y, we can define an equivalence relation

When restricting to the subcategory of C©{\bf C}_{\copyright} generated by all relations, which we denote by D{\bf D}, the equivalence turns out to be a congruence with respect to composition, and hence we obtain a quotient

Explicitly, the objects of Cr{\bf C}_{r} are the same as those of Cc{\bf C}_{c}, the morphisms are the equivalence classes for ∼\sim, and composition is inherited.

Classical structures and relations between them constitute a symmetric monoidal dagger category Cr{\bf C}_{r}. It is moreover a locally thin bicategory for the partial ordering ≤\leq.

In Cr{\bf C}_{r} all morphisms are lax comonoid homomorphisms with respect to the partial ordering ≤\leq.

For r∈Cr(X,Y)r\in{\bf C}_{r}(X,Y) to be a lax comonoid homomorphism means

Unfolding the definition of ≤\leq the first inequality becomes an equality

which indeed holds since graphically we have

=r<spanclass="katex−display"><spanclass="katex"><spanclass="katex−mathml"><mathxmlns="http://www.w3.org/1998/Math/MathML"display="block"><semantics><mrow><mi>r</mi></mrow><annotationencoding="application/x−tex">r</annotation></semantics></math></span><spanclass="katex−html"aria−hidden="true"><spanclass="base"><spanclass="strut"style="height:0.4306em;"></span><spanclass="mordmathnormal"style="margin−right:0.0278em;">r</span></span></span></span></span>rr<span class="katex-display"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><mi>r</mi></mrow><annotation encoding="application/x-tex">r</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.4306em;"></span><span class="mord mathnormal" style="margin-right:0.0278em;">r</span></span></span></span></span>rrr=r<spanclass="katex−display"><spanclass="katex"><spanclass="katex−mathml"><mathxmlns="http://www.w3.org/1998/Math/MathML"display="block"><semantics><mrow><mi>r</mi></mrow><annotationencoding="application/x−tex">r</annotation></semantics></math></span><spanclass="katex−html"aria−hidden="true"><spanclass="base"><spanclass="strut"style="height:0.4306em;"></span><spanclass="mordmathnormal"style="margin−right:0.0278em;">r</span></span></span></span></span>rr<span class="katex-display"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><mi>r</mi></mrow><annotation encoding="application/x-tex">r</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.4306em;"></span><span class="mord mathnormal" style="margin-right:0.0278em;">r</span></span></span></span></span>r where the first step uses r=r⋆r=r⋆(r⋆r)r=r\star r=r\star(r\star r) and the second one uses Proposition 2.3. Similarly, the second inequality becomes the equality

=rrrr where we again used Proposition 2.3.

If (X,Δ,⊤)(X,\Delta,\top) is a classical structure then Δ\Delta and ⊤\top have right adjoints in Cr{\bf C}_{r} with respect to the partial ordering ≤\leq, namely ∇=Δ†\nabla=\Delta^{\dagger} and ⊥=⊤†\bot=\top^{\dagger}.

For r∈Cr(X,Y)r\in{\bf C}_{r}(X,Y) and s∈Cr(Y,X)s\in{\bf C}_{r}(Y,X) we have r⊣sr\dashv s iff

==r<spanclass="katex−display"><spanclass="katex"><spanclass="katex−mathml"><mathxmlns="http://www.w3.org/1998/Math/MathML"display="block"><semantics><mrow><mi>s</mi></mrow><annotationencoding="application/x−tex">s</annotation></semantics></math></span><spanclass="katex−html"aria−hidden="true"><spanclass="base"><spanclass="strut"style="height:0.4306em;"></span><spanclass="mordmathnormal">s</span></span></span></span></span>r<spanclass="katex−display"><spanclass="katex"><spanclass="katex−mathml"><mathxmlns="http://www.w3.org/1998/Math/MathML"display="block"><semantics><mrow><mi>s</mi></mrow><annotationencoding="application/x−tex">s</annotation></semantics></math></span><spanclass="katex−html"aria−hidden="true"><spanclass="base"><spanclass="strut"style="height:0.4306em;"></span><spanclass="mordmathnormal">s</span></span></span></span></span>rr<span class="katex-display"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><mi>s</mi></mrow><annotation encoding="application/x-tex">s</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.4306em;"></span><span class="mord mathnormal">s</span></span></span></span></span>r<span class="katex-display"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><mi>s</mi></mrow><annotation encoding="application/x-tex">s</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.4306em;"></span><span class="mord mathnormal">s</span></span></span></span></span>rss and for the specific case of δ⊣δ†\delta\dashv\delta^{\dagger} these become

== which hold by Proposition 2.3. Similarly, for ε⊣ε†\varepsilon\dashv\varepsilon^{\dagger} we have

By Propositions 3.12, and 3.14, the category Cr{\bf C}_{r} of classical structures and relations is a cartesian bicategory of relations in the sense of Carboni and Walters [CW87]. More specifically, it is a dagger cartesian bicategory of relations.

For a symmetric monoidal category C{\bf C} the corresponding category Cr{\bf C}_{r} is a dagger cartesian bicategory of relations, that is,

a symmetric monoidal locally posetal dagger bicategory,

in which every object comes with a classical structure,

in which each morphism is a lax comonoid homomorphism,

and in which the classical structures (Δ,⊥)(\Delta,\bot) are left adjoint to (Δ†,⊥†)(\Delta^{\dagger},\bot^{\dagger}), with respect to the partial ordering ≤\leq.

The canonical example in [CW87] of a cartesian bicategory of relations is FRel{\bf FRel}. As shown above, we recover this example as FdHilbr\mathbf{FdHilb}_{r}, which has sets of basis vectors of orthonormal bases in FdHilb\mathbf{FdHilb} as objects, and ordinary relations between these as morphisms.

Surprisingly, FRelr≠FRel\mathbf{FRel}_{r}\not=\mathbf{FRel}! Indeed, recently it was shown by Edwards and one of the authors that on the two elements set in FRel\mathbf{FRel} there is not only one, but there are two very different kinds of classical structures [CE08]. Setting I:={∗}I:=\{*\} and I ⁣ ⁣I:={0,1}I\!\!I:=\{0,1\}, the ‘expected’ classical structure on I ⁣ ⁣II\!\!I is

is a classical structure, which has very different properties than the above one, for example, it only has one ‘classical point’ — see [CE08] for the definition of this. All the classical structures in FRel{\bf FRel}, of which there are plenty, have been classified by one of the authors in [Pav09]. These ‘non-standard’ classical structures result in some fascinating facts which we intend to present elsewhere. For example, consider the relation r:I→I ⁣ ⁣I::∗∼0r:I\rightarrow I\!\!I::*\sim 0. Then we have ΔX∘r:I→I ⁣ ⁣I×I ⁣ ⁣I::∗∼(0,1),(1,0)\Delta_{X}\circ r:I\rightarrow I\!\!I\times I\!\!I::*\sim(0,1),(1,0) while (r⊗r)∘λI:I→I ⁣ ⁣I×I ⁣ ⁣I::∗∼(0,0)(r\otimes r)\circ\lambda_{I}:I\rightarrow I\!\!I\times I\!\!I::*\sim(0,0). Hence rr does not seem to be a lax comonoid homomorphism, contradicting Corollary 3.15. What resolves this is the fact that r⋆Xr=∗∼1≠rr\star_{{}_{X}}r=*\sim 1\not=r. That is, as strange as it may sound, rr is not a relation relative to (I ⁣ ⁣I,ΔX,⊤X)(I\!\!I,\Delta_{X},\top_{X})! But on the other hand, r′:I→I ⁣ ⁣I::∗∼1r^{\prime}:I\rightarrow I\!\!I::*\sim 1 does satisfy r′⋆Xr′=∗∼1=rr^{\prime}\star_{{}_{X}}r^{\prime}=*\sim 1=r so it is a relation. Now we have ΔX∘r′:I→I ⁣ ⁣I×I ⁣ ⁣I::∗∼(0,0),(1,1)\Delta_{X}\circ r^{\prime}:I\rightarrow I\!\!I\times I\!\!I::*\sim(0,0),(1,1) while (r′⊗r′)∘λI:I→I ⁣ ⁣I×I ⁣ ⁣I::∗∼(1,1)(r^{\prime}\otimes r^{\prime})\circ\lambda_{I}:I\rightarrow I\!\!I\times I\!\!I::*\sim(1,1). Since r′r^{\prime} being a lax comonoid homomorphism requires ΔX∘r′=∗∼(0,0),(1,1)\Delta_{X}\circ r^{\prime}=*\sim(0,0),(1,1) to be below (r′⊗r′)∘λI=∗∼(1,1)(r^{\prime}\otimes r^{\prime})\circ\lambda_{I}=*\sim(1,1) in the partial order on relations, this again seems to be in contradiction with Corollary 3.15. What resolves this is the fact that the partial order on relations depends on the classical structure relative to which we define it, and indeed, {(0,0),(1,1)}≤X{(1,1)}\{(0,0),(1,1)\}\leq_{X}\{(1,1)\}!

Our definition differs from the one in [CW87] in that we do not assume that on each object there is no other classical structure which is also a comonoid homomorphism. While we do not know of a counterexample, we were not able to prove that relative to a fixed local order induced by chosen classical structures, these classical structures are the only ones that have right adjoints relative to it. In particular, the classical structures discussed in [CE08] which differ from the ones that provide FRel{\bf FRel} with the structure of a dagger cartesian bicategory of relations do not admit right adjoint with respect to the local ordering in FRel{\bf FRel}, since the structure maps are proper relations, not functions (cf. Definition 1.5 and Lemma 2.5 in [CW87]).

3 Functions

Following Carboni and Walters in [CW87], the preservation of the parts of the comonoid structure corresponds to the familiar properties of relations. A relation r∈Cr(X,Y)r\in{\bf C}_{r}(X,Y) is called

single-valued if ΔY∘r=(r⊗r)∘ΔX\Delta_{Y}\circ r=(r\otimes r)\circ\Delta_{X} ;

function if it is both total and single-valued.

In FdHilb, these notions correspond to the standard ones:

the matrix of a single-valued relation has at most one 1 in each column, while the remaining entries must be 0 ;

the matrix of a total relation has at least one 1 in each column ;

the matrix of a function has exactly one 1 in each column.

The following are equivalent for f∈Cc(X,Y)f\in{\bf C}_{c}(X,Y):

ff is a function i.e. a total single-valued relation ;

ff is a real comonoid homomorphism, i.e. we have that f=f∗f=f_{*}, and that the following two diagrams commute :

Restricting to comonoid homomorphisms makes the comonoid components of the classical structures into natural transformations

It is easy to see that a tensor with such natural transformation is just a cartesian product from which [Fox76]:

The category Cf{\bf C}_{f} of classical structures and functions is cartesian. The inclusion functor

maps cartesian products of Cf{\bf C}_{f} to symmetric monoidal structure of Cc{\bf C}_{c}.

4 Permutations

If a relation rr has an inverse r′r^{\prime} then rr is a function.

Indeed, one easily verifies that if a relation rr has an inverse r′r^{\prime}, then r⊣r′r\dashv r^{\prime}, so by Definition 1.5 and Theorem 1.6 in [CW87] it is a function.

If both rr and r†r^{\dagger} are functions, then they are invertible.

Indeed, if both rr and r†r^{\dagger} are functions then rr is both a monoid and a comonoid homomorphism, and in [Koc03] it was shown that a morphism between Frobenius algebras which is both a monoid and a comonoid homomorphism must be invertible.

If rr and r†r^{\dagger} are functions, then r†∘r=idr^{\dagger}\circ r={\rm id}.

r<spanclass="katex−display"><spanclass="katex"><spanclass="katex−mathml"><mathxmlns="http://www.w3.org/1998/Math/MathML"display="block"><semantics><mrow><msup><mi>r</mi><molspace="0em"rspace="0em">†</mo></msup></mrow><annotationencoding="application/x−tex">r†</annotation></semantics></math></span><spanclass="katex−html"aria−hidden="true"><spanclass="base"><spanclass="strut"style="height:0.8991em;"></span><spanclass="mord"><spanclass="mordmathnormal"style="margin−right:0.0278em;">r</span><spanclass="msupsub"><spanclass="vlist−t"><spanclass="vlist−r"><spanclass="vlist"style="height:0.8991em;"><spanstyle="top:−3.113em;margin−right:0.05em;"><spanclass="pstrut"style="height:2.7em;"></span><spanclass="sizingreset−size6size3mtight"><spanclass="mordmtight"><spanclass="mordmtight">†</span></span></span></span></span></span></span></span></span></span></span></span></span>r∗<spanclass="katex−display"><spanclass="katex"><spanclass="katex−mathml"><mathxmlns="http://www.w3.org/1998/Math/MathML"display="block"><semantics><mrow><mi>r</mi></mrow><annotationencoding="application/x−tex">r</annotation></semantics></math></span><spanclass="katex−html"aria−hidden="true"><spanclass="base"><spanclass="strut"style="height:0.4306em;"></span><spanclass="mordmathnormal"style="margin−right:0.0278em;">r</span></span></span></span></span>rr<span class="katex-display"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><msup><mi>r</mi><mo lspace="0em" rspace="0em">†</mo></msup></mrow><annotation encoding="application/x-tex">r^{\dagger}</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.8991em;"></span><span class="mord"><span class="mord mathnormal" style="margin-right:0.0278em;">r</span><span class="msupsub"><span class="vlist-t"><span class="vlist-r"><span class="vlist" style="height:0.8991em;"><span style="top:-3.113em;margin-right:0.05em;"><span class="pstrut" style="height:2.7em;"></span><span class="sizing reset-size6 size3 mtight"><span class="mord mtight"><span class="mord mtight">†</span></span></span></span></span></span></span></span></span></span></span></span></span>r_{*}<span class="katex-display"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><mi>r</mi></mrow><annotation encoding="application/x-tex">r</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.4306em;"></span><span class="mord mathnormal" style="margin-right:0.0278em;">r</span></span></span></span></span>r==== where we relied on eq.(8) and on the assumption that r†r^{\dagger} is total. So if both rr and r†r^{\dagger} are functions then they must be unitary.

The following are equivalent for r∈Cr(X,Y)r\in{\bf C}_{r}(X,Y) :

A permutation is a relation which satisfies the equivalent conditions of Proposition 3.21.

We denote by Cp{\bf C}_{p} the groupoid of classical structures and permutations. The cartesian category Cf{\bf C}_{f} is in general not self-dual, so it is not a dagger category. The category Cp{\bf C}_{p}, on the other hand, has a degenerate dagger, mapping each f:X\lx@xy@svg{\hbox{\raise 0.0pt\hbox{\kern 3.0pt\hbox{\ignorespaces\immediate\immediate\immediate{\ignorespaces{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}\hbox{\vtop{{\immediate}\kern 0.0pt\offinterlineskip\halign{\entry@#!@&&\entry@@#!@\cr{\immediate}{\immediate}{\immediate}&{\immediate}{\immediate}{\immediate}\crcr}{\immediate}}}{\immediate}{\immediate}\ignorespaces{\immediate}{\immediate}\ignorespaces}\immediate\immediate\ignorespaces\ignorespaces\ignorespaces{\hbox{\kern-3.0pt\raise 0.0pt\hbox{\hbox{\kern 0.0pt\raise 0.0pt\hbox{\hbox{\kern 3.0pt\raise 0.0pt\hbox{\textstyle{\ignorespaces\ignorespaces\ignorespaces\ignorespaces}}}}}}}}\ignorespaces\ignorespaces\ignorespaces\ignorespaces{}{\hbox{\lx@xy@droprule}}\ignorespaces{\hbox{\kern 21.0pt\raise 0.0pt\hbox{\hbox{\kern 0.0pt\raise 0.0pt\hbox{\lx@xy@tip{1}\lx@xy@tip{-1}}}}}}{\hbox{\lx@xy@droprule}}{\hbox{\lx@xy@droprule}}{\hbox{\kern 21.0pt\raise 0.0pt\hbox{\hbox{\kern 0.0pt\raise 0.0pt\hbox{\hbox{\kern 3.0pt\raise 0.0pt\hbox{\textstyle{}}}}}}}}}}}}\ignorespaces Y to its inverse f^{\dagger}:Y\lx@xy@svg{\hbox{\raise 0.0pt\hbox{\kern 3.0pt\hbox{\ignorespaces\immediate\immediate\immediate{\ignorespaces{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}\hbox{\vtop{{\immediate}\kern 0.0pt\offinterlineskip\halign{\entry@#!@&&\entry@@#!@\cr{\immediate}{\immediate}{\immediate}&{\immediate}{\immediate}{\immediate}\crcr}{\immediate}}}{\immediate}{\immediate}\ignorespaces{\immediate}{\immediate}\ignorespaces}\immediate\immediate\ignorespaces\ignorespaces\ignorespaces{\hbox{\kern-3.0pt\raise 0.0pt\hbox{\hbox{\kern 0.0pt\raise 0.0pt\hbox{\hbox{\kern 3.0pt\raise 0.0pt\hbox{\textstyle{\ignorespaces\ignorespaces\ignorespaces\ignorespaces}}}}}}}}\ignorespaces\ignorespaces\ignorespaces\ignorespaces{}{\hbox{\lx@xy@droprule}}\ignorespaces{\hbox{\kern 21.0pt\raise 0.0pt\hbox{\hbox{\kern 0.0pt\raise 0.0pt\hbox{\lx@xy@tip{1}\lx@xy@tip{-1}}}}}}{\hbox{\lx@xy@droprule}}{\hbox{\lx@xy@droprule}}{\hbox{\kern 21.0pt\raise 0.0pt\hbox{\hbox{\kern 0.0pt\raise 0.0pt\hbox{\hbox{\kern 3.0pt\raise 0.0pt\hbox{\textstyle{}}}}}}}}}}}}\ignorespaces X.

5 Stochastic maps

In Section 3.1 we defined classical morphisms, and in FdHilb{\bf FdHilb} these classical morphisms maps probability distributions to probability distributions, up to a positive real scalar. We now define the normalised counterpart.

A total classical morphism s∈Cc(X,Y)s\in{\bf C}_{c}(X,Y) is called stochastic. It is doubly stochastic if both ss and s†s^{\dagger} are stochastic. Denote by Cs{\bf C}_{s} the category of classical structures and stochastic morphisms.

The inclusion {\bf C}_{s}\lx@xy@svg{\hbox{\raise 0.0pt\hbox{\kern 3.0pt\hbox{\ignorespaces\immediate\immediate\immediate{\ignorespaces{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}\hbox{\vtop{{\immediate}\kern 0.0pt\offinterlineskip\halign{\entry@#!@&&\entry@@#!@\cr{\immediate}{\immediate}{\immediate}&{\immediate}{\immediate}{\immediate}\crcr}{\immediate}}}{\immediate}{\immediate}\ignorespaces{\immediate}{\immediate}\ignorespaces}\immediate\immediate\ignorespaces\ignorespaces\ignorespaces{\hbox{\kern-3.0pt\raise 0.0pt\hbox{\hbox{\kern 0.0pt\raise 0.0pt\hbox{\hbox{\kern 3.0pt\raise 0.0pt\hbox{\textstyle{\ignorespaces\ignorespaces\ignorespaces\ignorespaces}}}}}}}}\ignorespaces\ignorespaces\ignorespaces\ignorespaces{\hbox{\kern 3.0pt\raise 0.0pt\hbox{\hbox{\kern 0.0pt\raise 0.0pt\hbox{\lx@xy@hook{1}}}}}}{\hbox{\lx@xy@droprule}}\ignorespaces{\hbox{\kern 21.0pt\raise 0.0pt\hbox{\hbox{\kern 0.0pt\raise 0.0pt\hbox{\lx@xy@tip{1}\lx@xy@tip{-1}}}}}}{\hbox{\lx@xy@droprule}}{\hbox{\lx@xy@droprule}}{\hbox{\kern 21.0pt\raise 0.0pt\hbox{\hbox{\kern 0.0pt\raise 0.0pt\hbox{\hbox{\kern 3.0pt\raise 0.0pt\hbox{\textstyle{}}}}}}}}}}}}\ignorespaces{\bf C}_{\copyright} is both functorial and monoidal, but obviously, Cs{\bf C}_{s} does not inherit dagger structure nor compact structure in general. If h:A\lx@xy@svg{\hbox{\raise 0.0pt\hbox{\kern 3.0pt\hbox{\ignorespaces\immediate\immediate\immediate{\ignorespaces{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}\hbox{\vtop{{\immediate}\kern 0.0pt\offinterlineskip\halign{\entry@#!@&&\entry@@#!@\cr{\immediate}{\immediate}{\immediate}&{\immediate}{\immediate}{\immediate}\crcr}{\immediate}}}{\immediate}{\immediate}\ignorespaces{\immediate}{\immediate}\ignorespaces}\immediate\immediate\ignorespaces\ignorespaces\ignorespaces{\hbox{\kern-3.0pt\raise 0.0pt\hbox{\hbox{\kern 0.0pt\raise 0.0pt\hbox{\hbox{\kern 3.0pt\raise 0.0pt\hbox{\textstyle{\ignorespaces\ignorespaces\ignorespaces\ignorespaces}}}}}}}}\ignorespaces\ignorespaces\ignorespaces\ignorespaces{}{\hbox{\lx@xy@droprule}}\ignorespaces{\hbox{\kern 21.0pt\raise 0.0pt\hbox{\hbox{\kern 0.0pt\raise 0.0pt\hbox{\lx@xy@tip{1}\lx@xy@tip{-1}}}}}}{\hbox{\lx@xy@droprule}}{\hbox{\lx@xy@droprule}}{\hbox{\kern 21.0pt\raise 0.0pt\hbox{\hbox{\kern 0.0pt\raise 0.0pt\hbox{\hbox{\kern 3.0pt\raise 0.0pt\hbox{\textstyle{}}}}}}}}}}}}\ignorespaces B is doubly stochastic then dim(A)=dim(B){\rm dim}(A)={\rm dim}(B).

For two objects of the same dimension we denote by Cds(A,B){\bf C}_{ds}(A,B) the set of all doubly stochastic maps of type A\lx@xy@svg{\hbox{\raise 0.0pt\hbox{\kern 3.0pt\hbox{\ignorespaces\immediate\immediate\immediate{\ignorespaces{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}\hbox{\vtop{{\immediate}\kern 0.0pt\offinterlineskip\halign{\entry@#!@&&\entry@@#!@\cr{\immediate}{\immediate}{\immediate}&{\immediate}{\immediate}{\immediate}\crcr}{\immediate}}}{\immediate}{\immediate}\ignorespaces{\immediate}{\immediate}\ignorespaces}\immediate\immediate\ignorespaces\ignorespaces\ignorespaces{\hbox{\kern-3.0pt\raise 0.0pt\hbox{\hbox{\kern 0.0pt\raise 0.0pt\hbox{\hbox{\kern 3.0pt\raise 0.0pt\hbox{\textstyle{\ignorespaces\ignorespaces\ignorespaces\ignorespaces}}}}}}}}\ignorespaces\ignorespaces\ignorespaces\ignorespaces{}{\hbox{\lx@xy@droprule}}\ignorespaces{\hbox{\kern 21.0pt\raise 0.0pt\hbox{\hbox{\kern 0.0pt\raise 0.0pt\hbox{\lx@xy@tip{1}\lx@xy@tip{-1}}}}}}{\hbox{\lx@xy@droprule}}{\hbox{\lx@xy@droprule}}{\hbox{\kern 21.0pt\raise 0.0pt\hbox{\hbox{\kern 0.0pt\raise 0.0pt\hbox{\hbox{\kern 3.0pt\raise 0.0pt\hbox{\textstyle{}}}}}}}}}}}}\ignorespaces B.

Since all relations are positive, permutations are doubly stochastic.

A morphism f:X_{1}\lx@xy@svg{\hbox{\raise 0.0pt\hbox{\kern 3.0pt\hbox{\ignorespaces\immediate\immediate\immediate{\ignorespaces{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}\hbox{\vtop{{\immediate}\kern 0.0pt\offinterlineskip\halign{\entry@#!@&&\entry@@#!@\cr{\immediate}{\immediate}{\immediate}&{\immediate}{\immediate}{\immediate}\crcr}{\immediate}}}{\immediate}{\immediate}\ignorespaces{\immediate}{\immediate}\ignorespaces}\immediate\immediate\ignorespaces\ignorespaces\ignorespaces{\hbox{\kern-3.0pt\raise 0.0pt\hbox{\hbox{\kern 0.0pt\raise 0.0pt\hbox{\hbox{\kern 3.0pt\raise 0.0pt\hbox{\textstyle{\ignorespaces\ignorespaces\ignorespaces\ignorespaces}}}}}}}}\ignorespaces\ignorespaces\ignorespaces\ignorespaces{}{\hbox{\lx@xy@droprule}}\ignorespaces{\hbox{\kern 21.0pt\raise 0.0pt\hbox{\hbox{\kern 0.0pt\raise 0.0pt\hbox{\lx@xy@tip{1}\lx@xy@tip{-1}}}}}}{\hbox{\lx@xy@droprule}}{\hbox{\lx@xy@droprule}}{\hbox{\kern 21.0pt\raise 0.0pt\hbox{\hbox{\kern 0.0pt\raise 0.0pt\hbox{\hbox{\kern 3.0pt\raise 0.0pt\hbox{\textstyle{}}}}}}}}}}}}\ignorespaces X_{2} is majorized by a morphism g:Y_{1}\lx@xy@svg{\hbox{\raise 0.0pt\hbox{\kern 3.0pt\hbox{\ignorespaces\immediate\immediate\immediate{\ignorespaces{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}\hbox{\vtop{{\immediate}\kern 0.0pt\offinterlineskip\halign{\entry@#!@&&\entry@@#!@\cr{\immediate}{\immediate}{\immediate}&{\immediate}{\immediate}{\immediate}\crcr}{\immediate}}}{\immediate}{\immediate}\ignorespaces{\immediate}{\immediate}\ignorespaces}\immediate\immediate\ignorespaces\ignorespaces\ignorespaces{\hbox{\kern-3.0pt\raise 0.0pt\hbox{\hbox{\kern 0.0pt\raise 0.0pt\hbox{\hbox{\kern 3.0pt\raise 0.0pt\hbox{\textstyle{\ignorespaces\ignorespaces\ignorespaces\ignorespaces}}}}}}}}\ignorespaces\ignorespaces\ignorespaces\ignorespaces{}{\hbox{\lx@xy@droprule}}\ignorespaces{\hbox{\kern 21.0pt\raise 0.0pt\hbox{\hbox{\kern 0.0pt\raise 0.0pt\hbox{\lx@xy@tip{1}\lx@xy@tip{-1}}}}}}{\hbox{\lx@xy@droprule}}{\hbox{\lx@xy@droprule}}{\hbox{\kern 21.0pt\raise 0.0pt\hbox{\hbox{\kern 0.0pt\raise 0.0pt\hbox{\hbox{\kern 3.0pt\raise 0.0pt\hbox{\textstyle{}}}}}}}}}}}}\ignorespaces Y_{2} if there exist doubly stochastic maps h_{1}:X_{1}\lx@xy@svg{\hbox{\raise 0.0pt\hbox{\kern 3.0pt\hbox{\ignorespaces\immediate\immediate\immediate{\ignorespaces{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}\hbox{\vtop{{\immediate}\kern 0.0pt\offinterlineskip\halign{\entry@#!@&&\entry@@#!@\cr{\immediate}{\immediate}{\immediate}&{\immediate}{\immediate}{\immediate}\crcr}{\immediate}}}{\immediate}{\immediate}\ignorespaces{\immediate}{\immediate}\ignorespaces}\immediate\immediate\ignorespaces\ignorespaces\ignorespaces{\hbox{\kern-3.0pt\raise 0.0pt\hbox{\hbox{\kern 0.0pt\raise 0.0pt\hbox{\hbox{\kern 3.0pt\raise 0.0pt\hbox{\textstyle{\ignorespaces\ignorespaces\ignorespaces\ignorespaces}}}}}}}}\ignorespaces\ignorespaces\ignorespaces\ignorespaces{}{\hbox{\lx@xy@droprule}}\ignorespaces{\hbox{\kern 21.0pt\raise 0.0pt\hbox{\hbox{\kern 0.0pt\raise 0.0pt\hbox{\lx@xy@tip{1}\lx@xy@tip{-1}}}}}}{\hbox{\lx@xy@droprule}}{\hbox{\lx@xy@droprule}}{\hbox{\kern 21.0pt\raise 0.0pt\hbox{\hbox{\kern 0.0pt\raise 0.0pt\hbox{\hbox{\kern 3.0pt\raise 0.0pt\hbox{\textstyle{}}}}}}}}}}}}\ignorespaces Y_{1} and h_{2}:X_{2}\lx@xy@svg{\hbox{\raise 0.0pt\hbox{\kern 3.0pt\hbox{\ignorespaces\immediate\immediate\immediate{\ignorespaces{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}\hbox{\vtop{{\immediate}\kern 0.0pt\offinterlineskip\halign{\entry@#!@&&\entry@@#!@\cr{\immediate}{\immediate}{\immediate}&{\immediate}{\immediate}{\immediate}\crcr}{\immediate}}}{\immediate}{\immediate}\ignorespaces{\immediate}{\immediate}\ignorespaces}\immediate\immediate\ignorespaces\ignorespaces\ignorespaces{\hbox{\kern-3.0pt\raise 0.0pt\hbox{\hbox{\kern 0.0pt\raise 0.0pt\hbox{\hbox{\kern 3.0pt\raise 0.0pt\hbox{\textstyle{\ignorespaces\ignorespaces\ignorespaces\ignorespaces}}}}}}}}\ignorespaces\ignorespaces\ignorespaces\ignorespaces{}{\hbox{\lx@xy@droprule}}\ignorespaces{\hbox{\kern 21.0pt\raise 0.0pt\hbox{\hbox{\kern 0.0pt\raise 0.0pt\hbox{\lx@xy@tip{1}\lx@xy@tip{-1}}}}}}{\hbox{\lx@xy@droprule}}{\hbox{\lx@xy@droprule}}{\hbox{\kern 21.0pt\raise 0.0pt\hbox{\hbox{\kern 0.0pt\raise 0.0pt\hbox{\hbox{\kern 3.0pt\raise 0.0pt\hbox{\textstyle{}}}}}}}}}}}}\ignorespaces Y_{2} such that g=h2∘f∘h1†g=h_{2}\circ f\circ h_{1}^{\dagger}.

Majorization is a preordering on ⋃XYCs(X,Y)\bigcup_{XY}{\bf C}_{s}(X,Y).

In FdHilb{\bf FdHilb} all the concepts defined in this section coincide with the usual ones. That is, states in FdHilbs(H){\bf FdHilb}_{s}({\cal H}) are probability distributions and maps in FdHilbs(H,H′){\bf FdHilb}_{s}({\cal H},{\cal H}^{\prime}) send probability distributions to probability distributions. Majorization on ⋃HH′FdHilbs(H,H′)\bigcup_{{\cal H}{\cal H}^{\prime}}{\bf FdHilb}_{s}({\cal H},{\cal H}^{\prime}) extends the usual notion of majorisation which is typically only defined for probability distributions [AU83, Nie99].

6 Hierarchy of classical varieties

We order all classical varieties extracted from Cc{\bf C}_{c} that is: permutations Cp{\bf C}_{p}, functions Cf{\bf C}_{f}, stochastic maps Cs{\bf C}_{s}, relations Cr{\bf C}_{r}, and classical morphisms C©{\bf C}_{\copyright}.

Relativizing over classical interfaces

Every object XX in a symmetric monoidal dagger category C{\bf C} induces an endofunctor X\otimes(-):{\bf C}\lx@xy@svg{\hbox{\raise 0.0pt\hbox{\kern 3.0pt\hbox{\ignorespaces\immediate\immediate\immediate{\ignorespaces{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}\hbox{\vtop{{\immediate}\kern 0.0pt\offinterlineskip\halign{\entry@#!@&&\entry@@#!@\cr{\immediate}{\immediate}{\immediate}&{\immediate}{\immediate}{\immediate}\crcr}{\immediate}}}{\immediate}{\immediate}\ignorespaces{\immediate}{\immediate}\ignorespaces}\immediate\immediate\ignorespaces\ignorespaces\ignorespaces{\hbox{\kern-3.0pt\raise 0.0pt\hbox{\hbox{\kern 0.0pt\raise 0.0pt\hbox{\hbox{\kern 3.0pt\raise 0.0pt\hbox{\textstyle{\ignorespaces\ignorespaces\ignorespaces\ignorespaces}}}}}}}}\ignorespaces\ignorespaces\ignorespaces\ignorespaces{}{\hbox{\lx@xy@droprule}}\ignorespaces{\hbox{\kern 21.0pt\raise 0.0pt\hbox{\hbox{\kern 0.0pt\raise 0.0pt\hbox{\lx@xy@tip{1}\lx@xy@tip{-1}}}}}}{\hbox{\lx@xy@droprule}}{\hbox{\lx@xy@droprule}}{\hbox{\kern 21.0pt\raise 0.0pt\hbox{\hbox{\kern 0.0pt\raise 0.0pt\hbox{\hbox{\kern 3.0pt\raise 0.0pt\hbox{\textstyle{}}}}}}}}}}}}\ignorespaces{\bf C}. The endofunctors F:{\bf C}\lx@xy@svg{\hbox{\raise 0.0pt\hbox{\kern 3.0pt\hbox{\ignorespaces\immediate\immediate\immediate{\ignorespaces{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}\hbox{\vtop{{\immediate}\kern 0.0pt\offinterlineskip\halign{\entry@#!@&&\entry@@#!@\cr{\immediate}{\immediate}{\immediate}&{\immediate}{\immediate}{\immediate}\crcr}{\immediate}}}{\immediate}{\immediate}\ignorespaces{\immediate}{\immediate}\ignorespaces}\immediate\immediate\ignorespaces\ignorespaces\ignorespaces{\hbox{\kern-3.0pt\raise 0.0pt\hbox{\hbox{\kern 0.0pt\raise 0.0pt\hbox{\hbox{\kern 3.0pt\raise 0.0pt\hbox{\textstyle{\ignorespaces\ignorespaces\ignorespaces\ignorespaces}}}}}}}}\ignorespaces\ignorespaces\ignorespaces\ignorespaces{}{\hbox{\lx@xy@droprule}}\ignorespaces{\hbox{\kern 21.0pt\raise 0.0pt\hbox{\hbox{\kern 0.0pt\raise 0.0pt\hbox{\lx@xy@tip{1}\lx@xy@tip{-1}}}}}}{\hbox{\lx@xy@droprule}}{\hbox{\lx@xy@droprule}}{\hbox{\kern 21.0pt\raise 0.0pt\hbox{\hbox{\kern 0.0pt\raise 0.0pt\hbox{\hbox{\kern 3.0pt\raise 0.0pt\hbox{\textstyle{}}}}}}}}}}}}\ignorespaces{\bf C} that are in this form can be recognized by their strength, viz the natural isomorphism F(A⊗B)≅FA⊗BF(A\otimes B)\cong FA\otimes B. Indeed, every monoidal category is equivalent with the category of strong endofunctors on it. Extending this correspondence, a monoid structure on XX induces a monad structure on the corresponding endofunctor X⊗(−)X\otimes(-); a comonoid structure on XX corresponds to a comonad structure on it. Since a classical structure XX carries both a monoid and a comonoid structure, the induced endofunctor X⊗(−)X\otimes(-) is both a monad and a comonad. The structure of such correspondences, and the particular logical meaning of the comonads X⊗(−)X\otimes(-) was analyzed in [Pav97].

The case when C{\bf C} is a cartesian category, i.e. when the tensor ⊗\otimes is the cartesian product ×\times, goes back to the early days of categorical logic: the comonads in the form X×(−)X\times(-) were analysed by Lambek and Scott already in [LS86]. In general, the Kleisli category CX{\bf C}_{X} induced by a comonad X\otimes(-):{\bf C}\lx@xy@svg{\hbox{\raise 0.0pt\hbox{\kern 3.0pt\hbox{\ignorespaces\immediate\immediate\immediate{\ignorespaces{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}\hbox{\vtop{{\immediate}\kern 0.0pt\offinterlineskip\halign{\entry@#!@&&\entry@@#!@\cr{\immediate}{\immediate}{\immediate}&{\immediate}{\immediate}{\immediate}\crcr}{\immediate}}}{\immediate}{\immediate}\ignorespaces{\immediate}{\immediate}\ignorespaces}\immediate\immediate\ignorespaces\ignorespaces\ignorespaces{\hbox{\kern-3.0pt\raise 0.0pt\hbox{\hbox{\kern 0.0pt\raise 0.0pt\hbox{\hbox{\kern 3.0pt\raise 0.0pt\hbox{\textstyle{\ignorespaces\ignorespaces\ignorespaces\ignorespaces}}}}}}}}\ignorespaces\ignorespaces\ignorespaces\ignorespaces{}{\hbox{\lx@xy@droprule}}\ignorespaces{\hbox{\kern 21.0pt\raise 0.0pt\hbox{\hbox{\kern 0.0pt\raise 0.0pt\hbox{\lx@xy@tip{1}\lx@xy@tip{-1}}}}}}{\hbox{\lx@xy@droprule}}{\hbox{\lx@xy@droprule}}{\hbox{\kern 21.0pt\raise 0.0pt\hbox{\hbox{\kern 0.0pt\raise 0.0pt\hbox{\hbox{\kern 3.0pt\raise 0.0pt\hbox{\textstyle{}}}}}}}}}}}}\ignorespaces{\bf C}, induced by a comonoid object XX in a monoidal category C{\bf C}, captures the data flows relative to the data type XX.

When C{\bf C} is a symmetric monoidal dagger category, then these data flows can be construed as quantum flows relative to the classical data of type XX. Commutative Frobenius algebra structure of XX assures that CX{\bf C}_{X} is also a symmetric monoidal dagger category [Pav08].

In the sequel, we often abbreviate X⊗(−)X\otimes(-) to X(−)X(-). Recall that the Kleisli category CX{\bf C}_{X}, induced by the comonad

given f:XA\lx@xy@svg{\hbox{\raise 0.0pt\hbox{\kern 3.0pt\hbox{\ignorespaces\immediate\immediate\immediate{\ignorespaces{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}\hbox{\vtop{{\immediate}\kern 0.0pt\offinterlineskip\halign{\entry@#!@&&\entry@@#!@\cr{\immediate}{\immediate}{\immediate}&{\immediate}{\immediate}{\immediate}\crcr}{\immediate}}}{\immediate}{\immediate}\ignorespaces{\immediate}{\immediate}\ignorespaces}\immediate\immediate\ignorespaces\ignorespaces\ignorespaces{\hbox{\kern-3.0pt\raise 0.0pt\hbox{\hbox{\kern 0.0pt\raise 0.0pt\hbox{\hbox{\kern 3.0pt\raise 0.0pt\hbox{\textstyle{\ignorespaces\ignorespaces\ignorespaces\ignorespaces}}}}}}}}\ignorespaces\ignorespaces\ignorespaces\ignorespaces{}{\hbox{\lx@xy@droprule}}\ignorespaces{\hbox{\kern 21.0pt\raise 0.0pt\hbox{\hbox{\kern 0.0pt\raise 0.0pt\hbox{\lx@xy@tip{1}\lx@xy@tip{-1}}}}}}{\hbox{\lx@xy@droprule}}{\hbox{\lx@xy@droprule}}{\hbox{\kern 21.0pt\raise 0.0pt\hbox{\hbox{\kern 0.0pt\raise 0.0pt\hbox{\hbox{\kern 3.0pt\raise 0.0pt\hbox{\textstyle{}}}}}}}}}}}}\ignorespaces B and g:XB\lx@xy@svg{\hbox{\raise 0.0pt\hbox{\kern 3.0pt\hbox{\ignorespaces\immediate\immediate\immediate{\ignorespaces{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}\hbox{\vtop{{\immediate}\kern 0.0pt\offinterlineskip\halign{\entry@#!@&&\entry@@#!@\cr{\immediate}{\immediate}{\immediate}&{\immediate}{\immediate}{\immediate}\crcr}{\immediate}}}{\immediate}{\immediate}\ignorespaces{\immediate}{\immediate}\ignorespaces}\immediate\immediate\ignorespaces\ignorespaces\ignorespaces{\hbox{\kern-3.0pt\raise 0.0pt\hbox{\hbox{\kern 0.0pt\raise 0.0pt\hbox{\hbox{\kern 3.0pt\raise 0.0pt\hbox{\textstyle{\ignorespaces\ignorespaces\ignorespaces\ignorespaces}}}}}}}}\ignorespaces\ignorespaces\ignorespaces\ignorespaces{}{\hbox{\lx@xy@droprule}}\ignorespaces{\hbox{\kern 21.0pt\raise 0.0pt\hbox{\hbox{\kern 0.0pt\raise 0.0pt\hbox{\lx@xy@tip{1}\lx@xy@tip{-1}}}}}}{\hbox{\lx@xy@droprule}}{\hbox{\lx@xy@droprule}}{\hbox{\kern 21.0pt\raise 0.0pt\hbox{\hbox{\kern 0.0pt\raise 0.0pt\hbox{\hbox{\kern 3.0pt\raise 0.0pt\hbox{\textstyle{}}}}}}}}}}}}\ignorespaces C, the composite is

The monoidal structure of CX{\bf C}_{X} is

for A,B∈∣C∣A,B\in|{\bf C}| the tensor A⊗XB=A⊗BA\otimes_{X}B=A\otimes B is the same as in C{\bf C}

for f:XA\lx@xy@svg{\hbox{\raise 0.0pt\hbox{\kern 3.0pt\hbox{\ignorespaces\immediate\immediate\immediate{\ignorespaces{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}\hbox{\vtop{{\immediate}\kern 0.0pt\offinterlineskip\halign{\entry@#!@&&\entry@@#!@\cr{\immediate}{\immediate}{\immediate}&{\immediate}{\immediate}{\immediate}\crcr}{\immediate}}}{\immediate}{\immediate}\ignorespaces{\immediate}{\immediate}\ignorespaces}\immediate\immediate\ignorespaces\ignorespaces\ignorespaces{\hbox{\kern-3.0pt\raise 0.0pt\hbox{\hbox{\kern 0.0pt\raise 0.0pt\hbox{\hbox{\kern 3.0pt\raise 0.0pt\hbox{\textstyle{\ignorespaces\ignorespaces\ignorespaces\ignorespaces}}}}}}}}\ignorespaces\ignorespaces\ignorespaces\ignorespaces{}{\hbox{\lx@xy@droprule}}\ignorespaces{\hbox{\kern 21.0pt\raise 0.0pt\hbox{\hbox{\kern 0.0pt\raise 0.0pt\hbox{\lx@xy@tip{1}\lx@xy@tip{-1}}}}}}{\hbox{\lx@xy@droprule}}{\hbox{\lx@xy@droprule}}{\hbox{\kern 21.0pt\raise 0.0pt\hbox{\hbox{\kern 0.0pt\raise 0.0pt\hbox{\hbox{\kern 3.0pt\raise 0.0pt\hbox{\textstyle{}}}}}}}}}}}}\ignorespaces B and h:XC\lx@xy@svg{\hbox{\raise 0.0pt\hbox{\kern 3.0pt\hbox{\ignorespaces\immediate\immediate\immediate{\ignorespaces{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}\hbox{\vtop{{\immediate}\kern 0.0pt\offinterlineskip\halign{\entry@#!@&&\entry@@#!@\cr{\immediate}{\immediate}{\immediate}&{\immediate}{\immediate}{\immediate}\crcr}{\immediate}}}{\immediate}{\immediate}\ignorespaces{\immediate}{\immediate}\ignorespaces}\immediate\immediate\ignorespaces\ignorespaces\ignorespaces{\hbox{\kern-3.0pt\raise 0.0pt\hbox{\hbox{\kern 0.0pt\raise 0.0pt\hbox{\hbox{\kern 3.0pt\raise 0.0pt\hbox{\textstyle{\ignorespaces\ignorespaces\ignorespaces\ignorespaces}}}}}}}}\ignorespaces\ignorespaces\ignorespaces\ignorespaces{}{\hbox{\lx@xy@droprule}}\ignorespaces{\hbox{\kern 21.0pt\raise 0.0pt\hbox{\hbox{\kern 0.0pt\raise 0.0pt\hbox{\lx@xy@tip{1}\lx@xy@tip{-1}}}}}}{\hbox{\lx@xy@droprule}}{\hbox{\lx@xy@droprule}}{\hbox{\kern 21.0pt\raise 0.0pt\hbox{\hbox{\kern 0.0pt\raise 0.0pt\hbox{\hbox{\kern 3.0pt\raise 0.0pt\hbox{\textstyle{}}}}}}}}}}}}\ignorespaces D, the tensor is

the monoid unit is IX=II_{X}=I, but the scalars in CX{\bf C}_{X} are C(X,I){\bf C}(X,I).

The dagger structure of CX{\bf C}_{X} makes the full use of the classical structure of XX:

given f∈CX(A,B)f\in{\bf C}_{X}(A,B), i.e. an arrow f∈C(XA,B)f\in{\bf C}(XA,B), f†X∈CX(B,A)f^{{\dagger}_{X}}\in{\bf C}_{X}(B,A) is defined to be the transpose of its adjoint f†∈C(B,XA)f^{\dagger}\in{\bf C}(B,XA), i.e.

Composition, tensor and dagger in CX{\bf C}_{X} respectively depict as:

f<spanclass="katex−display"><spanclass="katex"><spanclass="katex−mathml"><mathxmlns="http://www.w3.org/1998/Math/MathML"display="block"><semantics><mrow><mi>g</mi></mrow><annotationencoding="application/x−tex">g</annotation></semantics></math></span><spanclass="katex−html"aria−hidden="true"><spanclass="base"><spanclass="strut"style="height:0.625em;vertical−align:−0.1944em;"></span><spanclass="mordmathnormal"style="margin−right:0.0359em;">g</span></span></span></span></span>h<spanclass="katex−display"><spanclass="katex"><spanclass="katex−mathml"><mathxmlns="http://www.w3.org/1998/Math/MathML"display="block"><semantics><mrow><mi>f</mi></mrow><annotationencoding="application/x−tex">f</annotation></semantics></math></span><spanclass="katex−html"aria−hidden="true"><spanclass="base"><spanclass="strut"style="height:0.8889em;vertical−align:−0.1944em;"></span><spanclass="mordmathnormal"style="margin−right:0.1076em;">f</span></span></span></span></span>f†f<span class="katex-display"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><mi>g</mi></mrow><annotation encoding="application/x-tex">g</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.625em;vertical-align:-0.1944em;"></span><span class="mord mathnormal" style="margin-right:0.0359em;">g</span></span></span></span></span>h<span class="katex-display"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><mi>f</mi></mrow><annotation encoding="application/x-tex">f</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.8889em;vertical-align:-0.1944em;"></span><span class="mord mathnormal" style="margin-right:0.1076em;">f</span></span></span></span></span>f^{\dagger} The Kleisli category CX{\bf C}^{X} for the monad X(-):{\bf C}\lx@xy@svg{\hbox{\raise 0.0pt\hbox{\kern 3.0pt\hbox{\ignorespaces\immediate\immediate\immediate{\ignorespaces{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}\hbox{\vtop{{\immediate}\kern 0.0pt\offinterlineskip\halign{\entry@#!@&&\entry@@#!@\cr{\immediate}{\immediate}{\immediate}&{\immediate}{\immediate}{\immediate}\crcr}{\immediate}}}{\immediate}{\immediate}\ignorespaces{\immediate}{\immediate}\ignorespaces}\immediate\immediate\ignorespaces\ignorespaces\ignorespaces{\hbox{\kern-3.0pt\raise 0.0pt\hbox{\hbox{\kern 0.0pt\raise 0.0pt\hbox{\hbox{\kern 3.0pt\raise 0.0pt\hbox{\textstyle{\ignorespaces\ignorespaces\ignorespaces\ignorespaces}}}}}}}}\ignorespaces\ignorespaces\ignorespaces\ignorespaces{}{\hbox{\lx@xy@droprule}}\ignorespaces{\hbox{\kern 21.0pt\raise 0.0pt\hbox{\hbox{\kern 0.0pt\raise 0.0pt\hbox{\lx@xy@tip{1}\lx@xy@tip{-1}}}}}}{\hbox{\lx@xy@droprule}}{\hbox{\lx@xy@droprule}}{\hbox{\kern 21.0pt\raise 0.0pt\hbox{\hbox{\kern 0.0pt\raise 0.0pt\hbox{\hbox{\kern 3.0pt\raise 0.0pt\hbox{\textstyle{}}}}}}}}}}}}\ignorespaces{\bf C} has the hom-sets CX(A,B)=C(A,XB){\bf C}^{X}(A,B)={\bf C}(A,XB), and a structure dual to the above. The duality is in fact formal, by transposing the XX-type:

make the Kleisli categories CX{\bf C}_{X} and CX{\bf C}^{X} isomorphic.

can now be graphically presented as follows:

f<spanclass="katex−display"><spanclass="katex"><spanclass="katex−mathml"><mathxmlns="http://www.w3.org/1998/Math/MathML"display="block"><semantics><mrow><mi>f</mi></mrow><annotationencoding="application/x−tex">f</annotation></semantics></math></span><spanclass="katex−html"aria−hidden="true"><spanclass="base"><spanclass="strut"style="height:0.8889em;vertical−align:−0.1944em;"></span><spanclass="mordmathnormal"style="margin−right:0.1076em;">f</span></span></span></span></span>ff<span class="katex-display"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><mi>f</mi></mrow><annotation encoding="application/x-tex">f</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.8889em;vertical-align:-0.1944em;"></span><span class="mord mathnormal" style="margin-right:0.1076em;">f</span></span></span></span></span>fff It is easy to see that FF is a monoidal functor, but UU is not. The monoidal functor FF enables to interpret of quantum flows which do not involve the classical data type XX.

[Pav08] For XX a classical structure, the Kleisli category CX{\bf C}_{X} inherits all classical structures from C{\bf C} along FF, and therefore

if C{\bf C} is dagger compact then so is CX{\bf C}_{X} ;

we can consider (CX)Y({\bf C}_{X})_{Y} and (CX)Y({\bf C}_{X})^{Y}, for which we have

All constructions available in dagger compact categories thus lift to CX{\bf C}_{X}, but now relative to the classical data type XX. For example, the inner-product of x,y∈CX(A)x,y\in{\bf C}_{X}(A) is

whereas the transpose and conjugate of f∈CX(A,B)f\in{\bf C}_{X}(A,B) are

f<spanclass="katex−display"><spanclass="katex"><spanclass="katex−mathml"><mathxmlns="http://www.w3.org/1998/Math/MathML"display="block"><semantics><mrow><msup><mi>f</mi><molspace="0em"rspace="0em">†</mo></msup></mrow><annotationencoding="application/x−tex">f†</annotation></semantics></math></span><spanclass="katex−html"aria−hidden="true"><spanclass="base"><spanclass="strut"style="height:1.0935em;vertical−align:−0.1944em;"></span><spanclass="mord"><spanclass="mordmathnormal"style="margin−right:0.1076em;">f</span><spanclass="msupsub"><spanclass="vlist−t"><spanclass="vlist−r"><spanclass="vlist"style="height:0.8991em;"><spanstyle="top:−3.113em;margin−right:0.05em;"><spanclass="pstrut"style="height:2.7em;"></span><spanclass="sizingreset−size6size3mtight"><spanclass="mordmtight"><spanclass="mordmtight">†</span></span></span></span></span></span></span></span></span></span></span></span></span>y<spanclass="katex−display"><spanclass="katex"><spanclass="katex−mathml"><mathxmlns="http://www.w3.org/1998/Math/MathML"display="block"><semantics><mrow><msup><mi>x</mi><molspace="0em"rspace="0em">†</mo></msup></mrow><annotationencoding="application/x−tex">x†</annotation></semantics></math></span><spanclass="katex−html"aria−hidden="true"><spanclass="base"><spanclass="strut"style="height:0.8991em;"></span><spanclass="mord"><spanclass="mordmathnormal">x</span><spanclass="msupsub"><spanclass="vlist−t"><spanclass="vlist−r"><spanclass="vlist"style="height:0.8991em;"><spanstyle="top:−3.113em;margin−right:0.05em;"><spanclass="pstrut"style="height:2.7em;"></span><spanclass="sizingreset−size6size3mtight"><spanclass="mordmtight"><spanclass="mordmtight">†</span></span></span></span></span></span></span></span></span></span></span></span></span>X<spanclass="katex−display"><spanclass="katex"><spanclass="katex−mathml"><mathxmlns="http://www.w3.org/1998/Math/MathML"display="block"><semantics><mrow><mi>X</mi></mrow><annotationencoding="application/x−tex">X</annotation></semantics></math></span><spanclass="katex−html"aria−hidden="true"><spanclass="base"><spanclass="strut"style="height:0.6833em;"></span><spanclass="mordmathnormal"style="margin−right:0.0785em;">X</span></span></span></span></span>X<spanclass="katex−display"><spanclass="katex"><spanclass="katex−mathml"><mathxmlns="http://www.w3.org/1998/Math/MathML"display="block"><semantics><mrow><mi>A</mi></mrow><annotationencoding="application/x−tex">A</annotation></semantics></math></span><spanclass="katex−html"aria−hidden="true"><spanclass="base"><spanclass="strut"style="height:0.6833em;"></span><spanclass="mordmathnormal">A</span></span></span></span></span>A<spanclass="katex−display"><spanclass="katex"><spanclass="katex−mathml"><mathxmlns="http://www.w3.org/1998/Math/MathML"display="block"><semantics><mrow><mi>B</mi></mrow><annotationencoding="application/x−tex">B</annotation></semantics></math></span><spanclass="katex−html"aria−hidden="true"><spanclass="base"><spanclass="strut"style="height:0.6833em;"></span><spanclass="mordmathnormal"style="margin−right:0.0502em;">B</span></span></span></span></span>Bf<span class="katex-display"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><msup><mi>f</mi><mo lspace="0em" rspace="0em">†</mo></msup></mrow><annotation encoding="application/x-tex">f^{\dagger}</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:1.0935em;vertical-align:-0.1944em;"></span><span class="mord"><span class="mord mathnormal" style="margin-right:0.1076em;">f</span><span class="msupsub"><span class="vlist-t"><span class="vlist-r"><span class="vlist" style="height:0.8991em;"><span style="top:-3.113em;margin-right:0.05em;"><span class="pstrut" style="height:2.7em;"></span><span class="sizing reset-size6 size3 mtight"><span class="mord mtight"><span class="mord mtight">†</span></span></span></span></span></span></span></span></span></span></span></span></span>y<span class="katex-display"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><msup><mi>x</mi><mo lspace="0em" rspace="0em">†</mo></msup></mrow><annotation encoding="application/x-tex">x^{\dagger}</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.8991em;"></span><span class="mord"><span class="mord mathnormal">x</span><span class="msupsub"><span class="vlist-t"><span class="vlist-r"><span class="vlist" style="height:0.8991em;"><span style="top:-3.113em;margin-right:0.05em;"><span class="pstrut" style="height:2.7em;"></span><span class="sizing reset-size6 size3 mtight"><span class="mord mtight"><span class="mord mtight">†</span></span></span></span></span></span></span></span></span></span></span></span></span>X<span class="katex-display"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><mi>X</mi></mrow><annotation encoding="application/x-tex">X</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.6833em;"></span><span class="mord mathnormal" style="margin-right:0.0785em;">X</span></span></span></span></span>X<span class="katex-display"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><mi>A</mi></mrow><annotation encoding="application/x-tex">A</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.6833em;"></span><span class="mord mathnormal">A</span></span></span></span></span>A<span class="katex-display"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><mi>B</mi></mrow><annotation encoding="application/x-tex">B</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.6833em;"></span><span class="mord mathnormal" style="margin-right:0.0502em;">B</span></span></span></span></span>B 4.1.1 Mixing and convex closure Let pp be a stochastic state, that is, p∈Cs(I,X)p\in{\bf C}_{s}(I,X) where XX is a classical structure. Then define mappings

and we call these operations mixing or convex combining. We call morphisms in the range of ωpA,B\omega_{p}^{A,B} mixtures or convex combinations.

Both stochastic maps and doubly stochastic maps are ‘convex closed’, that is, respectively, for p∈Cc(X)p\in{\bf C}_{c}(X),

Hence, convex combinations of permutations are doubly stochastic.

This family of conceptually meaningful mappings is neither monoidal nor functorial. It connects quantum categorical semantics with the framework of convex theories [BBLW06, and references therein].

1.2 Sum

As a slight variation of the above we define mappings

and we call these operations sum. This notion of sum for CX{\bf C}_{X} induces a notion of sum for CX{\bf C}^{X} which we denote by ∑X\sum^{X}.

In FdHilb{\bf FdHilb}, if x=(x1,…,xn)x=(x_{1},\ldots,x_{n}) and y=(y1,…,yn)y=(y_{1},\ldots,y_{n}) are coordinate vectors relative to a chosen basis, then we have

2 Indexed pure quantum states and operations

The W{\cal W}-constructionWas originally called WProj{\cal WP}roj-construction. for dagger compact categories is introduced in [Coe07a] to factor out redundant global phases, and involves a passage from vector representation to density matrix representation for pure states. The category WC{\cal W}{\bf C} consists of the same objects as Cq{\bf C}_{q} and morphism f∈WC(A,B)f\in{\cal W}{\bf C}(A,B) are of the form f=φ∗⊗φf=\varphi_{*}\otimes\varphi for some φ∈Cq(A,B)\varphi\in{\bf C}_{q}(A,B).

[Coe07a] A pure quantum state is an element ψ∈WC(A)\psi\in{\cal W}{\bf C}(A). A pure quantum evolution is a unitary operation U∈WC(A,B)U\in{\cal W}{\bf C}(A,B).

We will now see that applying the W{\cal W}-construction to CX{\bf C}_{X} brings in important complementary features. The category WCX{\cal W}{\bf C}_{X} consists of

morphism f∈WCX(A,B)f\in{\cal W}{\bf C}_{X}(A,B) are of the form

for some φ∈C(XA,B)\varphi\in{\bf C}\left(XA,B\right), that is graphically:

φ\varphiφ∗\varphi_{*} The isomorphism CX≅CX{\bf C}_{X}\cong{\bf C}^{X} induces the isomorphism WCX≅WCX{\cal W}{\bf C}_{X}\cong{\cal W}{\bf C}^{X} and the morphism fX∈WCX(A,B)f^{X}\in{\cal W}{\bf C}^{X}(A,B) corresponding to the above morphism f∈WCX(A,B)f\in{\cal W}{\bf C}_{X}(A,B) is in the form

where π=φX\pi=\varphi^{X}, that is graphically:

π\piπ∗\pi_{*} Remark. The above pictures display the important fact that the tensors ⊗X\otimes_{X} of CX{\bf C}_{X} and ⊗X\otimes^{X} effectively correlate the components over the classical interface XX, in contrast with the tensor ⊗\otimes of C{\bf C}, which leaves them separate, as in

ν∗\nu_{*}ν\nu Definition 4.5 [CP07] A pure quantum measurement on AA of quantity XX is a self-adjoint morphism m=π∗X⊗Xπ∈WCX(A)m=\pi_{\ast^{X}}\otimes^{X}\pi\in{\cal W}{\bf C}^{X}(A) with

π\pi an Eilenberg-Moore coalgebra for comonad X\otimes-:{\bf C}\lx@xy@svg{\hbox{\raise 0.0pt\hbox{\kern 3.0pt\hbox{\ignorespaces\immediate\immediate\immediate{\ignorespaces{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}\hbox{\vtop{{\immediate}\kern 0.0pt\offinterlineskip\halign{\entry@#!@&&\entry@@#!@\cr{\immediate}{\immediate}{\immediate}&{\immediate}{\immediate}{\immediate}\crcr}{\immediate}}}{\immediate}{\immediate}\ignorespaces{\immediate}{\immediate}\ignorespaces}\immediate\immediate\ignorespaces\ignorespaces\ignorespaces{\hbox{\kern-3.0pt\raise 0.0pt\hbox{\hbox{\kern 0.0pt\raise 0.0pt\hbox{\hbox{\kern 3.0pt\raise 0.0pt\hbox{\textstyle{\ignorespaces\ignorespaces\ignorespaces\ignorespaces}}}}}}}}\ignorespaces\ignorespaces\ignorespaces\ignorespaces{}{\hbox{\lx@xy@droprule}}\ignorespaces{\hbox{\kern 21.0pt\raise 0.0pt\hbox{\hbox{\kern 0.0pt\raise 0.0pt\hbox{\lx@xy@tip{1}\lx@xy@tip{-1}}}}}}{\hbox{\lx@xy@droprule}}{\hbox{\lx@xy@droprule}}{\hbox{\kern 21.0pt\raise 0.0pt\hbox{\hbox{\kern 0.0pt\raise 0.0pt\hbox{\hbox{\kern 3.0pt\raise 0.0pt\hbox{\textstyle{}}}}}}}}}}}}\ignorespaces{\bf C}.

We refer to this last condition as mm being spectral. Explicitly we have

π\piπ†\pi^{\dagger}=π<spanclass="katex−display"><spanclass="katex"><spanclass="katex−mathml"><mathxmlns="http://www.w3.org/1998/Math/MathML"display="block"><semantics><mrow><mi>π</mi></mrow><annotationencoding="application/x−tex">π</annotation></semantics></math></span><spanclass="katex−html"aria−hidden="true"><spanclass="base"><spanclass="strut"style="height:0.4306em;"></span><spanclass="mordmathnormal"style="margin−right:0.0359em;">π</span></span></span></span></span>π\pi<span class="katex-display"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><mi>π</mi></mrow><annotation encoding="application/x-tex">\pi</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.4306em;"></span><span class="mord mathnormal" style="margin-right:0.0359em;">π</span></span></span></span></span>\pi=π\pi= A pure quantum measurement on AA of quantity XX is a morphism e∈WCX(A,I)e\in{\cal W}{\bf C}^{X}(A,I) which is such that e†∘ee^{\dagger}\circ e is a self-adjoint and spectral.

The 3rd equation can also be rewritten as

When syntactically distinguishing between identical index types as XX and X′X^{\prime} and setting δX,X′\delta_{X,X^{\prime}} for ∇⊗A\nabla\otimes A the 2nd one can be rewritten as

so we recover an analogue of the properties of a projector spectrum.

It was shown in [CP07] that definition 4.5, instantiated to the category FdHilb{\bf FdHilb}, captures the usual pure measurements, i.e. spectra of orthogonal projectors indexed by basis vectors of the classical structure XX, which now represent the outcomes of the measurement. The argument showing this is based on eqs.(24, 25, 26).

Each classical structure induces a canonical measurement, namely, the one obtained by taking π\pi to be ΔX\Delta_{X}. This is a measurement against the ‘basis’ specified by the classical structure XX.

The following definition captures the idea that certain operations may depend on values of some classical data type XX, for example, the outcomes of previously performed measurements. This is for example essential in teleportation-like protocols and measurement-based quantum computational schemes.

An operation controlled by XX is a morphism in WCX{\cal W}{\bf C}_{X}.

pure quantum states controlled by XX are ψ∈WCX(A)\psi\in{\cal W}{\bf C}_{X}(A) ;

pure quantum evolution controlled by XX are unitary U∈WCX(A,B)U\in{\cal W}{\bf C}_{X}(A,B) ;

pure quantum measurements on AA of quantity YY controlled by quantity XX are self-adjoint spectral m∈W(CY)X(A,A)m\in{\cal W}({\bf C}^{Y})_{X}(A,A).

The pure quantum states and operations of defn. 4.4 can be represented in WCX{\cal W}{\bf C}_{X} via the canonical functor

and the pure quantum measurement of quantity XX of defn. 4.5 can be represented in WCX{\cal W}{\bf C}_{X} along the isomorphism (−)X:WCX≅WCX(-)_{X}:{\cal W}{\bf C}^{X}\cong{\cal W}{\bf C}_{X}.

With the above definitions, we can now model quantum protocols in WCX{\cal W}{\bf C}_{X}, assuming that XX is the space of classical data, and interpreting the classical flows in terms of the Kleisli structure. For example, the teleportation protocol is simply the composite

Showing that T=idA{\cal T}={\rm id}_{A} boils down to an easy exercise using the compositionality lemmas for compact categories [AC04]. In the graphical language of the dagger compact category WCX{\cal W}{\bf C}^{X} this proof is just

=U∗U_{*}UU=UUU†U^{\dagger} So the diagrammatic proof of teleportation with classical data flow in WCX{\cal W}{\bf C}^{X} is just the diagrammatic proof of post-selected (or conditional) teleportation in WC{\cal W}{\bf C}. In the graphical language of the dagger compact category Cq{\bf C}_{q} this unfolds to the following diagrammatic equation:

(*)(*)==(**) where the annotated elements are:

U<spanclass="katex−display"><spanclass="katex"><spanclass="katex−mathml"><mathxmlns="http://www.w3.org/1998/Math/MathML"display="block"><semantics><mrow><msub><mi>U</mi><molspace="0em"rspace="0em">∗</mo></msub></mrow><annotationencoding="application/x−tex">U∗</annotation></semantics></math></span><spanclass="katex−html"aria−hidden="true"><spanclass="base"><spanclass="strut"style="height:0.8333em;vertical−align:−0.15em;"></span><spanclass="mord"><spanclass="mordmathnormal"style="margin−right:0.109em;">U</span><spanclass="msupsub"><spanclass="vlist−tvlist−t2"><spanclass="vlist−r"><spanclass="vlist"style="height:0.1757em;"><spanstyle="top:−2.55em;margin−left:−0.109em;margin−right:0.05em;"><spanclass="pstrut"style="height:2.7em;"></span><spanclass="sizingreset−size6size3mtight"><spanclass="mordmtight"><spanclass="mordmtight">∗</span></span></span></span></span><spanclass="vlist−s">​</span></span><spanclass="vlist−r"><spanclass="vlist"style="height:0.15em;"><span></span></span></span></span></span></span></span></span></span></span>U†U<span class="katex-display"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><msub><mi>U</mi><mo lspace="0em" rspace="0em">∗</mo></msub></mrow><annotation encoding="application/x-tex">U_{*}</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.8333em;vertical-align:-0.15em;"></span><span class="mord"><span class="mord mathnormal" style="margin-right:0.109em;">U</span><span class="msupsub"><span class="vlist-t vlist-t2"><span class="vlist-r"><span class="vlist" style="height:0.1757em;"><span style="top:-2.55em;margin-left:-0.109em;margin-right:0.05em;"><span class="pstrut" style="height:2.7em;"></span><span class="sizing reset-size6 size3 mtight"><span class="mord mtight"><span class="mord mtight">∗</span></span></span></span></span><span class="vlist-s">​</span></span><span class="vlist-r"><span class="vlist" style="height:0.15em;"><span></span></span></span></span></span></span></span></span></span></span>U^{\dagger}U∗U^{*}(**) =UUU∗U_{*}(*) = The distinction of ‘quantum vs. classical’ is thus displayed as the distinction of ‘two wires vs. one wire’. Compared with the concise graphical representation of the same process in WCX{\cal W}{\bf C}^{X}, this unfolded picture displays the details of the interaction between the classical and quantum data flow. In particular, the equality

U<spanclass="katex−display"><spanclass="katex"><spanclass="katex−mathml"><mathxmlns="http://www.w3.org/1998/Math/MathML"display="block"><semantics><mrow><msub><mi>U</mi><molspace="0em"rspace="0em">∗</mo></msub></mrow><annotationencoding="application/x−tex">U∗</annotation></semantics></math></span><spanclass="katex−html"aria−hidden="true"><spanclass="base"><spanclass="strut"style="height:0.8333em;vertical−align:−0.15em;"></span><spanclass="mord"><spanclass="mordmathnormal"style="margin−right:0.109em;">U</span><spanclass="msupsub"><spanclass="vlist−tvlist−t2"><spanclass="vlist−r"><spanclass="vlist"style="height:0.1757em;"><spanstyle="top:−2.55em;margin−left:−0.109em;margin−right:0.05em;"><spanclass="pstrut"style="height:2.7em;"></span><spanclass="sizingreset−size6size3mtight"><spanclass="mordmtight"><spanclass="mordmtight">∗</span></span></span></span></span><spanclass="vlist−s">​</span></span><spanclass="vlist−r"><spanclass="vlist"style="height:0.15em;"><span></span></span></span></span></span></span></span></span></span></span>U†U<span class="katex-display"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><msub><mi>U</mi><mo lspace="0em" rspace="0em">∗</mo></msub></mrow><annotation encoding="application/x-tex">U_{*}</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.8333em;vertical-align:-0.15em;"></span><span class="mord"><span class="mord mathnormal" style="margin-right:0.109em;">U</span><span class="msupsub"><span class="vlist-t vlist-t2"><span class="vlist-r"><span class="vlist" style="height:0.1757em;"><span style="top:-2.55em;margin-left:-0.109em;margin-right:0.05em;"><span class="pstrut" style="height:2.7em;"></span><span class="sizing reset-size6 size3 mtight"><span class="mord mtight"><span class="mord mtight">∗</span></span></span></span></span><span class="vlist-s">​</span></span><span class="vlist-r"><span class="vlist" style="height:0.15em;"><span></span></span></span></span></span></span></span></span></span></span>U^{\dagger}U∗U^{*}= is a consequence of unitarity of UU in WCX{\cal W}{\bf C}^{X}, because the unitarity equation U∘XU†X=idU\circ_{X}U^{{\dagger}_{X}}={\rm id}, unfolded in the graphical language of C{\bf C}, is just

3 Indexed mixed quantum states and operations

The P{\cal P}-construction of definition 3.4 can be viewed as the hull of the W{\cal W}-construction in the sense that the canonical functor {\bf C}\lx@xy@svg{\hbox{\raise 0.0pt\hbox{\kern 3.0pt\hbox{\ignorespaces\immediate\immediate\immediate{\ignorespaces{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}\hbox{\vtop{{\immediate}\kern 0.0pt\offinterlineskip\halign{\entry@#!@&&\entry@@#!@\cr{\immediate}{\immediate}{\immediate}&{\immediate}{\immediate}{\immediate}\crcr}{\immediate}}}{\immediate}{\immediate}\ignorespaces{\immediate}{\immediate}\ignorespaces}\immediate\immediate\ignorespaces\ignorespaces\ignorespaces{\hbox{\kern-3.0pt\raise 0.0pt\hbox{\hbox{\kern 0.0pt\raise 0.0pt\hbox{\hbox{\kern 3.0pt\raise 0.0pt\hbox{\textstyle{\ignorespaces\ignorespaces\ignorespaces\ignorespaces}}}}}}}}\ignorespaces\ignorespaces\ignorespaces\ignorespaces{}{\hbox{\lx@xy@droprule}}\ignorespaces{\hbox{\kern 21.0pt\raise 0.0pt\hbox{\hbox{\kern 0.0pt\raise 0.0pt\hbox{\lx@xy@tip{1}\lx@xy@tip{-1}}}}}}{\hbox{\lx@xy@droprule}}{\hbox{\lx@xy@droprule}}{\hbox{\kern 21.0pt\raise 0.0pt\hbox{\hbox{\kern 0.0pt\raise 0.0pt\hbox{\hbox{\kern 3.0pt\raise 0.0pt\hbox{\textstyle{}}}}}}}}}}}}\ignorespaces{\cal P}{\bf C} factors

Mixed states arise from pure states by mixing. If f∈WCXf\in{\cal W}{\bf C}^{X} then one can show that ωp(f)∈PC\omega_{p}(f)\in{\cal P}{\bf C} by relying on prop. 3.5. Conversely, one can also show that all mixed states arise in this manner. Hence, PC(A){\cal P}{\bf C}(A) is the ‘abstract’ convex closure of WC(A){\cal W}{\bf C}(A).

Repeating the above but now for the P{\cal P}-construction will allow us to extend our dictionary of quantum operations from pure to mixed ones.

The category PCX{\cal P}{\bf C}_{X} consists of

morphism f∈PCX(A,B)f\in{\cal P}{\bf C}_{X}(A,B) are of the form

for some φ∈(XA,VB)\varphi\in\left(XA,VB\right), that is graphically:

φ\varphiφ∗\varphi_{*} The isomorphism CX≅CX{\bf C}_{X}\cong{\bf C}^{X} induces the isomorphism PCX≅PCX{\cal P}{\bf C}_{X}\cong{\cal P}{\bf C}^{X}, and the morphism fX∈PCX(A,B)f^{X}\in{\cal P}{\bf C}^{X}(A,B) depict graphically as:

π\piπ∗\pi_{*} for some π∈(VA,XB)\pi\in\left(VA,XB\right).

A mixed quantum state controlled by quantity XX is an element of PCX(A){\cal P}{\bf C}^{X}(A) and a mixed quantum evolution controlled by quantity XX is a morphism in PCX(A,B){\cal P}{\bf C}^{X}(A,B).

For generalized measurements or PMVMs we refer the reader to [CP08]. The reader can easily come up with many variations on the same theme.

Similarly as in the case of pure operations, protocols involving mixed operations can now be represented in PCX{\cal P}{\bf C}^{X}.

4 Conjoining classical interfaces

In section 3 we introduced classical operations and in section 4 we adjoined a classical interface to a quantum universe. Each classical interface lived in a different category. The task in this section is to conjoin all these classical interfaces of the quantum universe within one category, and to apply the classical operations between the classical interfaces. We will then be able to feed processed data obtained at one interface (= observable) as control data into another interface.

A C{\bf C}-indexed category is a contravariant functor from C{\bf C} into CAT{\sf CAT} [JP78]. The collection of classical interfaces together with the functions between them can be packaged as a Cf{\bf C}_{f}-indexed category as follows:

where each \mbox{\Large\wp}\varphi is an identity-on-objects-functor with the arrow part

In the graphical language of C{\bf C} we have:

\stackrel{{\scriptstyle\mbox{\Large\wp}\varphi}}{{\lx@xy@svg{\hbox{\raise 0.0pt\hbox{\kern 3.0pt\hbox{\ignorespaces\immediate\immediate\immediate{\ignorespaces{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}\hbox{\vtop{{\immediate}\kern 0.0pt\offinterlineskip\halign{\entry@#!@&&\entry@@#!@\cr{\immediate}{\immediate}{\immediate}&{\immediate}{\immediate}{\immediate}\crcr}{\immediate}}}{\immediate}{\immediate}\ignorespaces{\immediate}{\immediate}\ignorespaces}\immediate\immediate\ignorespaces\ignorespaces\ignorespaces{\hbox{\kern-3.0pt\raise 0.0pt\hbox{\hbox{\kern 0.0pt\raise 0.0pt\hbox{\hbox{\kern 3.0pt\raise 0.0pt\hbox{\textstyle{\ignorespaces\ignorespaces\ignorespaces\ignorespaces}}}}}}}}\ignorespaces\ignorespaces\ignorespaces\ignorespaces{\hbox{\kern 3.0pt\raise 0.0pt\hbox{\hbox{\kern 0.0pt\raise 0.0pt\hbox{\lx@xy@stopper}}}}}{\hbox{\lx@xy@droprule}}\ignorespaces{\hbox{\kern 21.0pt\raise 0.0pt\hbox{\hbox{\kern 0.0pt\raise 0.0pt\hbox{\lx@xy@tip{1}\lx@xy@tip{-1}}}}}}{\hbox{\lx@xy@droprule}}{\hbox{\lx@xy@droprule}}{\hbox{\kern 21.0pt\raise 0.0pt\hbox{\hbox{\kern 0.0pt\raise 0.0pt\hbox{\hbox{\kern 3.0pt\raise 0.0pt\hbox{\textstyle{}}}}}}}}}}}}\ignorespaces}}<span class="katex-display"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><mi>Y</mi></mrow><annotation encoding="application/x-tex">Y</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.6833em;"></span><span class="mord mathnormal" style="margin-right:0.2222em;">Y</span></span></span></span></span>\varphi<span class="katex-display"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><mi>X</mi></mrow><annotation encoding="application/x-tex">X</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.6833em;"></span><span class="mord mathnormal" style="margin-right:0.0785em;">X</span></span></span></span></span>fff The well-definedness of ℘\wp and the reason for restricting to functions is explained in the following proposition.

Let \varphi:X\lx@xy@svg{\hbox{\raise 0.0pt\hbox{\kern 3.0pt\hbox{\ignorespaces\immediate\immediate\immediate{\ignorespaces{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}\hbox{\vtop{{\immediate}\kern 0.0pt\offinterlineskip\halign{\entry@#!@&&\entry@@#!@\cr{\immediate}{\immediate}{\immediate}&{\immediate}{\immediate}{\immediate}\crcr}{\immediate}}}{\immediate}{\immediate}\ignorespaces{\immediate}{\immediate}\ignorespaces}\immediate\immediate\ignorespaces\ignorespaces\ignorespaces{\hbox{\kern-3.0pt\raise 0.0pt\hbox{\hbox{\kern 0.0pt\raise 0.0pt\hbox{\hbox{\kern 3.0pt\raise 0.0pt\hbox{\textstyle{\ignorespaces\ignorespaces\ignorespaces\ignorespaces}}}}}}}}\ignorespaces\ignorespaces\ignorespaces\ignorespaces{}{\hbox{\lx@xy@droprule}}\ignorespaces{\hbox{\kern 21.0pt\raise 0.0pt\hbox{\hbox{\kern 0.0pt\raise 0.0pt\hbox{\lx@xy@tip{1}\lx@xy@tip{-1}}}}}}{\hbox{\lx@xy@droprule}}{\hbox{\lx@xy@droprule}}{\hbox{\kern 21.0pt\raise 0.0pt\hbox{\hbox{\kern 0.0pt\raise 0.0pt\hbox{\hbox{\kern 3.0pt\raise 0.0pt\hbox{\textstyle{}}}}}}}}}}}}\ignorespaces Y be a morphism between classical structures. With the above notations, \mbox{\Large\wp}\varphi(g):A^{*}XA\lx@xy@svg{\hbox{\raise 0.0pt\hbox{\kern 3.0pt\hbox{\ignorespaces\immediate\immediate\immediate{\ignorespaces{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}\hbox{\vtop{{\immediate}\kern 0.0pt\offinterlineskip\halign{\entry@#!@&&\entry@@#!@\cr{\immediate}{\immediate}{\immediate}&{\immediate}{\immediate}{\immediate}\crcr}{\immediate}}}{\immediate}{\immediate}\ignorespaces{\immediate}{\immediate}\ignorespaces}\immediate\immediate\ignorespaces\ignorespaces\ignorespaces{\hbox{\kern-3.0pt\raise 0.0pt\hbox{\hbox{\kern 0.0pt\raise 0.0pt\hbox{\hbox{\kern 3.0pt\raise 0.0pt\hbox{\textstyle{\ignorespaces\ignorespaces\ignorespaces\ignorespaces}}}}}}}}\ignorespaces\ignorespaces\ignorespaces\ignorespaces{}{\hbox{\lx@xy@droprule}}\ignorespaces{\hbox{\kern 21.0pt\raise 0.0pt\hbox{\hbox{\kern 0.0pt\raise 0.0pt\hbox{\lx@xy@tip{1}\lx@xy@tip{-1}}}}}}{\hbox{\lx@xy@droprule}}{\hbox{\lx@xy@droprule}}{\hbox{\kern 21.0pt\raise 0.0pt\hbox{\hbox{\kern 0.0pt\raise 0.0pt\hbox{\hbox{\kern 3.0pt\raise 0.0pt\hbox{\textstyle{}}}}}}}}}}}}\ignorespaces B^{*}B is in PCX{\cal P}{\bf C}_{X} for every g∈PCXg\in{\cal P}{\bf C}_{X} if and only if φ\varphi is a classical map, and \mbox{\Large\wp}\varphi:{\cal P}{\bf C}_{Y}\lx@xy@svg{\hbox{\raise 0.0pt\hbox{\kern 3.0pt\hbox{\ignorespaces\immediate\immediate\immediate{\ignorespaces{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}\hbox{\vtop{{\immediate}\kern 0.0pt\offinterlineskip\halign{\entry@#!@&&\entry@@#!@\cr{\immediate}{\immediate}{\immediate}&{\immediate}{\immediate}{\immediate}\crcr}{\immediate}}}{\immediate}{\immediate}\ignorespaces{\immediate}{\immediate}\ignorespaces}\immediate\immediate\ignorespaces\ignorespaces\ignorespaces{\hbox{\kern-3.0pt\raise 0.0pt\hbox{\hbox{\kern 0.0pt\raise 0.0pt\hbox{\hbox{\kern 3.0pt\raise 0.0pt\hbox{\textstyle{\ignorespaces\ignorespaces\ignorespaces\ignorespaces}}}}}}}}\ignorespaces\ignorespaces\ignorespaces\ignorespaces{}{\hbox{\lx@xy@droprule}}\ignorespaces{\hbox{\kern 21.0pt\raise 0.0pt\hbox{\hbox{\kern 0.0pt\raise 0.0pt\hbox{\lx@xy@tip{1}\lx@xy@tip{-1}}}}}}{\hbox{\lx@xy@droprule}}{\hbox{\lx@xy@droprule}}{\hbox{\kern 21.0pt\raise 0.0pt\hbox{\hbox{\kern 0.0pt\raise 0.0pt\hbox{\hbox{\kern 3.0pt\raise 0.0pt\hbox{\textstyle{}}}}}}}}}}}}\ignorespaces{\cal P}{\bf C}_{X} is a functor if and only if φ\varphi is a function.

The first part of this proposition follows by proposition 3.5. For \mbox{\Large\wp}\varphi to preserve composition φ\varphi needs to preserve Δ\Delta, while for \mbox{\Large\wp}\varphi to preserve identities φ\varphi needs to preserve ⊤\top, and the converse also holds. We invite the reader to draw the appropriate pictures to verify this.

Given any indexed category X{\cal X}, its total category, which is obtained by applying the Grothendieck construction, pairs morphisms in the indexing category with morphisms in the indexed categories. In the case of ℘\wp, it pairs functions on classical data with controlled completely positive maps on quantum data. Explicitly, we obtain a category

pairs ⟨X,A⟩\langle X,A\rangle with X∈CfX\in{\bf C}_{f} and A\in\mbox{\Large\wp}X as objects, that is,

as morphisms of type \langle X,A\rangle\lx@xy@svg{\hbox{\raise 0.0pt\hbox{\kern 3.0pt\hbox{\ignorespaces\immediate\immediate\immediate{\ignorespaces{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}\hbox{\vtop{{\immediate}\kern 0.0pt\offinterlineskip\halign{\entry@#!@&&\entry@@#!@\cr{\immediate}{\immediate}{\immediate}&{\immediate}{\immediate}{\immediate}\crcr}{\immediate}}}{\immediate}{\immediate}\ignorespaces{\immediate}{\immediate}\ignorespaces}\immediate\immediate\ignorespaces\ignorespaces\ignorespaces{\hbox{\kern-3.0pt\raise 0.0pt\hbox{\hbox{\kern 0.0pt\raise 0.0pt\hbox{\hbox{\kern 3.0pt\raise 0.0pt\hbox{\textstyle{\ignorespaces\ignorespaces\ignorespaces\ignorespaces}}}}}}}}\ignorespaces\ignorespaces\ignorespaces\ignorespaces{}{\hbox{\lx@xy@droprule}}\ignorespaces{\hbox{\kern 21.0pt\raise 0.0pt\hbox{\hbox{\kern 0.0pt\raise 0.0pt\hbox{\lx@xy@tip{1}\lx@xy@tip{-1}}}}}}{\hbox{\lx@xy@droprule}}{\hbox{\lx@xy@droprule}}{\hbox{\kern 21.0pt\raise 0.0pt\hbox{\hbox{\kern 0.0pt\raise 0.0pt\hbox{\hbox{\kern 3.0pt\raise 0.0pt\hbox{\textstyle{}}}}}}}}}}}}\ignorespaces\langle Y,B\rangle, with φ∈Cf(X,Y)\varphi\in{\bf C}_{f}(X,Y) and g\in\mbox{\Large\wp}X(A,B) — since ℘\wp is an identity-on-objects-functor and hence we have \mbox{\Large\wp}\varphi(B)=B — i.e.

for \langle\varphi,f\rangle:\langle X,A\rangle\lx@xy@svg{\hbox{\raise 0.0pt\hbox{\kern 3.0pt\hbox{\ignorespaces\immediate\immediate\immediate{\ignorespaces{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}\hbox{\vtop{{\immediate}\kern 0.0pt\offinterlineskip\halign{\entry@#!@&&\entry@@#!@\cr{\immediate}{\immediate}{\immediate}&{\immediate}{\immediate}{\immediate}\crcr}{\immediate}}}{\immediate}{\immediate}\ignorespaces{\immediate}{\immediate}\ignorespaces}\immediate\immediate\ignorespaces\ignorespaces\ignorespaces{\hbox{\kern-3.0pt\raise 0.0pt\hbox{\hbox{\kern 0.0pt\raise 0.0pt\hbox{\hbox{\kern 3.0pt\raise 0.0pt\hbox{\textstyle{\ignorespaces\ignorespaces\ignorespaces\ignorespaces}}}}}}}}\ignorespaces\ignorespaces\ignorespaces\ignorespaces{}{\hbox{\lx@xy@droprule}}\ignorespaces{\hbox{\kern 21.0pt\raise 0.0pt\hbox{\hbox{\kern 0.0pt\raise 0.0pt\hbox{\lx@xy@tip{1}\lx@xy@tip{-1}}}}}}{\hbox{\lx@xy@droprule}}{\hbox{\lx@xy@droprule}}{\hbox{\kern 21.0pt\raise 0.0pt\hbox{\hbox{\kern 0.0pt\raise 0.0pt\hbox{\hbox{\kern 3.0pt\raise 0.0pt\hbox{\textstyle{}}}}}}}}}}}}\ignorespaces\langle Y,B\rangle and \langle\nu,g\rangle:\langle Y,B\rangle\lx@xy@svg{\hbox{\raise 0.0pt\hbox{\kern 3.0pt\hbox{\ignorespaces\immediate\immediate\immediate{\ignorespaces{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}\hbox{\vtop{{\immediate}\kern 0.0pt\offinterlineskip\halign{\entry@#!@&&\entry@@#!@\cr{\immediate}{\immediate}{\immediate}&{\immediate}{\immediate}{\immediate}\crcr}{\immediate}}}{\immediate}{\immediate}\ignorespaces{\immediate}{\immediate}\ignorespaces}\immediate\immediate\ignorespaces\ignorespaces\ignorespaces{\hbox{\kern-3.0pt\raise 0.0pt\hbox{\hbox{\kern 0.0pt\raise 0.0pt\hbox{\hbox{\kern 3.0pt\raise 0.0pt\hbox{\textstyle{\ignorespaces\ignorespaces\ignorespaces\ignorespaces}}}}}}}}\ignorespaces\ignorespaces\ignorespaces\ignorespaces{}{\hbox{\lx@xy@droprule}}\ignorespaces{\hbox{\kern 21.0pt\raise 0.0pt\hbox{\hbox{\kern 0.0pt\raise 0.0pt\hbox{\lx@xy@tip{1}\lx@xy@tip{-1}}}}}}{\hbox{\lx@xy@droprule}}{\hbox{\lx@xy@droprule}}{\hbox{\kern 21.0pt\raise 0.0pt\hbox{\hbox{\kern 0.0pt\raise 0.0pt\hbox{\hbox{\kern 3.0pt\raise 0.0pt\hbox{\textstyle{}}}}}}}}}}}}\ignorespaces\langle Z,C\rangle.

In the graphical calculus of C{\bf C} the morphism \mbox{\Large\wp}\varphi(g)\circ_{X}f is:

g<spanclass="katex−display"><spanclass="katex"><spanclass="katex−mathml"><mathxmlns="http://www.w3.org/1998/Math/MathML"display="block"><semantics><mrow><mi>f</mi></mrow><annotationencoding="application/x−tex">f</annotation></semantics></math></span><spanclass="katex−html"aria−hidden="true"><spanclass="base"><spanclass="strut"style="height:0.8889em;vertical−align:−0.1944em;"></span><spanclass="mordmathnormal"style="margin−right:0.1076em;">f</span></span></span></span></span>φ<spanclass="katex−display"><spanclass="katex"><spanclass="katex−mathml"><mathxmlns="http://www.w3.org/1998/Math/MathML"display="block"><semantics><mrow><mi>Y</mi></mrow><annotationencoding="application/x−tex">Y</annotation></semantics></math></span><spanclass="katex−html"aria−hidden="true"><spanclass="base"><spanclass="strut"style="height:0.6833em;"></span><spanclass="mordmathnormal"style="margin−right:0.2222em;">Y</span></span></span></span></span>Xg<span class="katex-display"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><mi>f</mi></mrow><annotation encoding="application/x-tex">f</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.8889em;vertical-align:-0.1944em;"></span><span class="mord mathnormal" style="margin-right:0.1076em;">f</span></span></span></span></span>\varphi<span class="katex-display"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><mi>Y</mi></mrow><annotation encoding="application/x-tex">Y</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.6833em;"></span><span class="mord mathnormal" style="margin-right:0.2222em;">Y</span></span></span></span></span>X Proposition 4.9 SC{\cal S}{\bf C} is a symmetric monoidal category.

Since Cf{\bf C}_{f} is not a dagger category neither is SC{\cal S}{\bf C}.

From the composition law in SC{\cal S}{\bf C} it easily follows that we need to interpret a pair of morphisms \langle\varphi:X\lx@xy@svg{\hbox{\raise 0.0pt\hbox{\kern 3.0pt\hbox{\ignorespaces\immediate\immediate\immediate{\ignorespaces{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}\hbox{\vtop{{\immediate}\kern 0.0pt\offinterlineskip\halign{\entry@#!@&&\entry@@#!@\cr{\immediate}{\immediate}{\immediate}&{\immediate}{\immediate}{\immediate}\crcr}{\immediate}}}{\immediate}{\immediate}\ignorespaces{\immediate}{\immediate}\ignorespaces}\immediate\immediate\ignorespaces\ignorespaces\ignorespaces{\hbox{\kern-3.0pt\raise 0.0pt\hbox{\hbox{\kern 0.0pt\raise 0.0pt\hbox{\hbox{\kern 3.0pt\raise 0.0pt\hbox{\textstyle{\ignorespaces\ignorespaces\ignorespaces\ignorespaces}}}}}}}}\ignorespaces\ignorespaces\ignorespaces\ignorespaces{}{\hbox{\lx@xy@droprule}}\ignorespaces{\hbox{\kern 21.0pt\raise 0.0pt\hbox{\hbox{\kern 0.0pt\raise 0.0pt\hbox{\lx@xy@tip{1}\lx@xy@tip{-1}}}}}}{\hbox{\lx@xy@droprule}}{\hbox{\lx@xy@droprule}}{\hbox{\kern 21.0pt\raise 0.0pt\hbox{\hbox{\kern 0.0pt\raise 0.0pt\hbox{\hbox{\kern 3.0pt\raise 0.0pt\hbox{\textstyle{}}}}}}}}}}}}\ignorespaces Y,g\rangle as follows:

The components are a classical operation φ\varphi and a XX-controlled quantum operation gg, applied in parallel, hence each consuming one copy of the initially available classical data of type XX. After this joint process the available classical data is now of type YY.

The ability to vary classical data types in particular enables erasure of classical data. For example, erasure of all classical data is just the cartesian map to II as the final object of Cf{\bf C}_{f}

while the erasure of part of it is just the cartesian projection

We can write down pairs consisting of measurement data obtained in a measurement and the corresponding ⟨bra∣\langle bra| e.g.

where we can rely on the categorical axiomatisation of unbiased observables in [CD08, CPP08] to provide explicit categorical semantics for the XX-, YY- and ZZ-measurements. In a picture we have:

Ψcluster<spanclass="katex−display"><spanclass="katex"><spanclass="katex−mathml"><mathxmlns="http://www.w3.org/1998/Math/MathML"display="block"><semantics><mrow><msub><mo>+</mo><mi>Y</mi></msub></mrow><annotationencoding="application/x−tex">+Y</annotation></semantics></math></span><spanclass="katex−html"aria−hidden="true"><spanclass="base"><spanclass="strut"style="height:0.7333em;vertical−align:−0.15em;"></span><spanclass="mord"><spanclass="mbin">+</span><spanclass="msupsub"><spanclass="vlist−tvlist−t2"><spanclass="vlist−r"><spanclass="vlist"style="height:0.3283em;"><spanstyle="top:−2.55em;margin−left:0em;margin−right:0.05em;"><spanclass="pstrut"style="height:2.7em;"></span><spanclass="sizingreset−size6size3mtight"><spanclass="mordmtight"><spanclass="mordmathnormalmtight"style="margin−right:0.2222em;">Y</span></span></span></span></span><spanclass="vlist−s">​</span></span><spanclass="vlist−r"><spanclass="vlist"style="height:0.15em;"><span></span></span></span></span></span></span></span></span></span></span>+Y<spanclass="katex−display"><spanclass="katex"><spanclass="katex−mathml"><mathxmlns="http://www.w3.org/1998/Math/MathML"display="block"><semantics><mrow><msub><mo>+</mo><mi>X</mi></msub></mrow><annotationencoding="application/x−tex">+X</annotation></semantics></math></span><spanclass="katex−html"aria−hidden="true"><spanclass="base"><spanclass="strut"style="height:0.7333em;vertical−align:−0.15em;"></span><spanclass="mord"><spanclass="mbin">+</span><spanclass="msupsub"><spanclass="vlist−tvlist−t2"><spanclass="vlist−r"><spanclass="vlist"style="height:0.3283em;"><spanstyle="top:−2.55em;margin−left:0em;margin−right:0.05em;"><spanclass="pstrut"style="height:2.7em;"></span><spanclass="sizingreset−size6size3mtight"><spanclass="mordmtight"><spanclass="mordmathnormalmtight"style="margin−right:0.0785em;">X</span></span></span></span></span><spanclass="vlist−s">​</span></span><spanclass="vlist−r"><spanclass="vlist"style="height:0.15em;"><span></span></span></span></span></span></span></span></span></span></span>+X<spanclass="katex−display"><spanclass="katex"><spanclass="katex−mathml"><mathxmlns="http://www.w3.org/1998/Math/MathML"display="block"><semantics><mrow><msub><mo>−</mo><mi>Z</mi></msub></mrow><annotationencoding="application/x−tex">−Z</annotation></semantics></math></span><spanclass="katex−html"aria−hidden="true"><spanclass="base"><spanclass="strut"style="height:0.7333em;vertical−align:−0.15em;"></span><spanclass="mord"><spanclass="mbin">−</span><spanclass="msupsub"><spanclass="vlist−tvlist−t2"><spanclass="vlist−r"><spanclass="vlist"style="height:0.3283em;"><spanstyle="top:−2.55em;margin−left:0em;margin−right:0.05em;"><spanclass="pstrut"style="height:2.7em;"></span><spanclass="sizingreset−size6size3mtight"><spanclass="mordmtight"><spanclass="mordmathnormalmtight"style="margin−right:0.0715em;">Z</span></span></span></span></span><spanclass="vlist−s">​</span></span><spanclass="vlist−r"><spanclass="vlist"style="height:0.15em;"><span></span></span></span></span></span></span></span></span></span></span>−Z\Psi_{cluster}<span class="katex-display"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><msub><mo>+</mo><mi>Y</mi></msub></mrow><annotation encoding="application/x-tex">+_{Y}</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.7333em;vertical-align:-0.15em;"></span><span class="mord"><span class="mbin">+</span><span class="msupsub"><span class="vlist-t vlist-t2"><span class="vlist-r"><span class="vlist" style="height:0.3283em;"><span style="top:-2.55em;margin-left:0em;margin-right:0.05em;"><span class="pstrut" style="height:2.7em;"></span><span class="sizing reset-size6 size3 mtight"><span class="mord mtight"><span class="mord mathnormal mtight" style="margin-right:0.2222em;">Y</span></span></span></span></span><span class="vlist-s">​</span></span><span class="vlist-r"><span class="vlist" style="height:0.15em;"><span></span></span></span></span></span></span></span></span></span></span>+_{Y}<span class="katex-display"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><msub><mo>+</mo><mi>X</mi></msub></mrow><annotation encoding="application/x-tex">+_{X}</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.7333em;vertical-align:-0.15em;"></span><span class="mord"><span class="mbin">+</span><span class="msupsub"><span class="vlist-t vlist-t2"><span class="vlist-r"><span class="vlist" style="height:0.3283em;"><span style="top:-2.55em;margin-left:0em;margin-right:0.05em;"><span class="pstrut" style="height:2.7em;"></span><span class="sizing reset-size6 size3 mtight"><span class="mord mtight"><span class="mord mathnormal mtight" style="margin-right:0.0785em;">X</span></span></span></span></span><span class="vlist-s">​</span></span><span class="vlist-r"><span class="vlist" style="height:0.15em;"><span></span></span></span></span></span></span></span></span></span></span>+_{X}<span class="katex-display"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><msub><mo>−</mo><mi>Z</mi></msub></mrow><annotation encoding="application/x-tex">-_{Z}</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.7333em;vertical-align:-0.15em;"></span><span class="mord"><span class="mbin">−</span><span class="msupsub"><span class="vlist-t vlist-t2"><span class="vlist-r"><span class="vlist" style="height:0.3283em;"><span style="top:-2.55em;margin-left:0em;margin-right:0.05em;"><span class="pstrut" style="height:2.7em;"></span><span class="sizing reset-size6 size3 mtight"><span class="mord mtight"><span class="mord mathnormal mtight" style="margin-right:0.0715em;">Z</span></span></span></span></span><span class="vlist-s">​</span></span><span class="vlist-r"><span class="vlist" style="height:0.15em;"><span></span></span></span></span></span></span></span></span></span></span>-_{Z}ff where the bra’s and Ψcluster\Psi_{cluster} each in fact correspond to two triangles:

Embedding measurements and controls, limitations and final remarks

Unfortunately, due to Proposition 4.8 which prohibits probabilistic classical data operations in SC{{\cal S}{\bf C}}, we cannot represent stochastic variables within SC{\cal S}{\bf C}. For this reason, we also cannot represent the quantum measurements except for in post-selected fashion as we did above. More concretely, measurement of classical data type YY ‘would be’ a composite

where m∈PCY(A,A)m\in{\cal P}{\bf C}_{Y}(A,A) corresponds via

to a pure quantum measurement in the sense of Definition 4.5, if it wasn’t for the fact that \bot_{Y}:I\lx@xy@svg{\hbox{\raise 0.0pt\hbox{\kern 3.0pt\hbox{\ignorespaces\immediate\immediate\immediate{\ignorespaces{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}\hbox{\vtop{{\immediate}\kern 0.0pt\offinterlineskip\halign{\entry@#!@&&\entry@@#!@\cr{\immediate}{\immediate}{\immediate}&{\immediate}{\immediate}{\immediate}\crcr}{\immediate}}}{\immediate}{\immediate}\ignorespaces{\immediate}{\immediate}\ignorespaces}\immediate\immediate\ignorespaces\ignorespaces\ignorespaces{\hbox{\kern-3.0pt\raise 0.0pt\hbox{\hbox{\kern 0.0pt\raise 0.0pt\hbox{\hbox{\kern 3.0pt\raise 0.0pt\hbox{\textstyle{\ignorespaces\ignorespaces\ignorespaces\ignorespaces}}}}}}}}\ignorespaces\ignorespaces\ignorespaces\ignorespaces{}{\hbox{\lx@xy@droprule}}\ignorespaces{\hbox{\kern 21.0pt\raise 0.0pt\hbox{\hbox{\kern 0.0pt\raise 0.0pt\hbox{\lx@xy@tip{1}\lx@xy@tip{-1}}}}}}{\hbox{\lx@xy@droprule}}{\hbox{\lx@xy@droprule}}{\hbox{\kern 21.0pt\raise 0.0pt\hbox{\hbox{\kern 0.0pt\raise 0.0pt\hbox{\hbox{\kern 3.0pt\raise 0.0pt\hbox{\textstyle{}}}}}}}}}}}}\ignorespaces Y is not a function. Indeed:

≠\not= 5.1 Classicality = decoherence The characterisation in Proposition 3.5 of classical information flows in terms of decoherence indicates a type-wise distinction between classical and quantum data flows by requiring the former to be decoherent. In other words: we will characterise classical data by the fact that it is invariant under the application of corresponding decoherences.

For a morphism f:A^{*}XA\lx@xy@svg{\hbox{\raise 0.0pt\hbox{\kern 3.0pt\hbox{\ignorespaces\immediate\immediate\immediate{\ignorespaces{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}\hbox{\vtop{{\immediate}\kern 0.0pt\offinterlineskip\halign{\entry@#!@&&\entry@@#!@\cr{\immediate}{\immediate}{\immediate}&{\immediate}{\immediate}{\immediate}\crcr}{\immediate}}}{\immediate}{\immediate}\ignorespaces{\immediate}{\immediate}\ignorespaces}\immediate\immediate\ignorespaces\ignorespaces\ignorespaces{\hbox{\kern-3.0pt\raise 0.0pt\hbox{\hbox{\kern 0.0pt\raise 0.0pt\hbox{\hbox{\kern 3.0pt\raise 0.0pt\hbox{\textstyle{\ignorespaces\ignorespaces\ignorespaces\ignorespaces}}}}}}}}\ignorespaces\ignorespaces\ignorespaces\ignorespaces{}{\hbox{\lx@xy@droprule}}\ignorespaces{\hbox{\kern 21.0pt\raise 0.0pt\hbox{\hbox{\kern 0.0pt\raise 0.0pt\hbox{\lx@xy@tip{1}\lx@xy@tip{-1}}}}}}{\hbox{\lx@xy@droprule}}{\hbox{\lx@xy@droprule}}{\hbox{\kern 21.0pt\raise 0.0pt\hbox{\hbox{\kern 0.0pt\raise 0.0pt\hbox{\hbox{\kern 3.0pt\raise 0.0pt\hbox{\textstyle{}}}}}}}}}}}}\ignorespaces B^{*}YB where XX and YY are classical structures the following are equivalent :

Moreover, there is an identity-on-objects isomorphism of categories:

where the categories C©q{\bf C}_{\copyright q} and CΞq{\bf C}_{\Xi q} both have the same objects as SC{\cal S}{\bf C} and where the morphisms of type \langle X,A\rangle\lx@xy@svg{\hbox{\raise 0.0pt\hbox{\kern 3.0pt\hbox{\ignorespaces\immediate\immediate\immediate{\ignorespaces{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}{\immediate}\hbox{\vtop{{\immediate}\kern 0.0pt\offinterlineskip\halign{\entry@#!@&&\entry@@#!@\cr{\immediate}{\immediate}{\immediate}&{\immediate}{\immediate}{\immediate}\crcr}{\immediate}}}{\immediate}{\immediate}\ignorespaces{\immediate}{\immediate}\ignorespaces}\immediate\immediate\ignorespaces\ignorespaces\ignorespaces{\hbox{\kern-3.0pt\raise 0.0pt\hbox{\hbox{\kern 0.0pt\raise 0.0pt\hbox{\hbox{\kern 3.0pt\raise 0.0pt\hbox{\textstyle{\ignorespaces\ignorespaces\ignorespaces\ignorespaces}}}}}}}}\ignorespaces\ignorespaces\ignorespaces\ignorespaces{}{\hbox{\lx@xy@droprule}}\ignorespaces{\hbox{\kern 21.0pt\raise 0.0pt\hbox{\hbox{\kern 0.0pt\raise 0.0pt\hbox{\lx@xy@tip{1}\lx@xy@tip{-1}}}}}}{\hbox{\lx@xy@droprule}}{\hbox{\lx@xy@droprule}}{\hbox{\kern 21.0pt\raise 0.0pt\hbox{\hbox{\kern 0.0pt\raise 0.0pt\hbox{\hbox{\kern 3.0pt\raise 0.0pt\hbox{\textstyle{}}}}}}}}}}}}\ignorespaces\langle Y,B\rangle are respectively those of form g©X,Yg_{\copyright}^{X,Y} and fΞX,Yf_{\Xi}^{X,Y} subject to the conditions stipulated above.

These morphisms are graphically represented by:

ggfΞX,Yf_{\Xi}^{X,Y}=ffg©X,Yg_{\copyright}^{X,Y}= Proposition 5.2 The category C©q{\bf C}_{\copyright q} is dagger compact.

The category SC{\cal S}{\bf C} canonically embeds in C©q{\bf C}_{\copyright q} via the identity-on-objects-functor

f<spanclass="katex−display"><spanclass="katex"><spanclass="katex−mathml"><mathxmlns="http://www.w3.org/1998/Math/MathML"display="block"><semantics><mrow><mi>φ</mi></mrow><annotationencoding="application/x−tex">φ</annotation></semantics></math></span><spanclass="katex−html"aria−hidden="true"><spanclass="base"><spanclass="strut"style="height:0.625em;vertical−align:−0.1944em;"></span><spanclass="mordmathnormal">φ</span></span></span></span></span>ff<span class="katex-display"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><mi>φ</mi></mrow><annotation encoding="application/x-tex">\varphi</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.625em;vertical-align:-0.1944em;"></span><span class="mord mathnormal">φ</span></span></span></span></span>fφ\varphi, Probabilistic operations C©{\bf C}_{\copyright} also live in C©q{\bf C}_{\copyright q} via the functor

and one easily verifies that all measurements and any other operations defined in this paper all live within C©q{\bf C}_{\copyright q}.

In the previous example we can now replace the ‘conditional’ measurements by genuine measurements. We can also represent controlled measurements which depend on outcomes of other measurements:

Ψcluster<spanclass="katex−display"><spanclass="katex"><spanclass="katex−mathml"><mathxmlns="http://www.w3.org/1998/Math/MathML"display="block"><semantics><mrow><msub><mi>m</mi><mn>1</mn></msub></mrow><annotationencoding="application/x−tex">m1</annotation></semantics></math></span><spanclass="katex−html"aria−hidden="true"><spanclass="base"><spanclass="strut"style="height:0.5806em;vertical−align:−0.15em;"></span><spanclass="mord"><spanclass="mordmathnormal">m</span><spanclass="msupsub"><spanclass="vlist−tvlist−t2"><spanclass="vlist−r"><spanclass="vlist"style="height:0.3011em;"><spanstyle="top:−2.55em;margin−left:0em;margin−right:0.05em;"><spanclass="pstrut"style="height:2.7em;"></span><spanclass="sizingreset−size6size3mtight"><spanclass="mordmtight"><spanclass="mordmtight">1</span></span></span></span></span><spanclass="vlist−s">​</span></span><spanclass="vlist−r"><spanclass="vlist"style="height:0.15em;"><span></span></span></span></span></span></span></span></span></span></span>m2\Psi_{cluster}<span class="katex-display"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><msub><mi>m</mi><mn>1</mn></msub></mrow><annotation encoding="application/x-tex">m_{1}</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.5806em;vertical-align:-0.15em;"></span><span class="mord"><span class="mord mathnormal">m</span><span class="msupsub"><span class="vlist-t vlist-t2"><span class="vlist-r"><span class="vlist" style="height:0.3011em;"><span style="top:-2.55em;margin-left:0em;margin-right:0.05em;"><span class="pstrut" style="height:2.7em;"></span><span class="sizing reset-size6 size3 mtight"><span class="mord mtight"><span class="mord mtight">1</span></span></span></span></span><span class="vlist-s">​</span></span><span class="vlist-r"><span class="vlist" style="height:0.15em;"><span></span></span></span></span></span></span></span></span></span></span>m_{2}m3m_{3} as well as the measurements which depend on a coin-toss:

\bot<span class="katex-display"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><msub><mi>m</mi><mrow><mstyle mathcolor="#cc0000"><mtext>\mbox</mtext></mstyle><mstyle mathsize="0.5em"><mi>A</mi><mi>l</mi><mi>i</mi><mi>c</mi><mi>e</mi></mstyle></mrow></msub></mrow><annotation encoding="application/x-tex">m_{\mbox{\tiny Alice}}</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:0.7858em;vertical-align:-0.3552em;"></span><span class="mord"><span class="mord mathnormal">m</span><span class="msupsub"><span class="vlist-t vlist-t2"><span class="vlist-r"><span class="vlist" style="height:0.3448em;"><span style="top:-2.5198em;margin-left:0em;margin-right:0.05em;"><span class="pstrut" style="height:2.7em;"></span><span class="sizing reset-size6 size3 mtight"><span class="mord mtight"><span class="mord text mtight" style="color:#cc0000;"><span class="mord mtight" style="color:#cc0000;">\mbox</span></span><span class="mord mtight"><span class="mord mathnormal sizing reset-size3 size1">A</span><span class="mord mathnormal sizing reset-size3 size1" style="margin-right:0.0197em;">l</span><span class="mord mathnormal sizing reset-size3 size1">i</span><span class="mord mathnormal sizing reset-size3 size1">ce</span></span></span></span></span></span><span class="vlist-s">​</span></span><span class="vlist-r"><span class="vlist" style="height:0.3552em;"><span></span></span></span></span></span></span></span></span></span></span>\botm\mboxBobm_{\mbox{\tiny Bob}} that are used in quantum key distribution [Ekert91].

If the ultimate goal of categorical quantum mechanics is a full categorical description of the interaction between classical and quantum information flows, then the category SC{\cal S}{\bf C} built in this paper is not big enough. Indeed, it does not capture probabilistic operations on classical data as well as on quantum measurements. On the other hand, C©q{\bf C}_{\copyright q} is ‘not satisfactory’ for a number of reasons, including:

C©q{\bf C}_{\copyright q} does not encode the properties of classical data flow in a structural manner in a similar manner in which co-Kleilsli composition in SC{\cal S}{\bf C} embodies clone-ability and delete-ability of classical data.

C©q{\bf C}_{\copyright q} lacks the clear separation between classical operations and classically controlled quantum operations of SC{\cal S}{\bf C}.

So why do the constructions in Section 4 prohibit probabilistic classical data? The answer is simply that while deterministic classical data can be cloned, probabilistic classical data can’t. Moreover, the composition mechanism underlying Kleisli indexing — and consequently the interaction between classical and quantum data in SC{\cal S}{\bf C} — allows us to distinguish classical data from quantum data because only the former can be cloned.

If we want to separate probabilistic classical data from quantum data we should not appeal to their distinct behaviour under cloning but to their distinct behaviour under broadcasting [BCFJS96]. Solving the equation in the title of this section remains an open challenge.

References