Quantum Algorithms for Quantum Algorithms for Evaluating M IN - - PowerPoint PPT Presentation

quantum algorithms for quantum algorithms for
SMART_READER_LITE
LIVE PREVIEW

Quantum Algorithms for Quantum Algorithms for Evaluating M IN - - PowerPoint PPT Presentation

Quantum Algorithms for Quantum Algorithms for Evaluating M IN Evaluating M IN -M -M AX AX Trees Trees Richard Cleve Dmitry Gavinsky D. L. Yonge-Mallo Institute for Quantum Computing, University of Waterloo January 30, 2008 TQC Tokyo,


slide-1
SLIDE 1

Quantum Algorithms for Quantum Algorithms for Evaluating M Evaluating MIN

IN-M

  • MAX

AX Trees

Trees

Richard Cleve Dmitry Gavinsky

  • D. L. Yonge-Mallo

Institute for Quantum Computing, University of Waterloo

January 30, 2008 TQC – Tokyo, Japan

slide-2
SLIDE 2

2

Motivation Motivation

  • Why do we care about algorithms for M

algorithms for MIN

IN-

  • M

MAX

AX trees

trees, anyway?

  • What is so special about the quantum

quantum algorithms algorithms for MIN-MAX trees that I'm about to present?

– The ideas behind them don't work in a

The ideas behind them don't work in a classical setting! classical setting!

– Conversely, the classical ideas don't work in

a quantum setting!

slide-3
SLIDE 3

3

Why do we care about M Why do we care about MIN

IN-M

  • MAX

AX trees?

trees?

MIN-MAX trees arise in the analysis

  • f deterministic games of perfect

information between two players who alternate taking turns

slide-4
SLIDE 4

4

Why do we care about M Why do we care about MIN

IN-M

  • MAX

AX trees?

trees?

MIN-MAX trees arise in the analysis

  • f deterministic games of perfect

information between two players who alternate taking turns

MIN MAX MAX MAX 1 4 2 5 7 8 6 9 3

slide-5
SLIDE 5

5

  • internal nodes are MIN and MAX gates at alternating levels;
  • leaves x1,...,xN take on values from some ordered set;
  • value is value of root as a function of x1,...,xN.

What is a M What is a MIN

IN-M

  • MAX

AX tree?

tree?

MIN MAX MAX MAX 1 4 2 5 7 8 6 9 3

slide-6
SLIDE 6

6

Evaluating a M Evaluating a MIN

IN-M

  • MAX

AX tree

tree

MIN MAX MAX MAX 1 2 5 7

8

6

9

3

4 4

9 8

4

slide-7
SLIDE 7

7

Alpha-beta pruning Alpha-beta pruning

MIN MAX MAX MAX 1 2 5 7

8

6

9

3

4 4

⩾ 6 ⩾ 5

4

slide-8
SLIDE 8

8

M MIN

IN-M

  • MAX

AX trees and A

trees and AND

ND-O

  • OR

R trees

trees

  • An A

AND

ND-O

  • OR

R tree

tree is just a M MIN

IN-M

  • MAX

AX tree

tree restricted to the values {0,1} restricted to the values {0,1}!

  • So MIN-MAX is at least as hard as AND-OR.

MIN MAX MAX MAX 1 1 1 1 1 1 1

slide-9
SLIDE 9

9

M MIN

IN-M

  • MAX

AX trees and A

trees and AND

ND-O

  • OR

R trees

trees

  • An A

AND

ND-O

  • OR

R tree

tree is just a M MIN

IN-M

  • MAX

AX tree

tree restricted to the values {0,1} restricted to the values {0,1}!

  • So MIN-MAX is at least as hard as AND-OR.

AND OR OR OR 1 1 1 1 1 1 1

slide-10
SLIDE 10

10

You can also turn M You can also turn MIN

IN-M

  • MAX

AX

trees into A trees into AND

ND-O

  • OR

R trees

trees

MIN MAX

xk

AND OR

xk ⩾ v threshold v root root ⩾ v?

slide-11
SLIDE 11

11

You can also turn M You can also turn MIN

IN-M

  • MAX

AX

trees into A trees into AND

ND-O

  • OR

R trees

trees

MIN MAX MAX MAX 1 4 2 5 7 8 6 9 3 4 8 9 4 AND OR OR OR 1 1 1 1 1 1 1

threshold 5 root root ⩾ 5? This immediately suggests binary search...

slide-12
SLIDE 12

12

Combining A Combining AND

ND-O

  • OR

