192
Introduction to Categorical Quantum mechanics Ross Duncan

Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

  • Upload
    others

  • View
    6

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

Introduction to Categorical Quantum mechanics

Ross Duncan

Page 2: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

0.Motivations

Page 3: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

Transistors are shrinkingFe

atur

e Si

ze (n

m) L

og-s

cale

1

10

100

1000

10000

1970 1980 1990 2000 2010 2020

Diameter of a virus

Thickness of spider silk

1972 1988 2005 2016

Page 4: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

Transistors are shrinkingFe

atur

e Si

ze (n

m) L

og-s

cale

1

10

100

1000

10000

1970 1980 1990 2000 2010 2020

Diameter of a virus

Thickness of spider silk

1972 1988 2005 2016

Quantum effects become important

Page 5: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

Quantum Computing

• IDEA: exploit quantum effects for computation

• Fast algorithms (Shor, Grover)

• Simulate physical systems (chemistry, materials)

• Novel cryptographic protocols (QKD, blind computing)

• …. and more.

Page 6: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

Quantum Computing

target: 49 qubit machine in the lab by end of 2017

Page 7: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

Quantum Computing

target: 50 qubit machine for sale by 2021

5 qubits now; 16 later this year

Page 8: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

Quantum Computingtarget: 400 qubits by 2020

Page 9: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact
Page 10: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

Motivations

Page 11: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

Motivations

Page 12: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

Motivations

Page 13: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

Motivations

Page 14: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

Motivations�x.�y.�z.xz(yz)

Page 15: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

Motivations

Page 16: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

Motivations

Page 17: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

Motivations

Hilbert space, unitary transforms,

self-adjoint operators....

Page 18: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

Motivations

Hilbert space, unitary transforms,

self-adjoint operators....

????

Page 19: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

The need for abstraction:

D ~ 2^1764

This is an 8-bit adder

Page 20: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

What’s so special about quantum?

Page 21: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

Seek a mathematical answer.

What’s so special about quantum?

Page 22: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

Superposition?

Page 23: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

Superposition?

Page 24: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

Superposition?

Classical waves can exhibit superposition too!

Page 25: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

unless and are orthogonal [Wooters & Zurek 1982]

Theorem: There are no unitary operations D such that

D : |⇥⌅ ⇤⇥ |⇥⌅ � |⇥⌅D : |�⌅ ⇤⇥ |�⌅ � |�⌅

No-Cloning and No-Deleting

unless and are orthogonal [Pati & Braunstein 2000]

Theorem: There are no unitary operations E such that

E : |⇥⇤ ⇥� |0⇤E : |�⇤ ⇥� |0⇤

|��

|��

|��

|��

Page 26: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

Separate classical and quantum data in a hybrid machine

Linear types have been proposed* to capture this:

!A A�B

No-Cloning and No-Deleting

But we need additional axioms to get the QM-like behaviour

*vanTonder 2003, Selinger and Valiron 2005, Arrighi and Dowek 2003, Altenkirch & Grattage 2005

** Hensinger et al Nature 2005

Page 27: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

Non-locality or Contextuality?

* Aspect et al PRL 1981

Page 28: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

Non-locality or Contextuality?

* Aspect et al PRL 1981

But! !

“generalised probabilistic theories” display even stronger non-locality than quantum theory! !Many aspects of contextuality appear in classical settings like databases and NLP!

Page 29: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

Complementarity

Quantum systems have properties which are not accessible at the same time. They are not even simultaneously well-defined!

Page 30: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

Quantum Theory

Categorical Quantum Theory

Hilbert spacesOperators

Monoidal categories(co)AlgebrasCommutation rules

abst

ract

ion

Page 31: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

Categorical Quantum TheoryMonoidal categories(co)AlgebrasCommutation rules

CQT as an “algebraic theory”PROPsDistributive laws

form

alis

atio

n

Page 32: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

Categorical Quantum Theory

Quantum theory as an internal theory in a monoidal category

• No assumption of linear structure • Algebra : • Coalgebra : • And laws for their interaction.

A⌦A - A

A - A⌦A

Page 33: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

1.Monoidal Categories

Page 34: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact
Page 35: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

1bis.Monoidal Categories

(Graphically)

Page 36: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

PAST / HEAVEN

FUTURE / HELL

Page 37: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

Why Diagrams?

Page 38: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

Why Diagrams?12

⌥⌥⇧

�11

⇥⇥

⌥⌥⇧

1 0 0 00 1 0 00 0 1 00 0 0 ei⇤

��⌃⇥�

0 11 0

⇥⌅

��⌃

⌥⌥⇧

⌥⌥⇧

��1 0 0 00 0 0 1

⇥⇥

�1 11 �1

⇥⇥⇤

⌥⌥⇧

�0 11 0

⇥⇥

⌥⌥⇧

1 0 0 00 0 1 00 1 0 00 0 0 1

��⌃

��⌃ ⇤

⌥⌥⇧

⌥⌥⇧

1 0 0 00 1 0 00 0 0 10 0 1 0

��⌃⇥�

1 00 1

⇥⌅

��⌃

��⌃⇥�

1 00 1

⇥⌅

��⌃

⌥⌥⇧

⌥⌥⇧

1 0 0 00 1 0 00 0 0 10 0 1 0

��⌃ ⇤��

cos ⌅6

i sin ⌅6

⇥⇥

�1 00 ei⇥

⇥⇥⌅

��⌃⇥

⌥⌥⇧

1 0 0 00 1 0 00 0 1 00 0 0 ei�

��⌃

= ?

Page 39: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

Why Diagrams?

• Great when we have parallel and sequential composition

• Essential for talking about interacting algebraic and coalgebraic things

• Different kinds of diagram give different kinds of monoidal category

Page 40: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

Historical Examples

Circuits (classical and quantum) :

Page 41: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

Historical Examples

Feynmann Diagrams:

Page 42: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

Historical Examples“Applications of Negative Dimensional Tensors” (Penrose)

Page 43: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

