Categorical quantum mechanics

197
Categorical quantum mechanics Chris Heunen 1 / 76

Transcript of Categorical quantum mechanics

Page 1: Categorical quantum mechanics

Categorical quantum mechanics

Chris Heunen

1 / 76

Page 2: Categorical quantum mechanics

Categorical Quantum Mechanics?

I Study of compositional nature of (physical) systemsPrimitive notion: forming compound systems

I Operational yet algebraicI Why non-unit state vectors?I Why non-hermitean operators?I Why complex numbers?

I Powerful graphical calculus

I Allows different interpretation in many different fieldsI Physics: quantum theory, quantum information theoryI Computer science: logic, topologyI Mathematics: representation theory, quantum algebra

2 / 76

Page 3: Categorical quantum mechanics

Categorical Quantum Mechanics?

I Study of compositional nature of (physical) systemsPrimitive notion: forming compound systems

I Operational yet algebraicI Why non-unit state vectors?I Why non-hermitean operators?I Why complex numbers?

I Powerful graphical calculus

I Allows different interpretation in many different fieldsI Physics: quantum theory, quantum information theoryI Computer science: logic, topologyI Mathematics: representation theory, quantum algebra

2 / 76

Page 4: Categorical quantum mechanics

Categorical Quantum Mechanics?

I Study of compositional nature of (physical) systemsPrimitive notion: forming compound systems

I Operational yet algebraicI Why non-unit state vectors?I Why non-hermitean operators?I Why complex numbers?

I Powerful graphical calculus

I Allows different interpretation in many different fieldsI Physics: quantum theory, quantum information theoryI Computer science: logic, topologyI Mathematics: representation theory, quantum algebra

2 / 76

Page 5: Categorical quantum mechanics

Categorical Quantum Mechanics?

I Study of compositional nature of (physical) systemsPrimitive notion: forming compound systems

I Operational yet algebraicI Why non-unit state vectors?I Why non-hermitean operators?I Why complex numbers?

I Powerful graphical calculus

I Allows different interpretation in many different fieldsI Physics: quantum theory, quantum information theoryI Computer science: logic, topologyI Mathematics: representation theory, quantum algebra

2 / 76

Page 6: Categorical quantum mechanics

3 / 76

Page 7: Categorical quantum mechanics

4 / 76

Page 8: Categorical quantum mechanics

Outline

Lecture 1:I monoidal categories: graphical calculusI dual objects: entanglementI (co)monoids: no-cloning

Lecture 2:I Frobenius structures: observablesI bialgebras: complementarityI complete positivity: mixed states

5 / 76

Page 9: Categorical quantum mechanics

Part I

Monoidal categories

6 / 76

Page 10: Categorical quantum mechanics

Category = systems and processes:I physical systems, and physical processes governing them;I data types, and algorithms manipulating them;I algebraic structures, and structure-preserving functions;I logical propositions, and implications between them.

Monoidal category = category + parallelism:I independent physical systems evolve simultaneously;I running computer algorithms in parallel;I products or sums of algebraic or geometric structures;I using proofs of P and Q to prove conjunction (P and Q).

7 / 76

Page 11: Categorical quantum mechanics

Category = systems and processes:I physical systems, and physical processes governing them;I data types, and algorithms manipulating them;I algebraic structures, and structure-preserving functions;I logical propositions, and implications between them.

Monoidal category = category + parallelism:I independent physical systems evolve simultaneously;I running computer algorithms in parallel;I products or sums of algebraic or geometric structures;I using proofs of P and Q to prove conjunction (P and Q).

7 / 76

Page 12: Categorical quantum mechanics

A category C is monoidal when equipped with:

I a tensor product functor

⊗ : C×C C

I a unit object

I ∈Ob(C)

I an associator natural isomorphism

(A⊗ B)⊗ CαA,B,C A⊗ (B⊗ C)

I a left unitor natural isomorphism

I ⊗ A λA A

I a right unitor natural isomorphism

A⊗ I ρA A

8 / 76

Page 13: Categorical quantum mechanics

This data must satisfy the triangle and pentagon equations:

(A⊗ I)⊗ B A⊗ (I ⊗ B)

A⊗ BρA ⊗ idB idA ⊗ λB

αA,I,B

((A⊗ B)⊗ C

)⊗ D

(A⊗ (B⊗ C)

)⊗ D A⊗

((B⊗ C)⊗ D

)A⊗

(B⊗ (C ⊗ D)

)(A⊗ B)⊗ (C ⊗ D)

αA,B,C ⊗ idD

αA,B⊗C,D

idA ⊗ αB,C,D

αA⊗B,C,D αA,B,C⊗D

Theorem (coherence for monoidal categories): If the pentagonand triangle equations hold, then so does any well-typed equationbuilt from α, λ, ρ and their inverses using ⊗, ◦, and id.

9 / 76

Page 14: Categorical quantum mechanics

This data must satisfy the triangle and pentagon equations:

(A⊗ I)⊗ B A⊗ (I ⊗ B)

A⊗ BρA ⊗ idB idA ⊗ λB

αA,I,B

((A⊗ B)⊗ C

)⊗ D

(A⊗ (B⊗ C)

)⊗ D A⊗

((B⊗ C)⊗ D

)A⊗

(B⊗ (C ⊗ D)

)(A⊗ B)⊗ (C ⊗ D)

αA,B,C ⊗ idD

αA,B⊗C,D

idA ⊗ αB,C,D

αA⊗B,C,D αA,B,C⊗D

Theorem (coherence for monoidal categories): If the pentagonand triangle equations hold, then so does any well-typed equationbuilt from α, λ, ρ and their inverses using ⊗, ◦, and id.

9 / 76

Page 15: Categorical quantum mechanics

Example: Hilbert spaces

Hilbert spaces and bounded linear maps form a monoidal category:

I tensor product is the tensor product of Hilbert spaces

I unit object is one-dimensional Hilbert space CI left unitors C⊗ H λH H are unique linear maps with 1⊗ u 7→ u

I right unitors H ⊗ C ρH H are unique linear maps with u⊗ 1 7→ u

I associators (H ⊗ J)⊗ KαH,J,K H ⊗ (J ⊗ K) are

unique linear maps with (u⊗ v)⊗ w 7→ u⊗ (v⊗ w)

10 / 76

Page 16: Categorical quantum mechanics

Example: sets and functions

Sets and functions form a monoidal category Set:

I tensor product is Cartesian product of sets

I unit object is a chosen singleton set {•}I left unitors I × A λA A are (•, a) 7→ a

I right unitors A× I ρA A are (a, •) 7→ a

I associators (A× B)× CαA,B,C A× (B× C) are

functions((a, b), c

)7→(a, (b, c)

)(Other tensor products exist.)

11 / 76

Page 17: Categorical quantum mechanics

Example: sets and relations

A relation A R B between sets is a subset R ⊆ A× B

A BR

!

0 0 0 00 1 1 10 0 0 1

12 / 76

Page 18: Categorical quantum mechanics

Example: sets and relations

A relation A R B between sets is a subset R ⊆ A× B

A BR

; =

B CS

A CS ◦ R

!

0 0 0 00 1 1 10 0 0 1

Different notion of process: nondeterministic evolution of states

12 / 76

Page 19: Categorical quantum mechanics

Example: sets and relations

A relation A R B between sets is a subset R ⊆ A× B

A BR

!

0 0 0 00 1 1 10 0 0 1

Composition is matrix multiplication, with OR and AND for + and ×.

12 / 76

Page 20: Categorical quantum mechanics

Example: sets and relations

Sets and relations form a monoidal category Rel:

I tensor product is Cartesian product of sets,acting on relations as: (a, c)(R× S)(b, d) iff aRb and cSd

I unit object is a chosen singleton set = {•}I associators (A× B)× C

αA,B,C A× (B× C) arecatRelations

((a, b), c

)∼(a, (b, c)

)I left unitors I × A λA A are given by (•, a) ∼ a

I right unitors A× I ρA A are given by (a, •) ∼ a

Cartesian product is not a categorical product in Rel:If Set is classical, and Hilb is quantum, Rel is ‘in the middle’

13 / 76

Page 21: Categorical quantum mechanics

Example: sets and relations

Sets and relations form a monoidal category Rel:

I tensor product is Cartesian product of sets,acting on relations as: (a, c)(R× S)(b, d) iff aRb and cSd

I unit object is a chosen singleton set = {•}I associators (A× B)× C

αA,B,C A× (B× C) arecatRelations

((a, b), c

)∼(a, (b, c)

)I left unitors I × A λA A are given by (•, a) ∼ a

I right unitors A× I ρA A are given by (a, •) ∼ a

Cartesian product is not a categorical product in Rel:If Set is classical, and Hilb is quantum, Rel is ‘in the middle’

13 / 76

Page 22: Categorical quantum mechanics

Graphical calculus

For A f B and B g C, draw their composition A g◦f B as

A

B

C

f

g

For A f B and C g D, draw their tensor product A⊗ C f⊗g B⊗ D as

f g

B

A

D

C

“Time” runs upwards, “space” runs sideways

14 / 76

Page 23: Categorical quantum mechanics

Graphical calculus

For A f B and B g C, draw their composition A g◦f B as

A

B

C

f

g

For A f B and C g D, draw their tensor product A⊗ C f⊗g B⊗ D as

f g

B

A

D

C

“Time” runs upwards, “space” runs sideways

14 / 76

Page 24: Categorical quantum mechanics

Graphical calculus

The tensor unit is drawn as the empty diagram:

Unitors are also not drawn:

A A A B C

λA ρA αA,B,C

Coherence is essential: as there can only be a single morphism builtfrom associators and unitors of given type, it doesn’t matter thattheir depiction encodes no information

15 / 76

Page 25: Categorical quantum mechanics

Graphical calculus

The tensor unit is drawn as the empty diagram:

Unitors are also not drawn:

A A A B C

λA ρA αA,B,C

Coherence is essential: as there can only be a single morphism builtfrom associators and unitors of given type, it doesn’t matter thattheir depiction encodes no information

15 / 76

Page 26: Categorical quantum mechanics

Graphical calculus

For example, interchange law:

(g ◦ f)⊗ (j ◦ h) = (g⊗ j) ◦ (f ⊗ h)

f

g

h

j

C

B

A

F

E

D

=

f

g

h

j

C

B

A

F

E

D

16 / 76

Page 27: Categorical quantum mechanics

Graphical calculus

For example, interchange law:

(g ◦ f)⊗ (j ◦ h) = (g⊗ j) ◦ (f ⊗ h)

f

g

h

j

C

B

A

F

E

D

=

f

g

h

j

C

B

A

F

E

D

16 / 76

Page 28: Categorical quantum mechanics

Graphical calculus: sound and complete

Think of diagram as within rectangular region of Rn, with wiresterminating at upper and lower boundaries only, morphisms aspoints. Two diagrams are isotopic when one can be deformedcontinuously into the other, keeping the boundaries fixed.