R and binary search

and binary search

MIN MAX MAX MAX 1 4 2 5 7 8 6 9 3 4 8 9 4 AND OR OR OR 1 1 1 1 1 1 1

threshold 5 root root ⩾ 5?

  • Is root ⩾ 5? No.
slide-13
SLIDE 13

13

Combining A Combining AND

ND-O

  • OR

R and binary search

and binary search

MIN MAX MAX MAX 1 4 2 5 7 8 6 9 3 4 8 9 4 AND OR OR OR 1 1 1 1 1 1 1 1 1 1 1

threshold 3 root root ⩾ 3?

  • Is root ⩾ 5? No.
  • Is root ⩾ 3? Yes.
slide-14
SLIDE 14

14

Combining A Combining AND

ND-O

  • OR

R and binary search

and binary search

MIN MAX MAX MAX 1 4 2 5 7 8 6 9 3 4 8 9 4 AND OR OR OR 1 1 1 1 1 1 1 1 1 1

threshold 4 root root ⩾ 4?

  • Is root ⩾ 5? No.
  • Is root ⩾ 3? Yes.
  • Is root ⩾ 4? Yes.

root = 4

}

slide-15
SLIDE 15

15

Combining A Combining AND

ND-O

  • OR

R and binary search

and binary search

  • in the input value

input value query model, we have direct access to x1,...,xN through a black box;

  • in the comparison

comparison query model, we are restricted to making comparisons of the form [xj < xk].

We can consider two models of ordered non-binary data...

slide-16
SLIDE 16

16

Problems with combining A Problems with combining AND

ND-O

  • OR

R

and binary search and binary search

We need to find the midpoint find the midpoint of subintervals

  • f the form [α, β].

In the comparison query model, the midpoint

  • f an interval cannot be directly computed.

In the input query model, if the numerical range is too large, the binary search may not converge in a logarithmic number of steps.

slide-17
SLIDE 17

17

Saks-Wigderson algorithm Saks-Wigderson algorithm

  • the optimal classical

classical randomized algorithm for AND-OR tree evaluation makes Θ(N Θ(N0.7537...

0.7537...)

) queries;

  • there is an algorithm for MIN-MAX tree

evaluation which makes this number of queries, using AND-OR tree evaluation as a subroutine. Saks and Wigderson [SW86] showed that...

slide-18
SLIDE 18

18

Saks-Wigderson algorithm Saks-Wigderson algorithm

MAX MIN MIN MAX xk AND OR xk ⩾ v v

TN = 3/2 TN/2 + O(N0.7537...) This implies a Θ(N Θ(N0.7537...

0.7537...)

) algorithm.

slide-19
SLIDE 19

19

Quantum algorithm for A Quantum algorithm for AND

ND-O

  • OR

R trees

trees

  • There is a lower bound of Ω(N1/2) [BS04]
  • There is a “more-or-less” matching

algorithm that makes O(N1/2+ε) queries [FGG07, CCJY07, A07+CRŠZ07]

slide-20
SLIDE 20

20

Quantum algorithm for A Quantum algorithm for AND

ND-O

  • OR

R trees

trees

  • There is a lower bound of Ω(N1/2) [BS04]
  • There is a “more-or-less” matching

algorithm that makes O(N1/2+ε) queries [FGG07, CCJY07, A07+CRŠZ07]

Do these results generalize to Do these results generalize to M MIN

IN-M

  • MAX

AX tree evaluation?

tree evaluation? The “obvious question”...

slide-21
SLIDE 21

21

“ “Quantum Saks-Wigderson” Quantum Saks-Wigderson”

MAX MIN MIN MAX xk AND OR xk ⩾ v v

This implies an O(N O(N0.5850...

0.5850...)

) algorithm. TN = 3/2 TN/2 + O(N0.7537...)

0.5 0.5

slide-22
SLIDE 22

22

Can we do better? Can we do better?

  • We could try to analyze the AND-OR tree algorithm

and try to apply it directly to MIN-MAX trees...

  • A better idea

better idea: perform a binary search binary search...

MIN MAX

xk

AND OR

xk ⩾ v pivot v root root ⩾ v?

slide-23
SLIDE 23

23

Can we do better? Can we do better?

  • We could try to analyze the AND-OR tree algorithm

and try to apply it directly to MIN-MAX trees...

  • A better idea

better idea: perform a binary search binary search...

MIN MAX

xk

AND OR

xk ⩾ v pivot v root root ⩾ v? But haven't we already established that this approach is full of problems?

