Introduction to Quantum Logic - HWmarkl/teaching/LOGIC/hw-logic.pdf · 2016-11-16 · I Quantum...

48
Introduction to Quantum Logic Chris Heunen 1 / 28

Transcript of Introduction to Quantum Logic - HWmarkl/teaching/LOGIC/hw-logic.pdf · 2016-11-16 · I Quantum...

Page 1: Introduction to Quantum Logic - HWmarkl/teaching/LOGIC/hw-logic.pdf · 2016-11-16 · I Quantum computers use this weirdness in a positive way to achieve more than classical computers

Introduction to Quantum Logic

Chris Heunen

1 / 28

Page 2: Introduction to Quantum Logic - HWmarkl/teaching/LOGIC/hw-logic.pdf · 2016-11-16 · I Quantum computers use this weirdness in a positive way to achieve more than classical computers

Overview

I Boolean algebra

I Superposition

I Quantum logic

I Entanglement

I Quantum computation

2 / 28

Page 3: Introduction to Quantum Logic - HWmarkl/teaching/LOGIC/hw-logic.pdf · 2016-11-16 · I Quantum computers use this weirdness in a positive way to achieve more than classical computers

Boolean algebra

3 / 28

Page 4: Introduction to Quantum Logic - HWmarkl/teaching/LOGIC/hw-logic.pdf · 2016-11-16 · I Quantum computers use this weirdness in a positive way to achieve more than classical computers

Boolean algebra

A Boolean algebra is a set (of “logical propositions”) with

I special elements 0, 1 (“false” and “true”)

I binary operations ∨,∧ (“or” and “and”)

I a unary operation ¬ (“not”)

that satisfy laws:

associativity x ∨ (y ∨ z) = (x ∨ y) ∨ z x ∧ (y ∧ z) = (x ∧ y) ∧ zcommutativity x ∨ y = y ∨ x x ∧ y = y ∧ xidentity x ∨ 0 = x x ∧ 1 = xannihilation x ∨ 1 = 1 x ∧ 0 = 0idempotence x ∨ x = x x ∧ x = xabsorption x ∧ (x ∨ y) = x x ∨ (x ∧ y) = xcomplementation x ∧ ¬x = 0 x ∨ ¬x = 1de Morgan ¬(x ∨ y) = ¬x ∧ ¬y ¬(x ∧ y) = ¬x ∨ ¬ydouble negation ¬(¬x) = xdistributivity x ∧ (y ∨ z) = (x ∧ y) ∨ (x ∧ z)

x ∨ (y ∧ z) = (x ∨ y) ∧ (x ∨ z)

4 / 28

Page 5: Introduction to Quantum Logic - HWmarkl/teaching/LOGIC/hw-logic.pdf · 2016-11-16 · I Quantum computers use this weirdness in a positive way to achieve more than classical computers

Boolean algebra

A Boolean algebra is a set (of “logical propositions”) with

I special elements 0, 1 (“false” and “true”)

I binary operations ∨,∧ (“or” and “and”)

I a unary operation ¬ (“not”)

that satisfy laws:

associativity x ∨ (y ∨ z) = (x ∨ y) ∨ z x ∧ (y ∧ z) = (x ∧ y) ∧ zcommutativity x ∨ y = y ∨ x x ∧ y = y ∧ xidentity x ∨ 0 = x x ∧ 1 = xannihilation x ∨ 1 = 1 x ∧ 0 = 0idempotence x ∨ x = x x ∧ x = xabsorption x ∧ (x ∨ y) = x x ∨ (x ∧ y) = xcomplementation x ∧ ¬x = 0 x ∨ ¬x = 1de Morgan ¬(x ∨ y) = ¬x ∧ ¬y ¬(x ∧ y) = ¬x ∨ ¬ydouble negation ¬(¬x) = xdistributivity x ∧ (y ∨ z) = (x ∧ y) ∨ (x ∧ z) x ∨ (y ∧ z) = (x ∨ y) ∧ (x ∨ z)

