On Testing group commutativity by F.Magniez and A.Nayak Laura - - PowerPoint PPT Presentation

on testing group commutativity by f magniez and a nayak
SMART_READER_LITE
LIVE PREVIEW

On Testing group commutativity by F.Magniez and A.Nayak Laura - - PowerPoint PPT Presentation

Introduction Quantum algorithm Lower bounds On Testing group commutativity by F.Magniez and A.Nayak Laura Mancinska University of Waterloo, Department of C&O April 3, 2008 Introduction Quantum algorithm Lower bounds


slide-1
SLIDE 1

Introduction Quantum algorithm Lower bounds

On “Testing group commutativity” by F.Magniez and A.Nayak

Laura Mancinska University of Waterloo, Department of C&O

April 3, 2008

slide-2
SLIDE 2

Introduction Quantum algorithm Lower bounds

Introduction

slide-3
SLIDE 3

Introduction Quantum algorithm Lower bounds

Black box groups

Black box group model Elements of the group are encoded as words over a finite alphabet

slide-4
SLIDE 4

Introduction Quantum algorithm Lower bounds

Black box groups

Black box group model Elements of the group are encoded as words over a finite alphabet Group operation is performed by a black box containing

  • racles OG and O−1

G

OG |g, h = |g, gh O−1

G |g, h =

  • g, g−1h
slide-5
SLIDE 5

Introduction Quantum algorithm Lower bounds

Black box groups

Black box group model Elements of the group are encoded as words over a finite alphabet Group operation is performed by a black box containing

  • racles OG and O−1

G

OG |g, h = |g, gh O−1

G |g, h =

  • g, g−1h
  • When do we use black box groups?
slide-6
SLIDE 6

Introduction Quantum algorithm Lower bounds

Group Commutativity

Problem Input: Generators g1, . . . , gk of G (specified as n−bit strings)

slide-7
SLIDE 7

Introduction Quantum algorithm Lower bounds

Group Commutativity

Problem Input: Generators g1, . . . , gk of G (specified as n−bit strings) Black box: Oracles OG and O−1

G

slide-8
SLIDE 8

Introduction Quantum algorithm Lower bounds

Group Commutativity

Problem Input: Generators g1, . . . , gk of G (specified as n−bit strings) Black box: Oracles OG and O−1

G

Task: Determine whether G is abelian

slide-9
SLIDE 9

Introduction Quantum algorithm Lower bounds

Classical algorithms for Group commutativity

Naive algorithm with query complexity Θ(k2). This is optimal deterministic algorithm up to a constant [I.Pak, 2000].

slide-10
SLIDE 10

Introduction Quantum algorithm Lower bounds

Classical algorithms for Group commutativity

Naive algorithm with query complexity Θ(k2). This is optimal deterministic algorithm up to a constant [I.Pak, 2000]. Randomized algorithm with query complexity Θ(k) [I.Pak, 2000]. This is optimal randomized algorithm up to a constant [F.Magniez, A.Nayak, 2005]

slide-11
SLIDE 11

Introduction Quantum algorithm Lower bounds

Randomized algorithm for group commutativity

  • Definition. Define random subproduct as

h = ga1

1 . . . gak k ,

where ai ∈ {0, 1} are determined by independent tosses of a fair coin.

slide-12
SLIDE 12

Introduction Quantum algorithm Lower bounds

Randomized algorithm for group commutativity

  • Definition. Define random subproduct as

h = ga1

1 . . . gak k ,

where ai ∈ {0, 1} are determined by independent tosses of a fair coin. Algorithm:

1 Take two random subproducts h1, h2

slide-13
SLIDE 13

Introduction Quantum algorithm Lower bounds

Randomized algorithm for group commutativity

  • Definition. Define random subproduct as

h = ga1

1 . . . gak k ,

where ai ∈ {0, 1} are determined by independent tosses of a fair coin. Algorithm:

1 Take two random subproducts h1, h2 2 Test whether h1h2 = h2h1

slide-14
SLIDE 14

Introduction Quantum algorithm Lower bounds

Randomized algorithm for group commutativity

  • Definition. Define random subproduct as

h = ga1

1 . . . gak k ,

where ai ∈ {0, 1} are determined by independent tosses of a fair coin. Algorithm:

1 Take two random subproducts h1, h2 2 Test whether h1h2 = h2h1 3 Repeat steps 1,2 for c times (to give correct answer with

probability at least 1 − 3

4

c)

