Categories and Quantum Informatics Week 4: Dual objects Chris - - PowerPoint PPT Presentation

categories and quantum informatics
SMART_READER_LITE
LIVE PREVIEW

Categories and Quantum Informatics Week 4: Dual objects Chris - - PowerPoint PPT Presentation

Categories and Quantum Informatics Week 4: Dual objects Chris Heunen 1 / 37 Dual objects Idea: Quantum mechanically: maximally entangled states Graphically: bending wires 2 / 37 Dual objects Idea: Quantum mechanically: maximally


slide-1
SLIDE 1

Categories and Quantum Informatics

Week 4: Dual objects Chris Heunen

1 / 37

slide-2
SLIDE 2

Dual objects

Idea:

◮ Quantum mechanically: maximally entangled states ◮ Graphically: bending wires

2 / 37

slide-3
SLIDE 3

Dual objects

Idea:

◮ Quantum mechanically: maximally entangled states ◮ Graphically: bending wires

An object L is left-dual to an object R, and R is right-dual to L, written L ⊣ R, when there is a unit morphism I η R ⊗ L and a counit morphism L ⊗ R ε I such that:

L L ⊗ I L ⊗ (R ⊗ L) L I ⊗ L (L ⊗ R) ⊗ L ρ−1

L

idL idL ⊗ η α−1

L,R,L

ε ⊗ idL λL R I ⊗ R (R ⊗ L) ⊗ R R R ⊗ I R ⊗ (L ⊗ R) λ−1

R

idR η ⊗ idR αR,L,R idR ⊗ ε ρR

2 / 37

slide-4
SLIDE 4

Snake equations

Draw an object L as a wire with an upward-pointing arrow, and a right dual R as a wire with a downward-pointing arrow.

L R

3 / 37

slide-5
SLIDE 5

Snake equations

Draw an object L as a wire with an upward-pointing arrow, and a right dual R as a wire with a downward-pointing arrow.

L R

The unit I η R ⊗ L and counit L ⊗ R ε I are drawn as bent wires:

R L L R

Duality equations become: = = Also called the snake equations.

3 / 37

slide-6
SLIDE 6

Dual Hilbert spaces

FHilb has all duals: any finite-dimensional Hilbert space H is both right and left dual to its dual Hilbert space H∗, in a canonical way.

4 / 37

slide-7
SLIDE 7

Dual Hilbert spaces

FHilb has all duals: any finite-dimensional Hilbert space H is both right and left dual to its dual Hilbert space H∗, in a canonical way. The counit H ⊗ H∗ ε C is: |φ ⊗ ψ| → ψ|φ The unit C η H∗ ⊗ H is defined like so, for any orthonormal basis |i: 1 →

  • i

i| ⊗ |i

4 / 37

slide-8
SLIDE 8

Dual Hilbert spaces

FHilb has all duals: any finite-dimensional Hilbert space H is both right and left dual to its dual Hilbert space H∗, in a canonical way. The counit H ⊗ H∗ ε C is: |φ ⊗ ψ| → ψ|φ The unit C η H∗ ⊗ H is defined like so, for any orthonormal basis |i: 1 →

  • i

i| ⊗ |i Is η basis-dependent, but ε not? No. (Will prove shortly.) Infinite-dimensional spaces do not have duals. (Will prove later.)

4 / 37

slide-9
SLIDE 9

Dual matrices

In MatC, every object n is its own dual, with a canonical choice of η and ε given as follows: η : 1 →

  • i

|i ⊗ |i ε : |i ⊗ |j → δij1

5 / 37

slide-10
SLIDE 10

Dual relations

In Rel, every object is its own dual, even infinite sets. Unit 1 η S × S and counit S × S ε 1 are:

  • ∼η (s, s) for all s ∈ S

(s, s) ∼ε • for all s ∈ S

6 / 37

slide-11
SLIDE 11

Names and conames

Set only has duals for singleton sets. Let A f B be a morphism in a monoidal category with dualities A ⊣ A∗ and B ⊣ B∗. Its name I f A∗ ⊗ B and coname A ⊗ B∗ f I are:

B A∗ f A B∗ f

7 / 37

slide-12
SLIDE 12

Names and conames

Set only has duals for singleton sets. Let A f B be a morphism in a monoidal category with dualities A ⊣ A∗ and B ⊣ B∗. Its name I f A∗ ⊗ B and coname A ⊗ B∗ f I are:

B A∗ f A B∗ f

Morphisms can be recovered from their names or conames:

A B f

=

B A f

7 / 37

slide-13
SLIDE 13

Names and conames

Set only has duals for singleton sets. Let A f B be a morphism in a monoidal category with dualities A ⊣ A∗ and B ⊣ B∗. Its name I f A∗ ⊗ B and coname A ⊗ B∗ f I are:

B A∗ f A B∗ f

Morphisms can be recovered from their names or conames:

A B f

=

B A f

In Set I is terminal, and so all conames A ⊗ B∗ f I must be equal. If Set had duals this would imply all functions A B were equal.

7 / 37

slide-14
SLIDE 14

Duals are unique up to iso

In a monoidal category with L ⊣ R, then L ⊣ R′ if and only if R ≃ R′. Similarly, if L ⊣ R, then L′ ⊣ R if and only if L ≃ L′.

8 / 37

slide-15
SLIDE 15

Duals are unique up to iso

In a monoidal category with L ⊣ R, then L ⊣ R′ if and only if R ≃ R′. Similarly, if L ⊣ R, then L′ ⊣ R if and only if L ≃ L′. Proof: If L ⊣ R and L ⊣ R′, define maps R R′ and R′ R by:

R L R′ R′ L R

The snake equations imply that these are inverse.

8 / 37

slide-16
SLIDE 16

Duals are unique up to iso

In a monoidal category with L ⊣ R, then L ⊣ R′ if and only if R ≃ R′. Similarly, if L ⊣ R, then L′ ⊣ R if and only if L ≃ L′. Proof: If L ⊣ R and L ⊣ R′, define maps R R′ and R′ R by:

R L R′ R′ L R

The snake equations imply that these are inverse. Conversely, if L ⊣ R and R f R′ is invertible, we can construct a duality L ⊣ R′:

L R′ R f -1 L R′ R f

An iso L ≃ L′ lets us produce duality L′ ⊣ R in a similar way.

8 / 37

slide-17
SLIDE 17

Unit determines counit

If (L, R, η, ε) and (L, R, η, ε′) both exhibit duality, then ε = ε′. If (L, R, η, ε) and (L, R, η′, ε) both exhibit duality, then η = η′.

9 / 37

slide-18
SLIDE 18

Unit determines counit

If (L, R, η, ε) and (L, R, η, ε′) both exhibit duality, then ε = ε′. If (L, R, η, ε) and (L, R, η′, ε) both exhibit duality, then η = η′. Proof:

ε

=

ε ε′

iso

=

ε′ ε

=

ε′

9 / 37

slide-19
SLIDE 19

Duals respect tensors

In a monoidal category, I ⊣ I, and L ⊗ L′ ⊣ R ⊗ R′ if L ⊣ R and L′ ⊣ R′.

10 / 37

slide-20
SLIDE 20

Duals respect tensors

In a monoidal category, I ⊣ I, and L ⊗ L′ ⊣ R ⊗ R′ if L ⊣ R and L′ ⊣ R′. Proof: Taking η = λ−1

I

: I I ⊗ I and ε = λI : I ⊗ I I shows that I ⊣ I. Snake equations follow from the coherence theorem.

10 / 37

slide-21
SLIDE 21

Duals respect tensors

In a monoidal category, I ⊣ I, and L ⊗ L′ ⊣ R ⊗ R′ if L ⊣ R and L′ ⊣ R′. Proof: Taking η = λ−1

I

: I I ⊗ I and ε = λI : I ⊗ I I shows that I ⊣ I. Snake equations follow from the coherence theorem. Now suppose L ⊣ R and L′ ⊣ R′. We make the new unit and counit maps from the old ones, and compute as follows:

L R L′ R′

iso