Theorem (correctness): A well-formed equation betweenmorphisms in a monoidal category follows from the axioms iff itholds in the graphical calculus up to planar isotopy.

Soundness: algebraic equality⇒ graphical isotopyCompleteness: algebraic equality⇐ graphical isotopy

17 / 76

Page 29: Categorical quantum mechanics

Graphical calculus: sound and complete

Think of diagram as within rectangular region of Rn, with wiresterminating at upper and lower boundaries only, morphisms aspoints. Two diagrams are isotopic when one can be deformedcontinuously into the other, keeping the boundaries fixed.

Theorem (correctness): A well-formed equation betweenmorphisms in a monoidal category follows from the axioms iff itholds in the graphical calculus up to planar isotopy.

Soundness: algebraic equality⇒ graphical isotopyCompleteness: algebraic equality⇐ graphical isotopy

17 / 76

Page 30: Categorical quantum mechanics

Graphical calculus: sound and complete

Think of diagram as within rectangular region of Rn, with wiresterminating at upper and lower boundaries only, morphisms aspoints. Two diagrams are isotopic when one can be deformedcontinuously into the other, keeping the boundaries fixed.

Theorem (correctness): A well-formed equation betweenmorphisms in a monoidal category follows from the axioms iff itholds in the graphical calculus up to planar isotopy.

Soundness: algebraic equality⇒ graphical isotopyCompleteness: algebraic equality⇐ graphical isotopy

17 / 76

Page 31: Categorical quantum mechanics

States

A state of an object A in a monoidal category is a morphism I A.

a

A

Tensor unit is trivial system; state is way to bring A into existence

I in Hilb: linear functions C H, correspond to elements of H

I in Set: functions {•} A, correspond to elements of A

I in Rel: relations {•} R A, correspond to subsets of A

18 / 76

Page 32: Categorical quantum mechanics

States

A state of an object A in a monoidal category is a morphism I A.

a

A

Tensor unit is trivial system; state is way to bring A into existence

I in Hilb: linear functions C H, correspond to elements of H

I in Set: functions {•} A, correspond to elements of A

I in Rel: relations {•} R A, correspond to subsets of A

18 / 76

Page 33: Categorical quantum mechanics

Joint states

A morphism I c A⊗ B is a joint state.

It is a product state when:

c

BA

=a b

BA

It is entangled when it is not a product state

I entangled states in Hilb: vectors of H⊗K with Schmidt rank > 1I entangled states in Set: don’t existI entangled states in Rel: non-square subsets of A× B

19 / 76

Page 34: Categorical quantum mechanics

Joint states

A morphism I c A⊗ B is a joint state. It is a product state when:

c

BA

=a b

BA

It is entangled when it is not a product state

I entangled states in Hilb: vectors of H⊗K with Schmidt rank > 1I entangled states in Set: don’t existI entangled states in Rel: non-square subsets of A× B

19 / 76

Page 35: Categorical quantum mechanics

Joint states

A morphism I c A⊗ B is a joint state. It is a product state when:

c

BA

=a b

BA

It is entangled when it is not a product state

I entangled states in Hilb: vectors of H⊗K with Schmidt rank > 1I entangled states in Set: don’t existI entangled states in Rel: non-square subsets of A× B

19 / 76

Page 36: Categorical quantum mechanics

Joint states

A morphism I c A⊗ B is a joint state. It is a product state when:

c

BA

=a b

BA

It is entangled when it is not a product state

I entangled states in Hilb: vectors of H⊗K with Schmidt rank > 1I entangled states in Set: don’t existI entangled states in Rel: non-square subsets of A× B

19 / 76

Page 37: Categorical quantum mechanics

Braiding

A monoidal category is braided when equipped with natural iso

A⊗ BσA,B B⊗ A

satisfying the hexagon equations

(A ⊗ B)⊗ C

A ⊗ (B ⊗ C) (B ⊗ C)⊗ A

B ⊗ (C ⊗ A)

(B ⊗ A)⊗ C B ⊗ (A ⊗ C)

α−1A,B,C

σA,B⊗C

α−1B,C,A

σA,B ⊗ idC

αB,A,C

idB ⊗ σA,C

A ⊗ (B ⊗ C)

(A ⊗ B)⊗ C C ⊗ (A ⊗ B)

(C ⊗ A)⊗ B

A ⊗ (C ⊗ B) (A ⊗ C)⊗ B

αA,B,C

σA⊗B,C

αC,A,B

idA ⊗ σB,C

α−1A,C,B

σA,C ⊗ idB

20 / 76

Page 38: Categorical quantum mechanics

BraidingDraw σ as and its inverse as

Invertibility: = =

Naturality: f g =g f

f g =g f

Hexagon: = =

Theorem (correctness): A well-formed equation betweenmorphisms in a braided monoidal category follows from the axiomsiff it holds in the graphical language up to 3-dimensional isotopy.

21 / 76

Page 39: Categorical quantum mechanics

Braiding

Draw σ as and its inverse as

Invertibility: = =

Naturality: f g =g f

f g =g f

Hexagon: = =

Theorem (correctness): A well-formed equation betweenmorphisms in a braided monoidal category follows from the axiomsiff it holds in the graphical language up to 3-dimensional isotopy.

21 / 76

Page 40: Categorical quantum mechanics

Braiding

Draw σ as and its inverse as

Invertibility: = =

Naturality: f g =g f

f g =g f

Hexagon: = =

Theorem (correctness): A well-formed equation betweenmorphisms in a braided monoidal category follows from the axiomsiff it holds in the graphical language up to 3-dimensional isotopy.

21 / 76

Page 41: Categorical quantum mechanics

SymmetryA braided monoidal category is symmetric when

σB,A ◦ σA,B = idA⊗B

Graphically: no knots

=

Theorem (correctness): A well-formed equation betweenmorphisms in a symmetric monoidal category follows from theaxioms iff it holds in graphical language up to 4-dimensional isotopy.

I in Hilb: linear extension of a⊗ b 7→ b⊗ aI in Set: function (a, b) 7→ (b, a)I in Rel: relation (a, b) ∼ (b, a)

22 / 76

Page 42: Categorical quantum mechanics

SymmetryA braided monoidal category is symmetric when

σB,A ◦ σA,B = idA⊗B

Graphically: no knots

=

Theorem (correctness): A well-formed equation betweenmorphisms in a symmetric monoidal category follows from theaxioms iff it holds in graphical language up to 4-dimensional isotopy.

I in Hilb: linear extension of a⊗ b 7→ b⊗ aI in Set: function (a, b) 7→ (b, a)I in Rel: relation (a, b) ∼ (b, a)

22 / 76

Page 43: Categorical quantum mechanics

ScalarsA scalar in a monoidal category is a morphism I a I

a

Lemma: in a monoidal category, scalar composition is commutative

23 / 76

Page 44: Categorical quantum mechanics

ScalarsA scalar in a monoidal category is a morphism I a I

a

Lemma: in a monoidal category, scalar composition is commutativeProof: either algebraically:

I I

I ⊗ I I ⊗ I

I I

I ⊗ I I ⊗ I

a

bb

a⊗ idI

λI ρI

ρ−1Iλ−1

I

idI ⊗ ba⊗ idI

idI ⊗ b

λ−1I ρ−1

I

a

λI ρI

23 / 76

Page 45: Categorical quantum mechanics

ScalarsA scalar in a monoidal category is a morphism I a I

a

Lemma: in a monoidal category, scalar composition is commutativeProof: or graphically:

a

b

=b

a

23 / 76

Page 46: Categorical quantum mechanics

Scalar multiplication

Scalar multiplication A a•f B of scalar I a I and morphism A f B

s f

satisfies many familiar properties in any monoidal category:I idI • f = fI a • b = a ◦ bI a • (b • f) = (a • b) • fI (b • g) ◦ (a • f) = (b ◦ a) • (g ◦ f)

In our examples:I in Hilb: a • f is the morphism x 7→ af(x)I in Set: id1 • f = f is trivialI in Rel: true • R = R and false • R = ∅

24 / 76

Page 47: Categorical quantum mechanics

Scalar multiplication

Scalar multiplication A a•f B of scalar I a I and morphism A f B

s f

satisfies many familiar properties in any monoidal category:I idI • f = fI a • b = a ◦ bI a • (b • f) = (a • b) • fI (b • g) ◦ (a • f) = (b ◦ a) • (g ◦ f)

In our examples:I in Hilb: a • f is the morphism x 7→ af(x)I in Set: id1 • f = f is trivialI in Rel: true • R = R and false • R = ∅

24 / 76

Page 48: Categorical quantum mechanics

DaggerA dagger on a category C is a contravariant functor † : C Csatisfying A† = A on objects and f †† = f on morphisms.

I Hilb is a dagger category using adjointsI Rel is a dagger category using converse: bR†a iff aRbI Set is not a dagger category

Graphically: flip about horizontal axis

25 / 76

Page 49: Categorical quantum mechanics

DaggerA dagger on a category C is a contravariant functor † : C Csatisfying A† = A on objects and f †† = f on morphisms.

I Hilb is a dagger category using adjointsI Rel is a dagger category using converse: bR†a iff aRbI Set is not a dagger category

Graphically: flip about horizontal axis

A

B

f †7→

B

A

f †

25 / 76

Page 50: Categorical quantum mechanics

DaggerA dagger on a category C is a contravariant functor † : C Csatisfying A† = A on objects and f †† = f on morphisms.

I Hilb is a dagger category using adjointsI Rel is a dagger category using converse: bR†a iff aRbI Set is not a dagger category

Graphically: flip about horizontal axis

A

B

f †7→

B

A

f

25 / 76

Page 51: Categorical quantum mechanics

Dagger

A morphism f in a dagger category is:I self-adjoint when f = f †

I unitary when f † ◦ f = id and f ◦ f † = idI positive when f = g† ◦ g for some g

In a monoidal dagger category:I (f ⊗ g)† = f † ⊗ g†

I the associators and unitors are unitary

In a braided/symmetric monoidal dagger category,the braiding is additionally unitary

26 / 76

Page 52: Categorical quantum mechanics

Dagger

A morphism f in a dagger category is:I self-adjoint when f = f †

I unitary when f † ◦ f = id and f ◦ f † = idI positive when f = g† ◦ g for some g

In a monoidal dagger category:I (f ⊗ g)† = f † ⊗ g†

I the associators and unitors are unitary

In a braided/symmetric monoidal dagger category,the braiding is additionally unitary

26 / 76

Page 53: Categorical quantum mechanics

Dagger

A morphism f in a dagger category is:I self-adjoint when f = f †

I unitary when f † ◦ f = id and f ◦ f † = idI positive when f = g† ◦ g for some g

In a monoidal dagger category:I (f ⊗ g)† = f † ⊗ g†

I the associators and unitors are unitary

In a braided/symmetric monoidal dagger category,the braiding is additionally unitary

