Top Banner
Selling Category Theory to the Masses Bob Coecke – Quantum Group - Computer Science - Oxford University = f f = f f f ALICE BOB = ALICE BOB f = not like Bob Alice does Alice not like not Bob Samson Abramsky & BC (2004) A categorical semantics for quantum protocols. LiCS’04. arXiv:quant- ph/0402130 BC & Eric O. Paquette (2011) Categories for the practicing physicist. In: New Structures for Physics. arXiv:0905.3010 BC (2010) Quantum picturalism. Contemporary Physics 51, 59–83. arXiv:0908.1787 BC & Ross Duncan (2011) Interacting quantum observables. New Journal of Physics 13, 043016. arXiv:0906. 4725 BC, Mehrnoosh Sadrzadeh & Stephen Clark (2011) Mathematical foundations for a compositional dis- tributional model of meaning. Linguistic Analysis - Lambek Festschrift. arXiv:1003.4394 Lucas Dixon, R. Dun- can, Aleks Kissinger, Alex Merry & Matvey Soloviev. sites.google.com/site/quantomatic /
109

Selling Category Theory to the Masses - LMPAsic/wordpress/wp-content/... · 2013-03-09 · Selling Category Theory to the Masses Bob Coecke – Quantum Group - Computer Science -

Aug 10, 2020

Download

Documents

dariahiddleston
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Selling Category Theory to the Masses - LMPAsic/wordpress/wp-content/... · 2013-03-09 · Selling Category Theory to the Masses Bob Coecke – Quantum Group - Computer Science -

Selling Category Theory to the MassesBob Coecke – Quantum Group - Computer Science - Oxford University

=

f

f =

f f

f

ALICE

BOB

=

ALICE

BOB

f

=not

likeBobAlice

does

Alice not like

not

Bob

Samson Abramsky & BC (2004) A categorical semantics for quantum protocols. LiCS’04. arXiv:quant-ph/0402130 BC & Eric O. Paquette (2011) Categories for the practicing physicist. In: New Structures forPhysics. arXiv:0905.3010 BC (2010) Quantum picturalism. Contemporary Physics 51, 59–83. arXiv:0908.1787BC & Ross Duncan (2011) Interacting quantum observables. New Journal of Physics 13, 043016. arXiv:0906.4725 BC, Mehrnoosh Sadrzadeh & Stephen Clark (2011) Mathematical foundations for a compositional dis-tributional model of meaning. Linguistic Analysis - Lambek Festschrift. arXiv:1003.4394 Lucas Dixon, R. Dun-can, Aleks Kissinger, Alex Merry & Matvey Soloviev. sites.google.com/site/quantomatic/

Page 2: Selling Category Theory to the Masses - LMPAsic/wordpress/wp-content/... · 2013-03-09 · Selling Category Theory to the Masses Bob Coecke – Quantum Group - Computer Science -

. . . a tale of food, spiders and GoogleBob Coecke – Quantum Group - Computer Science - Oxford University

=

f

f =

f f

f

ALICE

BOB

=

ALICE

BOB

f

=not

likeBobAlice

does

Alice not like

not

Bob

Samson Abramsky & BC (2004) A categorical semantics for quantum protocols. LiCS’04. arXiv:quant-ph/0402130 BC & Eric O. Paquette (2011) Categories for the practicing physicist. In: New Structures forPhysics. arXiv:0905.3010 BC (2010) Quantum picturalism. Contemporary Physics 51, 59–83. arXiv:0908.1787BC & Ross Duncan (2011) Interacting quantum observables. New Journal of Physics 13, 043016. arXiv:0906.4725 BC, Mehrnoosh Sadrzadeh & Stephen Clark (2011) Mathematical foundations for a compositional dis-tributional model of meaning. Linguistic Analysis - Lambek Festschrift. arXiv:1003.4394 Lucas Dixon, R. Dun-can, Aleks Kissinger, Alex Merry & Matvey Soloviev. sites.google.com/site/quantomatic/

Page 3: Selling Category Theory to the Masses - LMPAsic/wordpress/wp-content/... · 2013-03-09 · Selling Category Theory to the Masses Bob Coecke – Quantum Group - Computer Science -

Task: selling Category Theory to the masses!

Page 4: Selling Category Theory to the Masses - LMPAsic/wordpress/wp-content/... · 2013-03-09 · Selling Category Theory to the Masses Bob Coecke – Quantum Group - Computer Science -

Task: selling Category Theory to the masses!

. . . is it just tedious abstract nonsense?

Page 5: Selling Category Theory to the Masses - LMPAsic/wordpress/wp-content/... · 2013-03-09 · Selling Category Theory to the Masses Bob Coecke – Quantum Group - Computer Science -

Task: selling Category Theory to the masses!

. . . is it just tedious abstract nonsense?

No! Categories are everywhere!

Page 6: Selling Category Theory to the Masses - LMPAsic/wordpress/wp-content/... · 2013-03-09 · Selling Category Theory to the Masses Bob Coecke – Quantum Group - Computer Science -

1. Let A be a raw potato.

Page 7: Selling Category Theory to the Masses - LMPAsic/wordpress/wp-content/... · 2013-03-09 · Selling Category Theory to the Masses Bob Coecke – Quantum Group - Computer Science -

1. Let A be a raw potato.A admits many states e.g. dirty, clean, skinned, ...

Page 8: Selling Category Theory to the Masses - LMPAsic/wordpress/wp-content/... · 2013-03-09 · Selling Category Theory to the Masses Bob Coecke – Quantum Group - Computer Science -

1. Let A be a raw potato.A admits many states e.g. dirty, clean, skinned, ...

2. We want to process A into cooked potato B.B admits many states e.g. boiled, fried, deep fried,baked with skin, baked without skin, ...