=

L L′

=

L L′

10 / 37

slide-22
SLIDE 22

Duals respect braiding

In a braided monoidal category, L ⊣ R ⇒ R ⊣ L.

11 / 37

slide-23
SLIDE 23

Duals respect braiding

In a braided monoidal category, L ⊣ R ⇒ R ⊣ L. Construct a new duality as follows: I η′ L ⊗ R R ⊗ L ε′ I

11 / 37

slide-24
SLIDE 24

Duals respect braiding

In a braided monoidal category, L ⊣ R ⇒ R ⊣ L. Construct a new duality as follows: I η′ L ⊗ R R ⊗ L ε′ I Test the snake equations: = =

11 / 37

slide-25
SLIDE 25

Duals for morphisms

For a morphism A f B and chosen dualities A ⊣ A∗, B ⊣ B∗, the right dual B∗ f∗ A∗ is defined in the following way:

A∗ B∗ f ∗

:=

A∗ B∗ f

=:

A∗ B∗ f

Represent this graphically by rotating the box for f.

12 / 37

slide-26
SLIDE 26

Sliding

For all morphisms A f B in a monoidal category with chosen duals A ⊣ A∗ and B ⊣ B∗:

f

=

f f

=

f

13 / 37

slide-27
SLIDE 27

Duals are functorial

If a monoidal category has chosen right duals, (−)∗ is a functor. Proof: Let A f B and B g C.

(g ◦ f)∗

=

f g

=

f g

=

f ∗ g∗

Similarly, (idA)∗ = idA∗ follows from the snake equations.

14 / 37

slide-28
SLIDE 28

Examples

◮ In FVect and FHilb, right dual of V f W is W∗ f∗

V∗, acting as f ∗(e) := e ◦ f, where W

e C is an arbitrary element of W∗. ◮ In MatC, the dual of a matrix is its transpose. ◮ In Rel, the dual of a relation is its converse. So the right duals

functor and the dagger functor have the same action: R∗ = R† for all relations R.

15 / 37

slide-29
SLIDE 29

Double duals

In monoidal category with chosen right duals, A∗∗ ⊗ B∗∗ ≃ (A ⊗ B)∗∗.

16 / 37

slide-30
SLIDE 30

Double duals

In monoidal category with chosen right duals, A∗∗ ⊗ B∗∗ ≃ (A ⊗ B)∗∗. Proof:

A∗∗ B∗∗ (A ⊗ B)∗∗ εA⊗B η(A⊗B)∗

16 / 37

slide-31
SLIDE 31

Teleportation

In a monoidal category with right duals, a teleportation procedure isa finite family of effects ei : A ⊗ A∗ I and unitaries Ui : A A with:

A A ei Ui

=

A A

17 / 37

slide-32
SLIDE 32

Teleportation

In a monoidal category with right duals, a teleportation procedure isa finite family of effects ei : A ⊗ A∗ I and unitaries Ui : A A with:

A A ei Ui

=

A A

This can be solved to give

ei

=

Ui

.

17 / 37

slide-33
SLIDE 33

Teleportation

Simplify the history:

L L Ui Ui

18 / 37

slide-34
SLIDE 34

Teleportation

Simplify the history:

L L Ui Ui

=

L L Ui Ui

18 / 37

slide-35
SLIDE 35

Teleportation

Simplify the history:

L L Ui Ui

=

L L Ui Ui

=

L L

18 / 37

slide-36
SLIDE 36

Teleportation

Simplify the history:

L L Ui Ui

=

L L Ui Ui

=

L L

=

L L

So if the original history occurs, the result is for the state of the

  • riginal system to be transmitted faithfully.

18 / 37

slide-37
SLIDE 37

Teleportation

Simplify the history:

L L Ui Ui

=

L L Ui Ui

=

L L

=

L L

So if the original history occurs, the result is for the state of the

  • riginal system to be transmitted faithfully.

If {ei} is a complete set of effects, this will always succeed.

18 / 37

slide-38
SLIDE 38

Teleportation in Hilb

Choose L = R = C2 and η† = ε =

  • 1