4 / 28

Page 6: Introduction to Quantum Logic - HWmarkl/teaching/LOGIC/hw-logic.pdf · 2016-11-16 · I Quantum computers use this weirdness in a positive way to achieve more than classical computers

Venn diagram

A

B

C

“logical proposition” ∼ subset“and” ∼ intersection

“or” ∼ union“not” ∼ complement

“true” ∼ whole set“false” ∼ empty set

Think of a “logical proposition” as the set of states in which it is trueThe larger the subset, the “more true” the proposition

5 / 28

Page 7: Introduction to Quantum Logic - HWmarkl/teaching/LOGIC/hw-logic.pdf · 2016-11-16 · I Quantum computers use this weirdness in a positive way to achieve more than classical computers

Venn diagram

A

B

C

“logical proposition” ∼ subset“and” ∼ intersection

“or” ∼ union“not” ∼ complement

“true” ∼ whole set“false” ∼ empty set

Think of a “logical proposition” as the set of states in which it is trueThe larger the subset, the “more true” the proposition

5 / 28

Page 8: Introduction to Quantum Logic - HWmarkl/teaching/LOGIC/hw-logic.pdf · 2016-11-16 · I Quantum computers use this weirdness in a positive way to achieve more than classical computers

Hasse diagramEvery Boolean algebra has a partial order

x ≤ y ⇐⇒ x ∧ y = x

with greatest lower bounds, least upper bounds, and complements.Conversely, every such partial order gives a Boolean algebra.

{}

{, ,

}

{ } { } { }

{,

} {,

} {,}

6 / 28

Page 9: Introduction to Quantum Logic - HWmarkl/teaching/LOGIC/hw-logic.pdf · 2016-11-16 · I Quantum computers use this weirdness in a positive way to achieve more than classical computers

Hasse diagramEvery Boolean algebra has a partial order

x ≤ y ⇐⇒ x ∧ y = x

with greatest lower bounds, least upper bounds, and complements.

Conversely, every such partial order gives a Boolean algebra.

{}

{, ,

}

{ } { } { }

{,

} {,

} {,}

6 / 28

Page 10: Introduction to Quantum Logic - HWmarkl/teaching/LOGIC/hw-logic.pdf · 2016-11-16 · I Quantum computers use this weirdness in a positive way to achieve more than classical computers

Hasse diagramEvery Boolean algebra has a partial order

x ≤ y ⇐⇒ x ∧ y = x

with greatest lower bounds, least upper bounds, and complements.Conversely, every such partial order gives a Boolean algebra.

{}

{, ,

}

{ } { } { }

{,

} {,

} {,}

6 / 28

Page 11: Introduction to Quantum Logic - HWmarkl/teaching/LOGIC/hw-logic.pdf · 2016-11-16 · I Quantum computers use this weirdness in a positive way to achieve more than classical computers

Hasse diagramEvery Boolean algebra has a partial order

x ≤ y ⇐⇒ x ∧ y = x

with greatest lower bounds, least upper bounds, and complements.Conversely, every such partial order gives a Boolean algebra.

{}

{, ,

}

{ } { } { }

{,

} {,

} {,}

6 / 28

Page 12: Introduction to Quantum Logic - HWmarkl/teaching/LOGIC/hw-logic.pdf · 2016-11-16 · I Quantum computers use this weirdness in a positive way to achieve more than classical computers

Implication

Can axiomatise Boolean algebra in terms of ∧,∨, or in terms of ≤,or in terms of →:

x ∧ y ≤ z ⇐⇒ x ≤ y → z

where (y → z) = (¬y ∨ z)

7 / 28

Page 13: Introduction to Quantum Logic - HWmarkl/teaching/LOGIC/hw-logic.pdf · 2016-11-16 · I Quantum computers use this weirdness in a positive way to achieve more than classical computers

Quantum information

I Boolean logic governs propositions and states.

I Computers manipulate information(information stored on physical system)Quantum computers manipulate quantum information(information stored on quantum-mechanical systems)