slide-15
SLIDE 15

Introduction Quantum algorithm Lower bounds

Randomized algorithm for group commutativity

  • Definition. Define random subproduct as

h = ga1

1 . . . gak k ,

where ai ∈ {0, 1} are determined by independent tosses of a fair coin. Algorithm:

1 Take two random subproducts h1, h2 2 Test whether h1h2 = h2h1 3 Repeat steps 1,2 for c times (to give correct answer with

probability at least 1 − 3

4

c)

4 Answer that G is abelian if the tested subproducts commuted

slide-16
SLIDE 16

Introduction Quantum algorithm Lower bounds

Randomized algorithm for group commutativity

  • Definition. Define random subproduct as

h = ga1

1 . . . gak k ,

where ai ∈ {0, 1} are determined by independent tosses of a fair coin. Algorithm:

1 Take two random subproducts h1, h2 (≤ 2k queries) 2 Test whether h1h2 = h2h1 3 Repeat steps 1,2 for c times (to give correct answer with

probability at least 1 − 3

4

c)

4 Answer that G is abelian if the tested subproducts commuted

slide-17
SLIDE 17

Introduction Quantum algorithm Lower bounds

Randomized algorithm for group commutativity

  • Definition. Define random subproduct as

h = ga1

1 . . . gak k ,

where ai ∈ {0, 1} are determined by independent tosses of a fair coin. Algorithm:

1 Take two random subproducts h1, h2 (≤ 2k queries) 2 Test whether h1h2 = h2h1 (2 queries) 3 Repeat steps 1,2 for c times (to give correct answer with

probability at least 1 − 3

4

c)

4 Answer that G is abelian if the tested subproducts commuted

slide-18
SLIDE 18

Introduction Quantum algorithm Lower bounds

Quantum algorithm

slide-19
SLIDE 19

Introduction Quantum algorithm Lower bounds

Main steps

Construct a random walk on a graph

slide-20
SLIDE 20

Introduction Quantum algorithm Lower bounds

Main steps

Construct a random walk on a graph Quantize the random walk using Szegedy’s approach

slide-21
SLIDE 21

Introduction Quantum algorithm Lower bounds

Main steps

Construct a random walk on a graph Quantize the random walk using Szegedy’s approach Evaluate the quantities in S + 1 √ δε (U + C)

slide-22
SLIDE 22

Introduction Quantum algorithm Lower bounds

Constructing random walk

Sl – the set of all l-tuples of distinct elements from {1, . . . , k}

slide-23
SLIDE 23

Introduction Quantum algorithm Lower bounds

Constructing random walk

Sl – the set of all l-tuples of distinct elements from {1, . . . , k} gu:= gu1 . . . gul, where u = (u1, . . . , ul) ∈ Sl

slide-24
SLIDE 24

Introduction Quantum algorithm Lower bounds

Constructing random walk

Sl – the set of all l-tuples of distinct elements from {1, . . . , k} gu:= gu1 . . . gul, where u = (u1, . . . , ul) ∈ Sl tu – balanced binary tree with generators gu1, . . . , gul as leaves

slide-25
SLIDE 25

Introduction Quantum algorithm Lower bounds

Constructing random walk

Sl – the set of all l-tuples of distinct elements from {1, . . . , k} gu:= gu1 . . . gul, where u = (u1, . . . , ul) ∈ Sl tu – balanced binary tree with generators gu1, . . . , gul as leaves

  • Example. Let l = 4, k = 20, u = {3, 5, 10, 4} ∈ S4.
slide-26
SLIDE 26

Introduction Quantum algorithm Lower bounds

Constructing random walk

Sl – the set of all l-tuples of distinct elements from {1, . . . , k} gu:= gu1 . . . gul, where u = (u1, . . . , ul) ∈ Sl tu – balanced binary tree with generators gu1, . . . , gul as leaves

  • Example. Let l = 4, k = 20, u = {3, 5, 10, 4} ∈ S4. Then

gu = g3 · g5 · g10 · g4 and tu looks as follows

gu g3 g5 g10 g4 g3 g5 g10 g4

slide-27
SLIDE 27

Introduction Quantum algorithm Lower bounds

Constructing random walk

Random walk on Sl States are trees tu, u ∈ Sl

slide-28
SLIDE 28