1

  • , and unitaries Ui:

1 1

  • 1

−1

  • 1

1

  • 1

−1

  • This gives rise to the following family of effects:
  • 1

1

  • 1

−1

  • 1

1

  • 1

−1

  • This is a complete set of effects, since it forms a basis for the vector

space Hilb(C2 ⊗ C2, C). So it is guaranteed to be successful.

19 / 37

slide-39
SLIDE 39

Teleportation in Hilb

Choose L = R = C2 and η† = ε =

  • 1

1

  • , and unitaries Ui:

1 1

  • 1

−1

  • 1

1

  • 1

−1

  • This gives rise to the following family of effects:
  • 1

1

  • 1

−1

  • 1

1

  • 1

−1

  • This is a complete set of effects, since it forms a basis for the vector

space Hilb(C2 ⊗ C2, C). So it is guaranteed to be successful. This is traditional qubit teleportation.

19 / 37

slide-40
SLIDE 40

Teleportation in Rel

Choose L = R = {0, 1} and η† = ε =

  • 1

1

  • , and unitaries:

1 1

  • 1

1

  • This gives rise to the following family of effects:
  • 1

1

  • 1

1

  • These form a complete set of effects.

20 / 37

slide-41
SLIDE 41

Teleportation in Rel

Choose L = R = {0, 1} and η† = ε =

  • 1

1

  • , and unitaries:

1 1

  • 1

1

  • This gives rise to the following family of effects:
  • 1

1

  • 1

1

  • These form a complete set of effects.

This is classical encrypted communication with a one-time pad.

20 / 37

slide-42
SLIDE 42

Graphical calculus for compact categories

A compact category is symmetric monoidal with chosen duals.

21 / 37

slide-43
SLIDE 43

Graphical calculus for compact categories

A compact category is symmetric monoidal with chosen duals. A well-formed equation between morphisms in a pivotal category follows from the axioms if and only if it holds in the graphical language up to four-dimensional oriented isotopy.

21 / 37

slide-44
SLIDE 44

Graphical calculus for compact categories

A compact category is symmetric monoidal with chosen duals. A well-formed equation between morphisms in a pivotal category follows from the axioms if and only if it holds in the graphical language up to four-dimensional oriented isotopy. Wires of our diagram have arrows, isotopy must preserve them:

f

21 / 37

slide-45
SLIDE 45

Graphical calculus for compact categories

A compact category is symmetric monoidal with chosen duals. A well-formed equation between morphisms in a pivotal category follows from the axioms if and only if it holds in the graphical language up to four-dimensional oriented isotopy. Wires of our diagram have arrows, isotopy must preserve them:

f

=

f

21 / 37

slide-46
SLIDE 46

Graphical calculus for compact categories

A compact category is symmetric monoidal with chosen duals. A well-formed equation between morphisms in a pivotal category follows from the axioms if and only if it holds in the graphical language up to four-dimensional oriented isotopy. Wires of our diagram have arrows, isotopy must preserve them:

f

=

f

=

f

21 / 37

slide-47
SLIDE 47

Graphical calculus for compact categories

A compact category is symmetric monoidal with chosen duals. A well-formed equation between morphisms in a pivotal category follows from the axioms if and only if it holds in the graphical language up to four-dimensional oriented isotopy. Wires of our diagram have arrows, isotopy must preserve them:

f

=

f

=

f

=

f

21 / 37

slide-48
SLIDE 48

Intermezzo: ribbon categories

Could have got by with less than symmetric monoidal with duals. Useful in topological quantum computation. Make some ribbons by cutting long, thin strips from piece of paper. Verify: =

22 / 37

slide-49
SLIDE 49

Compact dagger categories

In a monoidal dagger category, L ⊣ R ⇔ R ⊣ L. Proof: follows directly from axiom (f ⊗ g)† = f † ⊗ g†.

23 / 37

slide-50
SLIDE 50

Compact dagger categories