Page 9: Selling Category Theory to the Masses - LMPAsic/wordpress/wp-content/... · 2013-03-09 · Selling Category Theory to the Masses Bob Coecke – Quantum Group - Computer Science -

1. Let A be a raw potato.A admits many states e.g. dirty, clean, skinned, ...

2. We want to process A into cooked potato B.B admits many states e.g. boiled, fried, deep fried,baked with skin, baked without skin, ... Let

Af

-B Af ′

-B Af ′′

-B

be boiling, frying, baking.

Page 10: Selling Category Theory to the Masses - LMPAsic/wordpress/wp-content/... · 2013-03-09 · Selling Category Theory to the Masses Bob Coecke – Quantum Group - Computer Science -

1. Let A be a raw potato.A admits many states e.g. dirty, clean, skinned, ...

2. We want to process A into cooked potato B.B admits many states e.g. boiled, fried, deep fried,baked with skin, baked without skin, ... Let

Af

-B Af ′

-B Af ′′

-B

be boiling, frying, baking. States are processes

I := unspecifiedψ

-A.

Page 11: Selling Category Theory to the Masses - LMPAsic/wordpress/wp-content/... · 2013-03-09 · Selling Category Theory to the Masses Bob Coecke – Quantum Group - Computer Science -

3. LetA

g ◦ f-C

be the composite process of first boiling Af

-B andthen salting B

g-C.

Page 12: Selling Category Theory to the Masses - LMPAsic/wordpress/wp-content/... · 2013-03-09 · Selling Category Theory to the Masses Bob Coecke – Quantum Group - Computer Science -

3. LetA

g ◦ f-C

be the composite process of first boiling Af

-B andthen salting B

g-C. Let

X1X -X

be doing nothing. We have 1Y ◦ ξ = ξ ◦ 1X = ξ.

Page 13: Selling Category Theory to the Masses - LMPAsic/wordpress/wp-content/... · 2013-03-09 · Selling Category Theory to the Masses Bob Coecke – Quantum Group - Computer Science -

4. Let A⊗D be potato A and carrot D and let

Page 14: Selling Category Theory to the Masses - LMPAsic/wordpress/wp-content/... · 2013-03-09 · Selling Category Theory to the Masses Bob Coecke – Quantum Group - Computer Science -

4. Let A⊗D be potato A and carrot D and let

A⊗D f⊗h-B ⊗ E

be boiling potato while frying carrot.

Page 15: Selling Category Theory to the Masses - LMPAsic/wordpress/wp-content/... · 2013-03-09 · Selling Category Theory to the Masses Bob Coecke – Quantum Group - Computer Science -

4. Let A⊗D be potato A and carrot D and let

A⊗D f⊗h-B ⊗ E

be boiling potato while frying carrot. Let

C ⊗ F x-M

be mashing spice-cook-potato and spice-cook-carrot.

Page 16: Selling Category Theory to the Masses - LMPAsic/wordpress/wp-content/... · 2013-03-09 · Selling Category Theory to the Masses Bob Coecke – Quantum Group - Computer Science -

5. Total process:

A⊗D f⊗h-B⊗E g⊗k

-C⊗F x-M=A⊗D x◦(g⊗k)◦(f⊗h)

-M.

Page 17: Selling Category Theory to the Masses - LMPAsic/wordpress/wp-content/... · 2013-03-09 · Selling Category Theory to the Masses Bob Coecke – Quantum Group - Computer Science -

5. Total process:

A⊗D f⊗h-B⊗E g⊗k

-C⊗F x-M=A⊗D x◦(g⊗k)◦(f⊗h)

-M.

6. Recipe = composition structure on processes.

Page 18: Selling Category Theory to the Masses - LMPAsic/wordpress/wp-content/... · 2013-03-09 · Selling Category Theory to the Masses Bob Coecke – Quantum Group - Computer Science -

5. Total process:

A⊗D f⊗h-B⊗E g⊗k

-C⊗F x-M=A⊗D x◦(g⊗k)◦(f⊗h)

-M.

6. Recipe = composition structure on processes.

7. Laws governing recipes:

(1B ⊗ g) ◦ (f ⊗ 1C) = (f ⊗ 1D) ◦ (1A ⊗ g)

Page 19: Selling Category Theory to the Masses - LMPAsic/wordpress/wp-content/... · 2013-03-09 · Selling Category Theory to the Masses Bob Coecke – Quantum Group - Computer Science -

5. Total process:

A⊗D f⊗h-B⊗E g⊗k

-C⊗F x-M=A⊗D x◦(g⊗k)◦(f⊗h)

-M.

6. Recipe = composition structure on processes.

7. Laws governing recipes:

(1B ⊗ g) ◦ (f ⊗ 1C) = (f ⊗ 1D) ◦ (1A ⊗ g)i.e.

boil potato then fry carrot = fry carrot then boil potato

Page 20: Selling Category Theory to the Masses - LMPAsic/wordpress/wp-content/... · 2013-03-09 · Selling Category Theory to the Masses Bob Coecke – Quantum Group - Computer Science -

5. Total process:

A⊗D f⊗h-B⊗E g⊗k

-C⊗F x-M=A⊗D x◦(g⊗k)◦(f⊗h)

-M.

6. Recipe = composition structure on processes.

7. Laws governing recipes:

(1B ⊗ g) ◦ (f ⊗ 1C) = (f ⊗ 1D) ◦ (1A ⊗ g)i.e.

boil potato then fry carrot = fry carrot then boil potato

⇒ Symmetric Monoidal Category

Page 21: Selling Category Theory to the Masses - LMPAsic/wordpress/wp-content/... · 2013-03-09 · Selling Category Theory to the Masses Bob Coecke – Quantum Group - Computer Science -

— Why does a tiger have stripes and a lion doesn’t? —

Page 22: Selling Category Theory to the Masses - LMPAsic/wordpress/wp-content/... · 2013-03-09 · Selling Category Theory to the Masses Bob Coecke – Quantum Group - Computer Science -

— Why does a tiger have stripes and a lion doesn’t? —

prey ⊗ predator ⊗ environment

dead prey ⊗ eating predatorhunt

?

Page 23: Selling Category Theory to the Masses - LMPAsic/wordpress/wp-content/... · 2013-03-09 · Selling Category Theory to the Masses Bob Coecke – Quantum Group - Computer Science -

BOXES AND WIRES

Roger Penrose (1971) Applications of negative dimensional tensors. In: Com-binatorial Mathematics and its Applications, 221–244. Academic Press.

Andre Joyal and Ross Street (1991) The Geometry of tensor calculus I. Ad-vances in Mathematics 88, 55–112.

Bob Coecke and Eric Oliver Paquette (2011) Categories for the practicingphysicist. In: New Structures for Physics, B. Coecke (ed), Springer-Verlag.arXiv:0905.3010

Page 24: Selling Category Theory to the Masses - LMPAsic/wordpress/wp-content/... · 2013-03-09 · Selling Category Theory to the Masses Bob Coecke – Quantum Group - Computer Science -

— wire and box language —

foutput wire(s)

input wire(s)Box =:

Page 25: Selling Category Theory to the Masses - LMPAsic/wordpress/wp-content/... · 2013-03-09 · Selling Category Theory to the Masses Bob Coecke – Quantum Group - Computer Science -

— wire and box language —

foutput wire(s)

input wire(s)Box =:

Interpretation: wire := system ; box := process

Page 26: Selling Category Theory to the Masses - LMPAsic/wordpress/wp-content/... · 2013-03-09 · Selling Category Theory to the Masses Bob Coecke – Quantum Group - Computer Science -

— wire and box language —

foutput wire(s)

input wire(s)Box =:

Interpretation: wire := system ; box := process

one system: n subsystems: no system:

︸︷︷︸1

. . .︸ ︷︷ ︸

n︸︷︷︸

0

Page 27: Selling Category Theory to the Masses - LMPAsic/wordpress/wp-content/... · 2013-03-09 · Selling Category Theory to the Masses Bob Coecke – Quantum Group - Computer Science -

— wire and box games —

Page 28: Selling Category Theory to the Masses - LMPAsic/wordpress/wp-content/... · 2013-03-09 · Selling Category Theory to the Masses Bob Coecke – Quantum Group - Computer Science -

— wire and box games —

sequential or causal or connected composition:

g ◦ f ≡g

f

Page 29: Selling Category Theory to the Masses - LMPAsic/wordpress/wp-content/... · 2013-03-09 · Selling Category Theory to the Masses Bob Coecke – Quantum Group - Computer Science -

— wire and box games —

sequential or causal or connected composition:

g ◦ f ≡g

f

parallel or acausal or disconnected composition:

f ⊗ g ≡ f fg

Page 30: Selling Category Theory to the Masses - LMPAsic/wordpress/wp-content/... · 2013-03-09 · Selling Category Theory to the Masses Bob Coecke – Quantum Group - Computer Science -

— merely a new notation? —

Page 31: Selling Category Theory to the Masses - LMPAsic/wordpress/wp-content/... · 2013-03-09 · Selling Category Theory to the Masses Bob Coecke – Quantum Group - Computer Science -

— merely a new notation? —

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

=f h

g k

f h

g k

Page 32: Selling Category Theory to the Masses - LMPAsic/wordpress/wp-content/... · 2013-03-09 · Selling Category Theory to the Masses Bob Coecke – Quantum Group - Computer Science -

— merely a new notation? —

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

=f h

g k

f h

g k

peel potato and then fry it,while,

clean carrot and then boil it=

peel potato while clean carrot,and then,

fry potato while boil carrot

Page 33: Selling Category Theory to the Masses - LMPAsic/wordpress/wp-content/... · 2013-03-09 · Selling Category Theory to the Masses Bob Coecke – Quantum Group - Computer Science -

MINIMAL QUANTUM PROCESS LANGUAGE

Samson Abramsky & BC (2004) A categorical semantics for quantum proto-cols. In: IEEE-LiCS’04. quant-ph/0402130

BC (2005) Kindergarten quantum mechanics. quant-ph/0510032

BC (2010) Quantum picturalism. Contemporary Physics. arXiv:0908.1787

Page 34: Selling Category Theory to the Masses - LMPAsic/wordpress/wp-content/... · 2013-03-09 · Selling Category Theory to the Masses Bob Coecke – Quantum Group - Computer Science -

— genesis —

[von Neumann 1932] Formalized quantum mechanicsin “Mathematische Grundlagen der Quantenmechanik”

Page 35: Selling Category Theory to the Masses - LMPAsic/wordpress/wp-content/... · 2013-03-09 · Selling Category Theory to the Masses Bob Coecke – Quantum Group - Computer Science -

— genesis —

[von Neumann 1932] Formalized quantum mechanicsin “Mathematische Grundlagen der Quantenmechanik”

[von Neumann to Birkhoff 1935] “I would like tomake a confession which may seem immoral: I do notbelieve absolutely in Hilbert space no more.” (sic)

Page 36: Selling Category Theory to the Masses - LMPAsic/wordpress/wp-content/... · 2013-03-09 · Selling Category Theory to the Masses Bob Coecke – Quantum Group - Computer Science -

— genesis —

[von Neumann 1932] Formalized quantum mechanicsin “Mathematische Grundlagen der Quantenmechanik”

[von Neumann to Birkhoff 1935] “I would like tomake a confession which may seem immoral: I do notbelieve absolutely in Hilbert space no more.” (sic)

[Birkhoff and von Neumann 1936] The Logic ofQuantum Mechanics in Annals of Mathematics.

Page 37: Selling Category Theory to the Masses - LMPAsic/wordpress/wp-content/... · 2013-03-09 · Selling Category Theory to the Masses Bob Coecke – Quantum Group - Computer Science -

— genesis —

[von Neumann 1932] Formalized quantum mechanicsin “Mathematische Grundlagen der Quantenmechanik”

[von Neumann to Birkhoff 1935] “I would like tomake a confession which may seem immoral: I do notbelieve absolutely in Hilbert space no more.” (sic)

[Birkhoff and von Neumann 1936] The Logic ofQuantum Mechanics in Annals of Mathematics.

[1936 – 2000] many followed them, ... and FAILED.

Page 38: Selling Category Theory to the Masses - LMPAsic/wordpress/wp-content/... · 2013-03-09 · Selling Category Theory to the Masses Bob Coecke – Quantum Group - Computer Science -

— genesis —

[von Neumann 1932] Formalized quantum mechanicsin “Mathematische Grundlagen der Quantenmechanik”

[von Neumann to Birkhoff 1935] “I would like tomake a confession which may seem immoral: I do notbelieve absolutely in Hilbert space no more.” (sic)

[Birkhoff and von Neumann 1936] The Logic ofQuantum Mechanics in Annals of Mathematics.

[1936 – 2000] many followed them, ... and FAILED.

Page 39: Selling Category Theory to the Masses - LMPAsic/wordpress/wp-content/... · 2013-03-09 · Selling Category Theory to the Masses Bob Coecke – Quantum Group - Computer Science -

— the mathematics of it —

Page 40: Selling Category Theory to the Masses - LMPAsic/wordpress/wp-content/... · 2013-03-09 · Selling Category Theory to the Masses Bob Coecke – Quantum Group - Computer Science -

— the mathematics of it —

Hilber space stuff: continuum, field structure of com-plex numbers, vector space over it, inner-product, etc.

Page 41: Selling Category Theory to the Masses - LMPAsic/wordpress/wp-content/... · 2013-03-09 · Selling Category Theory to the Masses Bob Coecke – Quantum Group - Computer Science -

— the mathematics of it —

Hilber space stuff: continuum, field structure of com-plex numbers, vector space over it, inner-product, etc.

WHY?

Page 42: Selling Category Theory to the Masses - LMPAsic/wordpress/wp-content/... · 2013-03-09 · Selling Category Theory to the Masses Bob Coecke – Quantum Group - Computer Science -

— the mathematics of it —

Hilber space stuff: continuum, field structure of com-plex numbers, vector space over it, inner-product, etc.

WHY?

von Neumann: only used it since it was ‘available’.

Page 43: Selling Category Theory to the Masses - LMPAsic/wordpress/wp-content/... · 2013-03-09 · Selling Category Theory to the Masses Bob Coecke – Quantum Group - Computer Science -

— the physics of it —

Page 44: Selling Category Theory to the Masses - LMPAsic/wordpress/wp-content/... · 2013-03-09 · Selling Category Theory to the Masses Bob Coecke – Quantum Group - Computer Science -

— the physics of it —

von Neumann crafted Birkhoff-von Neumann Quan-tum ‘Logic’ to capture the concept of superposition.

Page 45: Selling Category Theory to the Masses - LMPAsic/wordpress/wp-content/... · 2013-03-09 · Selling Category Theory to the Masses Bob Coecke – Quantum Group - Computer Science -

— the physics of it —

von Neumann crafted Birkhoff-von Neumann Quan-tum ‘Logic’ to capture the concept of superposition.

Schrodinger (1935): the stuff which is the true soul ofquantum theory is how quantum systems compose.

Page 46: Selling Category Theory to the Masses - LMPAsic/wordpress/wp-content/... · 2013-03-09 · Selling Category Theory to the Masses Bob Coecke – Quantum Group - Computer Science -

— the physics of it —

von Neumann crafted Birkhoff-von Neumann Quan-tum ‘Logic’ to capture the concept of superposition.

Schrodinger (1935): the stuff which is the true soul ofquantum theory is how quantum systems compose.

Quantum Computer Scientists: Schrodinger is right!

Page 47: Selling Category Theory to the Masses - LMPAsic/wordpress/wp-content/... · 2013-03-09 · Selling Category Theory to the Masses Bob Coecke – Quantum Group - Computer Science -

— the game plan —

Page 48: Selling Category Theory to the Masses - LMPAsic/wordpress/wp-content/... · 2013-03-09 · Selling Category Theory to the Masses Bob Coecke – Quantum Group - Computer Science -

— the game plan —

Task 0. Solve:tensor product structure

the other stuff= ???

Page 49: Selling Category Theory to the Masses - LMPAsic/wordpress/wp-content/... · 2013-03-09 · Selling Category Theory to the Masses Bob Coecke – Quantum Group - Computer Science -

— the game plan —

Task 0. Solve:tensor product structure

the other stuff= ???

i.e. axiomatize “⊗” without reference to spaces.

Page 50: Selling Category Theory to the Masses - LMPAsic/wordpress/wp-content/... · 2013-03-09 · Selling Category Theory to the Masses Bob Coecke – Quantum Group - Computer Science -

— the game plan —

Task 0. Solve:tensor product structure

the other stuff= ???

i.e. axiomatize “⊗” without reference to spaces.

Task 1. Investigate which assumptions (i.e. which struc-ture) on ⊗ is needed to deduce physical phenomena.

Page 51: Selling Category Theory to the Masses - LMPAsic/wordpress/wp-content/... · 2013-03-09 · Selling Category Theory to the Masses Bob Coecke – Quantum Group - Computer Science -

— the game plan —

Task 0. Solve:tensor product structure

the other stuff= ???

i.e. axiomatize “⊗” without reference to spaces.

Task 1. Investigate which assumptions (i.e. which struc-ture) on ⊗ is needed to deduce physical phenomena.

Task 2. Investigate wether such an “interaction struc-ture” appear elsewhere in “our classical reality”.