Introduction Quantum algorithm Lower bounds

Constructing random walk

Random walk on Sl States are trees tu, u ∈ Sl Transitions from each tu are as follows

With probability 1/2 stay at tu

slide-29
SLIDE 29

Introduction Quantum algorithm Lower bounds

Constructing random walk

Random walk on Sl States are trees tu, u ∈ Sl Transitions from each tu are as follows

With probability 1/2 stay at tu With probability 1/2 do

1

Pick a random leave position i ∈ {1, · · · , l} and a random generator index j ∈ {1, · · · , k}

slide-30
SLIDE 30

Introduction Quantum algorithm Lower bounds

Constructing random walk

Random walk on Sl States are trees tu, u ∈ Sl Transitions from each tu are as follows

With probability 1/2 stay at tu With probability 1/2 do

1

Pick a random leave position i ∈ {1, · · · , l} and a random generator index j ∈ {1, · · · , k}

2

If j = um for some m, exchange ui and um, else set ui = j

slide-31
SLIDE 31

Introduction Quantum algorithm Lower bounds

Constructing random walk

Random walk on Sl States are trees tu, u ∈ Sl Transitions from each tu are as follows

With probability 1/2 stay at tu With probability 1/2 do

1

Pick a random leave position i ∈ {1, · · · , l} and a random generator index j ∈ {1, · · · , k}

2

If j = um for some m, exchange ui and um, else set ui = j

3

Update tree tu

slide-32
SLIDE 32

Introduction Quantum algorithm Lower bounds

Constructing quantum walk

We quantize a random walk consisting of two independent random walks on Sl

slide-33
SLIDE 33

Introduction Quantum algorithm Lower bounds

Constructing quantum walk

We quantize a random walk consisting of two independent random walks on Sl States are pairs of trees (tu, tv), where u, v ∈ Sl

slide-34
SLIDE 34

Introduction Quantum algorithm Lower bounds

Constructing quantum walk

We quantize a random walk consisting of two independent random walks on Sl States are pairs of trees (tu, tv), where u, v ∈ Sl If transition matrix of the walk on Sl was P, then the new transition matrix is P ⊗ P

slide-35
SLIDE 35

Introduction Quantum algorithm Lower bounds

Constructing quantum walk

We quantize a random walk consisting of two independent random walks on Sl States are pairs of trees (tu, tv), where u, v ∈ Sl If transition matrix of the walk on Sl was P, then the new transition matrix is P ⊗ P Vertex (tu, tv) is marked iff gugv = gvgu.

slide-36
SLIDE 36

Introduction Quantum algorithm Lower bounds

Evaluating parameters – the fraction of marked vertices

  • Lemma. If G is not abelian and l = o(k) then

Pru,v∈Sl[gugv = gvgu] ≥ const · l k 2

slide-37
SLIDE 37

Introduction Quantum algorithm Lower bounds

Evaluating parameters – the fraction of marked vertices

  • Lemma. If G is not abelian and l = o(k) then

Pru,v∈Sl[gugv = gvgu] ≥ const · l k 2 Thus, fraction of marked vertices, ε = Ω l

k

2

slide-38
SLIDE 38

Introduction Quantum algorithm Lower bounds

Evaluating parameters – the spectral gap

  • Lemma. If l ≤ k

2, then the spectral gap for the walk on Sl is at

least

1 8e l log l.

slide-39
SLIDE 39

Introduction Quantum algorithm Lower bounds

Evaluating parameters – the spectral gap

  • Lemma. If l ≤ k

2, then the spectral gap for the walk on Sl is at

least

1 8e l log l.

Thus, the spectral gap, δ = Ω

  • 1

l log l

slide-40
SLIDE 40

Introduction Quantum algorithm Lower bounds

Estimating parameters – setup, update and checking cost

Setup cost, S = Θ(l)

slide-41
SLIDE 41

Introduction Quantum algorithm Lower bounds

Estimating parameters – setup, update and checking cost

Setup cost, S = Θ(l) Update cost, U = Θ(log(l))

slide-42
SLIDE 42

Introduction Quantum algorithm Lower bounds

Estimating parameters – setup, update and checking cost

Setup cost, S = Θ(l) Update cost, U = Θ(log(l)) Checking cost C = O(1)

slide-43
SLIDE 43

Introduction Quantum algorithm Lower bounds

Query complexity of the quantum algorithm