Historical Examples

Proofs-Nets in Linear Logic (Girard, Danos-Regnier, Tortoro de Falco, many others)

Page 44: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

Historical Examples

Proofs-Nets in Linear Logic (Blute-Cocket-Seely-Trimble, 1996)

Page 45: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

Historical Examples

Interaction Combinators (Lafont, 1997)

Page 46: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

Historical Examples“Coherence for Compact Closed Categories” (Kelly-Laplaza, 1980)

Page 47: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

Historical Examples“Coherence for Compact Closed Categories” (Kelly-Laplaza, 1980)

?

Page 48: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

Historical Examples“Geometry of Tensor Calculus I” (Joyal-Street, 1991)

Page 49: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

Historical Examples“Traced Monoidal Categories” (Joyal-Street-Verity, 1996)

Page 50: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

More Recently:

Unit (U ⌦W );X = (W ⌦ U);X = W .

X X= =

Commutativity �A;X = X.

X = X

Retract T ;X = W .

XT =

2. (A,C, P ) is a commutative monoid with U an absorbing element.

Associativity (W ⌦ C);C = (C ⌦W );C.

C

C

C

C=

Unit (P ⌦W );C = (W ⌦ P );C = W

CC

= =

P

P

Commutativity �A;C = C.

C C=

Absorbing element (W ⌦ U);C = (U ⌦W );C = U

C C= =

3. (A,F,E) is a co-commutative co-monoid, with C a section of F .

Co-associativity F ; (F ⌦W ) = F ; (W ⌦ F ).

=

Co-unit F ; (W ⌦ E) = F ; (E ⌦W ).

= =

Co-commutativity F ; �A = F .

=

Section F ;C = W

C =

Ghica (2013) - Asynchronous Circuits

Page 51: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

More Recently:Melliès (2014) - Local State

Grov Kissinger Lin (2013) - Proof Planning

Page 52: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

More Recently:Baez and Fong (2014) — Passive Linear Circuits

Page 53: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

More Recently:Bonchi Sobocinski Zanasi (2014) — Signal Flow Graphs

Page 54: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

Diagrams

D

A B

E

j

C

j : A�B ⇥ C �D � E

Page 55: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

Input Systems

Diagrams

D

A B

E

j

C

j : A�B ⇥ C �D � E

Page 56: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

Input Systems

Diagrams

D

A B

E

j

C

Output Systems

j : A�B ⇥ C �D � E

Page 57: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

Input Systems

Diagrams

D

A B

E

j

C

Output Systems

Interaction, or process, or state change, or ...

j : A�B ⇥ C �D � E

Page 58: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

f : A� B g : B � C h : C � D

Monoidal Categories

f gA

B

B

C

C

h

D

f : A� B g : B � C h : C � D

Page 59: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

f : A� B g : B � C h : C � D

Monoidal Categories

f gA

B

B

C

C

h

D

f : A� B g : B � C h : C � D

g � f : A ⇥ C

f

g

A

B

C

Page 60: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

f : A� B g : B � C h : C � D

Monoidal Categories

f gA

B

B

C

C

h

D

f : A� B g : B � C h : C � D

g � f : A ⇥ C

f

g

A

B

C

f � h : A� C ⇥ B �D

f h

D

A

B

C

Page 61: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

Monoidal Categories

f

g

A

B

C

h

D

gf

A

B

h

D

C

C

B f h

D

A

B

C

g k

C E

Page 62: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

No lines are drawn for I in the graphical notation:

Monoidal categories have a special unit object called I which is a left and right identity for the tensor:

⇥ : I ⇥ A �† : A ⇥ I �† � ⇥ : I ⇥ I

I �A = A = A� I

idI � f = f = f � idI

Monoidal Categories

⇥ : I ⇥ A �† : A ⇥ I �† � ⇥ : I ⇥ I⇥ : I ⇥ A �† : A ⇥ I �† � ⇥ : I ⇥ I

⇥ : I ⇥ A �† : A ⇥ I �† � ⇥ : I ⇥ I

⇥ : I ⇥ A �† : A ⇥ I �† � ⇥ : I ⇥ I

Page 63: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

idA : A� A

Categories

idA : A� A

Page 64: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

Categories

idA : A� A

B

f

f � idA : A ⇥ B

Page 65: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

Categories

idA : A� A

B

f

idB � f : A ⇥ B

Page 66: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

Categories

idA : A� A

B

f

f : A� B

Page 67: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

�A,B : A�B ⇥ B �A

Symmetric Monoidal Categories

A B

A

B A

B

=

A

BA

B

Page 68: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

�A,B : A�B ⇥ B �A

Symmetric Monoidal Categories

A

B

Bgf

B

C

C

Page 69: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

�A,B : A�B ⇥ B �A

Symmetric Monoidal Categories

A

B

B

g f

B

C

C

Page 70: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

d : I ⇥ A� �A e : A�A� ⇥ I

Compact ClosureA symmetric monoidal category is called compact if, for every object A, there exists a dual object A* and arrows:

Page 71: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

d : I ⇥ A� �A e : A�A� ⇥ I

Compact ClosureA symmetric monoidal category is called compact if, for every object A, there exists a dual object A* and arrows:

Page 72: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

d : I ⇥ A� �A e : A�A� ⇥ I

Compact Closure

=

A symmetric monoidal category is called compact if, for every object A, there exists a dual object A* and arrows:

Page 73: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

A category is a †-category if it is equipped with an involutive functor, which reverses the arrows while leaving the objects unchanged.

f : A� B f† : B � A

†-Categories

(·)†

f

A

B A

B

f

Page 74: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

An arrow is called unitary when:

†-Categories

f : A⇥ B f† : B ⇥ A

(f � g)† = f† � g† �†A,B = �B,A

BA

f

A

f

f

f

B

Page 75: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

An arrow is called unitary when:

†-Categories

f : A⇥ B f† : B ⇥ A

(f � g)† = f† � g† �†A,B = �B,A

BA