In a monoidal dagger category, L ⊣ R ⇔ R ⊣ L. Proof: follows directly from axiom (f ⊗ g)† = f † ⊗ g†. In a monoidal dagger category, a dagger dual is a duality A ⊣ A∗ witnessed by morphisms I η A∗ ⊗ A and A ⊗ A∗ ε I satisfying:

η

=

ε

23 / 37

slide-51
SLIDE 51

Maximally entangled states

In a compact dagger category, a maximally entangled state is a bipartite state with:

η η

=

η η

=

24 / 37

slide-52
SLIDE 52

Maximally entangled states

In a compact dagger category, a maximally entangled state is a bipartite state with:

η η

=

η η

= In a compact dagger category, a state is maximally entangled if and

  • nly if it is part of a dagger duality.

24 / 37

slide-53
SLIDE 53

Maximally entangled states

In a compact dagger category, a maximally entangled state is a bipartite state with:

η η

=

η η

= In a compact dagger category, a state is maximally entangled if and

  • nly if it is part of a dagger duality.

Proof:

η η

=

ε η

iso

=

ε η

=

24 / 37

slide-54
SLIDE 54

Dagger duals unique up to unitary

Given dagger duals (L ⊢ R, η, ε) and (L ⊢ R′, η′, ε′), construct an isomorphism R ≃ R′ as before:

η ε′

Then:

η ε′ ε′ η

=

η ε′ η′ η

iso

=

η ε′ η′ η

=

η η

=

25 / 37

slide-55
SLIDE 55

Maximally entangled states unique up to unitary

In a compact dagger category, any two maximally entangled states I η,η′ A ⊗ B have a unique unitary A f A with:

η f

=

η′

So maximally entangled states are unique up to a unique unitary.

26 / 37

slide-56
SLIDE 56

Conjugation

In a compact dagger category, every morphism satisfies (f ∗)† = (f †)∗. Proof:

(f ∗)†

=     

f

    

=

f (f †)∗

=

f

27 / 37

slide-57
SLIDE 57

Conjugation

On a compact dagger category, conjugation (−)∗ is defined as the composite of the dagger and the right-duals functor: (−)∗ := (−)∗† = (−)†∗ Since taking daggers is the identity on objects we have A∗ := A∗.

28 / 37

slide-58
SLIDE 58

Conjugation

On a compact dagger category, conjugation (−)∗ is defined as the composite of the dagger and the right-duals functor: (−)∗ := (−)∗† = (−)†∗ Since taking daggers is the identity on objects we have A∗ := A∗. Draw conjugation by flipping the morphism about a vertical axis:

f

:=

f∗

Since (−)∗ and † are contravariant, (−)∗ is covariant.

28 / 37

slide-59
SLIDE 59

Conjugation: examples

Our examples FHilb, MatC and Rel are all compact dagger categories

◮ In FHilb: conjugation functor gives conjugate of linear map ◮ In MatC: conjugation functor gives the conjugate of a matrix,

each matrix entry replaced by its conjugate as a complex number

◮ In Rel: conjugation is identity

29 / 37

slide-60
SLIDE 60

Trace and dimension

In a compact dagger category, the trace of a morphism A f A is the following scalar TrA(f):

f

30 / 37

slide-61
SLIDE 61

Trace and dimension

In a compact dagger category, the trace of a morphism A f A is the following scalar TrA(f):

f

The dimension of an object A is the scalar dim(A) := TrA(idA).

30 / 37

slide-62
SLIDE 62

Trace and dimension

In a compact dagger category, the trace of a morphism A f A is the following scalar TrA(f):

f

The dimension of an object A is the scalar dim(A) := TrA(idA). The trace in FHilb is the ordinary trace.

30 / 37

slide-63
SLIDE 63

Trace is cyclic

In any compact dagger category, TrA(g ◦ f) = TrB(f ◦ g). Proof:

f g

=

f g

=

g f

The g slides around the circle, and ends up underneath the f.

31 / 37

slide-64
SLIDE 64

Trace and dimension properties

In a compact dagger category:

◮ TrI(s) = s ◮ TrA⊗B(f ⊗ g) = TrA(f) ◦ TrB(g) ◮

TrA(f) † = TrA(f †)