ε = Ω l

k

2 δ = Ω(

1 l log l)

S = Θ(l) U = Θ(log l) C = Θ(1)

slide-44
SLIDE 44

Introduction Quantum algorithm Lower bounds

Query complexity of the quantum algorithm

ε = Ω l

k

2 δ = Ω(

1 l log l)

S = Θ(l) U = Θ(log l) C = Θ(1) S + 1 √ δε (U + C)

slide-45
SLIDE 45

Introduction Quantum algorithm Lower bounds

Query complexity of the quantum algorithm

ε = Ω l

k

2 δ = Ω(

1 l log l)

S = Θ(l) U = Θ(log l) C = Θ(1) S + 1 √ δε (U + C) = O

  • l + k log3/2 l

√ l

slide-46
SLIDE 46

Introduction Quantum algorithm Lower bounds

Query complexity of the quantum algorithm

ε = Ω l

k

2 δ = Ω(

1 l log l)

S = Θ(l) U = Θ(log l) C = Θ(1) S + 1 √ δε (U + C) = O

  • l + k log3/2 l

√ l

slide-47
SLIDE 47

Introduction Quantum algorithm Lower bounds

Query complexity of the quantum algorithm

ε = Ω l

k

2 δ = Ω(

1 l log l)

S = Θ(l) U = Θ(log l) C = Θ(1) S + 1 √ δε (U + C) = O

  • l + k log3/2 l

√ l

  • To minimize quantum query complexity we set l = k2/3 and get

O(k2/3 log k)

slide-48
SLIDE 48

Introduction Quantum algorithm Lower bounds

Lower bounds

slide-49
SLIDE 49

Introduction Quantum algorithm Lower bounds

Unique collision Black box: Function f : {1, . . . , k} → {1, . . . , k}

slide-50
SLIDE 50

Introduction Quantum algorithm Lower bounds

Unique collision Black box: Function f : {1, . . . , k} → {1, . . . , k} Input: Value of k

slide-51
SLIDE 51

Introduction Quantum algorithm Lower bounds

Unique collision Black box: Function f : {1, . . . , k} → {1, . . . , k} Input: Value of k Task: Output YES if there exists a unique pair x = y ∈ {1, . . . , k} such that f(x) = f(y). Output NO if f is a permutation.

slide-52
SLIDE 52

Introduction Quantum algorithm Lower bounds

Unique collision Black box: Function f : {1, . . . , k} → {1, . . . , k} Input: Value of k Task: Output YES if there exists a unique pair x = y ∈ {1, . . . , k} such that f(x) = f(y). Output NO if f is a permutation. Unique split collision Output YES if there exists a unique pair x, y such that x ∈ {1, . . . , k

2}, y ∈ {k 2 + 1, . . . , k} such that f(x) = f(y).

Theorem The quantum query complexity of unique split collision is Ω(k2/3).

slide-53
SLIDE 53

Introduction Quantum algorithm Lower bounds

Unique collision Black box: Function f : {1, . . . , k} → {1, . . . , k} Input: Value of k Task: Output YES if there exists a unique pair x = y ∈ {1, . . . , k} such that f(x) = f(y). Output NO if f is a permutation. Unique split collision Output YES if there exists a unique pair x, y such that x ∈ {1, . . . , k

2}, y ∈ {k 2 + 1, . . . , k} such that f(x) = f(y).

Theorem The quantum query complexity of unique split collision is Ω(k2/3).

slide-54
SLIDE 54

Introduction Quantum algorithm Lower bounds

Theorem The quantum query complexity of group commutativity is Ω(k2/3).

slide-55
SLIDE 55

Introduction Quantum algorithm Lower bounds

Theorem The quantum query complexity of group commutativity is Ω(k2/3). Idea: Reduce unique split collision to group commutativity by constructing a group that is commutative iff function f has a unique split collision.

slide-56
SLIDE 56

Introduction Quantum algorithm Lower bounds

Summary

  • Problem. Decide whether group specified by k generators is

abelian. Classical query complexity is Θ(k).

slide-57
SLIDE 57

Introduction Quantum algorithm Lower bounds

Summary

  • Problem. Decide whether group specified by k generators is

abelian. Classical query complexity is Θ(k). Quantum query complexity is upper bounded by O(k2/3 log k) (algorithm based on Q-walk) and lower bounded by Ω(k2/3).