26 / 76

Page 54: Categorical quantum mechanics

Part II

Dual objects

27 / 76

Page 55: Categorical quantum mechanics

Dual objectsAn object L is left-dual to an object R, and R is right-dual to L, writtenL a R, when there are morphisms I η R⊗ L and L⊗ R ε I with:

L L⊗ I L⊗ (R⊗ L)

L I ⊗ L (L⊗ R)⊗ L

ρ−1L

idL

idL ⊗ η

α−1L,R,L

ε⊗ idLλL

R I ⊗ R (R⊗ L)⊗ R

R R⊗ I R⊗ (L⊗ R)

λ−1R

idR

η ⊗ idR

αR,L,R

idR ⊗ ερR

28 / 76

Page 56: Categorical quantum mechanics

Dual objectsAn object L is left-dual to an object R, and R is right-dual to L, writtenL a R, when there are morphisms I η R⊗ L and L⊗ R ε I with:

= =

where we draw η and ε as:

R L

L R

28 / 76

Page 57: Categorical quantum mechanics

Dual objects: examples

Every finite-dimensional Hilbert space H is both right dual and leftdual to its dual Hilbert space H∗:

I cap H ⊗ H∗ C is evaluation: |φ〉 ⊗ 〈ψ| 7→ 〈ψ|φ〉I cup C H∗ ⊗ H is maximally entangled state:

1 7→∑

i〈i| ⊗ |i〉 for any orthonormal basis {|i〉}Infinite-dimensional Hilbert spaces do not have duals

In Rel, every object is self-dual:I cap A× A 1 is • ∼ (a, a) for all a ∈ AI cup 1 A× A is (a, a) ∼ •

29 / 76

Page 58: Categorical quantum mechanics

Dual objects: examples

Every finite-dimensional Hilbert space H is both right dual and leftdual to its dual Hilbert space H∗:

I cap H ⊗ H∗ C is evaluation: |φ〉 ⊗ 〈ψ| 7→ 〈ψ|φ〉I cup C H∗ ⊗ H is maximally entangled state:

1 7→∑

i〈i| ⊗ |i〉 for any orthonormal basis {|i〉}Infinite-dimensional Hilbert spaces do not have duals

In Rel, every object is self-dual:I cap A× A 1 is • ∼ (a, a) for all a ∈ AI cup 1 A× A is (a, a) ∼ •

29 / 76

Page 59: Categorical quantum mechanics

Map-state dualityThe category Set only has duals for singletons.

The name I pfq A∗⊗B and coname A⊗B∗ xfy I of a morphism A f B,given dual objects A a A∗ and B a B∗, are

BA∗

f

A B∗

f

Conversely,

A

B

f =

B

A

f

Proof: There is only one function A 1, so all conames A⊗ B∗ 1are equal, so all functions A B are equal.

30 / 76

Page 60: Categorical quantum mechanics

Map-state dualityThe category Set only has duals for singletons.

The name I pfq A∗⊗B and coname A⊗B∗ xfy I of a morphism A f B,given dual objects A a A∗ and B a B∗, are

BA∗

f

A B∗

f

Conversely,

A

B

f =

B

A

f

Proof: There is only one function A 1, so all conames A⊗ B∗ 1are equal, so all functions A B are equal.

30 / 76

Page 61: Categorical quantum mechanics

Dual objects: propertiesRobustly defined:

I Suppose L a R. Then L a R′ iff R ' R′.I If (L,R, η, ε) and (L,R, η, ε′) are dualities, then ε = ε′.

Monoidal:I Always I a I.I If L a R and L′ a R′, then L⊗ L′ a R′ ⊗ R.

Symmetric:I If L a R in a braided monoidal category, then also R a L.

= =

31 / 76

Page 62: Categorical quantum mechanics

Dual objects: propertiesRobustly defined:

I Suppose L a R. Then L a R′ iff R ' R′.I If (L,R, η, ε) and (L,R, η, ε′) are dualities, then ε = ε′.

Monoidal:I Always I a I.I If L a R and L′ a R′, then L⊗ L′ a R′ ⊗ R.

L

R

L′

R′=

L L′

=

L L′

Symmetric:I If L a R in a braided monoidal category, then also R a L.

= =

31 / 76

Page 63: Categorical quantum mechanics

Dual objects: propertiesRobustly defined:

I Suppose L a R. Then L a R′ iff R ' R′.I If (L,R, η, ε) and (L,R, η, ε′) are dualities, then ε = ε′.

Monoidal:I Always I a I.I If L a R and L′ a R′, then L⊗ L′ a R′ ⊗ R.

Symmetric:I If L a R in a braided monoidal category, then also R a L.

= =

31 / 76

Page 64: Categorical quantum mechanics

Duals functor

For A f B and A a A∗, B a B∗, the right dual B∗ f∗ A∗ is defined as:

A∗

B∗

f∗ :=

A∗

B∗

f

=:

A∗

B∗

f

Examples:I in FHilb: usual dual f∗ : K∗ H∗ given by f∗(e) = e ◦ fI in Rel: R∗ = R†

32 / 76

Page 65: Categorical quantum mechanics

Duals functor

For A f B and A a A∗, B a B∗, the right dual B∗ f∗ A∗ is defined as:

A∗

B∗

f∗ :=

A∗

B∗

f =:

A∗

B∗

f

Examples:I in FHilb: usual dual f∗ : K∗ H∗ given by f∗(e) = e ◦ fI in Rel: R∗ = R†

32 / 76

Page 66: Categorical quantum mechanics

Duals functor

For A f B and A a A∗, B a B∗, the right dual B∗ f∗ A∗ is defined as:

A∗

B∗

f∗ :=

A∗

B∗

f =:

A∗

B∗

f

Examples:I in FHilb: usual dual f∗ : K∗ H∗ given by f∗(e) = e ◦ fI in Rel: R∗ = R†

32 / 76

Page 67: Categorical quantum mechanics

Duals functor: propertiesLemma: (g ◦ f)∗ = f∗ ◦ g∗, and

f = ff

=f

Lemma: A∗∗ ⊗ B∗∗ ' (A⊗ B)∗∗

A∗∗ B∗∗

(A⊗ B)∗∗

εA⊗B

η(A⊗B)∗

33 / 76

Page 68: Categorical quantum mechanics

Duals functor: propertiesLemma: (g ◦ f)∗ = f∗ ◦ g∗, and

f = ff

=f

Lemma: A∗∗ ⊗ B∗∗ ' (A⊗ B)∗∗

A∗∗ B∗∗

(A⊗ B)∗∗

εA⊗B

η(A⊗B)∗

33 / 76

Page 69: Categorical quantum mechanics

Compact categories

A symmetric monoidal category is compact when every object has a(simultaneously left and right) dual.

Theorem (correctness): A well-formed equation betweenmorphisms in a compact category follows from the axioms if and onlyif it holds in the graphical language up to spatial oriented isotopy.

f

= f = f = f

34 / 76

Page 70: Categorical quantum mechanics

Compact categories

A symmetric monoidal category is compact when every object has a(simultaneously left and right) dual.

Theorem (correctness): A well-formed equation betweenmorphisms in a compact category follows from the axioms if and onlyif it holds in the graphical language up to spatial oriented isotopy.

f = f

= f = f

34 / 76

Page 71: Categorical quantum mechanics

Compact categories

A symmetric monoidal category is compact when every object has a(simultaneously left and right) dual.

Theorem (correctness): A well-formed equation betweenmorphisms in a compact category follows from the axioms if and onlyif it holds in the graphical language up to spatial oriented isotopy.

f = f = f

= f

34 / 76

Page 72: Categorical quantum mechanics

Compact categories

A symmetric monoidal category is compact when every object has a(simultaneously left and right) dual.

Theorem (correctness): A well-formed equation betweenmorphisms in a compact category follows from the axioms if and onlyif it holds in the graphical language up to spatial oriented isotopy.

f = f = f = f

34 / 76

Page 73: Categorical quantum mechanics

Dagger dual objects

Lemma: In a monoidal dagger category, L a R ⇔ R a L.

In a symmetric monoidal dagger category, a dagger dual A a A∗ has:

η=

ε

Lemma: Dagger dualities correspond to maximally entangled states

η

η =ε

η

η

=

Dagger duals, and hence maximally entangled states,are unique up to unique unitary

35 / 76

Page 74: Categorical quantum mechanics

Dagger dual objects

Lemma: In a monoidal dagger category, L a R ⇔ R a L.

In a symmetric monoidal dagger category, a dagger dual A a A∗ has:

η=

ε

Lemma: Dagger dualities correspond to maximally entangled states

η

η =ε

η

η

=

Dagger duals, and hence maximally entangled states,are unique up to unique unitary

35 / 76

Page 75: Categorical quantum mechanics

Dagger dual objects

Lemma: In a monoidal dagger category, L a R ⇔ R a L.

In a symmetric monoidal dagger category, a dagger dual A a A∗ has:

η=

ε

Lemma: Dagger dualities correspond to maximally entangled states

η

η =ε

η

η

=

Dagger duals, and hence maximally entangled states,are unique up to unique unitary

35 / 76

Page 76: Categorical quantum mechanics

Dagger dual objects

Lemma: In a monoidal dagger category, L a R ⇔ R a L.

In a symmetric monoidal dagger category, a dagger dual A a A∗ has:

η=

ε

Lemma: Dagger dualities correspond to maximally entangled states

η

η =ε

η

η

=

Dagger duals, and hence maximally entangled states,are unique up to unique unitary

35 / 76

Page 77: Categorical quantum mechanics

Compact dagger categories

A compact dagger category is both compact and dagger,and duals are dagger duals.( )

†=

( )†

=

Lemma: Duals and daggers commute

(f∗)† =

f

= f = f = (f †)∗

Conjugation is the functor (−)∗ := (−)∗† = (−)†∗

36 / 76

Page 78: Categorical quantum mechanics

Compact dagger categories

A compact dagger category is both compact and dagger,and duals are dagger duals.( )

†=

( )†

=

Lemma: Duals and daggers commute

(f∗)† =

f

= f = f = (f †)∗

Conjugation is the functor (−)∗ := (−)∗† = (−)†∗

36 / 76

Page 79: Categorical quantum mechanics

Conjugation

f f

f∗ : A∗ B∗ f : A Bconjugation

f f

f∗ : B∗ A∗ f † : B Adual dagger

37 / 76

Page 80: Categorical quantum mechanics

TracesThe trace of A f A is the scalar

f

Examples:I in FHilb, it is the ordinary traceI in Rel, it detects fixed points

Lemma: Trace is cyclic, Tr(f ⊗ g) = Tr(f) ◦ Tr(g), and Tr(f †) = Tr(f)†

f

g

= f g =g

f

38 / 76

Page 81: Categorical quantum mechanics

TracesThe trace of A f A is the scalar

f

