Quantum walk algorithms

Similar documents
Quantum algorithms. Andrew Childs. Institute for Quantum Computing University of Waterloo

Quantum algorithms (CO 781, Winter 2008) Prof. Andrew Childs, University of Waterloo LECTURE 11: From random walk to quantum walk

A Glimpse of Quantum Computation

Quantum algorithms (CO 781, Winter 2008) Prof. Andrew Childs, University of Waterloo LECTURE 15: Unstructured search and spatial search

Discrete quantum random walks

Quantum algorithms based on quantum walks. Jérémie Roland (ULB - QuIC) Quantum walks Grenoble, Novembre / 39

A quantum walk based search algorithm, and its optical realisation

Exponential algorithmic speedup by quantum walk

Compute the Fourier transform on the first register to get x {0,1} n x 0.

arxiv:quant-ph/ v1 15 Apr 2005

Universal computation by quantum walk

The Markov Chain Monte Carlo Method

Quantum algorithms (CO 781/CS 867/QIC 823, Winter 2013) Andrew Childs, University of Waterloo LECTURE 13: Query complexity and the polynomial method

From Adversaries to Algorithms. Troy Lee Rutgers University

The Quantum Query Complexity of Algebraic Properties

Faster quantum algorithm for evaluating game trees

Quantum algorithms based on span programs

Finding is as easy as detecting for quantum walks

Quantum Algorithms for Graph Traversals and Related Problems

Quantum speedup of backtracking and Monte Carlo algorithms

Quantum Algorithms for Finding Constant-sized Sub-hypergraphs

Definition A finite Markov chain is a memoryless homogeneous discrete stochastic process with a finite number of states.

Combinatorial semigroups and induced/deduced operators

Time-Efficient Quantum Walks for 3-Distinctness

An Introduction to Spectral Graph Theory

Quantum algorithms (CO 781, Winter 2008) Prof. Andrew Childs, University of Waterloo LECTURE 1: Quantum circuits and the abelian QFT

6.842 Randomness and Computation March 3, Lecture 8

Probability & Computing

Decoherence on Szegedy s Quantum Walk

Hamiltonian simulation and solving linear systems

arxiv:cond-mat/ v1 20 Sep 2004

Introduction to Quantum Information Processing

!"#$%"&'(#)*+',$'-,+./0%0'#$1' 23$4$"3"+'5,&0'

Algorithmic challenges in quantum simulation. Andrew Childs University of Maryland

Powerful tool for sampling from complicated distributions. Many use Markov chains to model events that arise in nature.

1 Adjacency matrix and eigenvalues

C/CS/Phys C191 Grover s Quantum Search Algorithm 11/06/07 Fall 2007 Lecture 21

20.1 2SAT. CS125 Lecture 20 Fall 2016

Markov Chains CK eqns Classes Hitting times Rec./trans. Strong Markov Stat. distr. Reversibility * Markov Chains

Algorithmic challenges in quantum simulation. Andrew Childs University of Maryland

A Review of Quantum Random Walks and their Algorithmic Applications

arxiv: v2 [quant-ph] 7 Jan 2010

Spectral Graph Theory and You: Matrix Tree Theorem and Centrality Metrics

Quantum algorithms for hidden nonlinear structures

Improved Quantum Algorithm for Triangle Finding via Combinatorial Arguments

University of Chicago Autumn 2003 CS Markov Chain Monte Carlo Methods

Quantum Computing Lecture 6. Quantum Search

α x x 0 α x x f(x) α x x α x ( 1) f(x) x f(x) x f(x) α x = α x x 2

PCPs and Inapproximability Gap-producing and Gap-Preserving Reductions. My T. Thai

Math 54. Selected Solutions for Week 5

WAITING FOR A BAT TO FLY BY (IN POLYNOMIAL TIME)

Problem Set 2. Assigned: Mon. November. 23, 2015

Trees. A tree is a graph which is. (a) Connected and. (b) has no cycles (acyclic).

Approximate Counting and Markov Chain Monte Carlo

COMPUTATIONAL COMPLEXITY

Ma/CS 6b Class 25: Error Correcting Codes 2