I Quantum information is weird:I superpositionI entanglement

I Quantum computers use this weirdness in a positive wayto achieve more than classical computers

8 / 28

Page 14: Introduction to Quantum Logic - HWmarkl/teaching/LOGIC/hw-logic.pdf · 2016-11-16 · I Quantum computers use this weirdness in a positive way to achieve more than classical computers

Quantum information

I Boolean logic governs propositions and states.

I Computers manipulate information(information stored on physical system)

Quantum computers manipulate quantum information(information stored on quantum-mechanical systems)

I Quantum information is weird:I superpositionI entanglement

I Quantum computers use this weirdness in a positive wayto achieve more than classical computers

8 / 28

Page 15: Introduction to Quantum Logic - HWmarkl/teaching/LOGIC/hw-logic.pdf · 2016-11-16 · I Quantum computers use this weirdness in a positive way to achieve more than classical computers

Quantum information

I Boolean logic governs propositions and states.

I Computers manipulate information(information stored on physical system)Quantum computers manipulate quantum information(information stored on quantum-mechanical systems)

I Quantum information is weird:I superpositionI entanglement

I Quantum computers use this weirdness in a positive wayto achieve more than classical computers

8 / 28

Page 16: Introduction to Quantum Logic - HWmarkl/teaching/LOGIC/hw-logic.pdf · 2016-11-16 · I Quantum computers use this weirdness in a positive way to achieve more than classical computers

Quantum information

I Boolean logic governs propositions and states.

I Computers manipulate information(information stored on physical system)Quantum computers manipulate quantum information(information stored on quantum-mechanical systems)

I Quantum information is weird:I superpositionI entanglement

I Quantum computers use this weirdness in a positive wayto achieve more than classical computers

8 / 28

Page 17: Introduction to Quantum Logic - HWmarkl/teaching/LOGIC/hw-logic.pdf · 2016-11-16 · I Quantum computers use this weirdness in a positive way to achieve more than classical computers

Quantum information

I Boolean logic governs propositions and states.

I Computers manipulate information(information stored on physical system)Quantum computers manipulate quantum information(information stored on quantum-mechanical systems)

I Quantum information is weird:I superpositionI entanglement

I Quantum computers use this weirdness in a positive wayto achieve more than classical computers

8 / 28

Page 18: Introduction to Quantum Logic - HWmarkl/teaching/LOGIC/hw-logic.pdf · 2016-11-16 · I Quantum computers use this weirdness in a positive way to achieve more than classical computers

States and propositions

Physical system has set of statesProposition about physical system is subset

Quantum system has space of statesProposition about quantum system is subspace

9 / 28

Page 19: Introduction to Quantum Logic - HWmarkl/teaching/LOGIC/hw-logic.pdf · 2016-11-16 · I Quantum computers use this weirdness in a positive way to achieve more than classical computers

States and propositions

Physical system has set of statesProposition about physical system is subset

Quantum system has space of statesProposition about quantum system is subspace

9 / 28

Page 20: Introduction to Quantum Logic - HWmarkl/teaching/LOGIC/hw-logic.pdf · 2016-11-16 · I Quantum computers use this weirdness in a positive way to achieve more than classical computers

Quantum weirdness: superposition

Classical bits

(what went in comes out)

10 / 28

Page 21: Introduction to Quantum Logic - HWmarkl/teaching/LOGIC/hw-logic.pdf · 2016-11-16 · I Quantum computers use this weirdness in a positive way to achieve more than classical computers

Superposition

Quantum bits

11 / 28

Page 22: Introduction to Quantum Logic - HWmarkl/teaching/LOGIC/hw-logic.pdf · 2016-11-16 · I Quantum computers use this weirdness in a positive way to achieve more than classical computers

Superposition

Quantum bits

12 / 28

Page 23: Introduction to Quantum Logic - HWmarkl/teaching/LOGIC/hw-logic.pdf · 2016-11-16 · I Quantum computers use this weirdness in a positive way to achieve more than classical computers