Examples:I in FHilb, it is the ordinary traceI in Rel, it detects fixed points

Lemma: Trace is cyclic, Tr(f ⊗ g) = Tr(f) ◦ Tr(g), and Tr(f †) = Tr(f)†

f

g

= f g =g

f

38 / 76

Page 82: Categorical quantum mechanics

TracesThe trace of A f A is the scalar

f

Examples:I in FHilb, it is the ordinary traceI in Rel, it detects fixed points

Lemma: Trace is cyclic, Tr(f ⊗ g) = Tr(f) ◦ Tr(g), and Tr(f †) = Tr(f)†

f

g

= f g =g

f

38 / 76

Page 83: Categorical quantum mechanics

Dimension

The dimension of A is the scalar dim(A) := Tr(idA)

A

Lemma:I dim(I) = idI

I dim(A⊗ B) = dim(A) ◦ dim(B)I if A ' B then dim(A) = dim(B)

I infinite-dimensional Hilbert spaces do not have duals

39 / 76

Page 84: Categorical quantum mechanics

Dimension

The dimension of A is the scalar dim(A) := Tr(idA)

A

Lemma:I dim(I) = idI

I dim(A⊗ B) = dim(A) ◦ dim(B)I if A ' B then dim(A) = dim(B)I infinite-dimensional Hilbert spaces do not have duals

39 / 76

Page 85: Categorical quantum mechanics

Teleportation

In FHilb:I begin with a single system LI prepare a joint system R⊗ L in a maximally entangled stateI perform a joint measurement on the first two systemsI perform a unitary operation on the remaining system

L

L

Ui

Ui

=

L

L

Ui

Ui

=

L

L

=

L

L

In Rel: encrypted communication using one-time pad

40 / 76

Page 86: Categorical quantum mechanics

Teleportation

In FHilb:I begin with a single system LI prepare a joint system R⊗ L in a maximally entangled stateI perform a joint measurement on the first two systemsI perform a unitary operation on the remaining system

L

L

Ui

Ui

=

L

L

Ui

Ui

=

L

L

=

L

L

In Rel: encrypted communication using one-time pad

40 / 76

Page 87: Categorical quantum mechanics

Teleportation

In FHilb:I begin with a single system LI prepare a joint system R⊗ L in a maximally entangled stateI perform a joint measurement on the first two systemsI perform a unitary operation on the remaining system

L

L

Ui

Ui

=

L

L

Ui

Ui

=

L

L

=

L

L

In Rel: encrypted communication using one-time pad

40 / 76

Page 88: Categorical quantum mechanics

Teleportation

In FHilb:I begin with a single system LI prepare a joint system R⊗ L in a maximally entangled stateI perform a joint measurement on the first two systemsI perform a unitary operation on the remaining system

L

L

Ui

Ui

=

L

L

Ui

Ui

=

L

L

=

L

L

In Rel: encrypted communication using one-time pad

40 / 76

Page 89: Categorical quantum mechanics

Teleportation

In FHilb:I begin with a single system LI prepare a joint system R⊗ L in a maximally entangled stateI perform a joint measurement on the first two systemsI perform a unitary operation on the remaining system

L

L

Ui

Ui

=

L

L

Ui

Ui

=

L

L

=

L

L

In Rel: encrypted communication using one-time pad

40 / 76

Page 90: Categorical quantum mechanics

Part III

(Co)monoids

41 / 76

Page 91: Categorical quantum mechanics

ComonoidsA comonoid in a monoidal category is an object A withcomultiplication A d A⊗ A and counit A e I satisfying

d

d

=d

d e

d= =

e

d

= = =

Examples:I in Set, any object has unique cocommutative comonoid

with comultiplication a 7→ (a, a) and counit a 7→ •I in Rel, any group forms a comonoid

with comultiplication g ∼ (h, h−1g) and counit 1 ∼ •I in FHilb, any choice of basis {ei} gives cocommutative comonoid

with comultiplication ei 7→ ei ⊗ ei and counit ei 7→ 1

42 / 76

Page 92: Categorical quantum mechanics

ComonoidsA comonoid in a monoidal category is an object A withcomultiplication A A⊗ A and counit A I satisfying

= = =

Examples:I in Set, any object has unique cocommutative comonoid

with comultiplication a 7→ (a, a) and counit a 7→ •I in Rel, any group forms a comonoid

with comultiplication g ∼ (h, h−1g) and counit 1 ∼ •I in FHilb, any choice of basis {ei} gives cocommutative comonoid

with comultiplication ei 7→ ei ⊗ ei and counit ei 7→ 1

42 / 76

Page 93: Categorical quantum mechanics

Monoids

A monoid in a monoidal category consists of maps I A A⊗ Asatisfying associativity and unitality.

Lemma: In braided monoidal category, two (co)monoids combine

Lemma: In monoidal dagger category, monoid gives comonoid

43 / 76

Page 94: Categorical quantum mechanics

Pair of pants

: one size fits all

Map-state duality: composition A g◦f A becomes I pg◦fq A∗ ⊗ A.

pgq pfq=

pg ◦ fq

Lemma: If A a A∗, then A∗ ⊗ A is pair of pants monoid

A

A

A A A

A

A A

Example: Pair of pants on Cn in FHilb is n-by-n matrices MnProof: define (Cn)∗ ⊗ Cn →Mn by 〈j| ⊗ |i〉 7→ eij

Proposition: Any monoid (A, , ) embeds into (A∗ ⊗ A, , )

R =

44 / 76

Page 95: Categorical quantum mechanics

Pair of pants

: one size fits all

Map-state duality: composition A g◦f A becomes I pg◦fq A∗ ⊗ A.Lemma: If A a A∗, then A∗ ⊗ A is pair of pants monoid

A

A

A A A

A

A A

Example: Pair of pants on Cn in FHilb is n-by-n matrices MnProof: define (Cn)∗ ⊗ Cn →Mn by 〈j| ⊗ |i〉 7→ eij

Proposition: Any monoid (A, , ) embeds into (A∗ ⊗ A, , )

R =

44 / 76

Page 96: Categorical quantum mechanics

Pair of pants

: one size fits all

Map-state duality: composition A g◦f A becomes I pg◦fq A∗ ⊗ A.Lemma: If A a A∗, then A∗ ⊗ A is pair of pants monoid

A

A

A A A

A

A A

Example: Pair of pants on Cn in FHilb is n-by-n matrices MnProof: define (Cn)∗ ⊗ Cn →Mn by 〈j| ⊗ |i〉 7→ eij

Proposition: Any monoid (A, , ) embeds into (A∗ ⊗ A, , )

R =

44 / 76

Page 97: Categorical quantum mechanics

Pair of pants: one size fits allMap-state duality: composition A g◦f A becomes I pg◦fq A∗ ⊗ A.Lemma: If A a A∗, then A∗ ⊗ A is pair of pants monoid

A

A

A A A

A

A A

Example: Pair of pants on Cn in FHilb is n-by-n matrices MnProof: define (Cn)∗ ⊗ Cn →Mn by 〈j| ⊗ |i〉 7→ eij

Proposition: Any monoid (A, , ) embeds into (A∗ ⊗ A, , )

R =

44 / 76

Page 98: Categorical quantum mechanics

CloningA braided monoidal category has cloning if there is naturalA dA A⊗ A with cocommutativity, coassociativity, dI = ρI, and

A B

A BB A

dA dB =

A B BA

BA

dA⊗B

Set has cloning, but compact categories like Rel or FHilb cannot

Lemma: If compact category has cloning, then

...

A∗ A A∗ A=

A∗ AA A∗

dA∗ dA=

A A∗AA∗

dA∗ dA

=

A∗ A A∗ A

45 / 76

Page 99: Categorical quantum mechanics

CloningA braided monoidal category has cloning if there is naturalA dA A⊗ A with cocommutativity, coassociativity, dI = ρI, and

A B

A BB A

dA dB =

A B BA

BA

dA⊗B

Set has cloning, but compact categories like Rel or FHilb cannot

Lemma: If compact category has cloning, then

...

A∗ A A∗ A=

A∗ A A∗ A

A∗ A A∗ A=

A∗ AA A∗

dA∗ dA=

A A∗AA∗

dA∗ dA

=

A∗ A A∗ A

45 / 76

Page 100: Categorical quantum mechanics

CloningA braided monoidal category has cloning if there is naturalA dA A⊗ A with cocommutativity, coassociativity, dI = ρI, and

A B

A BB A

dA dB =

A B BA

BA

dA⊗B

Set has cloning, but compact categories like Rel or FHilb cannot

Lemma: If compact category has cloning, then ...Proof: First, consider the following equality (∗).

A∗ A A∗ A=

A∗ A A∗ A

dI

=

A∗ A AA∗

dA∗⊗A=

A∗ AA A∗

dA∗ dA

A∗ A A∗ A=

A∗ AA A∗

dA∗ dA=

A A∗AA∗

dA∗ dA

=

A∗ A A∗ A

45 / 76

Page 101: Categorical quantum mechanics

CloningA braided monoidal category has cloning if there is naturalA dA A⊗ A with cocommutativity, coassociativity, dI = ρI, and

A B

A BB A

dA dB =

A B BA

BA

dA⊗B

Set has cloning, but compact categories like Rel or FHilb cannot

Lemma: If compact category has cloning, then

...

A∗ A A∗ A=

A∗ AA A∗

dA∗ dA=

A A∗AA∗

dA∗ dA

=

A∗ A A∗ A

45 / 76

Page 102: Categorical quantum mechanics

No-cloningTheorem: If braided monoidal category with duals has cloning,then f = Tr(f) • idA for any A f A

Proof: First, consider equation (∗)

Then:

46 / 76

Page 103: Categorical quantum mechanics

No-cloningTheorem: If braided monoidal category with duals has cloning,then f = Tr(f) • idA for any A f A

Proof: First, consider equation (∗):

A A

A A

=

A A

A A

=

A A

A A

Then:

46 / 76

Page 104: Categorical quantum mechanics

No-cloningTheorem: If braided monoidal category with duals has cloning,then f = Tr(f) • idA for any A f A

Proof: First, consider equation (∗). Then:

A

A

f =

A

A

f =

A

A

f =

A

A

f

46 / 76

Page 105: Categorical quantum mechanics

No-cloningTheorem: If braided monoidal category with duals has cloning,then f = Tr(f) • idA for any A f A

Proof: First, consider equation (∗). Then:

f=

f

=

f

=f

46 / 76

Page 106: Categorical quantum mechanics

Summary

I Monoidal categoriesscalars, sound and complete graphical calculus

I Dual objectsentanglement, teleportation, encrypted communication

I Monoidsno cloning

47 / 76

Page 107: Categorical quantum mechanics

Part IV

Frobenius structures

48 / 76

Page 108: Categorical quantum mechanics

Frobenius structureA Frobenius structure in a monoidal category is pair of comonoid(A, , ) and monoid (A, , ) satisfying Frobenius law:

=

If = , called dagger Frobenius structure.

49 / 76

Page 109: Categorical quantum mechanics

Frobenius structureA Frobenius structure in a monoidal category is pair of comonoid(A, , ) and monoid (A, , ) satisfying Frobenius law:

=

If = , called dagger Frobenius structure.

Example in FHilb: copying an orthogonal basis

ei ej

ejδijei

ej=

ejei

ei

ei

δijej

49 / 76

Page 110: Categorical quantum mechanics

Frobenius structureA Frobenius structure in a monoidal category is pair of comonoid(A, , ) and monoid (A, , ) satisfying Frobenius law:

=

If = , called dagger Frobenius structure.

Example in FHilb: matrix algebra

eij ekl

emlδjk∑

m eim

ekm=

ekleij

∑m eim

emj

δjkeml

49 / 76

Page 111: Categorical quantum mechanics

Frobenius structureA Frobenius structure in a monoidal category is pair of comonoid(A, , ) and monoid (A, , ) satisfying Frobenius law:

=

If = , called dagger Frobenius structure.

Example in FHilb: group algebra of finite group

g h

kh∑

k gk−1

k−1=

hg

∑k gk

k

k−1h

49 / 76

Page 112: Categorical quantum mechanics

Frobenius structureA Frobenius structure in a monoidal category is pair of comonoid(A, , ) and monoid (A, , ) satisfying Frobenius law:

=

If = , called dagger Frobenius structure.

Example in Rel: set of morphisms of groupoid

g h

lk

x⇐⇒ h ◦ l−1 = g−1 ◦ k ⇐⇒

hg

k

x

l

49 / 76

Page 113: Categorical quantum mechanics

Frobenius structureA Frobenius structure in a monoidal category is pair of comonoid(A, , ) and monoid (A, , ) satisfying Frobenius law:

=

If = , called dagger Frobenius structure.

Example in any compact dagger category: pair of pants

=

49 / 76

Page 114: Categorical quantum mechanics

Frobenius lawLemma: Any Frobenius structure satisfies:

= =

Proof: Suffices to prove one of the equalities

= = =

= =

50 / 76

Page 115: Categorical quantum mechanics

Classical structures

A classical structure is a special and commutative Frobenius structure

= =

Examples:I in FHilb: copying orthonormal basis is classical structureI in FHilb: matrix algebra only special when trivialI in FHilb: group algebra only special when trivialI in Rel: groupoid always specialI in general: pair of pants only special when trivial

51 / 76

Page 116: Categorical quantum mechanics

Classical structures

A classical structure is a special and commutative Frobenius structure

= =

Examples:I in FHilb: copying orthonormal basis is classical structureI in FHilb: matrix algebra only special when trivialI in FHilb: group algebra only special when trivialI in Rel: groupoid always specialI in general: pair of pants only special when trivial

51 / 76

Page 117: Categorical quantum mechanics

SymmetryFrobenius structure in monoidal category is symmetric when:

=

In braided monoidal category, this is equivalent to:

=

Examples:I in FHilb: copying orthonormal basis is symmetricI in FHilb: matrix algebra symmetric as Tr(ab) = Tr(ba)I in FHilb: group algebra symmetric as inverses are two-sidedI in Rel: groupoid symmetric as inverses are two-sidedI in general: pair of pants symmetric

52 / 76

Page 118: Categorical quantum mechanics

SymmetryFrobenius structure in monoidal category is symmetric when:

=

In braided monoidal category, this is equivalent to:

=

Examples:I in FHilb: copying orthonormal basis is symmetricI in FHilb: matrix algebra symmetric as Tr(ab) = Tr(ba)I in FHilb: group algebra symmetric as inverses are two-sidedI in Rel: groupoid symmetric as inverses are two-sidedI in general: pair of pants symmetric

52 / 76

Page 119: Categorical quantum mechanics

SymmetryFrobenius structure in monoidal category is symmetric when:

=

In braided monoidal category, this is equivalent to:

=

Examples:I in FHilb: copying orthonormal basis is symmetricI in FHilb: matrix algebra symmetric as Tr(ab) = Tr(ba)I in FHilb: group algebra symmetric as inverses are two-sidedI in Rel: groupoid symmetric as inverses are two-sidedI in general: pair of pants symmetric

52 / 76

Page 120: Categorical quantum mechanics

Self-dualityProposition: If (A, , , , ) Frobenius structure in monoidalcategory, then A a A is self-dual

A A

=

A A

A A

=A A

53 / 76

Page 121: Categorical quantum mechanics

Self-dualityProposition: If (A, , , , ) Frobenius structure in monoidalcategory, then A a A is self-dual

A A

=

A A

A A

=A A

Proof: Snake equation:

= = =

53 / 76

Page 122: Categorical quantum mechanics

Self-dualityProposition: If (A, , , , ) Frobenius structure in monoidalcategory, then A a A is self-dual

A A

=

A A

A A

=A A

Conversely, monoid (A, , ) forms Frobenius structure with somecomonoid (A, , ) iff allows nondegenerate form: map : A I with

part of self-duality A a A.

53 / 76

Page 123: Categorical quantum mechanics

Normal formsTwo ways to think about graphical calculus diagram:

I representing morphism; shorthand for e.g. linear mapI entity in its own right; can be manipulated by replacing parts

Theorem: if (A, , , , ) is Frobenius structure,any connected morphism A⊗m A⊗n built out of finitely many pieces, , , and id, using ◦ and ⊗ equals normal form

54 / 76

Page 124: Categorical quantum mechanics

Normal formsTwo ways to think about graphical calculus diagram:

I representing morphism; shorthand for e.g. linear mapI entity in its own right; can be manipulated by replacing parts

Theorem: if (A, , , , ) is Frobenius structure,any connected morphism A⊗m A⊗n built out of finitely many pieces, , , and id, using ◦ and ⊗ equals normal form

n︷ ︸︸ ︷

︸ ︷︷ ︸m 54 / 76

Page 125: Categorical quantum mechanics

Normal formsTwo ways to think about graphical calculus diagram:

I representing morphism; shorthand for e.g. linear mapI entity in its own right; can be manipulated by replacing parts

Theorem: if (A, , , , ) is special Frobenius structure,any connected morphism A⊗m A⊗n built out of finitely many pieces, , , and id, using ◦ and ⊗ equals normal form

n︷ ︸︸ ︷

︸ ︷︷ ︸m

54 / 76

Page 126: Categorical quantum mechanics

Normal formsTwo ways to think about graphical calculus diagram:

I representing morphism; shorthand for e.g. linear mapI entity in its own right; can be manipulated by replacing parts

Theorem: if (A, , , , ) is special commutative Frobenius structure,any connected morphism A⊗m A⊗n built out of finitely many pieces, , , and id and , using ◦ and ⊗ equals normal form

n︷ ︸︸ ︷

︸ ︷︷ ︸m

54 / 76

Page 127: Categorical quantum mechanics

Involutive monoidsMap-state duality: f 7→ f † is involution on pair of pants A = H∗ ⊗ H

I anti-linear, so A A∗; but A∗ = (H∗ ⊗ H)∗ ' H∗ ⊗ H∗∗ ' AI morphism to opposite monoid: (g ◦ f)† = f † ◦ g†

If (A,m, u) monoid, A a A∗ dagger dual, then (A∗,m∗, u∗) monoid too

Monoid on object A with dagger dual is involutive monoid whenequipped with monoid morphism A i A∗ satisfying i∗ ◦ i = idA

A

A

i

i

=

A

A

B

A

f

iB

=

A

B

iA

f

Morphisms A f B of involutive monoids satisfy iB ◦ f = f∗ ◦ iA

55 / 76

Page 128: Categorical quantum mechanics

Involutive monoidsMap-state duality: f 7→ f † is involution on pair of pants A = H∗ ⊗ H

I anti-linear, so A A∗; but A∗ = (H∗ ⊗ H)∗ ' H∗ ⊗ H∗∗ ' AI morphism to opposite monoid: (g ◦ f)† = f † ◦ g†

If (A,m, u) monoid, A a A∗ dagger dual, then (A∗,m∗, u∗) monoid too

Monoid on object A with dagger dual is involutive monoid whenequipped with monoid morphism A i A∗ satisfying i∗ ◦ i = idA

A

A

i

i

=

A

A

B

A

f

iB

=

A

B

iA

f

Morphisms A f B of involutive monoids satisfy iB ◦ f = f∗ ◦ iA

55 / 76

Page 129: Categorical quantum mechanics

Involutive monoidsMap-state duality: f 7→ f † is involution on pair of pants A = H∗ ⊗ H

I anti-linear, so A A∗; but A∗ = (H∗ ⊗ H)∗ ' H∗ ⊗ H∗∗ ' AI morphism to opposite monoid: (g ◦ f)† = f † ◦ g†

If (A,m, u) monoid, A a A∗ dagger dual, then (A∗,m∗, u∗) monoid too

Monoid on object A with dagger dual is involutive monoid whenequipped with monoid morphism A i A∗ satisfying i∗ ◦ i = idA

A

A

i

i

=

A

A

B

A

f

iB

=

A

B

iA

f

Morphisms A f B of involutive monoids satisfy iB ◦ f = f∗ ◦ iA

55 / 76

Page 130: Categorical quantum mechanics

Involutive monoidsMap-state duality: f 7→ f † is involution on pair of pants A = H∗ ⊗ H

I anti-linear, so A A∗; but A∗ = (H∗ ⊗ H)∗ ' H∗ ⊗ H∗∗ ' AI morphism to opposite monoid: (g ◦ f)† = f † ◦ g†

If (A,m, u) monoid, A a A∗ dagger dual, then (A∗,m∗, u∗) monoid too

Monoid on object A with dagger dual is involutive monoid whenequipped with monoid morphism A i A∗ satisfying i∗ ◦ i = idA

A

A

i

i

=

A

A

B

A

f

iB

=

A

B

iA

f

Morphisms A f B of involutive monoids satisfy iB ◦ f = f∗ ◦ iA

55 / 76

Page 131: Categorical quantum mechanics

Involutive monoidsMap-state duality: f 7→ f † is involution on pair of pants A = H∗ ⊗ H

I anti-linear, so A A∗; but A∗ = (H∗ ⊗ H)∗ ' H∗ ⊗ H∗∗ ' AI morphism to opposite monoid: (g ◦ f)† = f † ◦ g†

If (A,m, u) monoid, A a A∗ dagger dual, then (A∗,m∗, u∗) monoid too

Monoid on object A with dagger dual is involutive monoid whenequipped with monoid morphism A i A∗ satisfying i∗ ◦ i = idA

A

A

i

i

=

A

A B

A

f

iB

=

A

B

iA

f

Morphisms A f B of involutive monoids satisfy iB ◦ f = f∗ ◦ iA

55 / 76

Page 132: Categorical quantum mechanics

