Title: Quantum algorithms for evaluating Boolean formulas
1Quantum algorithms for evaluating Boolean formulas
- Andris Ambainis
- University of Latvia
- (joint work with Andrew Childs, Ben Reichardt,
Robert Spalek, Shengyu Zhang)
2AND-OR tree
3Evaluating AND-OR trees
- Variables xi accessed by queries to a black box
- Input i
- Black box outputs xi.
- Quantum case
- Evaluate T with the smallest number of queries.
4Motivation
- Vertices chess positions
- Leaves final positions
- xi1 if the 1st player wins
- At internal vertices, AND/OR evaluates whether
the player who makes the move can win.
How well can we play chess if we only know the
position tree?
5Results
- Full binary tree of depth d.
- N2d leaves.
- Deterministic ?(N).
- Randomized SW,S ?(N.753).
- Quantum?
- Easy q. lower bound ?(?N).
6NAND trees
ANDs, ORs can be replaced by NANDs
7New results
- Farhi, et al.O(?N) time algorithm for NAND
trees in Hamiltonian query model.
8Farhi, Goldstone, Gutmann
9Farhi, Goldstone, Gutmann
- Basis states v?, v vertices of augmented tree.
- Hamiltonian H, H-adjacency matrix of augmented
tree.
10Farhi, Goldstone, Gutmann
- Starting state ?? on the infinite line left of
tree. - Apply Hamiltonian H for O(?N) time.
- If T1, the new state is on the right
(transmission). - If T0, the new state is on the left
(reflection).
11Improvements to FGG
- A. Childs, B. Reichardt, R. Spalek, S. Zhang.
arXivquant-ph/0703015. - A. Ambainis, arXiv0704.3628.
12Improvement I
Quantum algorithm for unbalanced trees.
13Improvement II
Farhi, Goldstone, Gutmann
O(?N) time Hamiltonian quantum algorithm
O(N1/2o(1)) query quantum algorithm
We will design discrete query algorithm directly.
Why do we need that???
14Motivation
- Vertices chess positions
- Leaves final positions
- xi1 if the last player loses
- At internal vertices, NAND evaluates whether the
player who makes the move can win.
How well can we play chess if we only know the
position tree?
15Motivation
- Hamiltonians
- We can perform H for arbitrarily small time ?gt0.
- Game tree
- Query evaluating a final position, phase shift
by 1 conditional on the result. - Performing a smaller phase shift is not easier!
- Evaluating a position takes the same time.
Inherently discrete time problem
16Improvement III
- FGG algorithm seems very different from the
previous algorithms. - We relate it to search, amplitude amplification
and quantization of Markov chains. - Better understanding of FGG.
17Farhi, Goldstone, Gutmann
18The finite tail Childs et al.
Finite tail in one direction
19Finite tail algorithm
20What happens?
- If T0, the state stays almost unchanged.
- If T1, the state scatters into the tree.
21More formally
- If T0, there is a state ?? with H??0 and
????start?. - If T1, then for every ??, H?????, either
?gt1/?N or ????start?.
22Eigenvalue estimation
- Algorithm that, given a state ??, H?????,
outputs an estimate of ? within ? by running H
for time O(1/?). - In our case ? 1/?N.
- Time O(?N) in Hamiltonian model, for the balanced
NAND tree (same as FGG).
Same result, different intuition
23The next steps
- Discrete query algorithm.
- Algorithm for computing arbitrary NAND formulas.
24From Hamiltonians to unitaries
HH0H1
25From Hamiltonians to unitaries
- Replace H0, H1 by unitary transformations U0, U1.
- Instead of estimating the eigenvalue of HH0H1,
estimate the eigenvalue of UU1U0.
26Designing U0
- Input-independent part of tree.
- Define U0???? if H0??0.
- Define U0??-?? if H0?????, ??0.
- H0- adjacency matrix.
- 0 queries required.
27Designing U1
- No extra edges.
- Define U1v? -v? if v - leaf with
xi1. - Define U1v? v? otherwise.
- 1 query
28Results (balanced case)
- If T0, there is a state ?? with U1U0????
and ????start?. - If T1, then for every ??, U1U0??ei???,
either ?gt1/?N or ????start?.
Eigenvalue estimation, O(?N) repetitions of U1U0
O(?N) queries
29Structure of our algorithm
- Transformation U1U0.
- U0??-?? if H0?????, ??0.
- U1v? -v? if v - leaf with xi1.
- U0, U1 leave vectors unchanged or map them to
their opposites.
U0, U1 - reflections
Same as in Grovers algorithm
30Two reflections in 2D
Eigenvalues e?i?
31Our algorithm
- The entire state space can be decomposed into two
dimensional subspaces. - Need to prove if T1, the angle between the two
bases is gt1/?N in each subspace.
Eigenvalues e?i?, ?gt1/?N
32Our algorithm
- Angle gt length of projection.
?
33Our algorithm
- Need to prove if T0, there exists ??, H??0,
- S subspace spanned by v?, xi1.
34Our algorithm
- Need to prove if T1, then, for any ??, H??0,
- S subspace spanned by v?, xi1.
35Computing arbitrary NAND formulas
36Arbitrary NAND formulas
- H0- weighted adjacency matrix
- 1s are replaced by positive weights that depend
on tree structure. - Define U0??-?? if H0?????, ??0.
37Results (general trees)
- Similar but more complicated analysis.
- O(?Nd) query algorithm.
What if d is large??
38Bshouty, Cleve, Eberly, 91
- Theorem Let F be a formula of size S, depth d.
There is a formula F, FF, - Size(F)O(S1?), Depth(F)O(log S).
- Size(F) , Depth(F)
O(N1/2?) quantum algorithm for any formula F
39Summary
- O(?N) query quantum algorithm for balanced NAND
trees. - O(?Nd) query quantum algorithm for any depth-d
NAND tree. - query quantum algorithm
- for any NAND tree.
40Implications for Boolean formulas
- Any Boolean formula of size S can be evaluated
with queries.
41Lee et al., 2005
- If quantum adversary method shows that a
Boolean function requires S queries in quantum
query model, the classical formula size is S2.
- Not a coincidence smaller formula can be
converted into a quantum algorithm with less than
S queries!
42Two reflections strike again
- Aharonov, 98 Analysis of Grovers algorithm
- Other applications
- Amplitude amplification.
- Quantization of Markov chains.
- Now NAND formulas.