Page 52: Selling Category Theory to the Masses - LMPAsic/wordpress/wp-content/... · 2013-03-09 · Selling Category Theory to the Masses Bob Coecke – Quantum Group - Computer Science -

Outcome 1a: “Sheer ratio of results to assumptions”

Page 53: Selling Category Theory to the Masses - LMPAsic/wordpress/wp-content/... · 2013-03-09 · Selling Category Theory to the Masses Bob Coecke – Quantum Group - Computer Science -

Outcome 1a: “Sheer ratio of results to assumptions”confirms that we are probing something very essential.

Hans Halvorson (2010) Editorial to: Deep Beauty: Understanding the Quan-tum World through Mathematical Innovation, Cambridge University Press.

Page 54: Selling Category Theory to the Masses - LMPAsic/wordpress/wp-content/... · 2013-03-09 · Selling Category Theory to the Masses Bob Coecke – Quantum Group - Computer Science -

Outcome 1a: “Sheer ratio of results to assumptions”confirms that we are probing something very essential.

Hans Halvorson (2010) Editorial to: Deep Beauty: Understanding the Quan-tum World through Mathematical Innovation, Cambridge University Press.

Page 55: Selling Category Theory to the Masses - LMPAsic/wordpress/wp-content/... · 2013-03-09 · Selling Category Theory to the Masses Bob Coecke – Quantum Group - Computer Science -

Outcome 1a: “Sheer ratio of results to assumptions”confirms that we are probing something very essential.

Outcome 1b: Exposing this structure has already helpedto solve open problems elsewhere. (e.g. 2× ICALP’10)

E.g.: Ross Duncan & Simon Perdrix (2010) Rewriting measurement-basedquantum computations with generalised flow. ICALP’10.

Page 56: Selling Category Theory to the Masses - LMPAsic/wordpress/wp-content/... · 2013-03-09 · Selling Category Theory to the Masses Bob Coecke – Quantum Group - Computer Science -

Outcome 1a: “Sheer ratio of results to assumptions”confirms that we are probing something very essential.

Outcome 1b: Exposing this structure has already helpedto solve open problems elsewhere. (e.g. 2× ICALP’10)

Outcome 1c: Framework is a simple intuitive (butrigorous) diagrammatic language, meanwhile adoptedby others e.g. Lucien Hardy in arXiv:1005.5164:

“... we join the quantum picturalism revolution [1]”

[1] BC (2010) Quantum picturalism. Contemporary Physics 51, 59–83.

Page 57: Selling Category Theory to the Masses - LMPAsic/wordpress/wp-content/... · 2013-03-09 · Selling Category Theory to the Masses Bob Coecke – Quantum Group - Computer Science -

Outcome 1a: “Sheer ratio of results to assumptions”confirms that we are probing something very essential.

Outcome 1b: Exposing this structure has already helpedto solve open problems elsewhere. (e.g. 2× ICALP’10)

Outcome 1c: Framework is a simple intuitive (butrigorous) diagrammatic language, meanwhile adoptedby others e.g. Lucien Hardy in arXiv:1005.5164:

“... we join the quantum picturalism revolution [1]”

[1] BC (2010) Quantum picturalism. Contemporary Physics 51, 59–83.

Page 58: Selling Category Theory to the Masses - LMPAsic/wordpress/wp-content/... · 2013-03-09 · Selling Category Theory to the Masses Bob Coecke – Quantum Group - Computer Science -

Outcome 2a:Behaviors of matter (Abramsky-C; LiCS’04, quant-ph/0402130) :

=

f

f =

f f

f

ALICE

BOB

=

ALICE

BOB

f

Meaning in language (Clark-C-Sadrzadeh; Linguistic Analysis, arXiv:1003.4394) :

=

not

likeBobAlice

does

Alice not like

not

Bob

meaning vectors of words

pregroup grammar

Knowledge updating (C-Spekkens; Synthese, arXiv:1102.2368) :

conditionalindependence

=P(C|AB)

A A

=

A

=A

B

A

B=

B(BA) 1-

A

C 1- C 1-

C

P(AB|C) P(A|C) P(B|C) P(C|A) P(C|B)P(C|B) P(C|A)

Page 59: Selling Category Theory to the Masses - LMPAsic/wordpress/wp-content/... · 2013-03-09 · Selling Category Theory to the Masses Bob Coecke – Quantum Group - Computer Science -

BOXES AND WIRES II

Page 60: Selling Category Theory to the Masses - LMPAsic/wordpress/wp-content/... · 2013-03-09 · Selling Category Theory to the Masses Bob Coecke – Quantum Group - Computer Science -

— quantitative metric —

f : A→ B

f

A

B

Page 61: Selling Category Theory to the Masses - LMPAsic/wordpress/wp-content/... · 2013-03-09 · Selling Category Theory to the Masses Bob Coecke – Quantum Group - Computer Science -

— quantitative metric —

f† : B → A

f

B

A

Page 62: Selling Category Theory to the Masses - LMPAsic/wordpress/wp-content/... · 2013-03-09 · Selling Category Theory to the Masses Bob Coecke – Quantum Group - Computer Science -

— asserting (pure) entanglement —

quantum

classical=

==

Page 63: Selling Category Theory to the Masses - LMPAsic/wordpress/wp-content/... · 2013-03-09 · Selling Category Theory to the Masses Bob Coecke – Quantum Group - Computer Science -

— asserting (pure) entanglement —

quantum

classical=

==

⇒ introduce ‘parallel wire’ between systems:

subject to: only topology matters!

Page 64: Selling Category Theory to the Masses - LMPAsic/wordpress/wp-content/... · 2013-03-09 · Selling Category Theory to the Masses Bob Coecke – Quantum Group - Computer Science -

— quantum-like —

E.g.

=