Frobenius law and daggerset of maps A A closed under composition

and dagger

=

involutive

submonoid of pair of pants A∗ ⊗ A.

Theorem: Let A a A∗ be duals. Monoid (A, , ) is dagger Frobeniusstructure iff Cayley embedding is involutive monoid morphism with

i =

“Frobenius law = coherence law between dagger and closure”

I matrix algebra in FHilb: involution Mn M∗n is f 7→ f †

I groupoid in Rel: involution G G∗ is g ∼ g−1

I pair of pants in general: involution invisible( )∗=

=

56 / 76

Page 133: Categorical quantum mechanics

Frobenius law and daggerset of maps A A closed under composition and dagger= involutive submonoid of pair of pants A∗ ⊗ A.

Theorem: Let A a A∗ be duals. Monoid (A, , ) is dagger Frobeniusstructure iff Cayley embedding is involutive monoid morphism with

i =

“Frobenius law = coherence law between dagger and closure”

I matrix algebra in FHilb: involution Mn M∗n is f 7→ f †

I groupoid in Rel: involution G G∗ is g ∼ g−1

I pair of pants in general: involution invisible( )∗=

=

56 / 76

Page 134: Categorical quantum mechanics

Frobenius law and daggerset of maps A A closed under composition and dagger= involutive submonoid of pair of pants A∗ ⊗ A.

Theorem: Let A a A∗ be duals. Monoid (A, , ) is dagger Frobeniusstructure iff Cayley embedding is involutive monoid morphism with

i =

“Frobenius law = coherence law between dagger and closure”

I matrix algebra in FHilb: involution Mn M∗n is f 7→ f †

I groupoid in Rel: involution G G∗ is g ∼ g−1

I pair of pants in general: involution invisible( )∗=

=

56 / 76

Page 135: Categorical quantum mechanics

Frobenius law and daggerset of maps A A closed under composition and dagger= involutive submonoid of pair of pants A∗ ⊗ A.

Theorem: Let A a A∗ be duals. Monoid (A, , ) is dagger Frobeniusstructure iff Cayley embedding is involutive monoid morphism with

i =

“Frobenius law = coherence law between dagger and closure”

I matrix algebra in FHilb: involution Mn M∗n is f 7→ f †

I groupoid in Rel: involution G G∗ is g ∼ g−1

I pair of pants in general: involution invisible( )∗=

=

56 / 76

Page 136: Categorical quantum mechanics

Classification

Corollary: Dagger Frobenius structures in FHilb are C*-algebrasProof: Correspond to A ⊆Mn closed under addition, scalarmultiplication, matrix multiplication, adjoint, and contain identity

Corollary: Classical structures in FHilb are orthonormal basesProof: If Mk1 ⊕ · · · ⊕Mkn commutive must have k1 = · · · = kn = 1

Theorem: Special dagger Frobenius structures in Rel are groupoids

f

g

f

idcod(f)

iddom(f)

=

f idcod(f)

f

iddom(f) f

Corollary: Classical structures in Rel are abelian groupoids

57 / 76

Page 137: Categorical quantum mechanics

Classification

Corollary: Dagger Frobenius structures in FHilb are C*-algebrasProof: Correspond to A ⊆Mn closed under addition, scalarmultiplication, matrix multiplication, adjoint, and contain identity

Corollary: Classical structures in FHilb are orthonormal basesProof: If Mk1 ⊕ · · · ⊕Mkn commutive must have k1 = · · · = kn = 1

Theorem: Special dagger Frobenius structures in Rel are groupoids

f

g

f

idcod(f)

iddom(f)

=

f idcod(f)

f

iddom(f) f

Corollary: Classical structures in Rel are abelian groupoids

57 / 76

Page 138: Categorical quantum mechanics

Classification

Corollary: Dagger Frobenius structures in FHilb are C*-algebrasProof: Correspond to A ⊆Mn closed under addition, scalarmultiplication, matrix multiplication, adjoint, and contain identity

Corollary: Classical structures in FHilb are orthonormal basesProof: If Mk1 ⊕ · · · ⊕Mkn commutive must have k1 = · · · = kn = 1

Theorem: Special dagger Frobenius structures in Rel are groupoids

f

g

f

idcod(f)

iddom(f)

=

f idcod(f)

f

iddom(f) f

Corollary: Classical structures in Rel are abelian groupoids

57 / 76

Page 139: Categorical quantum mechanics

Classification

Corollary: Dagger Frobenius structures in FHilb are C*-algebrasProof: Correspond to A ⊆Mn closed under addition, scalarmultiplication, matrix multiplication, adjoint, and contain identity

Corollary: Classical structures in FHilb are orthonormal basesProof: If Mk1 ⊕ · · · ⊕Mkn commutive must have k1 = · · · = kn = 1

Theorem: Special dagger Frobenius structures in Rel are groupoids

f

g

f

idcod(f)

iddom(f)

=

f idcod(f)

f

iddom(f) f

Corollary: Classical structures in Rel are abelian groupoids

57 / 76

Page 140: Categorical quantum mechanics

PhasesA state I a A of a Frobenius structure is a phase when

a

a

= =

a

a

Proposition: phases of dagger Frobenius structure in (braided)monoidal dagger category form (abelian) phase group

I phase group of C*-algebra is its unitary groupI phase group of orthonormal basis are powers of circle groupI phase group of a group is group itselfI phase group of pair or pants are unitary endomorphisms

=

f

f

=f

f

58 / 76

Page 141: Categorical quantum mechanics

PhasesA state I a A of a Frobenius structure is a phase when

a

a

= =

a

a

Proposition: phases of dagger Frobenius structure in (braided)monoidal dagger category form (abelian) phase group

I phase group of C*-algebra is its unitary groupI phase group of orthonormal basis are powers of circle groupI phase group of a group is group itselfI phase group of pair or pants are unitary endomorphisms

=

f

f

=f

f

58 / 76

Page 142: Categorical quantum mechanics

PhasesA state I a A of a Frobenius structure is a phase when

a

a

= =

a

a

Proposition: phases of dagger Frobenius structure in (braided)monoidal dagger category form (abelian) phase group

I phase group of C*-algebra is its unitary groupI phase group of orthonormal basis are powers of circle groupI phase group of a group is group itselfI phase group of pair or pants are unitary endomorphisms

=

f

f

=f

f

58 / 76

Page 143: Categorical quantum mechanics

Part V

Complementarity

59 / 76

Page 144: Categorical quantum mechanics

Complementarity

Symmetric dagger Frobenius structures and on the same objectin a braided monoidal dagger category are complementary when

= =

Black and white not obviously interchangeable. But by symmetry

= =

60 / 76

Page 145: Categorical quantum mechanics

Complementarity

Symmetric dagger Frobenius structures and on the same objectin a braided monoidal dagger category are complementary when

= =

Black and white not obviously interchangeable. But by symmetry

= =

60 / 76

Page 146: Categorical quantum mechanics

Complementarity: examples

Proposition: classical structures in FHilb are complementary iff theycopy mutually unbiased orthonormal bases

|〈di |ej〉|2 =1

dim(H)

Lemma: if A dagger self-dual in braided monoidal dagger category,then pair of pants and twisted knickers on A⊗ A are complementary

A

A

A A A

A

A A

A

AA A

A

A

A A

Symmetric Frobenius structure A gives complementary pair on A⊗ A

61 / 76

Page 147: Categorical quantum mechanics

Complementarity: examples

Proposition: classical structures in FHilb are complementary iff theycopy mutually unbiased orthonormal bases

|〈di |ej〉|2 =1

dim(H)

Lemma: if A dagger self-dual in braided monoidal dagger category,then pair of pants and twisted knickers on A⊗ A are complementary

A

A

A A A

A

A A

A

AA A

A

A

A A

Symmetric Frobenius structure A gives complementary pair on A⊗ A

61 / 76

Page 148: Categorical quantum mechanics

Complementarity in Rel

Example: Let G and H be nontrivial groups, A = G× H,I G totally disconnected groupoid: objects G and G(g, g) = H;I H totally disconnected groupoid: objects H and H(h, h) = G.

Then G and H give rise to complementary Frobenius structures.

Proposition: equivalent for groupoids G,H on set A of morphisms:I give complementary Frobenius structuresI map A Ob(G)× Ob(H), a 7→

(domG(a),domH(a)

)is bijective

62 / 76

Page 149: Categorical quantum mechanics

Complementarity in Rel

Example: Let G and H be nontrivial groups, A = G× H,I G totally disconnected groupoid: objects G and G(g, g) = H;I H totally disconnected groupoid: objects H and H(h, h) = G.

Then G and H give rise to complementary Frobenius structures.

Proposition: equivalent for groupoids G,H on set A of morphisms:I give complementary Frobenius structuresI map A Ob(G)× Ob(H), a 7→

(domG(a),domH(a)

)is bijective

62 / 76

Page 150: Categorical quantum mechanics

Complementarity and daggerProposition: symmetric dagger Frobenius structures in braidedcategory complementary iff the following morphism is unitary

Proof:

= =

63 / 76

Page 151: Categorical quantum mechanics

Complementarity and daggerProposition: symmetric dagger Frobenius structures in braidedcategory complementary iff the following morphism is unitary

Proof:

= =

63 / 76

Page 152: Categorical quantum mechanics

Oracles

An oracle is a morphism A f B together with Frobenius structureson A and on B such that the following morphism is unitary:

A

A

B

B

f

Example: Extension of function between mutually unbiased bases

Proposition: Let (A, ), (B, ) and (B, ) be symmetric daggerFrobenius structures. Self-conjugate comonoid morphism(A, )

f(B, ) is oracle (A, ) (B, ) iff complements

64 / 76

Page 153: Categorical quantum mechanics

Oracles

An oracle is a morphism A f B together with Frobenius structureson A and on B such that the following morphism is unitary:

A

A

B

B

f

Example: Extension of function between mutually unbiased bases

Proposition: Let (A, ), (B, ) and (B, ) be symmetric daggerFrobenius structures. Self-conjugate comonoid morphism(A, )

f(B, ) is oracle (A, ) (B, ) iff complements

64 / 76

Page 154: Categorical quantum mechanics

Oracles

An oracle is a morphism A f B together with Frobenius structureson A and on B such that the following morphism is unitary:

A

A

B

B

f

Example: Extension of function between mutually unbiased bases

Proposition: Let (A, ), (B, ) and (B, ) be symmetric daggerFrobenius structures. Self-conjugate comonoid morphism(A, )

f(B, ) is oracle (A, ) (B, ) iff complements

64 / 76

Page 155: Categorical quantum mechanics

Deutsch–Josza algorithm

Let function {1, . . . ,n} f {0,1} be promised balanced or constant.Extend to oracle Cn C2; latter with computational and X bases.

Write b =(

1/√

2−1/√

2

).

b

C2

Prepare initial states

Apply a unitary map

Measure the first system

1/√

n

1/√

n

f