A

f

f

B

Page 76: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

An arrow is called unitary when:

†-Categories

f : A⇥ B f† : B ⇥ A

(f � g)† = f† � g† �†A,B = �B,A

BA

A B

Page 77: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

Thm: one diagram can be deformed to another iff their denotations are equal by the structural equations of the category.

Graphical Calculus Theorem

f

hD

A

B

C

g

k

C

E

c

Page 78: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

Thm: one diagram can be deformed to another iff their denotations are equal by the structural equations of the category.

Graphical Calculus Theorem

f

hD

A

B

C

g

k

C

E

c

= c

f

A

B

C

D

g

C

k

E

h

Page 79: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

The Category FDHilbFDHilb is the category of finite dimensional complex Hilbert spaces. It is †-monoidal with the following structure.

• Objects: finite dimensional Hilbert spaces, A, B, C etc

• Arrows: all linear maps • Tensor: usual (Kronecker) tensor product; • is the usual adjoint (conjugate transpose)

A linear map picks out exactly one vector. It is a ket and is the corresponding bra. Hence is the inner product .

I = Cf†

� : I � A�† : A� I

⇥† � � : I ⇥ I �⇥ | �⇥

Page 80: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

2.Quantum Theory in 5 minutes

Page 81: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

2.Quantum Theory in 5* minutes

*Might be more than 5

Page 82: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

1. Quantum states are represented by unit vectors in a complex Hilbert space.

|0⇤ , |1⇤ , 1�2(|0⇤ + |1⇤) � 2 =: Q

|0�

|1�

|0� + ei� |1�

Page 83: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

!

2. The state space formed by combining two or more systems is the tensor product of their individual state spaces !

|010⌅ := |0⌅ � |1⌅ � |0⌅ ⇥ 2 � 2 � 2 = Q3

Page 84: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

3. For each discrete time step, an undisturbed quantum system evolves according to a unitary operator acting on its state space !

!

!

...but the quantum state is not directly accessible... more on this later!

X, Z, H : Q� Q ⇤X,⇤Z : Q2 � Q2

Page 85: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

Example: Z-Rotation

|0�

|1�

Page 86: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

Example: X-Rotation

|+i|�i

Page 87: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

|�Í Input register

Quantum Circuits

|�ÕÍ Output register

Unita

ry g

ates

U : C2n - C2n

“Time”

Page 88: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

Universality

We say that a model of quantum computation is universal if it can represent all unitary maps.The circuit model requires a small set of gates to be universal:

Page 89: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

Universality

We say that a model of quantum computation is universal if it can represent all unitary maps.The circuit model requires a small set of gates to be universal:

Page 90: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

Quantum CircuitsExample 3.9 (Bell state). A Bell state, |00Í + |11Í, is prepared by the circuitbelow, on the left.

T

Q

cccca

|0Í |0Í

H

R

ddddb= H úæ úæ úæ

The corresponding zx-calculus derivation is a proof of the correctness of thiscircuit.

To simplify the next example, we introduce some shorthand for some usefulcircuit elements.

Z :=H

H

|+Í:=

|0Í

H

Example 3.10 (1D-cluster state). A 1-dimensional cluster state consists of acollection qubits 1, . . . , n initialised in the state |+Í = |0Í + |1Í, which are thenentangled by applying a ·Z operation to qubits i and i ≠ 1, and to i and i + 1.The corresponding circuit is shown below:

T

Q

cccca

|+Í |+Í |+Í |+Í

Z Z Z

Z Z

... ...

... ...

R

ddddb= H H H

H H...

...

...

...

The zx-calculus translation can be radically simplified by repeated use of thespider rule:

H H H

H H...

...

...

...

úæ H H H H H... ...

The 1D-cluster is a special case of a more general class of states: graph states.These states are the basis of measurement-based quantum computation, and willplay an important role later in the paper.

3.2 Circuit-like diagrams

While the preceding has demonstrated the ease with quantum circuits can betranslated into diagrams, there are many diagrams which do not correspond to

16

Preparing a Bell state

Example 3.9 (Bell state). A Bell state, |00Í + |11Í, is prepared by the circuitbelow, on the left.

T

Q

cccca

|0Í |0Í

H

R

ddddb= H úæ úæ úæ

The corresponding zx-calculus derivation is a proof of the correctness of thiscircuit.

To simplify the next example, we introduce some shorthand for some usefulcircuit elements.

Z :=H

H

|+Í:=

|0Í

H

Example 3.10 (1D-cluster state). A 1-dimensional cluster state consists of acollection qubits 1, . . . , n initialised in the state |+Í = |0Í + |1Í, which are thenentangled by applying a ·Z operation to qubits i and i ≠ 1, and to i and i + 1.The corresponding circuit is shown below:

T

Q

cccca

|+Í |+Í |+Í |+Í

Z Z Z

Z Z

... ...

... ...

R

ddddb= H H H

H H...

...

...

...

The zx-calculus translation can be radically simplified by repeated use of thespider rule:

H H H

H H...

...

...

...

úæ H H H H H... ...

The 1D-cluster is a special case of a more general class of states: graph states.These states are the basis of measurement-based quantum computation, and willplay an important role later in the paper.

3.2 Circuit-like diagrams

While the preceding has demonstrated the ease with quantum circuits can betranslated into diagrams, there are many diagrams which do not correspond to

16

Controlled-Z gate

Page 91: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

Quantum Observables

4. Each observable quantity O is represented as self-adjoint operator :

•The possible values of O are the eigenvalues of

•When we observe O for a system in state , there is probability of observing .

•If is the outcome of the measurement, the system is then in state .

O =�

i �i |ei⇥ �ei|�i O

|���ei | �⇥2 �i

�i|ei�

Page 92: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

Z =�

1 00 �1

⇥X =

�0 11 0

X and Z Spins

� |0⇥+ ⇥ |1⇥

|0⇥�

p=�2

|1⇥

�p=

⇥2

|+⇥

p=

(�+

⇥)/

