Quantum advantage with shallow circuits
Sergey Bravyi, David Gosset, Robert Koenig

TL;DR
This paper demonstrates that shallow quantum circuits can outperform classical circuits in solving specific problems, establishing a quantum advantage with constant-depth quantum circuits for a new problem called the 2D Hidden Linear Function problem.
Contribution
The paper introduces the 2D Hidden Linear Function problem and proves that it can be efficiently solved by constant-depth quantum circuits but requires logarithmic depth classical circuits.
Findings
Quantum circuits solve the 2D Hidden Linear Function problem with certainty.
Classical probabilistic circuits need logarithmic depth to solve the problem.
Quantum advantage is established with shallow circuits for a specific computational task.
Abstract
We prove that constant-depth quantum circuits are more powerful than their classical counterparts. To this end we introduce a non-oracular version of the Bernstein-Vazirani problem which we call the 2D Hidden Linear Function problem. An instance of the problem is specified by a quadratic form q that maps n-bit strings to integers modulo four. The goal is to identify a linear boolean function which describes the action of q on a certain subset of n-bit strings. We prove that any classical probabilistic circuit composed of bounded fan-in gates that solves the 2D Hidden Linear Function problem with high probability must have depth logarithmic in n. In contrast, we show that this problem can be solved with certainty by a constant-depth quantum circuit composed of one- and two-qubit gates acting locally on a two-dimensional grid.
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Quantum advantage with shallow circuits
Sergey Bravyi1, David Gosset1, Robert König2
*1**IBM T.J. Watson Research Center
2 Institute for Advanced Study & Zentrum Mathematik,
Technische Universität München* [email protected], [email protected], [email protected]
Abstract
We prove that constant-depth quantum circuits are more powerful than their classical counterparts. To this end we introduce a non-oracular version of the Bernstein-Vazirani problem which we call the 2D Hidden Linear Function problem. An instance of the problem is specified by a quadratic form that maps -bit strings to integers modulo four. The goal is to identify a linear boolean function which describes the action of on a certain subset of -bit strings. We prove that any classical probabilistic circuit composed of bounded fan-in gates that solves the 2D Hidden Linear Function problem with high probability must have depth logarithmic in . In contrast, we show that this problem can be solved with certainty by a constant-depth quantum circuit composed of one- and two-qubit gates acting locally on a two-dimensional grid.
1 Introduction
Parallel algorithms lay the foundation for modern high-performance computing. Many problems of practical importance such as Monte Carlo simulation, computing the rank, the determinant, and the inverse of a matrix lend themselves naturally to parallelization [1, 2]. Of particular interest to us are the problems that can be solved on a parallel machine in a constant time independent of the problem size using a polynomial number of processors. The class of such problems, known as , captures the computational power of constant-depth circuits with bounded fan-in gates [3].
The success of classical parallel algorithms motivates the study of their quantum counterparts. Quantum parallel algorithms running in a constant time take as input a classical bit string, apply a constant-depth quantum circuit composed of one- and two-qubit gates, and output a random bit string obtained by measuring each qubit in the -basis. For brevity, we shall refer to such computations as Shallow Quantum Circuits (SQC).
Although SQCs are a highly restricted form of quantum computation, there is hope that they may outperform classical computers in certain tasks. A pioneering work by Terhal and DiVincenzo [4] gave the first evidence in this direction by showing that SQCs may be hard to simulate classically. Quite recently, Bermejo-Vega et al. [5], building on earlier studies of so-called IQP circuits [6, 7, 8], gave further evidence that the output distribution of SQCs may be hard to sample classically even if a constant statistical error is allowed; see also Ref. [9]. A more powerful model of computation consisting of logarithmic-depth quantum circuits assisted by polynomial-time classical computation is known to be capable of solving hard problems such as factoring [10].
Parallelism and circuit depth are important considerations when designing quantum algorithms that can be executed in the near-future on small quantum computers that may lack error correction capabilities [11, 12, 13]. While the overhead for encoding and manipulating quantum data fault-tolerantly is asymptotically small [14, 15], it remains prohibitive for current technology. A quantum computation without error correction can only compute for a constant amount of time before the qubits decohere and the entropy builds up [16]. In this situation one may wish to parallelize the computation as much as possible to fit within the coherence time.
What can we hope to prove concerning the computational power of SQCs ? A rigorous proof that SQCs outperform polynomial-time classical algorithms for some computational task is arguably beyond our reach (as it would imply a separation between the complexity classes and ). In this paper we set a less ambitious goal and pose the following question:
Can constant-depth quantum circuits solve a computational problem that constant-depth classical circuits cannot?
Put differently, we ask whether constant-time parallel quantum algorithms are more powerful than their classical probabilistic counterparts. We show that the answer to the above question is YES, even if the quantum circuit is composed of nearest-neighbor gates acting on a 2D grid whereas the only restriction on the constant-depth classical (probabilistic) circuit is having a bounded fan-in. In particular, the gates in the classical circuit may be long-range (i.e., they need not be geometrically local in 2D or otherwise) and may have unbounded fan-out. We emphasize that our result constitutes a provable separation and does not rely on any conjectures or assumptions concerning complexity classes. Formally, our result implies that there is a search (relational) problem solved by SQCs but not by circuits, even if we allow the classical circuit access to random input bits drawn from an arbitrary distribution depending on the input size.
The computational problem that we use to establish the above separation is a simple linear algebra task concerning quadratic forms over the binary field, see Section 3 for formal definitions. We call it the 2D Hidden Linear Function problem. The input is a binary vector and a binary matrix . Here the rows and columns of are labeled by sites of a 2D grid with sites, and is sparse in the sense that unless the sites are nearest neighbors on the grid. The pair defines a quadratic form such that
[TABLE]
where are binary variables. Define the set
[TABLE]
Here denotes addition of binary vectors modulo two, while in Eq. (1) is evaluated modulo four. We show that the restriction of onto is always a linear form, that is, there exists a vector such that for all . The problem is to find such a vector (which may be non-unique). This problem can be viewed as an non-oracular version of the well-known Bernstein-Vazirani problem [17], where the goal is to learn a hidden linear function specified by an oracle. In our case there is no oracle and the linear function is hidden inside the quadratic form which is explicitly specified by its coefficients .
Our results can be summarized as follows.
Theorem**.**
Any classical probabilistic circuit with bounded fan-in gates that solves the 2D Hidden Linear Function problem with success probability greater than must have depth . In contrast the problem can be solved with certainty by a constant-depth quantum circuit composed of one- and two-qubit gates acting locally on a 2D grid.
Our main technical contribution is the depth lower bound for classical circuits which solve the 2D Hidden Linear Function problem, see Section 4. The proof exploits quantum nonlocality – a form of correlation present in the measurement statistics of entangled quantum states that cannot be reproduced by local hidden variable models [18, 19] even if a limited amount of communication is allowed [20]. By leveraging the result of Ref. [20] we prove that a class of entangled quantum states known as cluster states (or 2D graph states) [21, 22] exhibits a particularly strong form of nonlocality that cannot be reproduced by constant-depth classical circuits. At the same time, we show that such nonlocality is present in the input-output correlations of the 2D Hidden Linear Function problem. We also prove that this problem can be solved by a simple SQC that consists of two layers of single-qubit gates, and a unitary operator such that . The latter can be easily implemented by a constant-depth circuit which takes as input the coefficients which specify , see Section 3 for details.
Quantum algorithms for learning and testing properties of Boolean functions have a long history [17, 23, 24, 25, 26, 27]. Most of these algorithms (including ours) work by sampling a probability distribution related to the Fourier transform of the function of interest. For example, an analogue of the Bernstein-Vazirani problem for quadratic forms over the binary field has been previously considered by Rötteler [28]. That work describes a quantum algorithm that learns a quadratic form with binary variables specified by an oracle using only queries to the oracle. We note however that the problem considered in Ref. [28] is not directly related to the one studied in the present paper. Our problem is more closely related to the Bernstein Vazirani problem [17] or, more generally, the Fourier Fishing problem introduced by Aaronson [25, 29]. Fourier Fishing is a search problem where the goal is to identify a bit sting such that the Fourier transform of a given Boolean function has non-negligible weight on . We shall see that a string is a solution of the 2D Hidden Linear Function problem for a quadratic form iff the Fourier transform of has a non-zero weight on , see Lemma 2 in Section 3.
To the best of our knowledge, quantum analogues of low-depth circuit classes and were first introduced by Moore and Nilsson [30]. This work also provided techniques for parallelizing quantum circuits. Hoyer and Spalek [31] showed that combining SQCs with the so-called quantum fan-out gates (CNOTs with a single control and multiple target qubits) gives a class of quantum circuits that is powerful enough to solve the factoring problem, if assisted by polynomial-time classical computation. An alternative characterization of this class of circuits in terms of measurement-based computations was later given by Browne et al. [32]. Finally, Terhal and DiVincenzo [4] showed that any quantum circuit composed of one- and two-qubit gates can be compressed to a constant-depth if the ability to post-select measurement outcomes is given. This implies that post-selective SQCs can solve any problem in the complexity class , see Ref. [33]. On the negative side, Eldar and Harrow have recently shown [34] that SQCs are not capable of preparing certain entangled states associated with good quantum codes that can be prepared by polynomial-size quantum circuits. Furthermore, it is known that depth- SQCs can be efficiently simulated classically in polynomial time [4]. Superpolynomial-time classical algorithms for simulating more general SQCs are discussed in Ref. [29].
The remainder of the paper is organized as follows. We begin in Section 2 by establishing some definitions and notation. In Section 3 we discuss computational problems where the goal is to find a hidden linear boolean function. In particular, we describe the 2D Hidden Linear Function problem and show that it is solved deterministically by SQCs. In Section 4 we prove that the 2D Hidden Linear Function problem cannot be solved by classical circuits of low depth. We conclude in Section 5 with some open questions.
2 Preliminaries
Here we describe the classes of circuits considered in this paper and review the definition of quantum graph states.
Quantum circuits
A quantum circuit of depth consists of a sequence of layers of one- and two-qubit gates, such that gates within a given layer act on disjoint sets of qubits. In other words, the unitary implemented by the circuit is a product where each is a tensor product of one- and two-qubit gates which act nontrivially on disjoint sets of qubits. We shall use the Clifford+T gate set, that is, we assume that all single-qubit gates are either111Our definition of the -gate differs from the standard one (which has instead of ).
[TABLE]
and all two-qubit gates are controlled- gates . Here and below denote the single-qubit Pauli matrices,
[TABLE]
Classical circuits
A classical circuit is specified by a directed acyclic graph in which each vertex is either an input (if it has in-degree [math]), an output (if it has out-degree [math]), or a gate. For each gate we must also specify a boolean function which is computed by the gate, where is the in-degree or “fan-in” of the gate. The output bit computed by a gate is copied to all outgoing edges of this gate. The out-degree or “fan-out” of a gate is the number of times the output of the gate is used in the remainder of the circuit. The depth of a classical circuit is the maximum number of gates along a path from an input to an output.
Let be a classical circuit with input and output . We will consider probabilistic circuits in which a subset of input bits may be chosen at random, that is where is a random string drawn from some (arbitrary) distribution and . We shall often identify a variable or with its index or respectively.
Definition 1**.**
A pair of variables is said to be correlated iff there exists such that flipping the th bit of flips the th bit of .
Note that can be correlated only if the graph describing the circuit contains a path from to .
Definition 2** (Lightcone).**
Let be a classical circuit. For each input bit define its light cone to be the set of output variables correlated with . Likewise, for each output bit define its light cone to be the set of input variables correlated with .
In this paper we are interested in circuits with constant depth such that all gates have fan-in at most . This class of circuits is known as . Any such circuit computes a local function in the sense that each output bit can only be correlated with a constant number of input bits. Indeed, if has depth then for all we have
[TABLE]
Graph states
Let be a finite simple graph. Define an associated -qubit graph state by
[TABLE]
Here and below the subscript of a gate indicates the qubit(s) acted upon by this gate, and we use a shorthand notation . The graph state is a stabilizer state with stabilizer group generated by
[TABLE]
In other words is the unique state satisfying for all .
3 Hidden linear function problems
In this section we consider computational problems where the goal is to find a hidden linear function.
Our starting point is the well-known Bernstein-Vazirani problem [17]. Here one is given oracle access to a linear boolean function parameterized by a “secret” bit string
[TABLE]
Here and below denotes the inner product of vectors. Bernstein and Vazirani showed that one can identify the linear function (i.e., find the secret bit string ) using just one quantum query to an oracle which performs the unitary
[TABLE]
Indeed, we have
[TABLE]
On the other hand a classical algorithm with access to a classical oracle computing requires queries to obtain .
In the Bernstein-Vazirani problem the oracle hides the linear function. The quantum speedup obtained is relative to the oracle and is not guaranteed to translate into a real-world quantum advantage. Where else (other than inside an oracle) can we hide a linear function?
We will now see how to hide a linear boolean function inside a -valued quadratic form. In particular, we consider quadratic forms such that
[TABLE]
where are binary variables222Here for simplicity we only consider . Our results could alternatively be proved using a more general definition of quadratic forms where we allow . ,
[TABLE]
In the remainder of this Section all arithmetic is performed in the ring (unless stated otherwise). We shall label elements of by . Entrywise addition of vectors modulo will be denoted . Define the set
[TABLE]
Now let us see how hides a linear boolean function.
Lemma 1**.**
The set is a linear subspace of and for all . The restriction of to is a linear function, that is, there exists a vector such that for all .
Proof.
Suppose . Choose any . Then
[TABLE]
This proves , that is, is a linear subspace. Note that for any , that is, . Define a function by
[TABLE]
From Eq. (7) one infers that is linear modulo two,
[TABLE]
It follows that for some vector . Thus for all . ∎
The linear action of on the subspace can be parameterized by a secret bit string . In contrast with the Bernstein-Vazirani problem, here is not unique because the hidden linear function is only defined on a subspace of . To see this, let be the orthogonal complement of . Then for any valid secret string , and any , is also a valid secret string (since for ). We define a search problem where the goal is to find a valid secret string.
Hidden Linear Function Problem**.**
The input is a quadratic form specified by a matrix and a vector as in Eqs. (5,6). A solution is a binary vector such that for all .
A quantum circuit which solves the Hidden Linear Function problem is shown in Fig. 1. Here there are two input registers holding and as well as an -qubit data register. The circuit involves controlled gates which implement
[TABLE]
on the data register conditioned on the first two registers holding bit strings respectively. The -qubit unitary satisfies
[TABLE]
The output of the circuit is therefore drawn from the distribution
[TABLE]
The following Lemma asserts that the circuit from Fig. 1 solves the Hidden Linear Function problem deterministically (i.e., its output is a solution with probability ).
Lemma 2**.**
* iff is a solution of the Hidden Linear Function problem, that is, for all . Furthermore, is the uniform distribution on the set of all solutions .*
Proof.
For any linear subspace and a vector define a partial Fourier transform
[TABLE]
Then
[TABLE]
Choose any linear subspace such that
[TABLE]
From Eq. (7) one infers that
[TABLE]
Claim 1**.**
* if is a solution of the Hidden Linear Function Problem and otherwise. The number of solutions to the Hidden Linear Function Problem is .*
Proof.
By Lemma 1 there exists a vector such that for all . Then and thus
[TABLE]
Note that the first case, , occurs iff is a solution of the Hidden Linear Function Problem, since and have the same binary inner product with any vector from iff . Therefore the number of solutions is . ∎
Claim 2**.**
* for all .*
We provide a proof of Claim 2 in Appendix A. The statement of the lemma follows directly from Eqs. (11,13) and Claims 1,2. ∎
A simple corollary of Lemma 2 is that the Hidden Linear Function problem can be solved in polynomial-time using a classical computer. Indeed, for a given input the circuit from Fig. 1 applies a sequence of Clifford gates to the data register followed by measurement in the computational basis. A solution can be efficiently computed classically by simulating this circuit using the Gottesman-Knill Theorem (see for example Ref. [35]).
Since is proportional to the absolute value squared of the Fourier transform of , see Eq. (10), we see that the Hidden Linear Function problem is a variant of the Fourier Fishing problem defined in Section 6.2 of Ref. [29]. One difference is that instead of Boolean functions we consider -valued functions. A second important difference is that we consider an explicit computational problem (as opposed to an oracular one).
In general the circuit from Fig. 1 may not be expressible as a constant-depth quantum circuit. We now restrict our attention to a subset of instances where has a certain 2D structure. We will see that for such instances the circuit from Fig. 1 can be decomposed as a constant-depth quantum circuit over the Clifford+T gate set.
In particular, let be the grid graph. If we label vertices of by horizontal and vertical coordinates
[TABLE]
then it has vertical edges between all pairs and horizontal edges between all pairs . Then and . Let us consider quadratic forms Eq. (5) where the matrix specifies a subgraph of . More precisely, we assume that is an matrix whose rows and columns are labeled by vertices of . We require that unless the pair is an edge of . We shall parameterize such a matrix by binary variables such that iff . Now we can rewrite Eq. (5) as
[TABLE]
2D Hidden Linear Function Problem**.**
Let be the grid. The input is a -valued quadratic form specified by vectors and as in Eq. (14). A solution is a binary vector such that for all .
We shall say that the above describes an instance of size . The number of input bits in an instance of size is then . The number of output bits is .
The quantum algorithm from Fig. 1 solves the 2D Hidden Linear Function problem and can be implemented in constant depth:
Theorem 1**.**
For each there exists a quantum circuit of depth which deterministically solves size- instances of the 2D Hidden Linear Function problem.
Proof.
It suffices to show that the controlled- and controlled- gates in Fig. 1 can be expressed as constant-depth quantum circuits composed of one- and two-qubit gates over the Clifford+T gate set.
The controlled- gate can be implemented by applying a layer of two-qubit controlled- gates acting on disjoint pairs of qubits. The gate can be expressed exactly (with constant depth, of course) over the Clifford+T gate set (see for example Ref. [36]), which shows that the controlled- gate from Fig. 1 can be implemented in constant depth.
The controlled- gate can be written as a product of three-qubit controlled-controlled-Z (CCZ) gates:
[TABLE]
(here the three registers are as in Fig.1–the first one holds , the second one holds and the third one is the data register). We can partition the edges of the 2D grid into four disjoint layers such that no edges within a given layer share a vertex. Thus Eq. (15) can be written as a depth- circuit composed of gates. Each gate can then be decomposed exactly as a product of (a constant number of) one- and two-qubit gates from the Clifford+T gate set [36]. ∎
The circuit of Fig. 1 can be embedded into a two-dimensional grid of size such that each vertex of the grid contains qubits and all two-qubit gates are geometrically local. Indeed, the circuit contains target qubits (the bottom register initialized in the state) and control qubits (the top and the center registers initialized in the and states). We shall place the target qubit labeled by a vertex and the control qubit that holds at the vertex of the grid. Place the control qubit that holds with a horizontal (resp. vertical) edge at the left (resp. bottom) endpoint of the edge . Now each vertex contains at most four qubits and each two-qubit gate couples qubits located at the same vertex or a pair of nearest-neighbor vertices. Thus the 2D Hidden Linear Function problem can be solved by a constant-depth quantum circuit with geometrically local gates333We note that a physical implementation of the circuit from Fig. 1 would require only qubits and use only (classically controlled) Clifford gates with nearest-neighbor gates.. We now show that even this highly restricted class of SQCs is more powerful than classical constant-depth circuits.
Theorem 2**.**
The following holds for all sufficiently large . Let be a classical probabilistic circuit with fan-in at most which solves all size- instances of the 2D Hidden Linear Function problem with probability greater than . Then the depth of is at least
[TABLE]
Here the classical circuit takes input along with a random string drawn from some (arbitrary) probability distribution and its output must be a solution to the given instance with probability greater than . We prove the Theorem in the next Section.
4 Nonlocality thwarts shallow classical circuits
Constant-depth classical circuits with gates of bounded fan-in exhibit a kind of locality expressed by Eq. (2). On the other hand it is well known that the correlations present in the measurement statistics of entangled quantum states exhibit quantum nonlocality–that is, they cannot be reproduced by completely local functions in which every output bit depends only on a single associated input bit as well as a shared random string. In this Section we provide a proof of Theorem 2 which exploits this tension. We will see how quantum nonlocality–even in states generated by constant-depth quantum circuits– thwarts simulation by classical circuits which are (a) completely local, (b) geometrically local in one dimension, and finally (c) “constant-depth local” in the sense of Eq. (2).
Let us begin with a famous illustration [19, 18] of quantum nonlocality. Define the -qubit GHZ state
[TABLE]
which satisfies
[TABLE]
Let and consider the measurement outcomes obtained by measuring each qubit of in either the basis (if ) or the basis (if ). Eq. (16) implies that the quantum measurement statistics satisfy
[TABLE]
In contrast it is not hard to show that Eq. (17) cannot be satisfied by a local hidden-variable model in which the measurement outcomes are completely local functions of the measurement settings and also may depend on a shared random string , that is, for .
Barrett et al. [20] described an extension of the GHZ example which we review (with some small modifications) in Section 4.1. It shows that the statistics of single-qubit measurements on the graph state corresponding to an even length cycle posess geometrically nonlocal correlations. In other words, certain measurement outcomes are correlated with measurement settings (i.e., choice of single-qubit measurement bases) that are far away with respect to the shortest path on the cycle. These measurement statistics cannot be simulated by low-depth classical circuits which are geometrically local in one dimension.
Finally, in Section 4.2 we turn our attention to the 2D Hidden Linear Function problem. Let us now argue that the setting is not so different from the above two examples. Recall that the circuit from Fig. 1 produces a uniformly random solution to a given instance . Just like in the GHZ example, here the output is obtained by measuring each qubit of an entangled quantum state in one of two possible bases. Indeed, observe that the first two gates in the circuit prepare the graph state for the graph with adjacency matrix , and the rest of the circuit measures each qubit in either the basis (if ) or the basis (if )444To see this note that and ..
To prove Theorem 2 we establish that the correlations between the input and the output in the 2D Hidden Linear Function problem have a strong form of nonlocality that cannot be reproduced by constant-depth probabilistic classical circuits of bounded fan-in. We first suppose is a classical circuit which solves size- instances of the 2D Hidden Linear Function problem with high probability. We restrict our attention to instances where specifies a subgraph of the grid which is an even length cycle. For each such instance we can infer (from the Barrett et al. example) a geometrically nonlocal feature of the correlations generated by . We use a probabilistic argument and Eq. (2) to show that at least one of these features is absent if has depth . Thus we obtain the desired lower bound on the depth of .
4.1 Geometric nonlocality in a 1D graph state
Here we present a variant of an example due to Barrett et al. [20]. Let be the -cycle graph with even. Suppose are vertices such that all pairwise distances between them are even. We shall say that a vertex is even (resp. odd) if it has even distance (resp. odd distance) from . It will be convenient to view as a triangle as shown in Fig. 2. We define sets of vertices for each of the three sides as shown. The vertices are not contained in any of these sets. Also define sets of odd and even vertices respectively on side of the triangle, and likewise .
Let be the -qubit graph state for as in Eq. (3). For define
[TABLE]
In other words describes the set of possible measurement outcomes if the qubits of in are measured in the basis and the qubits are measured in the or basis depending on (as before, [math] and bits of indicate measurements in the and basis respectively).
For any two vertices write for the number of edges in the shortest path between them in . Define
[TABLE]
Our aim in this Section is to show (following Barrett et al. [20]) that the relationship between input and output is geometrically nonlocal in the following sense.
Lemma 3**.**
Consider a classical circuit which takes as input a bit string and a random string (drawn from some distribution ) and outputs . Suppose
[TABLE]
Then the lightcone of one of the input bits contains an output bit such that .
The authors of Ref. [20] showed that the correlations resulting from measuring the graph state cannot be reproduced by a “communication-assisted local hidden variable model”. In Lemma 3 we have phrased the result in terms of circuits.
We shall prove the lemma momentarily. First we show that the set of possible measurement outcomes for the 1D graph state satisfies an identity similar to Eq. (17). It will be convenient to work with -valued variables defined by for . Define the following products:
[TABLE]
Claim 3**.**
Let and suppose . Then . Moreover, if then
[TABLE]
Proof.
For any subset define operators
[TABLE]
Recall that are stabilizers of the graph state defined in Eq. (4) such that for all . First note that the operator is in the stabilizer group of . Indeed, we have
[TABLE]
Accordingly, is in the eigenspace of this operator. Therefore a measurement of each qubit in in the basis will result in outcomes , , satisfying as claimed. The four cases of Eq. (20) arise in the same way from the following elements of the stabilizer group of :
[TABLE]
∎
Proof of Lemma 3.
To reach a contradiction let us suppose that the hypotheses of the lemma are satisfied but the conclusion does not hold. That is, let be a classical circuit satisfying Eq. (18) and suppose that the lightcone only includes output bits where (and likewise for and ). Therefore each output bit only depends on the random string as well as the nearest input bit or (if is equidistant to two of them it depends on neither).
Write for the function which is computed by the circuit . Below we show that for each there exists a string such that . This implies that when is chosen at random from some distribution we have
[TABLE]
which shows that for some . Thus we arrive at a contradiction, which is sufficient to prove the Lemma.
It remains to show that for each there exists a such that . So let be fixed and consider as a function of . Let and consider the products defined in Eq. (19) (as a function of ). Suppose first that for some . Then by Claim 20, and we are done. Next suppose that for all . Since each output bit is a function only of the nearest input bit and we are considering products of values , there exist affine boolean functions such that
[TABLE]
and such that does not depend on , does not depend on , does not depend on , and . Note that
[TABLE]
The following Claim implies that Eq. (21) is not equal to for all bit strings with even hamming weight. Applying Claim 20 we see that this implies that for some (even hamming weight) string , completing the proof.
Claim 4**.**
Suppose are affine boolean functions. Write . Suppose does not depend on , does not depend on , does not depend on , and that is independent of . Then
[TABLE]
A proof of Claim 4 is provided in Appendix B. ∎
4.2 Proof of Theorem 2
Proof.
Let be a classical probabilistic circuit of fan-in which solves the 2D Hidden Linear Function problem with probability on all instances of size . That is, takes as input vectors as in Eq. (14) as well as a random bit string drawn from some (arbitrary) distribution. The output of is a bit string which is a solution to the given instance with probability .
We suppose that the depth of satisfies
[TABLE]
Below we prove that for all sufficiently large (i.e., larger than some universal constant) this leads to a contradiction.
Suppose is a vertex of the grid . Let be a square box of size centered at vertex . Each box defines a subset of output variables contained in this box. Choose square-shaped regions as shown in Figure 3. Let denote the set of vertices on the even sublattice of the grid. In other words contains all vertices with even horizontal and vertical coordinates.
[TABLE]
This shows that all output bits have “small” lightcones. Next we shall identify large sets of input bits which also have small lightcones.
For each region define sets of good and bad vertices
[TABLE]
Claim 5**.**
For we have
[TABLE]
Proof.
Define a bipartite graph with one side of the partition labeled by input bits with and the other side labeled by outputs with . An edge between and is present iff . The total number of edges in this graph satisfies
[TABLE]
where we used and Eq. (23). Rearranging gives . Since we get
[TABLE]
∎
Claim 6**.**
For all large enough one can choose a triple of vertices such that , , and
[TABLE]
[TABLE]
[TABLE]
[TABLE]
Proof.
Since each vertex in the grid belongs to at most boxes, we infer that a given lightcone with can intersect with at most boxes. Here we used the fact that for all by definition. The total number of vertices such that is , which follows from Eq. (26) (and since the number of vertices with is as any such vertex must lie near the boundary of region ). Thus if are picked uniformly at random from the sets , and respectively subject to Eq. (27) then
[TABLE]
for large enough . A similar bound applies to the five other combinations of vertices that appear in Eqs. (28,29,30). By the union bound, there exists at least one choice of that satisfies all conditions Eqs. (27,28,29,30). ∎
Below we consider cycles that are subgraphs of the grid .
Claim 7**.**
The following holds for all sufficiently large . Fix some triple of vertices , , satisfying Eqs. (27,28,29,30). Then there exists a cycle containing such that the lightcones , , contain no vertices of lying outside of .
Proof.
Indeed, since each box has size , one can choose pairwise disjoint paths that connect any pair of boxes , , , see Figure 4. Let be a path connecting and , where . Any triple of paths , , can be completed to a cycle that contains by adding the missing segments of the cycle inside the boxes , , . Since has size at most (recall that is a good vertex) and each vertex belongs to at most one path , we infer that intersects with at most paths . Thus if we pick the path uniformly at random among all possible choices then
[TABLE]
for large enough . The same bound applies to eight remaining combinations of a lightcone , , and a path . By the union bound, there exists at least one triple of paths , , that do not intersect with , , . This gives the desired cycle . ∎
Let and be chosen as described in Claim 7. Let be the number of vertices in . Recall that and therefore all pairwise distances between them along are even. Consider the subset of instances of the 2D Hidden Linear Function problem where
[TABLE]
There are such instances corresponding to choices of input bits . By fixing inputs to the circuit in this way and looking only at output bits with we obtain a classical circuit which takes a three-bit string and a random string as input and outputs . For any input bit we have
[TABLE]
since any pair of input/output variables which are correlated in are by definition also correlated in . Our assumption that solves the 2D Hidden Linear Function problem with probability greater than implies
[TABLE]
To see this, recall from Lemma 2 that the circuit from Fig. 1 produces a uniformly random solution to the 2D Hidden Linear Function problem, and that the state of output qubits in after applying the circuit to inputs as in Eq. (31) is
[TABLE]
Using Eq. (33) and applying Lemma 3 with the cycle constructed above we infer that the lightcone of one of the input bits contains at least one output bit such that and the distance between and along the cycle is . By Eq. (32) the same is true for the lightcone . For all sufficiently large this contradicts Claims 30,7. Indeed, by Claim 7, the vertex must lie in one of or , and since has no intersection with () by Claim 30, this implies that . But the distance from to any vertex inside is . We conclude that Eq. (22) is false for all sufficiently large . ∎
5 Conclusions and open problems
We have shown that shallow quantum circuits are more powerful than their classical counterparts. Our work raises several questions:
Does the 2D Hidden Linear Function problem resist simulation by more powerful classical circuit families such as (constant-depth circuits with unbounded fan-in)? The constant appearing in Theorem 2 is unlikely to be optimal–can it be replaced by a vanishing function of ? A recursive variant of the Bernstein-Vazirani problem is known to provide a superpolynomial speedup in query complexity [17]. Is there any use in defining a recursive variant of the Hidden Linear Function problem?
A challenging open question is to establish a separation between the power of quantum and classical circuits for sampling problems. Let be a (unitary implemented by a) -qubit quantum circuit and consider the output probability distribution
[TABLE]
Does there exist a constant-depth family of quantum circuits which sample distributions that cannot be sampled by constant-depth classical circuits? A powerful tool that might be used to address this question is given in Ref. [37]. In particular, the author shows that any distribution over -bit strings with linear min-entropy (i.e., ) which is generated by applying a constant-depth classical circuit to a uniformly random input string can be expressed as a convex combination of simple distributions (“bit-block sources”) with linear min-entropy. We do not know if the distributions sampled by constant-depth quantum circuits have this property.
Acknowledgments
SB and DG acknowledge support from the IBM Research Frontiers Institute. RK is supported by the Technische Universität München – Institute for Advanced Study, funded by the German Excellence Initiative and the European Union Seventh Framework Programme under grant agreement no. 291763.
Appendix A Proof of Claim 2
Proof.
Define a function
[TABLE]
Let us show that is a bilinear form, that is, there exists a symmetric binary matrix such that
[TABLE]
for all . Indeed, a direct inspection of Eq. (5) shows that obeys the following identity555By linearity, it suffices to check this identity for the special cases and .:
[TABLE]
for all . The above expression can be viewed as as a discrete version of the third derivative of which vanishes because is a quadratic form. Combining Eqs. (34,36) one gets
[TABLE]
for all . Choosing gives , that is, the function takes values and we can write , where takes values in . By definition, and for all . This is possible only if is a symmetric bilinear form over the binary field, that is, for some symmetric binary matrix . This proves Eq. (35).
The definition of and Eqs. (34,35) imply that
[TABLE]
which gives
[TABLE]
see Eq. (12). We claim that for any there exists a vector such that
[TABLE]
Indeed, note that for any linear subspaces . Let . Using the identity
[TABLE]
and taking the dual of Eq. (39) gives
[TABLE]
Choose any vector and write it as
[TABLE]
This is always possible due to Eq. (41). Let for some . From Eq. (12) we infer that for some and . Putting together the above facts we see that any vector can be written as
[TABLE]
Note that due to Eq. (38). Thus for all , as claimed in Eq. (40). From Eq. (40) one gets
[TABLE]
Therefore
[TABLE]
This shows that the absolute value of does not depend on . Let . Combining Eqs. (11,13) and Claim 1 one gets
[TABLE]
which proves the claim. ∎
Appendix B Proof of Claim 4
Proof.
Write
[TABLE]
The fact that is a constant function implies
[TABLE]
We have
[TABLE]
For all satisfying we have and . Using this fact and Eqs.(47), (46) we get
[TABLE]
whenever . Noting that the exponent on the right hand side is an affine boolean function, and that is also an affine boolean function we get
[TABLE]
Since each summand in Eq. (48) is , the last line is equivalent to the statement that the sum is strictly less than , which follows from the fact that the following system of equations over has no solution:
[TABLE]
(Note that Eq. (49) would be necessary for Eq. (48) to be equal to , as can be seen by considering .) ∎
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[1] Laszlo Csanky. Fast parallel matrix inversion algorithms. SIAM Journal on Computing , 5(4):618–623, 1976.
- 2[2] Allan Borodin, Joachim Von Zur Gathen, and John Hopcroft. Fast parallel matrix and gcd computations. Information and Control , 52(3):241–256, 1982.
- 3[3] Sanjeev Arora and Boaz Barak. Computational complexity: a modern approach . Cambridge University Press, 2009.
- 4[4] Barbara M Terhal and David P Di Vincenzo. Adaptive quantum computation, constant depth quantum circuits and Arthur-Merlin games. Quant. Inf. Comp. , 4(2):134–145, 2004.
- 5[5] Juan Bermejo-Vega, Dominik Hangleiter, Martin Schwarz, Robert Raussendorf, and Jens Eisert. Architectures for quantum simulation showing quantum supremacy. ar Xiv preprint ar Xiv:1703.00466 , 2017.
- 6[6] Michael J Bremner, Ashley Montanaro, and Dan J Shepherd. Average-case complexity versus approximate simulation of commuting quantum computations. Physical Review Letters , 117(8):080501, 2016.
- 7[7] Michael J Bremner, Ashley Montanaro, and Dan J Shepherd. Achieving quantum supremacy with sparse and noisy commuting quantum computations. ar Xiv preprint ar Xiv:1610.01808 , 2016.
- 8[8] Edward Farhi and Aram W Harrow. Quantum supremacy through the quantum approximate optimization algorithm. ar Xiv preprint ar Xiv:1602.07674 , 2016.
