Quantum Walk Search
   HOME

TheInfoList



OR:

In the context of
quantum computing A quantum computer is a computer that exploits quantum mechanical phenomena. On small scales, physical matter exhibits properties of wave-particle duality, both particles and waves, and quantum computing takes advantage of this behavior using s ...
, the quantum walk search is a
quantum algorithm In quantum computing, a quantum algorithm is an algorithm that runs on a realistic model of quantum computation, the most commonly used model being the quantum circuit model of computation. A classical (or non-quantum) algorithm is a finite seq ...
for finding a marked node in a graph. The concept of a
quantum walk Quantum walks are quantum analogs of classical random walks. In contrast to the classical random walk, where the walker occupies definite states and the randomness arises due to stochastic transitions between states, in quantum walks randomness ...
is inspired by classical
random walk In mathematics, a random walk, sometimes known as a drunkard's walk, is a stochastic process that describes a path that consists of a succession of random steps on some Space (mathematics), mathematical space. An elementary example of a rand ...
s, in which a walker moves randomly through a graph or lattice. In a classical random walk, the position of the walker can be described using a probability distribution over the different nodes of the graph. In a quantum walk, on the other hand, the walker is represented by a
quantum state In quantum physics, a quantum state is a mathematical entity that embodies the knowledge of a quantum system. Quantum mechanics specifies the construction, evolution, and measurement of a quantum state. The result is a prediction for the system ...
, which can be in a
superposition In mathematics, a linear combination or superposition is an expression constructed from a set of terms by multiplying each term by a constant and adding the results (e.g. a linear combination of ''x'' and ''y'' would be any expression of the form ...
of several locations simultaneously. Search algorithms based on quantum walks have the potential to find applications in various fields, including
optimization Mathematical optimization (alternatively spelled ''optimisation'') or mathematical programming is the selection of a best element, with regard to some criteria, from some set of available alternatives. It is generally divided into two subfiel ...
,
machine learning Machine learning (ML) is a field of study in artificial intelligence concerned with the development and study of Computational statistics, statistical algorithms that can learn from data and generalise to unseen data, and thus perform Task ( ...
,
cryptography Cryptography, or cryptology (from "hidden, secret"; and ''graphein'', "to write", or ''-logy, -logia'', "study", respectively), is the practice and study of techniques for secure communication in the presence of Adversary (cryptography), ...
, and
network analysis Network analysis can refer to: * Network theory, the analysis of relations through mathematical graphs ** Social network analysis, network theory applied to social relations * Network analysis (electrical circuits) See also *Network planning and d ...
. The efficiency and probability of success of a quantum walk search depend heavily on the structure of the search space. In general, quantum walk search algorithms offer an asymptotic quadratic
speedup In computer architecture, speedup is a number that measures the relative performance of two systems processing the same problem. More technically, it is the improvement in speed of execution of a task executed on two similar architectures with ...
similar to that of
Grover's algorithm In quantum computing, Grover's algorithm, also known as the quantum search algorithm, is a quantum algorithm for unstructured search that finds with high probability the unique input to a black box function that produces a particular output value, ...
. One of the first works on the application of quantum walk to search problems was proposed by Neil Shenvi, Julia Kempe, and K. Birgitta Whaley.


Classical problem description

Given a search space X and a subset M \subseteq X which contains the marked elements, a probabilistic search algorithm samples an element x \in X uniformly at random at each step, until it finds a marked element from M. If we define \epsilon = , M, /, N, as the fraction of marked elements, a procedure of that kind must be repeated O(1/\epsilon) times to find a marked element. If we have information about the structure of X we can model it as a graph G(V,E), where every vertex V=\ represents a sample from the search space with , X, =n, while the edges represent the
conditional probability In probability theory, conditional probability is a measure of the probability of an Event (probability theory), event occurring, given that another event (by assumption, presumption, assertion or evidence) is already known to have occurred. This ...
to sample the next element starting from the current sample. We perform a search by starting from a random vertex v_and, if it does not belong to M, we sample the next vertex v_ among the ones connected to v_. This procedure is known as random walk search. To have a probability close to 1 to find the marked node, we need to take asymptotically O(1/\epsilon\delta ) steps on the graph, where the parameter \delta is the
spectral gap In mathematics, the spectral gap is the difference between the moduli of the two largest eigenvalues of a matrix or operator; alternately, it is sometimes taken as the smallest non-zero eigenvalue. Various theorems relate this difference to oth ...
associated to the
stochastic matrix In mathematics, a stochastic matrix is a square matrix used to describe the transitions of a Markov chain. Each of its entries is a nonnegative real number representing a probability. It is also called a probability matrix, transition matrix, ''s ...
P of the graph. To assess the
computational cost A computation is any type of arithmetic or non-arithmetic calculation that is well-defined. Common examples of computation are mathematical equation solving and the execution of computer algorithms. Mechanical or electronic devices (or, historic ...
of a random walk algorithm, one usually divides the procedure into three sub-phases such as Setup, Check, and Update, and analyses their cost. ;Setup The setup cost S refers to the initialization of the
stationary distribution Stationary distribution may refer to: * and , a special distribution for a Markov chain such that if the chain starts with its stationary distribution, the marginal distribution of all states at any time will always be the stationary distribution. ...
over the vertices of the graph. ;Update The update cost U is the cost to simulate a transition on the graph according to the transition probability defined in P. ;Check The check cost C is the cost to verify if the current element belongs to the set M. The total cost of a random walk search algorithm is S+\frac\biggl(\fracU + C\biggr). The greedy version of the algorithm, where the check is performed after every step on the graph has a complexity of S+\frac\biggl(U+ C\biggr). The presence of the spectral gap term \delta in the cost formulation can be thought of as the minimum number of steps that the walker must perform to reach the stationary distribution. This quantity is also known as mixing time.


Algorithm description

The quantum walk search algorithm was first proposed by Magniez et al., also known as MNRS algorithm, and is based on the quantum walk formulation proposed by Mario Szegedy. The walk is performed on the directed edges of the graph so to represent the quantum state associated with the search space we need two
quantum register In quantum computing, a quantum register is a system comprising multiple qubits. It is the quantum analogue of the classical processor register. Quantum computers perform calculations by manipulating qubits within a quantum register. Definitio ...
s , i\rangle, j\rangle, which correspond to the edge from v_ to v_. To easily understand how it works, the algorithm can be explained through its geometric interpretation. We first define , p_\rangle = \sum_ \sqrt , j\rangle as the uniform
superposition In mathematics, a linear combination or superposition is an expression constructed from a set of terms by multiplying each term by a constant and adding the results (e.g. a linear combination of ''x'' and ''y'' would be any expression of the form ...
over the neighbours of , i\rangle. We additionally define the superposition over the marked and non-marked states, often referred to as the good and bad states, as , G\rangle=\frac\sum_, i\rangle , p_\rangle and , B\rangle=\frac\sum_, i\rangle , p_\rangle where M is the set of marked elements. The uniform superposition over all the edges U can be viewed a combination of good and bad states. , U\rangle=\frac\sum_, i\rangle , p_\rangle = \sin(\theta), G\rangle + \cos(\theta), B\rangle with \theta = \arcsin(\sqrt). The algorithm is composed of the following steps: # Initialize the quantum state with , U\rangle, usually it is done by some state preparation routine. # Repeat for O(1/\sqrt): #* Perform a reflection through , B\rangle #* Perform a reflection through , U\rangle # Measure the first quantum register and check if it is marked Since the way the algorithm finds a marked element is based on the
amplitude amplification Amplitude amplification is a technique in quantum computing that generalizes the idea behind Grover's search algorithm, and gives rise to a family of quantum algorithms. It was discovered by Gilles Brassard and Peter Høyer in 1997, and indepen ...
technique, the proof of correctness is similar to the one of Grover's algorithm (which can also be viewed as a special case of a quantum walk on a fully connected graph ). The two reflections through , U\rangle and , B\rangle exhibit the effect of moving the quantum state toward the good state. After k applications of the reflections the state can be written as \sin((2k+1)\theta), G\rangle + \cos((2k+1)\theta), B\rangle, and by setting k\thickapprox \frac = O(1/\sqrt) we have that \sin((2k+1)\theta) \thickapprox 1 which yields the good state with a high probability. ;First reflection The first reflection has the effect of checking if the current vertex is marked and applying a phase shift equal to -1 if it is so. This is a common procedure in many quantum algorithms based on amplitude amplification and can be realized through a quantum oracle function that verifies the condition , i\rangle \in M. ;Second reflection The second reflection is implemented with a quantum phase estimation over the walk operator W which must reflect the structure of the graph we are exploring. The walk operator can be defined as W=ref(\mathcal)ref(\mathcal) where ref(\mathcal) and ref(\mathcal) are two reflections through the subspaces \mathcal=span\ and \mathcal=span\. Since the
eigenvalues In linear algebra, an eigenvector ( ) or characteristic vector is a vector that has its direction unchanged (or reversed) by a given linear transformation. More precisely, an eigenvector \mathbf v of a linear transformation T is scaled by a ...
of W are on the form e^and the operator has a unique eigenvalue equal to 1 corresponding to , U \rangle given by \theta = 0, we can perform a phase estimation with precision O(1/\sqrt) to find the unique eigenvalue. The precision of the reflection depends on the number of
qubit In quantum computing, a qubit () or quantum bit is a basic unit of quantum information—the quantum version of the classic binary bit physically realized with a two-state device. A qubit is a two-state (or two-level) quantum-mechanical syste ...
s used to estimate the phase. ;Complexity With the same formalism used to estimate the cost of the classical random walk algorithm, the quantum costs can be summarised with: * S: is the cost to initialize the superposition , U\rangle * U: is the cost perform a step on the graph in superposition i.e. reflection through , U\rangle * C: is the cost to implement the quantum oracle i.e. reflection through , B\rangle The total cost of the quantum walk search is S+\frac\biggl(\fracU + C\biggr), which results in a quadratic speedup compared to the classical version. Compared to Grover's algorithm quantum walks become advantageous in the presence of large data structures associated with each quantum state, since in the first case they are entirely rebuilt at each iteration while in walks they are only partially updated in each step.


Hypercube example

This is an example of how to apply the quantum walk search on a
hypercube In geometry, a hypercube is an ''n''-dimensional analogue of a square ( ) and a cube ( ); the special case for is known as a ''tesseract''. It is a closed, compact, convex figure whose 1- skeleton consists of groups of opposite parallel l ...
graph. Although in the original description Szegedy quantum walks are used, for this example we show the use of coined quantum walk as it is more intuitive to understand. In any case, the two formalizations turn out to be equivalent under specific assumptions. The search space is a n-hypercube with n=4, it has , V, =2^ vertices and it has a degree equal to 4. Each node v_ can be labeled with a binary string of 4 bits and two nodes are connected by an edge if their
Hamming distance In information theory, the Hamming distance between two String (computer science), strings or vectors of equal length is the number of positions at which the corresponding symbols are different. In other words, it measures the minimum number ...
is 1. To set up the quantum walk search we need a coin register of dimension \mathcal^ to encode all the possible directions which a walker can choose and a vertex register of dimension \mathcal^to represent the vertices. The computational basis is , d\rangle , v\rangle with\. The walk is performed by two operators: * Coin operator C is used to create the superposition over the possible directions * Shift operator S is used to take a step in the graph according to one direction Thus, the walk operator is W=SC. In the case of the hypercube graph, we can leverage the fact that the binary encoding of the vertices differ by only one bit for any couple of adjacent nodes to construct an efficient shift operator. The shift operator can be written as: S=\sum_^\sum_^, d\rangle, v \oplus e_ \rangle \langle d , \langle v, where e_ is the d-basis for the hypercube ( if n=4 the basis are \). For the coin there are multiple choices such as the Grover coin or the Fourier coin, one can choose the Grover coin to have an equal superposition over all the directions. The algorithm works as follows: # Repeat for O(1/\sqrt) #* Initialise the counting register for the phase in superposition #* Perform a phase estimation on W with O(1/\sqrt) precision #* Mark an auxiliary qubit if the estimated phase is \tilde=0 #* Un-compute auxiliary data structure # Measure the vertex register The shift operator is a key factor to the implementation on an efficient quantum walk, while for certain families of graph such as toroids and lattices, the shift is known, for non-regular graph the design of an effective shift operator is still an open challenge.


Applications

The following applications are based on quantum walk on Johnson graph J(n,k). ;Element distinctness Given a function f defined on \, it asks to find two distinct elements i,j \in \ such that f(i)=f(j) if there exist such a pair. ;Matrix product verification Given three n\times n matrices A,B and C, the problem asks to verify if AB=C or otherwise find the indices i,j such that (AB)_ \neq C_. ;Triangle A
triangle A triangle is a polygon with three corners and three sides, one of the basic shapes in geometry. The corners, also called ''vertices'', are zero-dimensional points while the sides connecting them, also called ''edges'', are one-dimension ...
is a complete subgraph on three vertices part of an undirected graph G. Given the adjacent matrix of a graph the problem asks to find a triangle if there is any.


See also

*
Grover's algorithm In quantum computing, Grover's algorithm, also known as the quantum search algorithm, is a quantum algorithm for unstructured search that finds with high probability the unique input to a black box function that produces a particular output value, ...
* Quantum phase estimation *
Quantum walk Quantum walks are quantum analogs of classical random walks. In contrast to the classical random walk, where the walker occupies definite states and the randomness arises due to stochastic transitions between states, in quantum walks randomness ...
*
Random walk In mathematics, a random walk, sometimes known as a drunkard's walk, is a stochastic process that describes a path that consists of a succession of random steps on some Space (mathematics), mathematical space. An elementary example of a rand ...


References


Further reading

* * *


External links


Quantum Walk

Implementation of quantum walk on cycle graph

Studying quantum walks on near term quantum computers
{{Quantum information Quantum algorithms