arxiv:quant-ph/ v1 10 Jun 2006

Introduction to Adiabatic Quantum Computation

EECS 495: Randomized Algorithms Lecture 14 Random Walks. j p ij = 1. Pr[X t+1 = j X 0 = i 0,..., X t 1 = i t 1, X t = i] = Pr[X t+

On the Logarithmic Calculus and Sidorenko s Conjecture

Quantum Communication Complexity

Lecture 5: Random Walks and Markov Chain

Graph fundamentals. Matrices associated with a graph

Linear algebra and applications to graphs Part 1

Model Counting for Logical Theories

The quantum query complexity of read-many formulas

Periodicity & State Transfer Some Results Some Questions. Periodic Graphs. Chris Godsil. St John s, June 7, Chris Godsil Periodic Graphs

Reflections Reflections

Hein, Birgit (2010) Quantum search algorithms. PhD thesis, University of Nottingham.

ORIE 6334 Spectral Graph Theory September 22, Lecture 11

U.C. Berkeley Better-than-Worst-Case Analysis Handout 3 Luca Trevisan May 24, 2018

18.312: Algebraic Combinatorics Lionel Levine. Lecture 19

On the inverse matrix of the Laplacian and all ones matrix

Which Quantum Walk on Graphs?

Random Lifts of Graphs

By allowing randomization in the verification process, we obtain a class known as MA.

The query register and working memory together form the accessible memory, denoted H A. Thus the state of the algorithm is described by a vector

Approximation Algorithms and Hardness of Approximation. IPM, Jan Mohammad R. Salavatipour Department of Computing Science University of Alberta

Math Homework 5 Solutions

The Quantum Query Complexity of the Determinant

Algebraic Representation of Networks

ACO Comprehensive Exam March 20 and 21, Computability, Complexity and Algorithms

Introduction to Quantum Computing

Adiabatic quantum computation a tutorial for computer scientists

Continuous Time Quantum Walk on finite dimensions. Shanshan Li Joint work with Stefan Boettcher Emory University QMath13, 10/11/2016

Symmetry in quantum walks on graphs

Communities Via Laplacian Matrices. Degree, Adjacency, and Laplacian Matrices Eigenvectors of Laplacian Matrices

Kernels of Directed Graph Laplacians. J. S. Caughman and J.J.P. Veerman

Lecture 2: November 9

Game Theory and Algorithms Lecture 7: PPAD and Fixed-Point Theorems

Acyclic subgraphs with high chromatic number

A better lower bound for quantum algorithms searching an ordered list

Hamiltonian simulation with nearly optimal dependence on all parameters

Lecture 14: Random Walks, Local Graph Clustering, Linear Programming

Finite-Horizon Statistics for Markov chains

Separating Hierarchical and General Hub Labelings

Rings, Paths, and Cayley Graphs

arxiv: v3 [quant-ph] 29 Oct 2009

Lecture 13: Spectral Graph Theory

Essential facts about NP-completeness:

Transcription:

Quantum walk algorithms Andrew Childs Institute for Quantum Computing University of Waterloo 28 September 2011

Randomized algorithms Randomness is an important tool in computer science Black-box problems Huge speedups are possible (Deutsch-Jozsa: 2 Ω(n) vs. O(1)) Polynomial speedup for some total functions (game trees: Ω(n) vs. O(n 0.754 )) Natural problems Majority view is that derandomization should be possible (P=BPP) Randomness may give polynomial speedups (Schöning algorithm for k-sat) Can be useful for algorithm design

Random walk Graph G = (V, E) Two kinds of walks: Discrete time Continuous time

Random walk algorithms Undirected s t connectivity in log space Problem: given an undirected graph G = (V, E) and s, t V, is there a path from s to t? A random walk from s eventually reaches t iff there is a path Taking a random walk only requires log space Can be derandomized (Reingold 2004), but this is nontrivial Markov chain Monte Carlo Problem: sample from some probability distribution (uniform distribution over some set of combinatorial objects, thermal equilibrium state of a physical system, etc.) Create a Markov chain whose stationary distribution is the desired one Run the chain until it converges

Continuous-time quantum walk Graph G 1 2 5 3 4 0 1 1 0 0 1 0 0 1 1 A = 1 0 0 1 0 0 1 1 0 1 0 1 0 1 0 adjacency matrix L = 2 1 1 0 0 1 3 0 1 1 1 0 2 1 0 0 1 1 3 1 0 1 0 1 2 Laplacian Random walk on G State: probability p v (t) of being at vertex v at time t d Dynamics: dt p(t) = L p(t) Quantum walk on G State: amplitude q v (t) to be at vertex v at time t (i.e., ψ(t) = v V q v (t) v ) Dynamics: i d dt q(t) = L q(t)

Random vs. quantum walk on the line -4-3 -2-1 0 1 2 3 4 Classical: Quantum:

Random vs. quantum walk on the hypercube V = {0, 1} n E = {(x, y) V V : x and y differ in exactly one bit} n = 3: 011 111 001 101 010 110 000 100 Classical random walk: reaching 11... 1 from 00... 0 is exponentially unlikely Quantum walk: with A = n j=1 X j, e iat = n e ix j t = j=1 n ( cos t ) i sin t i sin t cos t j=1

Glued trees problem in out Black-box description of a graph Vertices have arbitrary labels Label of in vertex is known Given a vertex label, black box returns labels of its neighbors Restricts algorithms to explore the graph locally

Glued trees problem: Classical query complexity in out Let n denote the height of one of the binary trees Classical random walk from in : probability of reaching out is 2 Ω(n) at all times In fact, the classical query complexity is 2 Ω(n)

Glued trees problem: Exponential speedup in out Column subspace col j := 1 v Nj v column j { 2 j if j [0, n] N j := 2 2n+1 j if j [n + 1, 2n + 1] Reduced adjacency matrix 2 2 2 2 2 2 2 2 2 col 0 col 1 col 2 col 3 col 4 col 5 col 6 col 7 col 8 col 9 col j A col j + 1 2 if j [0, n 1] = 2 if j [n + 1, 2n] 2 if j = n

Discrete-time quantum walk: Need for a coin Quantum analog of discrete-time random walk? Unitary matrix U C V V with U vw 0 iff (v, w) E Consider the line: -4-3 -2-1 0 1 2 3 4 Define walk by x 1 2 ( x 1 + x + 1 )? But then x + 2 1 2 ( x + 1 + x + 3 ), so this is not unitary! In general, we must enlarge the state space.

Discrete-time quantum walk on a line -4-3 -2-1 0 1 2 3 4 Add a coin : state space span{ x, x : x Z} Coin flip: C := I H Shift: S x = x 1 S x = x + 1 Walk step: SC

The Szegedy walk State space: span{ v w, w v : (v, w) E} Let W be a stochastic matrix (a discrete-time random walk) Define ψ v := v w V Wwv w (note ψ v ψ w = δ v,w ) R := 2 v V ψ v ψ v I S( v w ) := w v Then a step of the walk is the unitary operator U := SR

Spectrum of the walk Let T := v V ψ v v, so R = 2TT I. Theorem (Szegedy) Let W be a stochastic matrix. Suppose the matrix Wvw W wv w v v,w has an eigenvector λ with eigenvalue λ. Then I e ±i arccos λ S 2(1 λ 2 ) T λ are eigenvectors of U = SR with eigenvalues e ±i arccos λ.

Proof of Szegedy s spectral theorem Proof sketch. Straightforward calculations give TT = ψ v ψ v T T = I v V T ST = Wvw W wv w v = λ λ v,w V which can be used to show λ U(T λ ) = ST λ U(ST λ ) = 2λST λ T λ. Diagonalizing within the subspace span{t λ, ST λ } gives the desired result. Exercise. Fill in the details

Random walk search algorithm Given G = (V, E), let M V be a set of marked vertices Start at a random unmarked vertex Walk until we reach a marked vertex: 1 w M and v = w W vw := 0 w M and v w W vw w / M. ( ) WM 0 = (W V I M : delete marked rows and columns of W ) Question. How long does it take to reach a marked vertex?

Classical hitting time Take t steps of the walk: ( (W ) t W t ) = M 0 V (I + W M + + W t 1 M ( ) ) I W t M 0 = I V I W t M I W M Convergence time depends on how close W M is to 1, which depends on the spectrum of W Lemma Let W = W T be a symmetric Markov chain. Let the second largest eigenvalue of W be 1 δ, and let ɛ = M / V (the fraction of marked items). Then the probability of reaching a marked vertex is Ω(1) after t = O(1/δɛ) steps of the walk.

Quantum walk search algorithm 1 Start from the state N M v M ψ v Consider the walk U corresponding to W : v,w V W v,w W w,v w v = ( WM 0 0 I Eigenvalues of U are e ±i arccos λ where the λ are eigenvalues of W M Perform phase estimation on U with precision O( δɛ) no marked items = estimated phase is 0 ɛ fraction of marked items = nonzero phase with probability Ω(1) Further refinements give algorithms for finding a marked item )

Grover s algorithm revisited Problem Given a black box f : X {0, 1}, is there an x with f (x) = 1? Markov chain on N = X vertices: W := 1 1 1. N.... = ψ ψ, ψ := 1 x N 1 1 x X Eigenvalues of W are 0, 1 = δ = 1 Hard case: one marked vertex, ɛ = 1/N Hitting times Classical: O(1/δɛ) = O(N) Quantum: O(1/ δɛ) = O( N)

Element distinctness Problem Given a black box f : X Y, are there distinct x, x with f (x) = f (x )? Let N = X ; classical query complexity is Ω(N) Consider a quantum walk on the Hamming graph H(N, M) Vertices: {(x 1,..., x M ): x i X } Store the values (f (x 1 ),..., f (x M )) at vertex (x 1,..., x M ) Edges between vertices that differ in exactly one coordinate

Element distinctness: Analysis Spectral gap: δ = O(1/M) Fraction of marked vertices: ɛ ( M 2 ) (N 2) M 2 /N M = Θ(M 2 /N 2 ) Quantum hitting time: O(1/ δɛ) = O(N/ M) Quantum query complexity: M queries to prepare the initial state 2 queries for each step of the walk (compute f, uncompute f ) Overall: M + O(N/ M) Choose M = N 2/3 : query complexity is O(N 2/3 ) (optimal!)

Quantum walk algorithms Quantum walk search algorithms Spatial search Subgraph finding Checking matrix multiplication Testing if a black-box group is abelian Attacking quantum Merkle cryptosystems Evaluating Boolean formulas Exponential speedup for a natural problem?

Exercise: Triangle finding (1/2) The goal of the triangle problem is to decide whether an n-vertex graph G contains a triangle (a complete subgraph on 3 vertices). The graph is specified by a black box that, for any pair of vertices of G, returns a bit indicating whether those vertices are connected by an edge in G. 1. What is the classical query complexity of the triangle problem? 2. Say that an edge of G is a triangle edge if it is part of a triangle in G. What is the quantum query complexity of deciding whether a particular edge of G is a triangle edge? 3. Now suppose you know the vertices and edges of some m-vertex subgraph of G. Explain how you can decide whether this subgraph contains a triangle edge using O(m 2/3 n) quantum queries.

Exercise: Triangle finding (2/2) 4. Consider a quantum walk algorithm for the triangle problem. The walk takes place on a graph G whose vertices correspond to subgraphs of G on m vertices, and whose edges correspond to subgraphs that differ by changing one vertex. A vertex of G is marked if it contains a triangle edge. How many queries does this algorithm use to decide whether G contains a triangle? (Hint: Be sure to account for the S queries used to initialize the walk, the U queries used to move between neighboring vertices of G, and the C queries used to check whether a given vertex of G is marked. If the walk has spectral gap δ and an ɛ-fraction of the vertices are marked, it can be shown that there is a quantum walk search algorithm with query complexity S + 1 ɛ ( 1 δ U + C).) 5. Choose a value of m that minimizes the number of queries used by the algorithm. What is the resulting upper bound on the quantum query complexity of the triangle problem?