2 2⇥

|�⇥

p=(��

⇥)/2 2

We can measure the spin of qubit |⇤� = � |0� + ⇥ |1�

Page 93: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

Z =�

1 00 �1

⇥X =

�0 11 0

X and Z SpinsWe can measure the spin of qubit |⇤� = � |0� + ⇥ |1�

|0⇥

|0⇥�

p=1

|1⇥

�p=

0

|+⇥

p=

1/2

|�⇥

p=1/2

Page 94: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

Quantum Observables

Measuring A then B may give a different answer than measuring B first then A! !

Not all observables are well defined at the same time: • Two observables are compatible if their operators commute • Two operators commute if they have the same eigenvectors • Identify a non-degenerate observable with its eigenbasis

Page 95: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

Incompatible Observablesa0

a1

b1

b0

Page 96: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

Complementary Observablesa0

a1

b1 b0

|�ai | bj⇥| =1⌅D

Page 97: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

Complementary Observablesa0

a1

b1 b0

|�ai | bj⇥| =1⌅D

“Mutually Unbiased Bases”

Page 98: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

3.Categorical Quantum Mechanics

Page 99: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

unless and are orthogonal [Wooters & Zurek 1982]

Theorem: There are no unitary operations D such that

D : |⇥⌅ ⇤⇥ |⇥⌅ � |⇥⌅D : |�⌅ ⇤⇥ |�⌅ � |�⌅

No-Cloning and No-Deleting

unless and are orthogonal [Pati & Braunstein 2000]

Theorem: There are no unitary operations E such that

E : |⇥⇤ ⇥� |0⇤E : |�⇤ ⇥� |0⇤

|��

|��

|��

|��

Page 100: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

“Classical” Quantum States

When can a quantum state be treated as if classical?

• no-go theorems allow copying and deleting of orthogonal states;

In other words: • A quantum state may be copied and deleted if it is an

eigenstate of some known observable. We’ll use this property to formalise observables in terms of copying and deleting operations.

Page 101: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

Observables� =

=

=

Comonoid Laws

= =

� =

Page 102: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

Observables� = �† = �† =

=

=

Comonoid Laws

= =

� =

Page 103: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

Observables� = �† = �† =

=

=

= =

Monoid Laws

� =

Page 104: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

Observables� = �† = �† =

Frobenius LawIsometry Law

= = =

� =

Page 105: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

Observables� = �† = �† =� =

In other words: an observable is a special commutative †-Frobenius algebra

Page 106: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

ObservablesGiven any finite dimensional Hilbert space we can define a Frobenius algebra by

� : A⇥ A�A :: ai ⇤⇥ ai � ai

⇥ : A⇥ I ::�

i

ai ⇤⇥ 1

Page 107: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

ObservablesGiven any finite dimensional Hilbert space we can define a Frobenius algebra by

� : A⇥ A�A :: ai ⇤⇥ ai � ai

⇥ : A⇥ I ::�

i

ai ⇤⇥ 1

Example: !define a Frobenius algebra over qubits; the standard basis is copied and erased.

� : |0⇤ ⇥� |00⇤|1⇤ ⇥� |11⇤ ⇥ : |0⇤+ |1⇤ ⇥� 1

Page 108: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

ObservablesGiven any finite dimensional Hilbert space we can define a Frobenius algebra by

� : A⇥ A�A :: ai ⇤⇥ ai � ai

⇥ : A⇥ I ::�

i

ai ⇤⇥ 1

Theorem: in FDHilb, †-SCFAs are in bijective correspondence to bases. [Coecke, Pavlovic, Vicary]

Example: !define a Frobenius algebra over qubits; the standard basis is copied and erased.

� : |0⇤ ⇥� |00⇤|1⇤ ⇥� |11⇤ ⇥ : |0⇤+ |1⇤ ⇥� 1

Page 109: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

Theorem: any maps constructed from δ and ε , and their adjoints, whose graph is connected, is determined uniquely by the number of inputs and outputs.

Spider Theorem

Coecke & Paquette 2006

Page 110: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

Theorem: any maps constructed from δ and ε , and their adjoints, whose graph is connected, is determined uniquely by the number of inputs and outputs.

Spider Theorem

Coecke & Paquette 2006

Page 111: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

Theorem: any maps constructed from δ and ε , and their adjoints, whose graph is connected, is determined uniquely by the number of inputs and outputs.

Spider Theorem

Coecke & Paquette 2006

Page 112: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

PhasesDefn. a map 𝛼:A⟶A is called a pre-phase if: !!!!!A pre-phase is a phase if it is unitary. Defn: a point 𝜓:I⟶A is called unbiased if the map !!!!is a phase.

by the spider theorem, which makes 1 self-dual; the required cup and cap forthe other objects can be easily constructed (although see [31] for the coherenceconditions) to make all of F compact. For †-compactness, we require

( )† =

which again follows from the spider theorem.

Obviously, compactness of F implies that any F-algebra is also compact, inparticular the inclusion of F into another PROP. Given a map f : A æ A, wecan construct its “ -transpose”, by conjugating with d and e:

f = f

The -transpose extends to an involutive contravariant functor on any F-algebraA, and since F is †-compact, the adjoint and the -transpose commute, andhence we can define a covariant involution, the -conjugate:

f = (f†) = (f )† ;

we say that f is -real if f = f , or equivalently if f† = f . Evidently, thedefining maps of the Frobenius algebra are -real, as is the symmetry of themonoidal structure, hence in F itself f† = f for all f . This is not true forF-algebras in general.

Now let A be an F-algebra in some category C; we let ”, µ etc stand for theirimages in C.

Definition 3.3. A pre-phase for the †-SCFA (A, ”, µ) is a map – : A æ A whichacts as a strength for the multiplication:

–=

–(�)

A pre-phase is a phase if it is unitary.

Definition 3.4. Let  : I æ A and define »(Â) : A æ A by

»(Â) : Â ‘æ µ ¶ (Â ¢ id)Â