Page 65: Selling Category Theory to the Masses - LMPAsic/wordpress/wp-content/... · 2013-03-09 · Selling Category Theory to the Masses Bob Coecke – Quantum Group - Computer Science -

Transpose:

ff

=Conjugate:

ff

=

Page 66: Selling Category Theory to the Masses - LMPAsic/wordpress/wp-content/... · 2013-03-09 · Selling Category Theory to the Masses Bob Coecke – Quantum Group - Computer Science -

classical data flow?

f

=

fff

Page 67: Selling Category Theory to the Masses - LMPAsic/wordpress/wp-content/... · 2013-03-09 · Selling Category Theory to the Masses Bob Coecke – Quantum Group - Computer Science -

classical data flow?

f

=

f

Page 68: Selling Category Theory to the Masses - LMPAsic/wordpress/wp-content/... · 2013-03-09 · Selling Category Theory to the Masses Bob Coecke – Quantum Group - Computer Science -

classical data flow?

f

=

f

Page 69: Selling Category Theory to the Masses - LMPAsic/wordpress/wp-content/... · 2013-03-09 · Selling Category Theory to the Masses Bob Coecke – Quantum Group - Computer Science -

classical data flow?

f

ALICE

BOB

=

ALICE

BOB

f

⇒ quantum teleportation

Page 70: Selling Category Theory to the Masses - LMPAsic/wordpress/wp-content/... · 2013-03-09 · Selling Category Theory to the Masses Bob Coecke – Quantum Group - Computer Science -

— symbolically: dagger compact categories —

Thm. [Kelly-Laplaza ’80; Selinger ’05] An equa-tional statement between expressions in dagger com-pact categorical language holds if and only if it isderivable in the graphical notation via homotopy.

Thm. [Hasegawa-Hofmann-Plotkin; Selinger ’08]An equational statement between expressions in dag-ger compact categorical language holds if and onlyif it is derivable in the dagger compact category of fi-nite dimensional Hilbert spaces, linear maps, tensorproduct and adjoints.

Page 71: Selling Category Theory to the Masses - LMPAsic/wordpress/wp-content/... · 2013-03-09 · Selling Category Theory to the Masses Bob Coecke – Quantum Group - Computer Science -

— kindergarten quantum mechanics: the experiment —

Contest in problem solving between:

• Children using quantum picturalism

• Physics teachers using ordinary QM

I expect the children to win!

[1] BC (2010) Quantum picturalism. Contemporary Physics 51, 59–83.

Page 72: Selling Category Theory to the Masses - LMPAsic/wordpress/wp-content/... · 2013-03-09 · Selling Category Theory to the Masses Bob Coecke – Quantum Group - Computer Science -

A SLIGHTLY DIFFERENT LANGUAGEFOR NATURAL LANGUAGE MEANING

BC, Mehrnoosh Sadrzadeh & Stephen Clark (2010) Mathematical foundationsfor a compositional distributional model of meaning. arXiv:1003.4394

BC (2012) The logic of quantum mechanics – Take II. arXiv:1204.3458

Page 73: Selling Category Theory to the Masses - LMPAsic/wordpress/wp-content/... · 2013-03-09 · Selling Category Theory to the Masses Bob Coecke – Quantum Group - Computer Science -

— the from-words-to-a-sentence process —

Page 74: Selling Category Theory to the Masses - LMPAsic/wordpress/wp-content/... · 2013-03-09 · Selling Category Theory to the Masses Bob Coecke – Quantum Group - Computer Science -

— the from-words-to-a-sentence process —

Consider meanings of words, e.g. as vectors (cf. Google):

word 1 word 2 word n...

Page 75: Selling Category Theory to the Masses - LMPAsic/wordpress/wp-content/... · 2013-03-09 · Selling Category Theory to the Masses Bob Coecke – Quantum Group - Computer Science -

— the from-words-to-a-sentence process —

What is the meaning the sentence made up of these?

word 1 word 2 word n...

Page 76: Selling Category Theory to the Masses - LMPAsic/wordpress/wp-content/... · 2013-03-09 · Selling Category Theory to the Masses Bob Coecke – Quantum Group - Computer Science -

— the from-words-to-a-sentence process —

I.e. how do we/machines produce meanings of sentences?

word 1 word 2 word n...?

Page 77: Selling Category Theory to the Masses - LMPAsic/wordpress/wp-content/... · 2013-03-09 · Selling Category Theory to the Masses Bob Coecke – Quantum Group - Computer Science -

— the from-words-to-a-sentence process —

I.e. how do we/machines produce meanings of sentences?

word 1 word 2 word n...grammar

Gerald Gazdar (1996) Paradigm merger in natural language processing. In:Computing tomorrow: future research directions in computer science, eds.,I. Wand and R. Milner, Cambridge University Press.

Page 78: Selling Category Theory to the Masses - LMPAsic/wordpress/wp-content/... · 2013-03-09 · Selling Category Theory to the Masses Bob Coecke – Quantum Group - Computer Science -

— the from-words-to-a-sentence process —

Information flow within a verb:

verb

object subject

Page 79: Selling Category Theory to the Masses - LMPAsic/wordpress/wp-content/... · 2013-03-09 · Selling Category Theory to the Masses Bob Coecke – Quantum Group - Computer Science -

— the from-words-to-a-sentence process —

Information flow within a verb:

verb

object subject

Again we have:

=

Page 80: Selling Category Theory to the Masses - LMPAsic/wordpress/wp-content/... · 2013-03-09 · Selling Category Theory to the Masses Bob Coecke – Quantum Group - Computer Science -

— grammar as pregroups – Lambek ’99 —

A Al A A

A Al

r

A Ar

=

A

A

A

A=A

A A

A

r

r

=A

A

A

A=A

A A

Al l

ll

r

r

Page 81: Selling Category Theory to the Masses - LMPAsic/wordpress/wp-content/... · 2013-03-09 · Selling Category Theory to the Masses Bob Coecke – Quantum Group - Computer Science -