Superposition

Quantum bits

(if you open different door than you closed, random colour comesout)

13 / 28

Page 24: Introduction to Quantum Logic - HWmarkl/teaching/LOGIC/hw-logic.pdf · 2016-11-16 · I Quantum computers use this weirdness in a positive way to achieve more than classical computers

Qubits

Quantum bit has state space R2

Could be

(10

), could be

(01

), or could be “in between”

(ab

).

You can ask for the value of a quantum bit in many ways,

using any angle θ. Say

(cos θ − sin θsin θ cos θ

)(ab

)=

(cd

).

Get answer 0 with probability c2, answer 1 with probability d2.

So propositions are the subspaces

{(t cos θt sin θ

): t ∈ R

},

{(00

)}, R2.

14 / 28

Page 25: Introduction to Quantum Logic - HWmarkl/teaching/LOGIC/hw-logic.pdf · 2016-11-16 · I Quantum computers use this weirdness in a positive way to achieve more than classical computers

Qubits

Quantum bit has state space R2

Could be

(10

), could be

(01

), or could be “in between”

(ab

).

You can ask for the value of a quantum bit in many ways,

using any angle θ. Say

(cos θ − sin θsin θ cos θ

)(ab

)=

(cd

).

Get answer 0 with probability c2, answer 1 with probability d2.

So propositions are the subspaces

{(t cos θt sin θ

): t ∈ R

},

{(00

)}, R2.

14 / 28

Page 26: Introduction to Quantum Logic - HWmarkl/teaching/LOGIC/hw-logic.pdf · 2016-11-16 · I Quantum computers use this weirdness in a positive way to achieve more than classical computers

Qubits

Quantum bit has state space R2

Could be

(10

), could be

(01

), or could be “in between”

(ab

).

You can ask for the value of a quantum bit in many ways,

using any angle θ. Say

(cos θ − sin θsin θ cos θ

)(ab

)=

(cd

).

Get answer 0 with probability c2, answer 1 with probability d2.

So propositions are the subspaces

{(t cos θt sin θ

): t ∈ R

},

{(00

)}, R2.

14 / 28

Page 27: Introduction to Quantum Logic - HWmarkl/teaching/LOGIC/hw-logic.pdf · 2016-11-16 · I Quantum computers use this weirdness in a positive way to achieve more than classical computers

Distributivity

(or

)and

6=(and

)or(

and)

tea

coffeebiscuit

nothing

15 / 28

Page 28: Introduction to Quantum Logic - HWmarkl/teaching/LOGIC/hw-logic.pdf · 2016-11-16 · I Quantum computers use this weirdness in a positive way to achieve more than classical computers

Distributivity

(or

)and

6=(and

)or(

and)

tea

coffeebiscuit

nothing

15 / 28

Page 29: Introduction to Quantum Logic - HWmarkl/teaching/LOGIC/hw-logic.pdf · 2016-11-16 · I Quantum computers use this weirdness in a positive way to achieve more than classical computers

Orthomodularity

I There is still order: ≤ is set inclusion.

I There are still least upper bounds, greatest lower bounds.

I There is still negation: ¬R2 =

{(00

)}, and

¬{(

t cos θt sin θ

): t ∈ R

}=

{(t cos(θ + π/2)t sin(θ + π/2)

): t ∈ R

}I The orthomodular law still holds:

x ≤ y =⇒ x ∨ (¬x ∧ y) = y

(distributivity x ∨ (z ∧ y) = (x ∨ z) ∧ (x ∨ y) for z = ¬x, x ≤ y)

I Quantum logic is study of partial orders with 0,1, least upperbounds, greatest lower bounds, complements, satisfyingorthomodular law.

16 / 28

Page 30: Introduction to Quantum Logic - HWmarkl/teaching/LOGIC/hw-logic.pdf · 2016-11-16 · I Quantum computers use this weirdness in a positive way to achieve more than classical computers

Implication

There is no good notion of quantum implication. Best we can do is