‘æÂ

.

It follows immediately from this definition that »(Â) is a pre-phase. If »(Â) is infact a phase, then we say that  is -unbiased.

by the spider theorem, which makes 1 self-dual; the required cup and cap forthe other objects can be easily constructed (although see [31] for the coherenceconditions) to make all of F compact. For †-compactness, we require

( )† =

which again follows from the spider theorem.

Obviously, compactness of F implies that any F-algebra is also compact, inparticular the inclusion of F into another PROP. Given a map f : A æ A, wecan construct its “ -transpose”, by conjugating with d and e:

f = f

The -transpose extends to an involutive contravariant functor on any F-algebraA, and since F is †-compact, the adjoint and the -transpose commute, andhence we can define a covariant involution, the -conjugate:

f = (f†) = (f )† ;

we say that f is -real if f = f , or equivalently if f† = f . Evidently, thedefining maps of the Frobenius algebra are -real, as is the symmetry of themonoidal structure, hence in F itself f† = f for all f . This is not true forF-algebras in general.

Now let A be an F-algebra in some category C; we let ”, µ etc stand for theirimages in C.

Definition 3.3. A pre-phase for the †-SCFA (A, ”, µ) is a map – : A æ A whichacts as a strength for the multiplication:

–=

–(�)

A pre-phase is a phase if it is unitary.

Definition 3.4. Let  : I æ A and define »(Â) : A æ A by

»(Â) : Â ‘æ µ ¶ (Â ¢ id)Â

‘æÂ

.

It follows immediately from this definition that »(Â) is a pre-phase. If »(Â) is infact a phase, then we say that  is -unbiased.

We say that f is -real if f = f , or equivalently if f† = f . Evidently, thedefining maps of the Frobenius algebra are -real, as is the symmetry of themonoidal structure, hence in F itself f† = f for all f . This is not true forF-algebras in general.

Before moving on we state a useful lemma.

Lemma 4.2. If a morphism f commutes with both the monoid and comonoidparts of a Frobenius algebra, then it is invertible and f�1 = f .

We are now ready to develop the abstract theory of phases.

Definition 4.3. A pre-phase for the †-SCFA (A, �, µ) is a map ↵ : A ! A whichacts as a strength for the multiplication:

↵=

↵(�)

A pre-phase is a phase if it is unitary.

Definition 4.4. Let : I ! A and define ⇤( ) : A ! A by

⇤( ) : 7! µ � ( ⌦ id)

7!

.

It follows immediately from this definition that ⇤( ) is a pre-phase. If ⇤( ) is infact a phase, then we say that is -unbiased.

Lemma 4.5. Let ↵ : A ! A be a phase. Then there exists : I ! A such that

1. ↵ = ⇤( );2. ↵ = ↵;3. ↵† = ⇤( );4. µ( ⌦ ) = ⌘.

Corollary 4.6. If ↵ is a phase, then so is ↵†.

Lemma 4.7. Let � denote the set of phases, and U denote the unbiased points;then (�, �, id, ()†) and (U , µ, ⌘, () ) are isomorphic abelian groups.

We will now consider the †-PROP which is generated by a †-SCFA with aprescribed group of phases i.e. where (�, �, id, ()†) ⇠= G for some abelian groupG. As in example 2.4, given the abelian group G we can construct the PROPPG. We might then hope to compose the PROPs F and PG using a distributivelaw [38], but this is impossible. However, we can form the desired PROP viaan iterated distributive law [47] (see Appendix C). To combine F and PG wecompose the PROPs M, C and PG pairwise via distributive laws, and then showthat these distributive laws interact nicely with one another in such a way toyield the desired PROP.

Page 113: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

PhasesLemma. let 𝛼:A⟶A be a phase; then there exists an unbiased point 𝜓:I⟶A such that: !!!!!!!

Corollary: 𝛼 is a phase iff 𝛼† is a phase.

Notation. If – : A æ A and  : I æ A are respectively a -phase and an-unbiased point then are the same colour as their Frobenius algebra, e.g.

– = – Â =Â

Lemma 3.5. Let – : A æ A be a phase. Then there exists  : I æ A such that1. – = »(Â);2. – = –;3. –† = »( );4. µ( ¢  ) = ÷.

Corollary 3.6. If – is a phase, then so is –†.

Lemma 3.7. Let Õ denote the phases, and U denote the unbiased points; then(Õ, ¶, id, ()†) and (U , µ, ÷, () ) are isomorphic abelian groups.

Theorem 3.8 (Generalised Spider). Let f : A¢m æ A¢n be a morphismbuilt from ”, ‘, µ, ÷, and some collection of phases –i by composition and tensor;if the graphical form of g is connected then f = ”n ¶ – ¶ µm where

– = –1

¶ · · · ¶ –k

Proof. This follows from the above lemmas and the spider theorem.

Therefore a Frobenius algebra and its group of phases generate a category ofÕ-labelled spiders. Composition is given by fusing connected spiders and summingtheir labels.

Note that every F-algebra has a group of phases, although it may be trivial.We now construct the PROP of Frobenius algebras with a given phase groupG. Take any abelian group G and consider the †-PROP PG as earlier; then theequations (�) give a distributive law ⁄Õ : F;PG æ PG;F. As before this extendsto a functor

F : Ab æ †-PROP ,

where F1 is the original PROP of Frobenius algebras. Note that since F itself isa composite we can profitably think of FG as a composite of M, C, and G◊ viaan iterated distributive law [32]. This yields an abstract counterpart to Theorem3.8 as the following factorisation.

Theorem 3.9. Let f : n æ nÕ in FG; then

f = nÒ- m

g- m∆- nÕ

where Ò : n æ m is in M, ∆ : m æ nÕ is in C, g : m æ m is in G◊andm Æ n, nÕ.

In particular, if n = nÕ = 1 in the above then f is either a phase map or a“projector” „ ¶ † for a pair of unbiased points „,  : 0 æ 1. The following is aconsequence of Theorem 3.8.

Lemma 3.10. Suppose f : n æ n is unitary in FG; then f œ PG

Page 114: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

PhasesLemma. let 𝛼:A⟶A be a phase; then there exists an unbiased point 𝜓:I⟶A such that: !!!!!!!

Corollary: 𝛼 is a phase iff 𝛼† is a phase.

Notation. If – : A æ A and  : I æ A are respectively a -phase and an-unbiased point then are the same colour as their Frobenius algebra, e.g.

– = – Â =Â

Lemma 3.5. Let – : A æ A be a phase. Then there exists  : I æ A such that1. – = »(Â);2. – = –;3. –† = »( );4. µ( ¢  ) = ÷.

Corollary 3.6. If – is a phase, then so is –†.

Lemma 3.7. Let Õ denote the phases, and U denote the unbiased points; then(Õ, ¶, id, ()†) and (U , µ, ÷, () ) are isomorphic abelian groups.

Theorem 3.8 (Generalised Spider). Let f : A¢m æ A¢n be a morphismbuilt from ”, ‘, µ, ÷, and some collection of phases –i by composition and tensor;if the graphical form of g is connected then f = ”n ¶ – ¶ µm where

– = –1

¶ · · · ¶ –k

Proof. This follows from the above lemmas and the spider theorem.

Therefore a Frobenius algebra and its group of phases generate a category ofÕ-labelled spiders. Composition is given by fusing connected spiders and summingtheir labels.

Note that every F-algebra has a group of phases, although it may be trivial.We now construct the PROP of Frobenius algebras with a given phase groupG. Take any abelian group G and consider the †-PROP PG as earlier; then theequations (�) give a distributive law ⁄Õ : F;PG æ PG;F. As before this extendsto a functor

F : Ab æ †-PROP ,

where F1 is the original PROP of Frobenius algebras. Note that since F itself isa composite we can profitably think of FG as a composite of M, C, and G◊ viaan iterated distributive law [32]. This yields an abstract counterpart to Theorem3.8 as the following factorisation.

Theorem 3.9. Let f : n æ nÕ in FG; then

f = nÒ- m

g- m∆- nÕ

where Ò : n æ m is in M, ∆ : m æ nÕ is in C, g : m æ m is in G◊andm Æ n, nÕ.

In particular, if n = nÕ = 1 in the above then f is either a phase map or a“projector” „ ¶ † for a pair of unbiased points „,  : 0 æ 1. The following is aconsequence of Theorem 3.8.

Lemma 3.10. Suppose f : n æ n is unitary in FG; then f œ PG

Proposition 6: 1. The phases are an abelian group 2. The unbiased points are an abelian group 3. They’re isomorphic

Page 115: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

Generalised SpiderThm: Any connected monochrome diagram with phases is determined completely by its arity and the sum of its phases.

= = =

= = =

=

– + —

=–

–1

–5–3

–2

–4

=q

i –i

1

Page 116: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

Example: qubits

|0�

|1�

Page 117: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

Example: qubits

π

Page 118: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

Example: qubits

Unbiased pointsπ

|0� + ei� |1�

Page 119: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

Example: qubits

Unbiased pointsπ

Page 120: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

Example: qubits

Unbiased pointsπ

�1 00 ei�

⇥=

Page 121: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

Two kinds of points� = �† = �† =� =

Page 122: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

Two kinds of points� = �† = �† =

Classical Points

� =

i

Those points which can be copied by �

Page 123: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

Two kinds of points� = �† = �† =

Classical Points

� =

i= i i

Those points which can be copied by �

Page 124: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

* to keep the pictures tidy, a scalar factor has been omitted (and everywhere

from here on)

Two kinds of points� = �† = �† =

Classical Points

� =

i= i i

Those points which can be copied by �

Page 125: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

Two kinds of points� = �† = �† =

Unbiased PointsClassical Points

� =

i= i i

α

Those points which can be copied by �

Page 126: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

Two kinds of points� = �† = �† =

Unbiased PointsClassical Points

� =

i= i i =

α

αThose points which can be copied by �

Page 127: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

Two kinds of points� = �† = �† =

Unbiased PointsClassical Points

� =

i= i i =

Those points which can be copied by �

Page 128: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

Classical points are eigenvectors

αi

Page 129: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

Classical points are eigenvectors

α i

Page 130: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

Classical points are eigenvectors

αi

i

Page 131: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

Complementary Observables

�X = �X =�Z = �Z =

|i⇤ ⇥� |ii⇤ |±⌅ ⇤⇥ |±±⌅|+⇤ ⇥� 1 |0⇤ ⇥� 1

Page 132: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

i= i i �

i

i=

Complementary Observables

�X = �X =�Z = �Z =

Page 133: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

i= �

i

i=i i

Complementary Observables

�X = �X =�Z = �Z =

Page 134: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

Complementary Observables

�X = �X =�Z = �Z =

= =

Page 135: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

Example: qubits

Classical points

Unbiased pointsπ

Page 136: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

Example: qubits

Classical points

Unbiased pointsπ

π|0� =

|1� =

�1 00 ei�

⇥=α

Page 137: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

Example: qubits

Classical points

Unbiased pointsπ

�π

|0� =

|1� =

�1 00 ei�

⇥=α

Page 138: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

Example: qubits

Classical points

Unbiased pointsπ

�π

|0� =

|1� =

�1 00 ei�

⇥=α

Page 139: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

Example: qubits

Classical points

Unbiased pointsπ

�π

|0� =

|1� =

�1 00 ei�

⇥=α

=�

cos �2 i sin �

2i sin �

2 cos �2

⇥α π

|+� =

|�⇥ =

Page 140: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

Strong Complementarity

A pair of complementary observables are called strongly complementary when they satisfy this equation:

�X = �X =�Z = �Z =

Page 141: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

Strong Complementarity

Corollary: strongly complementary observables form a bialgebra

Page 142: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

Strong Complementarity

Corollary: strongly complementary observables form a bialgebra

=

=

