Search via quantum walk J er emie Roland UC Berkeley Joint work - - PowerPoint PPT Presentation

search via quantum walk
SMART_READER_LITE
LIVE PREVIEW

Search via quantum walk J er emie Roland UC Berkeley Joint work - - PowerPoint PPT Presentation

Search via quantum walk J er emie Roland UC Berkeley Joint work with eric Magniez 1 Ashwin Nayak 2 Miklos Santha 1 Fr ed 1 LRI-CNRS, France 2 Univ. Waterloo/Perimeter Institute, Canada STOC 2007 J er emie Roland (UC Berkeley)


slide-1
SLIDE 1

Search via quantum walk

J´ er´ emie Roland

UC Berkeley Joint work with

Fr´ ed´ eric Magniez1 Ashwin Nayak2 Miklos Santha1

1LRI-CNRS, France

  • 2Univ. Waterloo/Perimeter Institute, Canada

STOC 2007

J´ er´ emie Roland (UC Berkeley) Search via quantum walk STOC 2007 1 / 14

slide-2
SLIDE 2

Abstract search problem

The problem

Input: a set of elements X a set of marked elements M ⊆ X

“ ε = |M|

|X|

Output: a marked element x ∈ M

b b b b b b

t y z x

b b

m n

Available procedures

Setup (cost S):

pick a random x ∈ X

Check (cost C):

check whether x ∈ M

Update (cost U):

make a random walk P

here: assume P ergodic, symmetric δ = e-v gap of P

J´ er´ emie Roland (UC Berkeley) Search via quantum walk STOC 2007 2 / 14

slide-3
SLIDE 3

Abstract search problem

The problem

Input: a set of elements X a set of marked elements M ⊆ X

“ ε = |M|

|X|

Output: a marked element x ∈ M

b b b b b b

t y z x

b b

pxy pxz m n

Available procedures

Setup (cost S):

pick a random x ∈ X

Check (cost C):

check whether x ∈ M

Update (cost U):

make a random walk P

x y z pxy pxz P = here: assume P ergodic, symmetric δ = e-v gap of P

J´ er´ emie Roland (UC Berkeley) Search via quantum walk STOC 2007 2 / 14

slide-4
SLIDE 4

Three (classical) search algorithms

b b b b b b

t y z x

b b

m n

Naive algorithm

Repeat T1×

“ T1 = O( 1

ε)

Pick random x ∈ X (S) Check whether x ∈ M (C) Cost: 1

ε(S + C)

Idea: Use random walk!

T2× random walk

“ T2 = O( 1

δ )

≈ pick random x

Random walk 1

Pick random x ∈ X (S) Repeat T1×

Check whether x ∈ M (C) Repeat T2×

Random walk (U)

Cost: S + 1

ε(1 δ U + C)

Random walk 2

Pick random x ∈ X (S) Repeat T1T2×

Check whether x ∈ M (C) Random walk (U)

Cost: S + 1

εδ(U + C)

J´ er´ emie Roland (UC Berkeley) Search via quantum walk STOC 2007 3 / 14

slide-5
SLIDE 5

Three (classical) search algorithms

b b b b b b

t y z x

b b

m n

Naive algorithm

Repeat T1×

“ T1 = O( 1

ε)

Pick random x ∈ X (S) Check whether x ∈ M (C) Cost: 1

ε(S + C)

Idea: Use random walk!

T2× random walk

“ T2 = O( 1

δ )

≈ pick random x

Random walk 1

Pick random x ∈ X (S) Repeat T1×

Check whether x ∈ M (C) Repeat T2×

Random walk (U)

Cost: S + 1

ε(1 δ U + C)

Random walk 2

Pick random x ∈ X (S) Repeat T1T2×

Check whether x ∈ M (C) Random walk (U)

Cost: S + 1

εδ(U + C)

J´ er´ emie Roland (UC Berkeley) Search via quantum walk STOC 2007 3 / 14

slide-6
SLIDE 6

Three (classical) search algorithms

b b b b b b

t y z x

b b

m n

Naive algorithm

Repeat T1×

“ T1 = O( 1

ε)

Pick random x ∈ X (S) Check whether x ∈ M (C) Cost: 1

ε(S + C)

Idea: Use random walk!

T2× random walk

“ T2 = O( 1

δ )

≈ pick random x

Random walk 1

Pick random x ∈ X (S) Repeat T1×