x& y ≤ z ⇐⇒ x ≤ y → z

where (x& y) = (x ∨ ¬y) ∧ yand (y → z) = ¬y ∨ (y ∧ z).

Here (x& y) = (x ∧ y) when x ≤ ¬y.

17 / 28

Page 31: Introduction to Quantum Logic - HWmarkl/teaching/LOGIC/hw-logic.pdf · 2016-11-16 · I Quantum computers use this weirdness in a positive way to achieve more than classical computers

Quantum computation

18 / 28

Page 32: Introduction to Quantum Logic - HWmarkl/teaching/LOGIC/hw-logic.pdf · 2016-11-16 · I Quantum computers use this weirdness in a positive way to achieve more than classical computers

Entanglement

2 quantum bits

random random

19 / 28

Page 33: Introduction to Quantum Logic - HWmarkl/teaching/LOGIC/hw-logic.pdf · 2016-11-16 · I Quantum computers use this weirdness in a positive way to achieve more than classical computers

Entanglement

2 quantum bits

20 / 28

Page 34: Introduction to Quantum Logic - HWmarkl/teaching/LOGIC/hw-logic.pdf · 2016-11-16 · I Quantum computers use this weirdness in a positive way to achieve more than classical computers

Entanglement

2 quantum bits

(same door, same colour!)

I information stored entirely in correlations, not locally!

21 / 28

Page 35: Introduction to Quantum Logic - HWmarkl/teaching/LOGIC/hw-logic.pdf · 2016-11-16 · I Quantum computers use this weirdness in a positive way to achieve more than classical computers

Entanglement

classical correlations

quantum correlations

I But: only one way to look at socks,but two ways to look in box!

22 / 28

Page 36: Introduction to Quantum Logic - HWmarkl/teaching/LOGIC/hw-logic.pdf · 2016-11-16 · I Quantum computers use this weirdness in a positive way to achieve more than classical computers

Entanglement

classical correlations quantum correlations

I But: only one way to look at socks,but two ways to look in box!

22 / 28

Page 37: Introduction to Quantum Logic - HWmarkl/teaching/LOGIC/hw-logic.pdf · 2016-11-16 · I Quantum computers use this weirdness in a positive way to achieve more than classical computers

Entanglement

classical correlations quantum correlations

I But: only one way to look at socks,but two ways to look in box!

22 / 28

Page 38: Introduction to Quantum Logic - HWmarkl/teaching/LOGIC/hw-logic.pdf · 2016-11-16 · I Quantum computers use this weirdness in a positive way to achieve more than classical computers

Tensor products

I State space of n bits is product of state spaces of individual bits.

I Product of n qubits R2 × · · · × R2 ' R2n has dimension 2n.

I Instead, use tensor product R2 ⊗ · · · ⊗ R2, with dimension 2n.

I Has many entangled states not in the product.

(ab

)×(cd

)=

abcd

but

(ab

)⊗(cd

)=

acadbcbd

23 / 28

Page 39: Introduction to Quantum Logic - HWmarkl/teaching/LOGIC/hw-logic.pdf · 2016-11-16 · I Quantum computers use this weirdness in a positive way to achieve more than classical computers

Quantum computation speed-up

10 classical bits: only 210 = 1024 possibilities

need 10 numbers to describe one possibility:

(all independent)

10 quantum bits:

need ∼ 1000 numbers to describe a single possibility!(many correlations)

24 / 28

Page 40: Introduction to Quantum Logic - HWmarkl/teaching/LOGIC/hw-logic.pdf · 2016-11-16 · I Quantum computers use this weirdness in a positive way to achieve more than classical computers

Quantum computation speed-up

10 classical bits: only 210 = 1024 possibilities

need 10 numbers to describe one possibility:

(all independent)

10 quantum bits:

need ∼ 1000 numbers to describe a single possibility!(many correlations)

24 / 28

Page 41: Introduction to Quantum Logic - HWmarkl/teaching/LOGIC/hw-logic.pdf · 2016-11-16 · I Quantum computers use this weirdness in a positive way to achieve more than classical computers