— grammar as pregroups – Lambek ’99 —

For noun type n, verb type is −1(n) · s · (n)−1, so:

Page 82: Selling Category Theory to the Masses - LMPAsic/wordpress/wp-content/... · 2013-03-09 · Selling Category Theory to the Masses Bob Coecke – Quantum Group - Computer Science -

— grammar as pregroups – Lambek ’99 —

For noun type n, verb type is −1(n) · s · (n)−1, so:

n · −1(n) · s · (n)−1 · n = s

Page 83: Selling Category Theory to the Masses - LMPAsic/wordpress/wp-content/... · 2013-03-09 · Selling Category Theory to the Masses Bob Coecke – Quantum Group - Computer Science -

— grammar as pregroups – Lambek ’99 —

For noun type n, verb type is −1(n) · s · (n)−1, so:

n · −1(n) · s · (n)−1 · n = s

Diagrammatic typing:

n ns(n) (n)-1 -1

Page 84: Selling Category Theory to the Masses - LMPAsic/wordpress/wp-content/... · 2013-03-09 · Selling Category Theory to the Masses Bob Coecke – Quantum Group - Computer Science -

— grammar as pregroups – Lambek ’99 —

For noun type n, verb type is −1(n) · s · (n)−1, so:

n · −1(n) · s · (n)−1 · n = s

Diagrammatic meaning:

verbn n

flow flow

Page 85: Selling Category Theory to the Masses - LMPAsic/wordpress/wp-content/... · 2013-03-09 · Selling Category Theory to the Masses Bob Coecke – Quantum Group - Computer Science -

—−−−→Alice⊗−−→does⊗−→not⊗−−→like⊗−−→Bob —

Page 86: Selling Category Theory to the Masses - LMPAsic/wordpress/wp-content/... · 2013-03-09 · Selling Category Theory to the Masses Bob Coecke – Quantum Group - Computer Science -

—−−−→Alice⊗−−→does⊗−→not⊗−−→like⊗−−→Bob —

Alice not like Bob

meaning vectors of words

not

grammar

does

Page 87: Selling Category Theory to the Masses - LMPAsic/wordpress/wp-content/... · 2013-03-09 · Selling Category Theory to the Masses Bob Coecke – Quantum Group - Computer Science -

—−−−→Alice⊗−−→does⊗−→not⊗−−→like⊗−−→Bob —

Alice like Bob

meaning vectors of words

grammar

not

Page 88: Selling Category Theory to the Masses - LMPAsic/wordpress/wp-content/... · 2013-03-09 · Selling Category Theory to the Masses Bob Coecke – Quantum Group - Computer Science -

—−−−→Alice⊗−−→does⊗−→not⊗−−→like⊗−−→Bob —

Alice like Bob

meaning vectors of words

grammar

not

Page 89: Selling Category Theory to the Masses - LMPAsic/wordpress/wp-content/... · 2013-03-09 · Selling Category Theory to the Masses Bob Coecke – Quantum Group - Computer Science -

—−−−→Alice⊗−−→does⊗−→not⊗−−→like⊗−−→Bob —

Alice like Bob

meaning vectors of words

grammar

not= not

like

BobAlice

Page 90: Selling Category Theory to the Masses - LMPAsic/wordpress/wp-content/... · 2013-03-09 · Selling Category Theory to the Masses Bob Coecke – Quantum Group - Computer Science -

—−−−→Alice⊗−−→does⊗−→not⊗−−→like⊗−−→Bob —

Alice like Bob

meaning vectors of words

grammar

not= not

like

BobAlice = not

likeBobAlice

Using: =

likelike

=

likelike

Page 91: Selling Category Theory to the Masses - LMPAsic/wordpress/wp-content/... · 2013-03-09 · Selling Category Theory to the Masses Bob Coecke – Quantum Group - Computer Science -

—−−−→Alice⊗−−→does⊗−→not⊗−−→like⊗−−→Bob —

Alice like Bob

meaning vectors of words

grammar

not= not

like

BobAlice = not

likeBobAlice

= ~g(~f (~x, ~y)

)

Page 92: Selling Category Theory to the Masses - LMPAsic/wordpress/wp-content/... · 2013-03-09 · Selling Category Theory to the Masses Bob Coecke – Quantum Group - Computer Science -

— experiment: word disambiguation —E.g. what is “saw”’ in: “Alice saw Bob with a saw”.

Edward Grefenstette & Mehrnoosh Sadrzadeh (2011) Experimental supportfor a categorical compositional distributional model of meaning. Acceptedfor: Empirical Methods in Natural Language Processing (EMNLP’11).

Page 93: Selling Category Theory to the Masses - LMPAsic/wordpress/wp-content/... · 2013-03-09 · Selling Category Theory to the Masses Bob Coecke – Quantum Group - Computer Science -

UNIVERSAL QUANTUM REASONING

Page 94: Selling Category Theory to the Masses - LMPAsic/wordpress/wp-content/... · 2013-03-09 · Selling Category Theory to the Masses Bob Coecke – Quantum Group - Computer Science -

— example outputs —New results on resource requirements, complexity oftranslations in MBQC (Duncan-Perdrix ICALP’10):

Example 18. The ubiquitous CNOT operation can be computed by the patternP = X3

4Z24Z2

1M03 M0

2 E13E23E34N3N4 [5]. This yields the diagram,

DP =

H

H

H

!, {3}

!, {2}

!, {2}

!, {3}!, {2}

,

where each qubit is represented by a vertical “path” from top to bottom, withqubit 1 the leftmost, and qubit 4 is the rightmost.

By virtue of the soundness of R and Proposition 10, if DP can be rewrittento a circuit-like diagram without any conditional operations, then the rewritesequence constitutes a proof that the pattern computes the same operation asthe derived circuit.