Check whether x ∈ M (C) Repeat T2×

Random walk (U)

Cost: S + 1

ε(1 δ U + C)

Random walk 2

Pick random x ∈ X (S) Repeat T1T2×

Check whether x ∈ M (C) Random walk (U)

Cost: S + 1

εδ(U + C)

J´ er´ emie Roland (UC Berkeley) Search via quantum walk STOC 2007 3 / 14

slide-7
SLIDE 7

Three (classical) search algorithms

b b b b b b

t y z x

b b

m n

Naive algorithm

Repeat T1×

“ T1 = O( 1

ε)

Pick random x ∈ X (S) Check whether x ∈ M (C) Cost: 1

ε(S + C)

Idea: Use random walk!

T2× random walk

“ T2 = O( 1

δ )

≈ pick random x

Random walk 1

Pick random x ∈ X (S) Repeat T1×

Check whether x ∈ M (C) Repeat T2×

Random walk (U)

Cost: S + 1

ε(1 δ U + C)

Random walk 2

Pick random x ∈ X (S) Repeat T1T2×

Check whether x ∈ M (C) Random walk (U)

Cost: S + 1

εδ(U + C)

J´ er´ emie Roland (UC Berkeley) Search via quantum walk STOC 2007 3 / 14

slide-8
SLIDE 8

Quantum search problem

Two related problems

Input: a set of elements X a set of marked elements M ⊆ X Output:

1

Find a marked element x ∈ M

2

Detect whether there is a marked element (M = ∅?)

Available procedures

Setup (cost S):

prepare |π =

1

|X|

  • x |x

Check (cost C):

reflection / marked elements refM : |x →

  • |x

if x ∈ M −|x

  • therwise

Update (cost U):

apply quantum walk W

b b b b b b

t y z x

b b

m n

J´ er´ emie Roland (UC Berkeley) Search via quantum walk STOC 2007 4 / 14

slide-9
SLIDE 9

Quantum search problem

Two related problems

Input: a set of elements X a set of marked elements M ⊆ X Output:

1

Find a marked element x ∈ M

2

Detect whether there is a marked element (M = ∅?)

Available procedures

Setup (cost S):

prepare |π =

1

|X|

  • x |x

Check (cost C):

reflection / marked elements refM : |x →

  • |x

if x ∈ M −|x

  • therwise

Update (cost U):

apply quantum walk W

b b b b b b

t y z x

b b

m n

J´ er´ emie Roland (UC Berkeley) Search via quantum walk STOC 2007 4 / 14

slide-10
SLIDE 10

Grover’s algorithm

We start with |π =

1

|X|

  • x∈X |x

Goal: prepare |M =

1

|M|

  • x∈M |x

We use 2 reflections:

through |M⊥: refM⊥ = −refM (C) through |π: refπ (S)

Grover’s algorithm

Prepare |π (S) Repeat T1×

apply refM⊥ (C) apply refπ (S)

Cost: T1(S + C)

ϕ |π |M |M⊥ sin ϕ = M|π = s |M| |X| = √ε

J´ er´ emie Roland (UC Berkeley) Search via quantum walk STOC 2007 5 / 14

slide-11
SLIDE 11

Grover’s algorithm

We start with |π =

1

|X|

  • x∈X |x

Goal: prepare |M =

1

|M|

  • x∈M |x

We use 2 reflections:

through |M⊥: refM⊥ = −refM (C) through |π: refπ (S)

Grover’s algorithm

Prepare |π (S) Repeat T1×

apply refM⊥ (C) apply refπ (S)

Cost: T1(S + C)

ϕ ϕ |π |M |M⊥ sin ϕ = M|π = s |M| |X| = √ε

J´ er´ emie Roland (UC Berkeley) Search via quantum walk STOC 2007 5 / 14

slide-12
SLIDE 12

Grover’s algorithm

We start with |π =

1

|X|

  • x∈X |x

Goal: prepare |M =

1

|M|

  • x∈M |x

We use 2 reflections:

through |M⊥: refM⊥ = −refM (C) through |π: refπ (S)

Grover’s algorithm

Prepare |π (S) Repeat T1×

apply refM⊥ (C) apply refπ (S)

Cost:

1 √ε(S + C) ϕ ϕ 2ϕ |π |M |M⊥ sin ϕ = M|π = s |M| |X| = √ε