History is certain when f constant, impossible when f balanced.

65 / 76

Page 156: Categorical quantum mechanics

Deutsch–Josza algorithm

Let function {1, . . . ,n} f {0,1} be promised balanced or constant.Extend to oracle Cn C2; latter with computational and X bases.

Write b =(

1/√

2−1/√

2

).

b

C2

Prepare initial states

Apply a unitary map

Measure the first system

1/√

n

1/√

n

f

History is certain when f constant, impossible when f balanced.

65 / 76

Page 157: Categorical quantum mechanics

Bialgebras

Complementarity related to Hopf algebras

= = = =

Strong complementarity = complementarity + bialgebra

(in FHilb and Rel: complementary 6

only if commutativebialgebra)

Theorem: the strongly complementary classical structures in FHilbare the group algebras

66 / 76

Page 158: Categorical quantum mechanics

Bialgebras

Complementarity related to Hopf algebras

= = = =

Strong complementarity = complementarity + bialgebra

(in FHilb and Rel: complementary 6

only if commutativebialgebra)

Theorem: the strongly complementary classical structures in FHilbare the group algebras

66 / 76

Page 159: Categorical quantum mechanics

Bialgebras

Complementarity related to Hopf algebras

= = = =

Strong complementarity = complementarity + bialgebra

(in FHilb and Rel: complementary 6

only if commutativebialgebra)

Theorem: the strongly complementary classical structures in FHilbare the group algebras

66 / 76

Page 160: Categorical quantum mechanics

Part VI

Complete positivity

67 / 76

Page 161: Categorical quantum mechanics

Morphisms of Frobenius structures

Lemma: If a morphism between Frobenius structures preserves(co)multiplication and (co)unit, then it is an isomorphism.

Proof:

B

B

f

f

=

B

B

f

=

B

B

=

B

B

68 / 76

Page 162: Categorical quantum mechanics

Mixed states

State I m A of dagger Frobenius structure is mixed when

A

A

m=

A

A

X

√m

√m

Examples:I In FHilb: mixed state of C*-algebra is positive element a = b∗bI In Rel: mixed state of groupoid is inverse-closed set of arrowsI In general: mixed state of pair of pants is name of positive map

69 / 76

Page 163: Categorical quantum mechanics

Mixed states

State I m A of dagger Frobenius structure is mixed when

A

A

m=

A

A

X

√m

√m

Examples:I In FHilb: mixed state of C*-algebra is positive element a = b∗bI In Rel: mixed state of groupoid is inverse-closed set of arrowsI In general: mixed state of pair of pants is name of positive map

69 / 76

Page 164: Categorical quantum mechanics

Completely positive maps

If (A, , ) and (B, , ) are dagger Frobenius structures, a morphismA f B is completely positive when I (f⊗id)◦m B⊗ E is mixed state formixed state I m A⊗ E and any dagger Frobenius structure (E, , ).

Examples:I Unitary evolution A∗ ⊗ A u∗⊗u A∗ ⊗ A for unitary A u A

I Preparation of mixed state: completely positive map I A∗ ⊗ AI Measurement: completely positive map A∗ ⊗ A Cn in FHilb is

precisely positive-operator valued measureI Completely positive maps G H in Rel respect inverses:

g ∼ h implies g−1 ∼ h−1 and iddom(g) ∼ iddom(h)

70 / 76

Page 165: Categorical quantum mechanics

Completely positive maps

If (A, , ) and (B, , ) are dagger Frobenius structures, a morphismA f B is completely positive when I (f⊗id)◦m B⊗ E is mixed state formixed state I m A⊗ E and any dagger Frobenius structure (E, , ).

Examples:I Unitary evolution A∗ ⊗ A u∗⊗u A∗ ⊗ A for unitary A u AI Preparation of mixed state: completely positive map I A∗ ⊗ A

I Measurement: completely positive map A∗ ⊗ A Cn in FHilb isprecisely positive-operator valued measure

I Completely positive maps G H in Rel respect inverses:g ∼ h implies g−1 ∼ h−1 and iddom(g) ∼ iddom(h)

70 / 76

Page 166: Categorical quantum mechanics

Completely positive maps

If (A, , ) and (B, , ) are dagger Frobenius structures, a morphismA f B is completely positive when I (f⊗id)◦m B⊗ E is mixed state formixed state I m A⊗ E and any dagger Frobenius structure (E, , ).

Examples:I Unitary evolution A∗ ⊗ A u∗⊗u A∗ ⊗ A for unitary A u AI Preparation of mixed state: completely positive map I A∗ ⊗ AI Measurement: completely positive map A∗ ⊗ A Cn in FHilb is

precisely positive-operator valued measure

I Completely positive maps G H in Rel respect inverses:g ∼ h implies g−1 ∼ h−1 and iddom(g) ∼ iddom(h)

70 / 76

Page 167: Categorical quantum mechanics

Completely positive maps

If (A, , ) and (B, , ) are dagger Frobenius structures, a morphismA f B is completely positive when I (f⊗id)◦m B⊗ E is mixed state formixed state I m A⊗ E and any dagger Frobenius structure (E, , ).

Examples:I Unitary evolution A∗ ⊗ A u∗⊗u A∗ ⊗ A for unitary A u AI Preparation of mixed state: completely positive map I A∗ ⊗ AI Measurement: completely positive map A∗ ⊗ A Cn in FHilb is

precisely positive-operator valued measureI Completely positive maps G H in Rel respect inverses:

g ∼ h implies g−1 ∼ h−1 and iddom(g) ∼ iddom(h)

70 / 76

Page 168: Categorical quantum mechanics

The CP conditionLemma: Assume f ⊗ idE ≥ 0 =⇒ f ≥ 0.If A f B is completely positive, then CP condition holds

B

A B

A

f = X

A B

A B

√f

√f

Proof: Let E = A⊗ A∗ be pair of pants, define I m A⊗ E , as is(f ⊗ idE) ◦m.Theorem (Stinespring): If A f B satisfies CP condition,then it is completely positive.

71 / 76

Page 169: Categorical quantum mechanics

The CP conditionLemma: Assume f ⊗ idE ≥ 0 =⇒ f ≥ 0.If A f B is completely positive, then CP condition holds

B

A B

A

f = X

A B

A B

√f

√f

Proof: Let E = A⊗ A∗ be pair of pants, define I m A⊗ E as:

AA A

, as is (f ⊗ idE) ◦m.Theorem (Stinespring): If A f B satisfies CP condition,then it is completely positive.

71 / 76

Page 170: Categorical quantum mechanics

The CP conditionLemma: Assume f ⊗ idE ≥ 0 =⇒ f ≥ 0.If A f B is completely positive, then CP condition holds

B

A B

A

f = X

A B

A B

√f

√f

Proof: Let E = A⊗ A∗ be pair of pants, define I m A⊗ EThen m is a mixed state

A⊗ E

A⊗ E

m =

A A

A A

A

A

=

A A

A A

A

A

=

AA

AA A

A

, as is (f ⊗ idE) ◦m.Theorem (Stinespring): If A f B satisfies CP condition,then it is completely positive.

71 / 76

Page 171: Categorical quantum mechanics

The CP conditionLemma: Assume f ⊗ idE ≥ 0 =⇒ f ≥ 0.If A f B is completely positive, then CP condition holds

B

A B

A

f = X

A B

A B

√f

√f

Proof: Let E = A⊗ A∗ be pair of pants, define I m A⊗ EThen m is a mixed state, as is (f ⊗ idE) ◦m.

B

A

A

A

A

B

f= Y

AB A

AB A

h

h

Theorem (Stinespring): If A f B satisfies CP condition,then it is completely positive.

71 / 76

Page 172: Categorical quantum mechanics

The CP conditionLemma: Assume f ⊗ idE ≥ 0 =⇒ f ≥ 0.If A f B is completely positive, then CP condition holds

B

A B

A

f = X

A B

A B

√f

√f

Proof: Let E = A⊗ A∗ be pair of pants, define I m A⊗ EThen m is a mixed state, as is (f ⊗ idE) ◦m. Hence:

B

A B

A

A

A

f =

B

B A

AA

A

f = Y

B A

B

A

A A

h

h

Theorem (Stinespring): If A f B satisfies CP condition,then it is completely positive.

71 / 76

Page 173: Categorical quantum mechanics

The CP conditionLemma: Assume f ⊗ idE ≥ 0 =⇒ f ≥ 0.If A f B is completely positive, then CP condition holds

B

A B

A

f = X

A B

A B

√f

√f

Proof: Let E = A⊗ A∗ be pair of pants, define I m A⊗ E , as is(f ⊗ idE) ◦m.

Theorem (Stinespring): If A f B satisfies CP condition,then it is completely positive.

71 / 76

Page 174: Categorical quantum mechanics

The CP constructionTheorem: If C is a monoidal dagger category,there is a new category CP[C]:

I objects in CP[C] are special dagger Frobenius structures in CI morphisms in CP[C] are morphisms in C satisfying CP condition

I tensor product in CP[C] is as in CI dagger in CP[C] is as in CI dual in CP[C] is (A, , )∗ := (A, , ) with : I A∗ ⊗ A

C

A C

A

g ◦ f =

A

CA

C

f

g

= X Y

A

A

C

C

√f

√f

√g

√g

72 / 76

Page 175: Categorical quantum mechanics

The CP constructionTheorem: If C is a braided monoidal dagger category,there is a new monoidal category CP[C]:

I objects in CP[C] are special dagger Frobenius structures in CI morphisms in CP[C] are morphisms in C satisfying CP conditionI tensor product in CP[C] is as in C

I dagger in CP[C] is as in CI dual in CP[C] is (A, , )∗ := (A, , ) with : I A∗ ⊗ A

A

A

B

B C D

DC

f g =

DA

A D

B

B C

C

√f

√f

√g

√g

72 / 76

Page 176: Categorical quantum mechanics

The CP constructionTheorem: If C is a symmetric monoidal dagger category,there is a new symmetric monoidal category CP[C]:

I objects in CP[C] are special dagger Frobenius structures in CI morphisms in CP[C] are morphisms in C satisfying CP conditionI tensor product in CP[C] is as in C

I dagger in CP[C] is as in CI dual in CP[C] is (A, , )∗ := (A, , ) with : I A∗ ⊗ A

A B

B AA B

B A

=

A B B A

A B B A

72 / 76

Page 177: Categorical quantum mechanics

The CP constructionTheorem: If C is a symmetric monoidal dagger category,there is a new symmetric monoidal dagger category CP[C]:

I objects in CP[C] are special dagger Frobenius structures in CI morphisms in CP[C] are morphisms in C satisfying CP conditionI tensor product in CP[C] is as in CI dagger in CP[C] is as in C

I dual in CP[C] is (A, , )∗ := (A, , ) with : I A∗ ⊗ A

B

AB

A

f =

A

A

B

B

f =

A

A

B

B

f =

B

AB