Example 19. Returning to the CNOT pattern of Example 18, there is a rewritesequence, the key steps of which are shown below, which reduces the DP tothe unconditional circuit-like pattern for CNOT introduced in Example 7. Thisproves two things: firstly that P indeed computes the CNOT unitary, and thatthe pattern P is deterministic.

H

H

H

!, {3}

!, {2}

!, {2}

!, {3}!, {2}

!!H

H

H

!, {3}

!, {2}

!, {2}!, {2} !, {3}

!! H

H

H

!, {3}!, {3}

!, {2}

!, {2}

!, {2}

!!!, {2}

!, {2}!, {2}

!!!, {2}!, {2}

!, {2} !, {2}!!

One can clearly see in this example how the non-determinism introduced bymeasurements is corrected by conditional operations later in the pattern. Thepossibility of performing such corrections depends on the geometry of the pat-tern, the entanglement graph implicitly defined by the pattern.

Definition 20. Let P be a pattern; the geometry of P is an open graph !(P) =(G, I,O) whose vertices are the qubits of P and where i ! j i! Eij occurs in thecommand sequence of P.

Definition 21. Given a geometry " = ((V,E), I, O) we can define a diagramD! = ((VD, ED), ID, OD) as follows:

Similar stuff for TMBQC (Clare Horsman NJP’11):

Page 95: Selling Category Theory to the Masses - LMPAsic/wordpress/wp-content/... · 2013-03-09 · Selling Category Theory to the Masses Bob Coecke – Quantum Group - Computer Science -

— automated theory exploration —

Lucas Dixon (Google), Ross Duncan (Brussels), Aleks Kissinger, Alex Merry (Oxf) andMatvey Soloviev (Camb) — http://sites.google.com/site/quantomatic/

Page 96: Selling Category Theory to the Masses - LMPAsic/wordpress/wp-content/... · 2013-03-09 · Selling Category Theory to the Masses Bob Coecke – Quantum Group - Computer Science -

WIRES?

Page 97: Selling Category Theory to the Masses - LMPAsic/wordpress/wp-content/... · 2013-03-09 · Selling Category Theory to the Masses Bob Coecke – Quantum Group - Computer Science -

SPIDERS!

Page 98: Selling Category Theory to the Masses - LMPAsic/wordpress/wp-content/... · 2013-03-09 · Selling Category Theory to the Masses Bob Coecke – Quantum Group - Computer Science -

— spiders —

‘spiders’ =

m︷ ︸︸ ︷....

....

︸ ︷︷ ︸n

such that, for k > 0:

m+m′−k︷ ︸︸ ︷

........

....

....

....

︸ ︷︷ ︸n+n′−k

=

....

....

Coecke, Pavlovic & Vicary (2006, 2008) quant-ph/0608035, 0810.0812

Page 99: Selling Category Theory to the Masses - LMPAsic/wordpress/wp-content/... · 2013-03-09 · Selling Category Theory to the Masses Bob Coecke – Quantum Group - Computer Science -

— spiders —

‘(co-)mult.’ =

m︷ ︸︸ ︷....

....

︸ ︷︷ ︸n

such that, for k > 0:

m+m′−k︷ ︸︸ ︷

........

....

....

....

︸ ︷︷ ︸n+n′−k

=

....

....

Page 100: Selling Category Theory to the Masses - LMPAsic/wordpress/wp-content/... · 2013-03-09 · Selling Category Theory to the Masses Bob Coecke – Quantum Group - Computer Science -

— spiders —

‘cups/caps’ =

m︷ ︸︸ ︷....

....

︸ ︷︷ ︸n

such that, for k > 0:

m+m′−k︷ ︸︸ ︷

........

....

....

....

︸ ︷︷ ︸n+n′−k

=

....

....

Coecke, Pavlovic & Vicary (2006, 2008) quant-ph/0608035, 0810.0812

Page 101: Selling Category Theory to the Masses - LMPAsic/wordpress/wp-content/... · 2013-03-09 · Selling Category Theory to the Masses Bob Coecke – Quantum Group - Computer Science -

— complementary spiders —

Page 102: Selling Category Theory to the Masses - LMPAsic/wordpress/wp-content/... · 2013-03-09 · Selling Category Theory to the Masses Bob Coecke – Quantum Group - Computer Science -

— complementary spiders —Thm.

BC & Ross Duncan (2008) Interacting quantum observables. ICALP’08 &New Journal of Physics 13, 043016. arXiv:0906.4725

Page 103: Selling Category Theory to the Masses - LMPAsic/wordpress/wp-content/... · 2013-03-09 · Selling Category Theory to the Masses Bob Coecke – Quantum Group - Computer Science -
Page 104: Selling Category Theory to the Masses - LMPAsic/wordpress/wp-content/... · 2013-03-09 · Selling Category Theory to the Masses Bob Coecke – Quantum Group - Computer Science -
Page 105: Selling Category Theory to the Masses - LMPAsic/wordpress/wp-content/... · 2013-03-09 · Selling Category Theory to the Masses Bob Coecke – Quantum Group - Computer Science -
Page 106: Selling Category Theory to the Masses - LMPAsic/wordpress/wp-content/... · 2013-03-09 · Selling Category Theory to the Masses Bob Coecke – Quantum Group - Computer Science -
Page 107: Selling Category Theory to the Masses - LMPAsic/wordpress/wp-content/... · 2013-03-09 · Selling Category Theory to the Masses Bob Coecke – Quantum Group - Computer Science -
Page 108: Selling Category Theory to the Masses - LMPAsic/wordpress/wp-content/... · 2013-03-09 · Selling Category Theory to the Masses Bob Coecke – Quantum Group - Computer Science -
Page 109: Selling Category Theory to the Masses - LMPAsic/wordpress/wp-content/... · 2013-03-09 · Selling Category Theory to the Masses Bob Coecke – Quantum Group - Computer Science -