Multidimensional Quantum Walks, Recursion, and Quantum Divide & Conquer
Abstract
We introduce an object called a subspace graph that formalizes the technique of multidimensional quantum walks. Composing subspace graphs allows one to seamlessly combine quantum and classical reasoning, keeping a classical structure in mind, while abstracting quantum parts into subgraphs with simple boundaries as needed. As an example, we show how to combine a switching network with arbitrary quantum subroutines, to compute a composed function. As another application, we give a time-efficient implementation of quantum Divide & Conquer when the sub-problems are combined via a Boolean formula. We use this to quadratically speed up Savitch’s algorithm for directed -connectivity.
Keywords and phrases:
Quantum Divide & Conquer, Time-Efficient, Subspace Graphs, Quantum Walks, Switching Networks, Directed st-ConnectivityFunding:
Stacey Jeffery: Supported by ERC STG grant 101040624-ASC-Q, NWO Klein project number OCENW.Klein.061. SJ is a CIFAR Fellow in the Quantum Information Science Program.Copyright and License:
![[Uncaptioned image]](x1.png)
2012 ACM Subject Classification:
Theory of computation Quantum computation theory ; Theory of computation Design and analysis of algorithmsEditors:
Olaf Beyersdorff, Michał Pilipczuk, Elaine Pimentel, and Nguyễn Kim ThắngSeries and Publisher:

1 Introduction
There are a number of graphical ways of reasoning about how the steps or subroutines of a classical algorithm fit together. For example, it is natural to think of a (randomized) classical algorithm as a (randomized) decision tree (or branching program), where different paths are chosen depending on the input, as well as random choices made by the algorithm. A deterministic algorithm gives rise to a computation path, a randomized algorithm to a computation tree. The edges of a path or tree, representing steps of computation, might be implemented by some subroutine that is also realized by a path (or tree) – we can abstract the subroutine’s details by viewing it as an edge, or zoom in and see those details, as convenient. More generally, we often think of a classical randomized algorithm as a random walk on a (possibly directed) graph, where there may be multiple parallel paths from point to point , with the cost of getting from to being derived from the expected length of these paths.
This picture appears to break down for quantum algorithms, at least in the standard circuit model. A quantum circuit can be thought of as a path, with edges representing its steps, but it is unclear how to augment this reasoning with subroutines. Consider calling subroutines with varying time complexities in superposition. Even if the subroutines are all classical deterministic, in the standard quantum circuit model, we tend to incur a cost of if we call a superposition of subroutines, since we must wait for the slowest subroutine to finish before we can apply the next step of the computation. This problem was addressed in [13], where the technique of multidimensional quantum walks [15] was used to show how to get an average in place of a max in several settings where a quantum algorithm calls subroutines in superposition: a general setting, as well as the setting of quantum walks. The intuition behind [13] is that a quantum walk does keep the classical intuition of parallel paths representing a superposition of possible computations, and any quantum algorithm can be viewed as some sort of a quantum walk on a simple underlying graph (something like a path), but with some additional structure associated with it.
Multidimensional quantum walks, which we study more formally in this paper as an object than has been done previously, are valuable as a way of combining quantum and classical reasoning. A quantum algorithm can be abstracted as a graph with perhaps complicated internal structure, but a simple boundary with an “in” and an “out” terminal (called “” and “”), that can be seamlessly hooked into other graph-like structures, perhaps representing simple classical reasoning, such as a quantum random walk, or perhaps with their own complicated very quantum parts.
Subspace Graphs
While [15] and [13] use similar techniques, it is not formally defined what a multidimensional quantum walk is. We formally define an object called a subspace graph (Definition 2) that abstracts the structures in [15] and [13]. A subspace graph is simply a graph with some subspaces associated with each edge and vertex, where the structure of the graph constrains how the spaces can overlap. Defining what we mean, precisely, by a multidimensional quantum walk (i.e. subspace graph) is the first step to developing a general theory of recursive constructions of subspace graphs.
The recursive structure of subspace graphs is useful for composing quantum algorithms, but as a design tool, it is also convenient to be able to view a subspace graph in varying levels of abstraction. We can “zoom out” and view a complicated process as just a special “edge”, or zoom in on that edge and understand its structure as an involved graph with additional structure.
We cannot hope to be able to understand all quantum algorithms using purely classical ideas – quantum computing is not classical computing. But perhaps the next best thing is a way to seamlessly combine classical and quantum ideas, extending the classical intuition to its limits, and then employing quantum reasoning when needed, but with the possibility of abstracting out from it when needed as well, using a fully quantum form of abstraction.
In this work, we consider one specific kind of composition of subspace graphs called switch composition – another type is implicit in [13] – but we would like to emphasize the potential for more general types of recursion, which we leave for future work.
Time-Efficient Quantum Divide & Conquer
A particular type of recursive algorithm is divide & conquer, in which a problem is broken into multiple smaller sub-problems, whose solutions, obtained by recursive calls, are combined into a solution for the original problem. As a motivating example, consider the recursively defined nand-tree function. Let be defined , and for ,
where each , and . There is a natural way to break an instance of into sub-problems of , and combine the solutions by taking the NAND (negated AND) of the sub-problem solutions. Grover’s algorithm computes this NAND in queries, so we might hope for a speedup by recursive calls to this quantum algorithm. Unfortunately, since we recurse to depth , the constant in front of is raised to the -th power. This kills the quantum speedup completely when is constant (for example, the most common setting of ), and that is not even touching on the fact that we would seem to need to amplify the success probability of the subroutine, turning those constants into log factors. On the other hand, it is known [20] that can be evaluated in quantum queries, even though our attempt to use classical divide-&-conquer reasoning combined with the basic Grover speedup failed.
More recently, [9] showed how to employ divide-&-conquer reasoning in the study of quantum query complexity, in which one only counts the number of queries to the input. They obtained their query upper bounds by composing dual adversary solutions. The key to their results is that dual adversary solutions exhibit perfect composition: no error, no log factors, not even constant overhead. However, their result were not constructive, as dual adversary solutions do not fully specify algorithms, and in particular, the time complexity analysis of their results was unknown. In this work, we use the framework of subspace graphs to give a time-complexity version of some of the query complexity results obtained in [9]. In particular, we show (see Theorem 16):
Theorem 1 (Informal).
Let be a family of functions. Let be a symmetric Boolean formula on variables, and suppose , for some and some auxiliary function with quantum time complexity . Then the quantum time complexity of is for satisfying:
Our framework also handles the case where for any formula on variables, but then some extra, somewhat complicated looking costs need to be accounted for, and there is also a scaling in the depth, although this is not an issue if the formula has been preprocessed to be balanced [8].
Comparing this with the analogous classical statement, which would have instead of , we get an up to quadratic speedup over a large class of classical divide-&-conquer algorithms. As an application, we show a quadratic speedup of Savitch’s divide-&-conquer algorithm for directed -connectivity [22].
To achieve these results, it is essential that we compose subspace graphs, rather than algorithms. When we convert a subspace graph to a quantum algorithm, we get constant factors in the complexity, and these seem necessary without at least specifying what gateset we are working in. By first composing in the more abstract model of subspace graphs, and then only converting to a quantum algorithm at the end, we ensure these factors only come into the complexity once. This is similar to compositions done with other abstract models, such as span programs (of which dual adversary solutions are a special case) [19], and transducers [6].
Switching Networks
A switching network is a graph with Boolean variables associated with the edges that can switch the edges on or off. Originally used to model certain hardware systems, including automatic telephone exchanges, and industrial control equipment [23], a switching network has an associated function that is 1 if and only if two special vertices, and , are connected by a path of “on” edges. Shannon [23, 24] showed that series-parallel switching networks are equivalent to Boolean formulas, and Lee [16] showed that switching networks can model branching programs. These theoretical results have given this model a place in classical complexity theory, where they can be used to study classical space complexity and circuit depth (see [18]).
Quantum algorithms for evaluating switching networks111Switching networks have never been directly referred to in prior work on quantum algorithms, as far as we are aware, but the “-connectivity problems” referred to in [14] are, in fact, switching networks. given query access to the edge variables were given in [14], using a span program construction based heavily on [7]. Let be the effective resistance in the subgraph of “on” edges whenever , and whenever , let be the minimum weight -cut-set consisting of only edges that are “off”. Then there is a quantum algorithm evaluating the switching network using
queries, with matching time complexity assuming we can implement a certain reflection related to the particular switching network in unit time. From this it follows that if we can query the variable associated with an edge in time , we can evaluate the switching network in time
Here we improve this to:
This is analogous to results of [13], which showed a similar statement, but for quantum walks rather than switching networks222Both our result, and the one for quantum walks in [13] include variable-time quantum search [2] as a special case.. Because switching networks perfectly model Boolean formulas, without the constant overhead we get when we convert to a quantum algorithm, they can be used as a building block for our divide-&-conquer results.
Application to DSTCON
Quantum algorithms for -connectivity on undirected graphs, which are closely related to evaluating switching networks, are well studied [10, 7, 14, 12, 3], including quantum algorithms that achieve optimal time- and space-complexity simultaneously, in both the edge-list access model, and the adjacency matrix access model.333We do not make a distinction between various access models, because they can simulate one another in poly time and space, so our result, which includes a term, is the same in all models. In contrast, quantum algorithms for directed -connectivity (dstcon) – the problem of deciding if there is a directed path from to in a directed graph – is less well understood. The algorithm of [10] also applies to directed graphs, deciding connectivity in time and space444In the edge-list access model.. This algorithm has optimal time complexity, whereas its space complexity is far from optimal.
Directed -connectivity, also called reachability, is a fundamental problem in classical space complexity. In particular, understanding if this problem can be solved in space by a quantum algorithm would resolve the relationship between quantum logspace complexity and , as dstcon is -complete.
The best known classical (deterministic) space complexity of dstcon is , using Savitch’s algorithm. We apply quantum divide & conquer (Theorem 1) to give a quadratic speedup to Savitch’s algorithm, achieving time, while still maintaining space (see Theorem 18).
Model of Computation
We work in the same model as [15], where we allow not only arbitrary quantum gates, but also assume subroutines are given via access to a unitary that applies the subroutine’s -th gate controlled on the value in some time register. This is possible, for example, with quantum random access gates.
Related Work
While writing this manuscript, we became aware of an independent work that also achieves time-efficient quantum divide & conquer [1] when either (1) is an OR (equivalently, an AND) or (2) is a minimum or maximum. OR is a Boolean formula, while minimum/maximum is not. In that sense, our results are incomparable. Ref. [1] applies their framework to problems that are distinct from ours. The framework of [1] also differs from our work in that they explicitly treat the complexity of computing sub-instances (the cost of the “create” step), whereas we assume sub-instances are computable in unit cost. In one of the applications of [1], this cost is not negligible, and is even the dominating cost, so our framework, as stated, would not handle this application. This is not an inherent limitation of our techniques – it would be possible to take this cost into account in our framework as well.
We also mention that Ref. [9] analyzes the quantum query complexity of divide & conquer where is an arbitrary Boolean formula, as well as in settings where the function combining the sub-problems is more general. While our techniques do apply to composing quantum algorithms for arbitrary functions (already studied in [13]), an issue is a poor scaling in the error of subroutines. If we start with a bounded-error quantum algorithm for some function, we need to amplify the success probability, as it will be called many times, incurring logarithmic factors. This becomes a serious problem if the function is called recursively to depth more than constant. We get around this in the case of Boolean formulas by using a switching network construction (from which a quantum algorithm could be derived) rather than a bounded-error quantum algorithm for evaluating the formula. Our techniques would thus also readily apply to functions for which there is an efficient quantum algorithm derived from a switching network.
2 Technical Overview
Here we give a technical overview of our results, with full details available in the full version of the paper.
2.1 Subspace Graphs
Multidimensional quantum walks were introduced as such in [15], although they generalize various quantum algorithms that have appeared previously, including [25, 21, 4, 5, 11]. We wish to consider very general kinds of composition of multidimensional quantum walks, and in order to be clear about the precise types of objects we are composing, we give a more formal definition than has appeared previously.
Definition 2 (Subspace Graph).
A subspace graph consists of a (undirected) graph , a boundary , and the following subspaces of a space :
- Edge and Boundary Spaces
-
We assume can be decomposed into a direct sum of spaces as follows: .
- Edge and Boundary Subspaces
-
For each , let and be subspaces of . These need not be orthogonal, and they may each be , all of , or something in between.
- Vertex Spaces and Boundary Space
-
For each , let be pairwise orthogonal spaces. Let .
Then we define
To motivate this perhaps complicated-looking definition, we mention some concrete examples of subspace graphs that already exist in the quantum algorithms literature:
- 1.
- 2.
-
3.
In [13], certain subspaces are defined from any quantum algorithm, and these actually make up a subspace graph (see Section 2.2.3).
We will allow subspace graphs to implicitly depend on some input, and associate them with a computation. Specifically, if we fix some initial state , then this, along with and , define a phase estimation algorithm that decides if by doing phase estimation of , where is the orthogonal projector onto , and similarly for . With this in mind, we say a subspace graph that depends on some input , computes a function (with respect to ) if if and only if . Let us give some intuition. The quantum algorithm corresponding to a subspace graph described above distinguishes between two cases:
- Negative Case:
-
- Positive Case:
-
has a (large) component, called a positive witness in
Then we can see all the vectors in and as linear constraints on the initial state – it must have a large component orthogonal to all of them in the positive case. and are each decomposed into sums of subspaces, representing subsets of constraints. The graph structure of restricts how the different sets of constraints are allowed to overlap – the constraints associated with vertex only overlap constraints associated with edges that are incident to . This graph structure can then be used to help analyse the algorithm. For example, a positive witness is related to a flow on .
Though it is possible to consider more general states , throughout this paper, we will assume has a pair of special “terminal” vertices and , and let .
To implement the phase estimation algorithm, we need a pair of orthogonal bases for and that are easily generated, in order to implement their respective reflections. We therefore always assume we have such a basis pair associated with , which we call the working bases.
To analyze a phase estimation algorithm, we need to exhibit positive and negative witnesses, which have a particular form in the case has a property called canonical -boundary (see Definition 8), as will always be the case in this paper. In particular, -boundary implies that has four degrees of freedom, which we denote .
Definition 3 (Positive Witness for a Graph).
We say is a positive witness for if
We let be an upper bound (over some implicit input) on the minimum of any positive witness for .
A negative witness for a phase estimation algorithm is a vector such that , which exists if and only if . For a subspace graph, a negative witness is defined as follows.
Definition 4 (Negative Witness for a Graph).
We say is a negative witness for if . We let be an upper bound (over some implicit input) on the minimum of any negative witness for .
This leads to the following theorem associating a quantum algorithm to a subspace graph.
Theorem 5.
Let be a subspace graph that computes , with working bases that can be generated in time . Then there exists a quantum algorithm that decides in time complexity and space .
This justifies defining as the complexity of a subspace graph.
Switches and Switching Networks
Next, we introduce switching networks. In the classical model of switching networks, a switching network is a graph with a literal (variable or negated variable) associated with each edge , and two terminals . A switching network computes a function if for any , if and only if and are connected in , the subgraph consisting only of edges such that if is a positive literal, and otherwise – that is, edges labelled by literals that are true when the variables are set according to . Here, we let “switching network” refer to a special kind of subspace graph, but this subspace graph implements the switching network, in the sense that the algorithm referred to in Theorem 5 decides if and are connected in .
We first define what it means for an edge to be a switch. For a vertex , we let denote the edges incident to , which we divide into – edges “coming out of” – and – edges “going into” . As is an undirected graph, these edge directions can be chosen arbitrarily.
Definition 6 (Switch Edge).
Fix a subspace graph . We call an edge a switch (or switch edge) if there is some value associated with that edge (implicitly depending on the input), such that
and moreover, if , (that is, ), then and .
The idea behind a switch edge is that if , , and so . Recall that a positive witness is some such that . If , then can have no overlap with , so is essentially blocked from use, so we say the edge is switched off. In switching networks, defined shortly, the positive witness is an -flow, and it is restricted to edges in the subgraph of edges that are switched on. Even in subspace graphs that are not switching networks, we can often think of intuitively as a kind of flow.
We next define simple vertices, which are the type of vertices of switching networks, and also quantum walks.
Definition 7 (Simple Vertex).
Fix a subspace graph with associated edge weights . For , define
A vertex is simple if for all , , for all , , and if and if , either and or and
Let us motivate this definition. In a random walk on a weighted graph, in order to take a step from a vertex to a neighbour, the random walker chooses an edge to traverse, with probability . This is precisely the distribution obtained by measuring . The states correspond to quantum walk states – alternating a reflection around these with a reflection around the states implements a discrete-time quantum walk, as in [25, 17, 4].555In some previous works, it is assumed that the graph is bipartite, and then the walk is implemented by alternating reflections around the states of the two parts of the bipartition. We are actually doing the same thing here, we have just ensured the graph is bipartite by inserting a vertex in the middle of each edge.
Another important notion is that of canonical -boundary for which we require the boundary to consist only of two vertices and with additional requirements on their subspaces.
Definition 8 (Canonical -boundary).
We say a subspace graph has canonical -boundary if , where:
-
, and , where only overlaps .
-
, and , where only overlaps .
-
.
Definition 9 (Switching Network).
A switching network is a subspace graph with canonical -boundary in which all edges are switches (Definition 6), and all vertices are simple (Definition 7).
Two more important definitions for the composition results are those of composable bases and -composable subspace graph (Definition 10). The first one specifies conditions on working bases so that they can be smoothly composed with each other. We leave the rigorous definition to the full version of the paper since it is quite technical.
Definition 10.
We say a subspace graph is -composable if:
-
1.
has canonical -boundary (Definition 8);
-
2.
is equipped with composable working bases;
-
3.
for each , , where is the set of edges that are switches.
An -composable subspace graph is a generalization of a switching network to allow for more complicated structures, such as arbitrary quantum algorithms. The main technical contribution of this paper (the composition theorem in Section 2.3) is to generalize a natural way that switching networks compose, as graphs, to any -composable subspace graph.
2.2 Examples
We first give two examples of switching networks – one for computing the OR of bits (Section 2.2.1) and one for the AND of bits (Section 2.2.2) – which are also important building blocks for our later results. At a high level, these are quite simple to understand. The switching network for OR is just parallel edges from to (see Figure 1) – and are connected if at least one of the edges is present. The switching network for AND is just a path of length from to (see Figure 2) – and are connected if all of the edges are present. One can build up a graph that represents any formula by compositions where an edge is replaced by a graph whose terminals and are identified with the endpoints of the replaced edge (see also Figure 4). Our main composition theorem (see Section 2.3) generalizes this type of composition to apply to any -composable subspace graph.
2.2.1 Switching network for OR
A switching network that computes the OR of Boolean variables consists of two vertices connected by parallel switch edges. The idea is that there is no flow if all the edges are blocked, that is all the variables take value , an there is a flow otherwise. Therefore, a negative witness corresponds to a cut in the graph, and a positive witness corresponds to a flow.
Lemma 11.
For any , and positive weights , there is a switching network that computes with such that:
-
1.
has -composable working bases that can be generated in time, assuming the state proportional to can be generated in time ;
-
2.
if for some , has positive witness ; and
-
3.
if for all , has negative witness .
We remark that if for all , then Lemma 11 implies and , so by Theorem 5, there is a quantum algorithm for evaluating -bit OR with time complexity , which is optimal. This is a good sanity check, but we will mostly be interested in this construction as a building block, rather than in its own right.
Let be defined, as shown in Figure 1 by:
where each has endpoints and , so and . Since is a switching network, it has boundary We will let the graph be weighted, with weights . The only reason to let these vary in is for later when we replace an edge with a gadget by composition, but for the sake of intuition, the reader may wish to imagine for all . Since is a switching network, every edge is a switch, which fixes the following spaces (we simplify notation by using to label the edge ):
Furthermore, as a switching network has canonical -boundary, the following spaces are fixed:
Finally, since all vertices are simple, the following spaces are fixed:
Then we have:
(1) |
We prove the second and the third items of Lemma 11 in the full version of the paper. It remains to find working bases that can be generated efficiently. We show in the full version that there is an -composable working basis for that can be generated in unit time and there is a -composable working basis for that can be generated in time.
2.2.2 Switching network for AND
In this section, we describe a switching network that computes the AND of Boolean variables. This switching network consists of two boundary vertices connected by a path of switch-edges of length . If at least one edge is blocked, that is at least one of the variables takes value , then there is no flow, and there is a flow otherwise.
Lemma 12.
For any , and positive weights , there is a switching network that computes with such that:
-
1.
has -composable working bases that can be generated in time, assuming the state proportional to can be generated in time ;
-
2.
if for all , has positive witness ; and
-
3.
if for some , has negative witness .
As with the OR switching network, a corollary of this lemma is that there is a quantum algorithm for evaluating AND in optimal time .
Let be the graph in Figure 2, defined by
so , , and for all , and . Since is a switching network, it has boundary . We will let the graph be weighted, with weights . Since is a switching network: every edge is a switch, which fixes , and for all ; has canonical -boundary, which fixes , , , , , and ; and every vertex is simple, which fixes the spaces for . In particular, letting , , , and label , we must have:
This fully defines
We prove the second and the third items of Lemma 12 in the full version of the paper. It remains to find working bases that can be generated efficiently. We show in the full version that there is an -composable working basis for that can be generated in unit time and there is a -composable working basis for that can be generated in time.
2.2.3 Any Quantum Algorithm
Ref. [13] deals with composing arbitrary quantum algorithms, implicitly using subspace graphs for the task. It is shown how to define certain subspaces from an arbitrary quantum algorithm, where the overlap between these various spaces gives rise to a graph as in Figure 3. In the full version of the paper, we show that these subspaces are precisely a subspace graph, so that the following follows from [13].
Lemma 13.
From any quantum algorithm computing some in time with qubits, we can derive an -composable subspace graph (Definition 10) that computes with , and ; with -composable working bases that can be generated in time .
2.3 Composition
Subspace graphs lend themselves well to very general kinds of recursion. We can compose subspace graphs by identifying some of the vertices on their boundaries. In full generality, this may result in a subspace graph that is difficult to analyze. For example, if we replace two parallel edges with subspace graphs derived from quantum algorithms, “flow” along these edges may have complex phases that interfere on the other side. Our nice classical intuition of flows breaks down in the fully general case, which is not surprising, since quantum algorithms are not classical. However, an important question is in which special cases, and to what extent, we can compose subspace graphs and keep enough classical intuition to analyze them.
One special case is implicit in [13], and here we present another special case, which we call switch composition. Switch composition generalizes a very simple kind of recursion that can be done in switching networks. Since an -path (or more generally, flow) is allowed to use an edge if and only if , we can replace it with a switching network for some function , which will have an -path from one endpoint to the other if and only if . We can view this as removing from the graph, and then adding its endpoints to the boundary, to then be identified with the boundary of . By applying this type of composition, the OR and AND switching networks in Section 2.2.1 and Section 2.2.2 can be combined to make switching networks for any Boolean formula [14].
Here we investigate how to compose subspace graphs with specific properties that generalize switching networks – -composable subspace graphs (Definition 10) – into the switches of a graph . Specifically, if is the set of edges of that are switches, we will replace with an -composable graph . We can assume without loss of generality that we replace every with some , since letting be the graph consisting of a single edge from to is just like not replacing .
Theorem 14.
Let be an -composable subspace graph with -composable working bases that can be generated in time . For each , the set of switches of , let be an -composable subspace graph with -composable working bases that can be generated in time at most . Then there exists an -composable subspace graph with such that:
-
has -composable working bases that can be generated in time .
-
If is a positive witness for (Definition 3), and for each such that , is a positive witness for , then
is a positive witness for .
-
If is a negative witness for (Definition 4), and for each such that , is a negative witness for , then
is a negative witness for .
Informally, we obtain from by, for each , removing the edge , and identifying its endpoints with the vertices and of the graph . This is illustrated in Figure 4. The subspaces associated with are mostly inherited from and , except for those on the glued boundaries. There, intuitively, we replace with the edges incident to in , and with the edges incident to in .
Note that the witnesses in the composed subspace graph have a very logical form. We obtain a positive witness by taking a positive witness for , and replacing the edge with a positive witness, and similarly for negative witnesses.
Next, we apply the composition construction of Theorem 14 to compose the switching networks for AND and OR in Section 2.2.2 and Section 2.2.1 with other -composable subspace graphs computing some functions to get a subspace graph computing the composed function when is a Boolean formula on . This is the function obtained by computing the value of each variable of the formula as of some input. Subspace graphs for can be obtained simply by composing the switching networks for OR and AND (see [14]). Our composition theorem, Theorem 14, generalizes this simple switching network composition.
A formula is a rooted tree, where each internal node represents an AND or an OR gate, and each leaf represents a literal. We let denote the set of internal nodes, and for each , is the number of children of .
A family of formulas is balanced if there is a constant such that for every internal node , if its subtree has leaves, then the sub-tree of each of its children has at most leaves.
Lemma 15.
Let be a balanced formula on . Let be Boolean functions, and for each , let be an -composable subspace graph (Definition 10) computing , with working bases that can be generated in time at most , and .
For each , let be a known upper bound on . Then there is an -composable subspace graph computing with and
as long as for each , a superposition proportional to can be generated in complexity, for certain values related to the bounds . Furthermore, the working bases of can be generated in time .
2.4 Quantum Divide & Conquer
In this section, we state our time-efficient quantum divide & conquer results. The following is a time-efficient version of Strategy 1 in [9], restricted to symmetric formulas.
Theorem 16.
Fix a function family . Fix unit-time-computable functions , and a formula on such that for some symmetric formula . Suppose is a family of quantum algorithms such that:
-
decides some with time and space complexities and ;
-
if , ;
-
if , where each for is such that for some unit-time-computable instance of , and .
Then there is a bounded-error quantum algorithm that decides with time complexity , and space complexity , where for all :
and for , .
To prove Theorem 16, we make a subspace graph that computes using Lemma 15, which allows us to combine subspace graphs for – built up inductively – and – built by turning the quantum algorithm into a subspace graph using Lemma 13. Note that Lemma 15 applies to any balanced formula , but in the special case we consider in Theorem 16, the values referred to in Lemma 15 are well behaved.
2.5 Application to DSTCON
In this section we consider the directed st-connectivity problem.
Problem 17 (dstcon).
Given access to a directed graph via the oracle , and two vertices , decide whether there is a directed path from to in .
There is a classical recursive algorithm for dstcon that operates in the low-space regime due to Savitch [22] that decides dstcon in time and space . The algorithm recursively calls a subroutine that decides a function , which is 1 if and only if there is a path of length at most from to in . We can express recursively, in terms of a symmetric formula in variables:
We show a quantum speedup for Savitch’s algorithm via application of Theorem 16, which gives us the recursion
from which we get:
which is the complexity of computing . This yields the following.
Theorem 18.
Let be a directed graph, . Then there exists a recursive quantum algorithm that decides dstcon on with bounded error in time and space .
References
- [1] Jonathan Allcock, Jinge Bao, Aleksandrs Belovs, Troy Lee, and Miklos Santha. On the quantum time complexity of divide and conquer. arXiv:2311.16401, 2023.
- [2] Andris Ambainis. Quantum search with variable times. Theory of Computing Systems, 47:786–807, 2010. arXiv:quant-ph/0609168 doi:10.1007/s00224-009-9219-1.
- [3] Simon Apers, Stacey Jeffery, Galina Pass, and Michael Walter. (No) Quantum Space-Time Tradeoff for USTCON. In 31st Annual European Symposium on Algorithms (ESA 2023), pages 10:1–10:17, 2023. doi:10.4230/LIPIcs.ESA.2023.10.
- [4] Aleksandrs Belovs. Quantum walks and electric networks. arXiv:1302.3143, 2013.
- [5] Aleksandrs Belovs, Andrew M. Childs, Stacey Jeffery, Robin Kothari, and Frédéric Magniez. Time-efficient quantum walks for 3-distinctness. In Proceedings of the 40th International Colloquium on Automata, Languages, and Programming (ICALP), pages 105–122, 2013. doi:10.1007/978-3-642-39206-1_10.
- [6] Aleksandrs Belovs, Stacey Jeffery, and Duyal Yolcu. Taming quantum time complexity. arXiv:2311.15873, 2023. doi:10.48550/arXiv.2311.15873.
- [7] Aleksandrs Blovs and Ben W. Reichardt. Span programs and quantum algorithms for st-connectivity and claw detection. In Proceedings of the 20th Annual European Symposium on Algorithms (ESA), pages 193–204, 2012. doi:10.1007/978-3-642-33090-2_18.
- [8] M. L. Bonet and S. R. Buss. Size-depth tradeoffs for boolean formulae. Information Processing Letters, 49:151–155, 1994. doi:10.1016/0020-0190(94)90093-0.
- [9] Andrew M. Childs, Robin Kothari, Matt Kovacs-Deak, Aarthi Sundaram, and Daochen Wang. Quantum divide and conquer. arXiv:2210.06419, 2022.
- [10] Christoph Dürr, Mark Heiligman, Peter Høyer, and Mehdi Mhalla. Quantum query complexity of some graph problems. SIAM Journal on Computing, 35(6):1310–1328, 2006. Earlier version in ICALP’04. arXiv:quant-ph/0401091 doi:10.1137/050644719.
- [11] Tsuyoshi Ito and Stacey Jeffery. Approximate span programs. Algorithmica, 79:2158–2195, 2019. doi:10.1007/S00453-018-0527-1.
- [12] Michael Jarret, Stacey Jeffery, Shelby Kimmel, and Alvaro Piedrafita. Quantum algorithms for connectivity and related problems. In Proceedings of the 26th Annual European Symposium on Algorithms (ESA), pages 49:1–49:13, 2018. doi:10.4230/LIPIcs.ESA.2018.49.
- [13] Stacey Jeffery. Quantum subroutine composition. arXiv:2209.14146, 2022.
- [14] Stacey Jeffery and Shelby Kimmel. Quantum algorithms for graph connectivity and formula evaluation. Quantum, 1(26), 2017.
- [15] Stacey Jeffery and Sebastian Zur. Multidimensional quantum walks and application to -distinctness. In Proceedings of the 55th ACM Symposium on the Theory of Computing (STOC), pages 1125–1130, 2023. arXiv:2208.13492
- [16] C. Y. Lee. Representation of switching functions by binary decision programs. Bell Systems Technical Journal, 38(4):985–999, 1959. doi:10.1002/j.1538-7305.1959.tb01585.x.
- [17] Frédéric Magniez, Ashwin Nayak, Jérémie Roland, and Miklos Santha. Search via quantum walk. SIAM Journal on Computing, 40(1):142–164, 2011. Earlier version in STOC’07. arXiv:quant-ph/0608026 doi:10.1137/090745854.
- [18] Aaron H. Potechin. Analyzing monotone space complexity via the switching network model. PhD thesis, Massachusetts Institute of Technology, 2015.
- [19] Ben W. Reichardt. Span programs and quantum query complexity: The general adversary bound is nearly tight for every Boolean function. In Proceedings of the 50th IEEE Symposium on Foundations of Computer Science (FOCS), pages 544–551, 2009. arXiv:0904.2759 doi:10.1109/FOCS.2009.55.
- [20] Ben W. Reichardt. Faster quantum algorithm for evaluating game trees. In Proceedings of the 22nd ACM-SIAM Symposium on Discrete Algorithms (SODA), pages 546–559, 2011. doi:10.5555/2133036.2133079.
- [21] Ben W. Reichardt and Robert Špalek. Span-program-based quantum algorithm for evaluating formulas. Theory of Computing, 8(13):291–319, 2012. doi:10.4086/toc.2012.v008a013.
- [22] Walter J Savitch. Relationships between nondeterministic and deterministic tape complexities. Journal of computer and system sciences, 4(2):177–192, 1970. doi:10.1016/S0022-0000(70)80006-X.
- [23] Claude E. Shannon. A symbolic analysis of relay and switching networks. Transactions of the American Institute of Electrical Engineers, 57(12):713–723, 1938. doi:10.1109/T-AIEE.1938.5057767.
- [24] Claude E. Shannon. The synthesis of two-terminal switching circuits. Bell System Technical Journal, 28(1):59–98, 1949. doi:10.1002/j.1538-7305.1949.tb03624.x.
- [25] Mario Szegedy. Quantum speed-up of Markov chain based algorithms. In Proceedings of the 45th IEEE Symposium on Foundations of Computer Science (FOCS), pages 32–41, 2004. arXiv:quant-ph/0401053 doi:10.1109/FOCS.2004.53.