A

f =

B A

B A

√f

√f

(duality between Schrodinger and Heisenberg pictures)72 / 76

Page 178: Categorical quantum mechanics

The CP constructionTheorem: If C is a symmetric monoidal dagger category,there is a new compact dagger category CP[C]:

I objects in CP[C] are special dagger Frobenius structures in CI morphisms in CP[C] are morphisms in C satisfying CP conditionI tensor product in CP[C] is as in CI dagger in CP[C] is as in CI dual in CP[C] is (A, , )∗ := (A, , ) with : I A∗ ⊗ A

= = =

72 / 76

Page 179: Categorical quantum mechanics

The CP constructionTheorem: If C is a symmetric monoidal dagger category,there is a new dagger category CP[C]:

I objects in CP[C] are special dagger Frobenius structures in CI morphisms in CP[C] are morphisms in C satisfying CP conditionI tensor product in CP[C] is as in CI dagger in CP[C] is as in CI dual in CP[C] is (A, , )∗ := (A, , ) with : I A∗ ⊗ A

Examples:I CP[FHilb] = fin-dim C*-algebras and completely positive mapsI CP[Rel] = groupoids and inverse-respecting relations

72 / 76

Page 180: Categorical quantum mechanics

Classical and quantum structures

Consider full subcategory CPc[C] of classical structures.Lemma: CPc[FHilb] ' stochastic matrices (rows sum to 1)

Consider full subcategory CPq[C] of pairs of pants.(Normalizable Frobenius structures are isomorphic to special ones.)Example: CPq[FHilb] ' Hilbert spaces and completely positive maps

Proposition: Assuming all objects have positive dimensionThere is functor P : C CPq[C] given by P(A) = (A∗ ⊗ A, , )and P(f) = f∗ ⊗ f that preserves tensor products and daggers

Lemma (“P is faithful up to phase”):I if P(f) = P(g), then s • f = t • g and s† • s = t† • t for some I s,t II if s • f = t • g and s† • s = idI = t† • t, then P(f) = P(g)

73 / 76

Page 181: Categorical quantum mechanics

Classical and quantum structures

Consider full subcategory CPc[C] of classical structures.Lemma: CPc[FHilb] ' stochastic matrices (rows sum to 1)

Consider full subcategory CPq[C] of pairs of pants.(Normalizable Frobenius structures are isomorphic to special ones.)

Example: CPq[FHilb] ' Hilbert spaces and completely positive maps

Proposition: Assuming all objects have positive dimensionThere is functor P : C CPq[C] given by P(A) = (A∗ ⊗ A, , )and P(f) = f∗ ⊗ f that preserves tensor products and daggers

Lemma (“P is faithful up to phase”):I if P(f) = P(g), then s • f = t • g and s† • s = t† • t for some I s,t II if s • f = t • g and s† • s = idI = t† • t, then P(f) = P(g)

73 / 76

Page 182: Categorical quantum mechanics

Classical and quantum structures

Consider full subcategory CPc[C] of classical structures.Lemma: CPc[FHilb] ' stochastic matrices (rows sum to 1)

Consider full subcategory CPq[C] of pairs of pants.(Normalizable Frobenius structures are isomorphic to special ones.)Example: CPq[FHilb] ' Hilbert spaces and completely positive maps

Proposition: Assuming all objects have positive dimensionThere is functor P : C CPq[C] given by P(A) = (A∗ ⊗ A, , )and P(f) = f∗ ⊗ f that preserves tensor products and daggers

Lemma (“P is faithful up to phase”):I if P(f) = P(g), then s • f = t • g and s† • s = t† • t for some I s,t II if s • f = t • g and s† • s = idI = t† • t, then P(f) = P(g)

73 / 76

Page 183: Categorical quantum mechanics

Classical and quantum structures

Consider full subcategory CPc[C] of classical structures.Lemma: CPc[FHilb] ' stochastic matrices (rows sum to 1)

Consider full subcategory CPq[C] of pairs of pants.(Normalizable Frobenius structures are isomorphic to special ones.)Example: CPq[FHilb] ' Hilbert spaces and completely positive maps

Proposition: Assuming all objects have positive dimensionThere is functor P : C CPq[C] given by P(A) = (A∗ ⊗ A, , )and P(f) = f∗ ⊗ f that preserves tensor products and daggers

Lemma (“P is faithful up to phase”):I if P(f) = P(g), then s • f = t • g and s† • s = t† • t for some I s,t II if s • f = t • g and s† • s = idI = t† • t, then P(f) = P(g)

73 / 76

Page 184: Categorical quantum mechanics

Classical and quantum structures

Consider full subcategory CPc[C] of classical structures.Lemma: CPc[FHilb] ' stochastic matrices (rows sum to 1)

Consider full subcategory CPq[C] of pairs of pants.(Normalizable Frobenius structures are isomorphic to special ones.)Example: CPq[FHilb] ' Hilbert spaces and completely positive maps

Proposition: Assuming all objects have positive dimensionThere is functor P : C CPq[C] given by P(A) = (A∗ ⊗ A, , )and P(f) = f∗ ⊗ f that preserves tensor products and daggers

Lemma (“P is faithful up to phase”):I if P(f) = P(g), then s • f = t • g and s† • s = t† • t for some I s,t II if s • f = t • g and s† • s = idI = t† • t, then P(f) = P(g)

73 / 76

Page 185: Categorical quantum mechanics

EnvironmentAn environment structure for compact dagger category Cpure is

I a compact dagger category C of which Cpure is subcategory

I for each object A in Cpure, a discarding map : A I in C

Example: Cpure has environment structure in CPq[Cpure].

74 / 76

Page 186: Categorical quantum mechanics

EnvironmentAn environment structure for compact dagger category Cpure is

I a compact dagger category C of which Cpure is subcategoryI for each object A in Cpure, a discarding map : A I in C with:

I = = =

If

f

=g

g

in Cpure ⇐⇒ f = g in C

I every map in C is of the form f for f in Cpure

(Hence C and Cpure must have same objects)

Example: Cpure has environment structure in CPq[Cpure].

74 / 76

Page 187: Categorical quantum mechanics

EnvironmentAn environment structure with purification for category Cpure is

I a compact dagger category C of which Cpure is subcategoryI for each object A in Cpure, a discarding map : A I in C with:

I = = =

If

f

=g

g

in Cpure ⇐⇒ f = g in C

I every map in C is of the form f for f in Cpure

(Hence C and Cpure must have same objects)

Example: Cpure has environment structure in CPq[Cpure].

74 / 76

Page 188: Categorical quantum mechanics

EnvironmentAn environment structure with purification for category Cpure is

I a compact dagger category C of which Cpure is subcategory

I for each object A in Cpure, a discarding map : A I in C with...

Example: Cpure has environment structure in CPq[Cpure].

74 / 76

Page 189: Categorical quantum mechanics

EnvironmentAn environment structure with purification for category Cpure is

I a compact dagger category C of which Cpure is subcategory

I for each object A in Cpure, a discarding map : A I in C with...

Example: Cpure has environment structure in CPq[Cpure].

Theorem: If Cpure has environment structure with purification,there is isomorphism F : CPq[Cpure] C with F(A) = A on objects,F(f ⊗ g) = F(f)⊗ F(g) on morphisms, that preserves daggers

74 / 76

Page 190: Categorical quantum mechanics

DecoherenceA decoherence structure for Cpure is

I an environment structure C with discarding maps : A I in C

I for each special dagger Frobenius structure (A, , ) in Cpure,an object A in C and a measuring map : A A in C, with:

75 / 76

Page 191: Categorical quantum mechanics

DecoherenceA decoherence structure for Cpure is

I an environment structure C with discarding maps : A I in CI for each special dagger Frobenius structure (A, , ) in Cpure,

an object A in C and a measuring map : A A in C, with:

II

I

=A⊗ B

(A⊗ B)

=A

A

A

A

I A

A

A

=

A

A

A

A

A

=

A

A

I every map in C is of the form

A

B

f for f in Cpure

(Hence each object in C is of form A )

75 / 76

Page 192: Categorical quantum mechanics

DecoherenceA decoherence structure with purification for Cpure is

I an environment structure C with discarding maps : A I in CI for each special dagger Frobenius structure (A, , ) in Cpure,

an object A in C and a measuring map : A A in C, with:

II

I

=A⊗ B

(A⊗ B)

=A

A

A

A

I A

A

A

=

A

A

A

A

A

=

A

A

I every map in C is of the form

A

B

f for f in Cpure

(Hence each object in C is of form A )75 / 76

Page 193: Categorical quantum mechanics

DecoherenceA decoherence structure with purification for Cpure is

I an environment structure C with discarding maps : A I in C

I for each special dagger Frobenius structure (A, , ) in Cpure,an object A in C and a measuring map : A A in C, with ...

Example: Cpure has decoherence structure in CP[Cpure] with

(A∗ ⊗ A, , ) = (A, , ) and measuring map

75 / 76

Page 194: Categorical quantum mechanics

DecoherenceA decoherence structure with purification for Cpure is

I an environment structure C with discarding maps : A I in C

I for each special dagger Frobenius structure (A, , ) in Cpure,an object A in C and a measuring map : A A in C, with ...

Example: Cpure has decoherence structure in CP[Cpure] with

(A∗ ⊗ A, , ) = (A, , ) and measuring map

Theorem: If Cpure has decoherence structure with purification,there is isomorphism F : CP[Cpure] C that preserves daggersand satisfies F(f ⊗ g) = F(f)⊗ F(g)

75 / 76

Page 195: Categorical quantum mechanics

TeleportationTheorem: If (A, , ) and (A, , ) complementary dagger Frobeniusin braided monoidal dagger category C, and commutative,then in CP[C]:

A

input

output

preparation

measurement

correction

classical communication

A

=

A

A

Alice

Bob

I mixed statesI arbitrary systemsI ‘classical communication’ only in sense of ‘copied’ by Frobenius

structures, one of which noncommutativeI ‘two bits’ of classical communication: two channels used, maybe

more than two copyable statesI tensor product and composition only

76 / 76

Page 196: Categorical quantum mechanics

TeleportationTheorem: If (A, , ) and (A, , ) complementary dagger Frobeniusin braided monoidal dagger category C, and commutative,then in CP[C]:

I mixed statesI arbitrary systemsI ‘classical communication’ only in sense of ‘copied’ by Frobenius

structures, one of which noncommutativeI ‘two bits’ of classical communication: two channels used, maybe

more than two copyable statesI tensor product and composition only

76 / 76

Page 197: Categorical quantum mechanics

Summary

I Monoidal categoriesscalars, sound and complete graphical calculus

I Dual objectsentanglement, teleportation, encrypted communication

I Monoidsno cloning

I Frobenius structuresnormal form, classical structures, observables, classification

I ComplementarityDeutsch-Josza

I Completely positive mapsmixed states, axiomatization, teleportation

77 / 76