Page 143: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

The antipode

Define the map S by:

�X = �X =�Z = �Z =

S = :=

Page 144: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

The antipode

* If we have “enough classical points” this can be proved without strong complementarity

Page 145: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

Strongly complementary observables form Hopf algebras

Theorem:

==

Page 146: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

Strong Complementarity

The following are equivalent characterisations of strong complementarity:

Page 147: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

Comonoid Homomorphism

ii

�X = �X =�Z = �Z =

The classical maps are comonoid homomorphisms

Page 148: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

Comonoid Homomorphism

i i

�X = �X =�Z = �Z =

The classical maps are comonoid homomorphisms

Page 149: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

Classical Phases Commute�X = �X =�Z = �Z =

The classical maps satisfy canonical commutation relations

ij i

j ij

Page 150: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

Closedness Property�X = �X =�Z = �Z =

Page 151: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

Closedness Property�X = �X =�Z = �Z =

�i

= i i

j= j j

=i� j i� j i� j

Page 152: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

Closedness Property�X = �X =�Z = �Z =

�i

= i i

j= j j

=i� j i� j i� j

Page 153: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

Closedness Property�X = �X =�Z = �Z =

Page 154: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

Theorem: In fdHilb, strongly complementary observables exist for every dimension.

... but in big enough dimension, it is possible to construct MUBs which are not closed.

Page 155: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

arXiv:1601.04964 LiCS 2016.

Interacting Frobenius Algebras are Hopf” RD + Kevin Dunne

Page 156: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

4.The ZX-calculus

Page 157: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

ZX-calculus

Good Points: + Graphical language for reasoning about QC + Universal + Derived from the basic algebra of complementarity + Powerful algebraic theory + Complete! Bad point: - Need to impose operational meaning post-hoc

Page 158: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

ZX-calculus syntax

Defn: A diagram is an undirected open graph generated by the above vertices.

...

...

–...

...

– H

Figure 2: Interior vertices of diagrams

• X vertices with m inputs and n outputs, labelled by an angle – œ [0, 2fi);these are these are denoted Xm

n (–), and shown graphically as (dark) redcircles,

• H (or Hadamard) vertices, restricted to degree 2; shown as squares.

If a X or Z vertex has – = 0 then the label is entirely omitted. The allowedvertices are shown in Figure ??.

Since the inputs and outputs of of a diagram are totally ordered, we canidentify them with natural numbers and speak of the kth input, etc.

Remark 3.4. When a vertex occurs inside the graph, the distinction betweeninputs and outputs is purely conventional: one can view them simply as verticesof degree n + m; however, this distinction allows the semantics to be stated moredirectly, see below.

The collection of diagrams forms a compact category in the obvious way: theobjects are natural numbers and the arrows m æ n are those diagrams withm inputs and n outputs; composition g ¶ f is formed by identifying the inputsof g with the outputs of f and erasing the corresponding vertices; f ¢ g is thediagram formed by the disjoint union of f and g with If ordered before Ig, andsimilarly for the outputs. This is basically the free (self-dual) compact categorygenerated by the arrows shown in Figure ??.

We can make this category †-compact by specifying that f† is the samediagram as f , but with the inputs and outputs exchanged, and all the anglesnegated.

This construction yields a category that does not incorporate the algebraicstructure of strongly complementary observables. To obtain the desired categorywe must quotient by the equations shown in Figure ??. We denote the categoryso-obtained by D.

Remark 3.5. The equations shown in Figure ?? are not exactly those describedin Sections ?? and ??, however they are equivalent to them. We shall therefore,on occasion, use properties discussed earlier as derived rules in computations.

Since D is a monoidal category we can assign an interpretation to any diagramby providing a monoidal functor from D to any other monoidal category. Sincewe interested in quantum mechanics, the obvious target category is fdHilb.

Definition 3.6. Let J·K : D æ fdHilb be a symmetric monoidal functor definedon objects by

J1K = C2

18

...

...

–...

...

– H

Figure 2: Interior vertices of diagrams

• X vertices with m inputs and n outputs, labelled by an angle – œ [0, 2fi);these are these are denoted Xm

n (–), and shown graphically as (dark) redcircles,

• H (or Hadamard) vertices, restricted to degree 2; shown as squares.

If a X or Z vertex has – = 0 then the label is entirely omitted. The allowedvertices are shown in Figure ??.

Since the inputs and outputs of of a diagram are totally ordered, we canidentify them with natural numbers and speak of the kth input, etc.

Remark 3.4. When a vertex occurs inside the graph, the distinction betweeninputs and outputs is purely conventional: one can view them simply as verticesof degree n + m; however, this distinction allows the semantics to be stated moredirectly, see below.

The collection of diagrams forms a compact category in the obvious way: theobjects are natural numbers and the arrows m æ n are those diagrams withm inputs and n outputs; composition g ¶ f is formed by identifying the inputsof g with the outputs of f and erasing the corresponding vertices; f ¢ g is thediagram formed by the disjoint union of f and g with If ordered before Ig, andsimilarly for the outputs. This is basically the free (self-dual) compact categorygenerated by the arrows shown in Figure ??.

We can make this category †-compact by specifying that f† is the samediagram as f , but with the inputs and outputs exchanged, and all the anglesnegated.

This construction yields a category that does not incorporate the algebraicstructure of strongly complementary observables. To obtain the desired categorywe must quotient by the equations shown in Figure ??. We denote the categoryso-obtained by D.

Remark 3.5. The equations shown in Figure ?? are not exactly those describedin Sections ?? and ??, however they are equivalent to them. We shall therefore,on occasion, use properties discussed earlier as derived rules in computations.

Since D is a monoidal category we can assign an interpretation to any diagramby providing a monoidal functor from D to any other monoidal category. Sincewe interested in quantum mechanics, the obvious target category is fdHilb.

Definition 3.6. Let J·K : D æ fdHilb be a symmetric monoidal functor definedon objects by

J1K = C2

18

↵ 2 [0, 2⇡)