32 / 37

slide-65
SLIDE 65

Trace and dimension properties

In a compact dagger category:

◮ TrI(s) = s ◮ TrA⊗B(f ⊗ g) = TrA(f) ◦ TrB(g) ◮

TrA(f) † = TrA(f †) Hence:

◮ dim(I) = idI ◮ dim(A ⊗ B) = dim(A) ◦ dim(B) ◮ A ≃ B ⇒ dim(A) = dim(B)

32 / 37

slide-66
SLIDE 66

Dual objects are finite-dimensional

Infinite-dimensional Hilbert spaces do not have duals. Proof: Similarly we could prove dim(A ⊕ B) = dim(A) + dim(B). Suppose H is an infinite-dimensional Hilbert space. Then there is an isomorphism H ⊕ C ≃ H. If H had a dual, then dim(H) + 1 = dim(H). But this is a contradiction, since there is no complex number with that property.

33 / 37

slide-67
SLIDE 67

Dual objects are finite-dimensional

Infinite-dimensional Hilbert spaces do not have duals. Proof: Similarly we could prove dim(A ⊕ B) = dim(A) + dim(B). Suppose H is an infinite-dimensional Hilbert space. Then there is an isomorphism H ⊕ C ≃ H. If H had a dual, then dim(H) + 1 = dim(H). But this is a contradiction, since there is no complex number with that property. This argument would not apply in Rel, since there id1 + id1 = id1. Indeed, any set has a dual in Rel, even infinite ones.

33 / 37

slide-68
SLIDE 68

Information flow

In well-pointed monoidal dagger category f = g: A B if and only if

b a f

=

b a g

for all a, b: I B: can compare ‘matrix entries’

34 / 37

slide-69
SLIDE 69

Information flow

In well-pointed monoidal dagger category f = g: A B if and only if

b a f

=

b a g

for all a, b: I B: can compare ‘matrix entries’ In Rel can conveniently decorate wires with elements: scalar

x z R S

is 1 if and only if there is y such that following scalars both 1:

x y R

and

y z S

34 / 37

slide-70
SLIDE 70

Information flow

In well-pointed monoidal dagger category f = g: A B if and only if

b a f

=

b a g

for all a, b: I B: can compare ‘matrix entries’ So can decorate

y x z R S

to signify that if x is connected to z, then must ‘flow’ through some y

34 / 37

slide-71
SLIDE 71

Interference

In FHilb, have (destructive) interference: if g = −1 −1

1 1

  • , f =

1 1

1 1

  • , and x = z =

1

1

  • , then

z x g f

=

( 1 0 ) x z 1

  • g

f

+

( 0 1 ) x z

1

  • g

f

= −4 + 4 = 0 but both histories in the sum are possible

35 / 37

slide-72
SLIDE 72

Cups are entangled

If L ⊣ R, and I η R ⊗ L is a product state, then idL and idR disconnect (factor through I)

36 / 37

slide-73
SLIDE 73

Cups are entangled

If L ⊣ R, and I η R ⊗ L is a product state, then idL and idR disconnect (factor through I) Proof: Suppose η is I

λ−1

i

I ⊗ I r⊗l R ⊗ L. Then:

L

= =

r l

=

r l

36 / 37

slide-74
SLIDE 74

Cups are entangled

If L ⊣ R, and I η R ⊗ L is a product state, then idL and idR disconnect (factor through I) Proof: Suppose η is I

λ−1

i

I ⊗ I r⊗l R ⊗ L. Then:

L

= =

r l

=

r l

Interpreting diagram as history of events, disconnect means

  • utput independent of input: L degenerate

36 / 37

slide-75
SLIDE 75

Summary

◮ Dual objects: bend wires, maximally entangled states ◮ Names and conames: encode morphisms as states ◮ Dual morphisms: sliding, functorial ◮ Teleportation: quantum, one-time pad ◮ Graphical calculus for compact dagger categories: orientation ◮ Conjugation: combine duals with dagger ◮ Trace and dimension: turn morphisms into scalars ◮ Information flow: entanglement vs disconnect

37 / 37