Quantum computation speed-up

10 classical bits: only 210 = 1024 possibilities

need 10 numbers to describe one possibility:

(all independent)

10 quantum bits:

need ∼ 1000 numbers to describe a single possibility!(many correlations)

24 / 28

Page 42: Introduction to Quantum Logic - HWmarkl/teaching/LOGIC/hw-logic.pdf · 2016-11-16 · I Quantum computers use this weirdness in a positive way to achieve more than classical computers

Deutsch–Josza

I Given: algorithm f that inputs 2n bits and outputs 1 bit.Promised: either f outputs 0 on n and 1 on other half,

or f always gives the same output.Question: find out which.

I Classical algorithm requires n+ 1 calls to f .

I Quantum algorithm can do it in 1 step!(Caveat: “oracle” f needs to be quantum to start with)

25 / 28

Page 43: Introduction to Quantum Logic - HWmarkl/teaching/LOGIC/hw-logic.pdf · 2016-11-16 · I Quantum computers use this weirdness in a positive way to achieve more than classical computers

Deutsch–Josza

I Given: algorithm f that inputs 2n bits and outputs 1 bit.Promised: either f outputs 0 on n and 1 on other half,

or f always gives the same output.Question: find out which.

I Classical algorithm requires n+ 1 calls to f .

I Quantum algorithm can do it in 1 step!(Caveat: “oracle” f needs to be quantum to start with)

25 / 28

Page 44: Introduction to Quantum Logic - HWmarkl/teaching/LOGIC/hw-logic.pdf · 2016-11-16 · I Quantum computers use this weirdness in a positive way to achieve more than classical computers

Deutsch–Josza

I Given: algorithm f that inputs 2n bits and outputs 1 bit.Promised: either f outputs 0 on n and 1 on other half,

or f always gives the same output.Question: find out which.

I Classical algorithm requires n+ 1 calls to f .

I Quantum algorithm can do it in 1 step!

(Caveat: “oracle” f needs to be quantum to start with)

25 / 28

Page 45: Introduction to Quantum Logic - HWmarkl/teaching/LOGIC/hw-logic.pdf · 2016-11-16 · I Quantum computers use this weirdness in a positive way to achieve more than classical computers

Deutsch–Josza

I Given: algorithm f that inputs 2n bits and outputs 1 bit.Promised: either f outputs 0 on n and 1 on other half,

or f always gives the same output.Question: find out which.

I Classical algorithm requires n+ 1 calls to f .

I Quantum algorithm can do it in 1 step!(Caveat: “oracle” f needs to be quantum to start with)

25 / 28

Page 46: Introduction to Quantum Logic - HWmarkl/teaching/LOGIC/hw-logic.pdf · 2016-11-16 · I Quantum computers use this weirdness in a positive way to achieve more than classical computers

Deutsch–Josza

I Start with

(10

)⊗ · · · ⊗

(10

)⊗(

01

).

I Apply H ⊗ · · · ⊗H ⊗H, where H =

(cosπ/2 − sinπ/2sinπ/2 cosπ/2

)I Apply f

I Apply H ⊗ · · · ⊗HI Measure with angle 0

I Answer 1 with certainty if f was constant, 0 if f was balanced

26 / 28

Page 47: Introduction to Quantum Logic - HWmarkl/teaching/LOGIC/hw-logic.pdf · 2016-11-16 · I Quantum computers use this weirdness in a positive way to achieve more than classical computers

Deutsch–Josza

Correctness proof in vector space notation:

27 / 28

Page 48: Introduction to Quantum Logic - HWmarkl/teaching/LOGIC/hw-logic.pdf · 2016-11-16 · I Quantum computers use this weirdness in a positive way to achieve more than classical computers

Summary

I Quantum weirdness: superposition, entanglement

I Quantum computation can use weirdness

I Quantum logic has to deal with weirdness

Take-home message:

I Information is physical

I Logic is physical

28 / 28