Page 159: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

Example: CNOTS

= = =

= = = =

– + —

=–

–1

–5–3

–2

–4

=q

i –i

1

Page 160: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

Example: CNOTS

= = =

= = = =

– + —

=–

–1

–5–3

–2

–4

=q

i –i

1

Page 161: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

Equational Reasoning= = =

= = = =

– + —

=–

–1

–5–3

–2

–4

=q

i –i

1

Page 162: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

Equational Reasoning= = =

= = = =

– + —

=–

–1

–5–3

–2

–4

=q

i –i

1

Page 163: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

Equational Reasoning= = =

= = = =

– + —

=–

–1

–5–3

–2

–4

=q

i –i

1

Page 164: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

Equational Reasoning= = =

= = = =

– + —

=–

–1

–5–3

–2

–4

=q

i –i

1

Z– Z—

X“

X”

– —

“”

– —“”

– —

=

1

Page 165: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

Equational Reasoning

Z– Z—

X“

X”

– —

“”

– —“”

– —

=

1

Z– Z—

X“

X”

– —

“”

– —“”

– —

=

1

Page 166: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

Equational Reasoning

= = =

= = = =

– + —

=–

–1

–5–3

–2

–4

=q

i –i

1

Z– Z—

X“

X”

– —

“”

– —“”

– —

=

1

Z– Z—

X“

X”

– —

“”

– —“”

– —

=

1

Page 167: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

Equational Reasoning

= = =

= = = =

– + —

=–

–1

–5–3

–2

–4

=q

i –i

1

Z– Z—

X“

X”

– —

“”

– —“”

– —

=

1

Z– Z—

X“

X”

– —

“”

– —“”

– —

=

1

= = =

= = = =

– + —

=–

–1

–5–3

–2

–4

=q

i –i

1

Page 168: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

Equational Reasoning

= = =

= = = =

– + —

=–

–1

–5–3

–2

–4

=q

i –i

1

Z– Z—

X“

X”

– —

“”

– —“”

– —

=

1

Z– Z—

X“

X”

– —

“”

– —“”

– —

=

1

= = =

= = = =

– + —

=–

–1

–5–3

–2

–4

=q

i –i

1

= = =

= = = =

– + —

=–

–1

–5–3

–2

–4

=q

i –i

1

Page 169: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

Equational Reasoning

= = =

= = = =

– + —

=–

–1

–5–3

–2

–4

=q

i –i

1

Z– Z—

X“

X”

– —

“”

– —“”

– —

=

1

Z– Z—

X“

X”

– —

“”

– —“”

– —

=

1

= = =

= = = =

– + —

=–

–1

–5–3

–2

–4

=q

i –i

1

= = =

= = = =

– + —

=–

–1

–5–3

–2

–4

=q

i –i

1

Double Pushout Rewriting

Page 170: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

Advertising

http://quantomatic.github.io

Graphical tool for doing graphical calculations:

Page 171: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

Application: QECCZX-calculus can demonstrate the correctness Quantum Error Correcting Codes:

Page 172: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

5.Compiling.

Oh look category theory can do something useful

Page 173: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

Circuit Perspective

Z– Z–

X–

X–

1

Page 174: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

Circuit Perspective

Z– Z–

X–

X–

1

Inputs

Outputs

Page 175: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

Circuit PerspectiveZ– Z—

X“

X”

– —

1

Inputs

Outputs

Page 176: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

Circuit PerspectiveZ– Z—

X“

X”

– —

1

Page 177: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

Circuit PerspectiveZ– Z—

X“

X”

– —

1

Page 178: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

??? Perspective

Z– Z—

X“

X”

– —

“”

– —

1

Page 179: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

??? Perspective

Z– Z—

X“

X”

– —

“”

– —

1

Page 180: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

??? Perspective

Z– Z—

X“

X”

– —

“”

– —

1

Hopf algebra expression

Page 181: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

??? Perspective

Hopf algebra normal form

Z– Z—

X“

X”

– —

“”

– —“”

– —

1

Page 182: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

MBQC Perspective

Z– Z—

X“

X”

– —

“”

– —“”

– —

1

Page 183: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

Physicalqubits

MBQC Perspective

Z– Z—

X“

X”

– —

“”

– —“”

– —

1

Page 184: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

Prepared qubits

MBQC Perspective

Z– Z—

X“

X”

– —

“”

– —“”

– —

1

Page 185: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

Prepared qubits

Measured qubits

MBQC Perspective

Z– Z—

X“

X”

– —

“”

– —“”

– —

1

Page 186: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

Prepared qubits

Measured qubits

MBQC Perspective

Z– Z—

X“

X”

– —

“”

– —“”

– —

1

Any ZX-calculus term can be interpreted as an MBQC in this way

Page 187: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

NQIT Perspective

Z– Z—

X“

X”

– —

“”

– —“”

– —

1

Page 188: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

NQIT Perspective

Z– Z—

X“

X”

– —

“”

– —“”

– —

1

Page 189: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

NQIT Perspective

Z– Z—

X“

X”

– —

“”

– —“”

– —

1

Few qubit ion traps

Page 190: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

NQIT Perspective

Z– Z—

X“

X”

– —

“”

– —“”

– —

1

Few qubit ion traps

Optical interconnect

Page 191: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

NQIT Perspective

Z– Z—

X“

X”

– —

“”

– —“”

– —

1

Architecture

Few qubit ion traps

Optical interconnect

Page 192: Introduction to Categorical Quantum mechanicspersonal.strath.ac.uk/.../talks/2017/Grenoble-LIG.pdf · 2017-10-16 · Categorical Quantum Theory Hilbert spaces Operators ... Compact

SUMMARY• Quantum computing needs a different logico-

algebraic basis to classical computing.

• Categorical analysis of concepts of QM reveals the key structures behind algorithms etc

• Diagrammatic syntax and DPO rewriting give tools to work efficiently with this theory

• New structural insights give new approaches and techniques to working with quantum computers