J´ er´ emie Roland (UC Berkeley) Search via quantum walk STOC 2007 5 / 14

slide-13
SLIDE 13

Grover’s algorithm: Comments

Quantum analogue of the naive algorithm “pick and check”.

1 √ε(S + C) vs 1 ε(S + C) =

⇒ Grover’s quadratic speed-up What if S is high? = ⇒ Replace refπ by some quantum walk W!

J´ er´ emie Roland (UC Berkeley) Search via quantum walk STOC 2007 6 / 14

slide-14
SLIDE 14

From random to quantum walks [Szegedy’04]

Quantum walk W(P): State space: Pairs of neighbours |x|y = ⇒ Walk on edges (x, y) Two steps

Diffusion of y over the neighbours of x Diffusion of x over the neighbours of y

b b b b b b

t y z x

b b

|x|y m n

We use diffusions ` a la Grover, i.e., reflections Superposition over neighbours of x: |px =

y

√pyx|y refX : reflection through subspace X = {|x|px : x ∈ X} Similarly for Y We define the quantum walk W as W = refY · refX

J´ er´ emie Roland (UC Berkeley) Search via quantum walk STOC 2007 7 / 14

slide-15
SLIDE 15

From random to quantum walks [Szegedy’04]

Quantum walk W(P): State space: Pairs of neighbours |x|y = ⇒ Walk on edges (x, y) Two steps

Diffusion of y over the neighbours of x Diffusion of x over the neighbours of y

b b b b b b

t y z x

b b

|x|y m n

We use diffusions ` a la Grover, i.e., reflections Superposition over neighbours of x: |px =

y

√pyx|y refX : reflection through subspace X = {|x|px : x ∈ X} Similarly for Y We define the quantum walk W as W = refY · refX

J´ er´ emie Roland (UC Berkeley) Search via quantum walk STOC 2007 7 / 14

slide-16
SLIDE 16

From random to quantum walks [Szegedy’04]

Random walk

P = (pxy) E-v: λk = cos θk Stationary dist. (cos θ0 = 1): π = (πx) E-v gap: δ = 1 − | cos θ1|

Quantum walk

W = refY · refX E-v (on X ⊕ Y): e±2iθk Stationary state (θ0 = 0): |π = P

x

√πx|x|px

phase gap: ∆ = |2θ1|

1 −1 δ

b b b b b

λ1 λ2 λ3 θ1 θ2 θ3

J´ er´ emie Roland (UC Berkeley) Search via quantum walk STOC 2007 8 / 14

slide-17
SLIDE 17

From random to quantum walks [Szegedy’04]

Random walk

P = (pxy) E-v: λk = cos θk Stationary dist. (cos θ0 = 1): π = (πx) E-v gap: δ = 1 − | cos θ1|

Quantum walk

W = refY · refX E-v (on X ⊕ Y): e±2iθk Stationary state (θ0 = 0): |π = P

x

√πx|x|px

phase gap: ∆ = |2θ1|

π ∆ 2θ1 2θ2 2θ3

b b b b b b b

∆ = O( √ δ) ⇓ quantum phase gap = O √classical e-v gap

er´ emie Roland (UC Berkeley) Search via quantum walk STOC 2007 8 / 14

slide-18
SLIDE 18

Quantum walk for element distinctness [Ambainis’04]

IDEA: Replace refπ by W T2 in Grover’s algorithm with T2 = O( 1

∆) = O( 1 √ δ)

Works under some assumptions: Johnson graphs (element distinctness) Unique solution (classical reduction to this case) Properties: Finds a marked element Cost S + 1 √ε( 1 √ δ U + C) Notable application: Triangle Finding [Magniez, Santha, Szegedy’05]

J´ er´ emie Roland (UC Berkeley) Search via quantum walk STOC 2007 9 / 14

slide-19
SLIDE 19

Quantum walk for element distinctness [Ambainis’04]

IDEA: Replace refπ by W T2 in Grover’s algorithm with T2 = O( 1

∆) = O( 1 √ δ)

Works under some assumptions: Johnson graphs (element distinctness) Unique solution (classical reduction to this case) Properties: Finds a marked element Cost S + 1 √ε( 1 √ δ U + C) Notable application: Triangle Finding [Magniez, Santha, Szegedy’05]

J´ er´ emie Roland (UC Berkeley) Search via quantum walk STOC 2007 9 / 14

slide-20
SLIDE 20

Szegedy’s algorithm [Szegedy’04]

Quantum analogue of the marked random walk: Check if x ∈ M

If so: Stay in x Otherwise: Apply random walk P

Works for any symmetric, ergodic Markov chain Cost S + 1 √ εδ (U + C) Detects marked items, but does not find them! Notable applications

Matrix Product Verification [Buhrman, ˇ Spalek’06] Group Commutativity [Magniez, Nayak’05]

J´ er´ emie Roland (UC Berkeley) Search via quantum walk STOC 2007 10 / 14

slide-21
SLIDE 21

Szegedy’s algorithm [Szegedy’04]

Quantum analogue of the marked random walk: Check if x ∈ M

If so: Stay in x Otherwise: Apply random walk P

Works for any symmetric, ergodic Markov chain Cost S + 1 √ εδ (U + C) Detects marked items, but does not find them! Notable applications

Matrix Product Verification [Buhrman, ˇ Spalek’06] Group Commutativity [Magniez, Nayak’05]

J´ er´ emie Roland (UC Berkeley) Search via quantum walk STOC 2007 10 / 14

slide-22
SLIDE 22

Our idea

IDEA: Using W, simulate refπ to use Grover’s algorithm

1 −1 ∆

b b b b b b b

W

W|π = |π W|ψk = eiθk|ψk

1 −1

b b

refπ

refπ|π = |π refπ|ψk = −|ψk We need a procedure to discriminate between eigenstates |ψk with |θk| ≥ ∆ |π with θ0 = 0.

J´ er´ emie Roland (UC Berkeley) Search via quantum walk STOC 2007 11 / 14

slide-23
SLIDE 23

Our idea

IDEA: Using W, simulate refπ to use Grover’s algorithm

1 −1 ∆

b b b b b b b

W

W|π = |π W|ψk = eiθk|ψk

1 −1

b b

refπ

refπ|π = |π refπ|ψk = −|ψk We need a procedure to discriminate between eigenstates |ψk with |θk| ≥ ∆ |π with θ0 = 0.

J´ er´ emie Roland (UC Berkeley) Search via quantum walk STOC 2007 11 / 14

slide-24
SLIDE 24

Quantum phase estimation [Kitaev’95, Cleve et al’98]

Let W be a unitary operator such that W|ψk = eiθk|ψk Quantum phase estimation E(W) is a quantum circuit such that E(W) : |ψk|0 → |ψk

θk + |error

  • where ˜

θk is an approximation of θk |˜ θk − θk| < ∆ requires O( 1

∆) calls to W

We may now simulate refπ: do phase estimation E(W) flip sign if ˜ θk = 0 undo phase estimation E(W)

J´ er´ emie Roland (UC Berkeley) Search via quantum walk STOC 2007 12 / 14

slide-25
SLIDE 25

Quantum phase estimation [Kitaev’95, Cleve et al’98]

Let W be a unitary operator such that W|ψk = eiθk|ψk Quantum phase estimation E(W) is a quantum circuit such that E(W) : |ψk|0 → |ψk

θk + |error

  • where ˜

θk is an approximation of θk |˜ θk − θk| < ∆ requires O( 1

∆) calls to W

We may now simulate refπ: do phase estimation E(W) flip sign if ˜ θk = 0 undo phase estimation E(W)

J´ er´ emie Roland (UC Berkeley) Search via quantum walk STOC 2007 12 / 14

slide-26
SLIDE 26

Our quantum walk algorithm

Using this reflection in Grover’s algorithm, we obtain Search algorithm via quantum walk from any irreducible Markov chain Cost: S + 1 √ε( 1 √ δ U + C) finds marked elements |error due to imperfect phase estimation handled with a recursive search algorithm ` a la [Høyer, Mosca, de Wolf’04]

J´ er´ emie Roland (UC Berkeley) Search via quantum walk STOC 2007 13 / 14

slide-27
SLIDE 27

Applications

Polylog factor improvement for Triangle Finding [MSS’05] Unified framework for this and

Element Distinctness [A’04] Matrix Product Verification [B ˇ S’06] Group Commutativity [MN’05]

Better algorithms for applications in which checking cost is higher than update cost New application: Semigroup Problem [DT’07] Open: Spatial search [AA’05,AKR’05,CG’04,S’04]

J´ er´ emie Roland (UC Berkeley) Search via quantum walk STOC 2007 14 / 14