slide-24
SLIDE 24

24

Solution: use random pivots Solution: use random pivots

  • A better idea

better idea: perform a binary search binary search using random pivots random pivots.

  • Classically, finding a random pivot is as

hard as searching, which can take Ω(N) queries to do even once!

  • We have a quantum algorithm to find a

pivot with cost O(√N): Grover's search Grover's search!

slide-25
SLIDE 25

25

  • A better idea

better idea: perform a binary search binary search using random pivots random pivots.

Quantum algorithm for Quantum algorithm for evaluating M evaluating MIN

IN-M

  • MAX

AX trees

trees

MIN MAX

xk

AND OR

xk ⩾ v random pivot v root root ⩾ v?

slide-26
SLIDE 26

26

Quantum algorithm for Quantum algorithm for evaluating M evaluating MIN

IN-M

  • MAX

AX trees

trees

  • The algorithm runs for O(log N) stages.
  • Each stage costs O(√N loglog N).

T

  • amplify the subroutines to lower

the error probability to O(1/log(N))...

slide-27
SLIDE 27

27

Quantum algorithm for Quantum algorithm for evaluating M evaluating MIN

IN-M

  • MAX

AX trees

trees

  • The algorithm runs for O(log N) stages.
  • Each stage costs O(√N loglog N).

It turns out that this is unnecessary! (Using a trick involving a stack...)

slide-28
SLIDE 28

28

Quantum algorithm for Quantum algorithm for evaluating M evaluating MIN

IN-M

  • MAX

AX trees

trees

  • The algorithm runs for O(log N) stages.
  • Each stage costs O(√N).

This gives a quantum algorithm for evaluating MIN-MAX trees...

T

  • tal cost: O(√N log N)

O(√N log N)

This is O(N O(N1/2+ε

1/2+ε)

) for an arbitrarily small constant ε.

slide-29
SLIDE 29

29

Obtaining the optimal move Obtaining the optimal move

  • If the values of the leaves x1,...,xN are distinct,

this is easy.

  • Otherwise, we can use the quantum

minimum/maximum finding algorithm [DH96].

MIN MAX MAX MAX 1 4 2 5 7 8 6 9 3

slide-30
SLIDE 30

30

Summary Summary

  • Classically

Classically, the Saks-Wigderson reduction from MIN-MAX to AND-OR uses ϴ(N ϴ(N0.7537...

0.7537...)

) queries.

  • Calling the quantum A

quantum AND

ND-O

  • OR

R subroutine

subroutine results in an O(N O(N0.5850...

0.5850...)

) algorithm, which is not optimal!

  • The classical algorithms are based on

examining the subtrees of the tree.

slide-31
SLIDE 31

31

Summary Summary

  • Our quantum algorithm

quantum algorithm performs a binary search using random pivots and requires O(N O(N1/2+ε

1/2+ε)

) queries, which is (close to)

  • ptimal
  • ptimal.
  • Conversely, binary search is too costly for

a classical algorithm.

– The ideas behind the quantum algorithm

The ideas behind the quantum algorithm don't work in the classical setting! don't work in the classical setting!

slide-32
SLIDE 32

32

Summary (chart) Summary (chart)

  • Binary search is too

costly

  • Based on evaluating

subtrees of the MIN-MAX tree

  • Doesn't get full

speedup from quantum AND-OR subroutine

  • Uses binary search
  • Based on evaluating

the entire tree as an AND-OR tree, with different thresholds

  • Gets full speedup from

quantum AND-OR and Grover's search subroutines

Classical: ϴ(N0.7537...) Quantum: O(N1/2+ε)

slide-33
SLIDE 33

33

The Moral of the Story The Moral of the Story

What works in the classical setting may fail to work in the quantum setting. What fails to work in the classical setting may work very well in the quantum setting. T

  • develop quantum algorithms, one must

T

  • develop quantum algorithms, one must

be willing to abandon classical intuitions! be willing to abandon classical intuitions!

slide-34
SLIDE 34

34

Thanks! Thanks!

  • [CGY07] Quantum Algorithms for Evaluating

MIN-MAX Trees. arXiv:quant-ph/0710.5794 quant-ph/0710.5794

  • [FGG07] A Quantum Algorithm for the

Hamiltonian NAND Tree. arXiv:quant-ph/0702144 quant-ph/0702144

  • [A+CRŠZ07] Every NAND formula on N

variables can be evaluated in time O(N1/2+ε). arXiv:quant-ph/0703015 quant-ph/0703015

References: