Limitations on the simulation of non-sparse Hamiltonians
Andrew M. Childs, Robin Kothari
Introduction
One of the primary applications of quantum computers is the simulation of quantum systems. Indeed, it was the apparent exponential time complexity of simulating quantum systems on a classical computer that led Feynman to propose the idea of quantum computation [Fey82].
In addition to predicting the behavior of physical systems, Hamiltonian simulation has algorithmic applications. For example, the implementation of a continuous-time quantum walk algorithm is a Hamiltonian simulation problem. Examples of algorithms that can be implemented using Hamiltonian simulation methods include unstructured search [FG96], adiabatic optimization [FGGS00], a quantum walk with exponential speedup over classical computation [CCDFGS03], and the recent NAND tree evaluation algorithm [FGG07].
where is the maximum number of nonzero entries in any row and is the maximum error permitted in the final state (quantified in terms of trace distance).
The dependence of (1) on the simulation time is nearly optimal, since it is not possible to simulate a general sparse Hamiltonian for time using queries. Intuitively, there is no generic way to fast-forward through the time evolution of quantum systems. More formally,
For any positive integer there exists a row-computable sparse Hamiltonian with such that simulating the evolution of for time within precision requires at least queries to .
More recently, methods have been presented for simulating a Hamiltonian that is not necessarily sparse. Of course, we do not expect to efficiently simulate a general Hamiltonian, simply because there are too many Hamiltonians to consider (just as we cannot hope to efficiently implement a general unitary operation [Kni95]). However, we can conceivably efficiently simulate non-sparse Hamiltonians with a suitable concise description. In particular, by applying phase estimation to a discrete-time quantum walk derived from , one can simulate for time in a number of walk steps that grows only linearly with [Chi08]. More precisely, we have
Measures of simulation complexity
These properties are reminiscent of the axioms for matrix norms, suggesting that it may be reasonable to quantify the complexity of simulating in terms of some matrix norm . Indeed, results on the simulation of sparse Hamiltonians are typically stated in terms of the spectral norm , and Theorem 2 also involves matrix norms. We now introduce various matrix norms relevant to Hamiltonian simulation.
The spectral norm of a matrix is defined as
where is the standard Euclidean vector norm defined as \|{v}\|\mathrel{\mathchoice{\vbox{\hbox{\displaystyle:}}}{\vbox{\hbox{\textstyle:}}}{\vbox{\hbox{\scriptstyle:}}}{\vbox{\hbox{\scriptscriptstyle:}}}{=}}\sqrt{\sum_{i}|v_{i}|^{2}}.
The induced 1-norm of a matrix is defined as
where is the vector 1-norm defined as \|{v}\|_{1}\mathrel{\mathchoice{\vbox{\hbox{\displaystyle:}}}{\vbox{\hbox{\textstyle:}}}{\vbox{\hbox{\scriptstyle:}}}{\vbox{\hbox{\scriptscriptstyle:}}}{=}}{\sum_{i}|v_{i}|}.
The maximum column norm of a matrix is defined as
The maximum column norm is the maximum Euclidean norm of the columns of . This norm appears in the complexity of an algorithm for simulating Hamiltonians whose graphs are trees [Chi08, Theorem 4] and in the related Proposition 2 in Section 5.
The max norm of a matrix is defined as
The max norm is just the largest entry of in absolute value. It is a matrix norm, and is typically much smaller than the other norms mentioned.
The following lemma relates the various norms introduced above.
Furthermore, each of these inequalities is the best possible.
The first inequality follows from the fact that the maximum element in any column cannot be greater than the Euclidean norm of that column. We have
Using the triangle inequality with , we get
Now by maximizing over all with instead of only those with , we get
The last inequality is actually an equality due to the Perron–Frobenius theorem.
For the next inequality, we use the fact that for all vectors . This can be proved using the Cauchy–Schwarz inequality, , by taking . Let be the index that maximizes . Thus . Using these two inequalities, it follows that
The last inequality is proved using the fact that for any , ; thus
In Section 5, we discuss some more examples in which Lemma 1 can be strengthened, with emphasis on the implications for simulations.
A no–fast-forwarding theorem for dense Hamiltonians
The no–fast-forwarding theorem (Theorem 1 above) establishes a lower bound for the simulation of sparse Hamiltonians. Although we stated the theorem with , any of the norms in Lemma 1 could have been used, since the Hamiltonian used in the proof of the no–fast-forwarding theorem is -sparse, and by (15) the norms differ at most by a factor of . In particular, the theorem could be restated with or .
In terms of this black-box model, we have the following:
The main idea, as in the proof of Theorem 1 [BACS05], is to construct a Hamiltonian whose simulation for time determines the parity of bits. Since we know that computing the parity of bits requires at least queries [BBCMW01, FGGS98], this Hamiltonian cannot be simulated with queries. Moreover, we want this Hamiltonian to be non-sparse.
We start with a simple Hamiltonian whose graph is just a line with vertices. Consider the Hamiltonian acting on vectors with . The nonzero matrix entries of are for . This Hamiltonian has , and simulating for starting with the state gives the state (i.e., ).
Now, as in Ref. [BACS05], consider a Hamiltonian generated from an -bit string . acts on vertices , with and . The nonzero matrix entries of this Hamiltonian are
for all and . By construction, is connected to either or for any ; it is connected to if and only if . Thus is connected to either or , and determining which is the case determines the parity of . The graph of this Hamiltonian consists of two disjoint lines, one of which contains and either or depending on the parity of . Just as for , starting with the state and simulating for time will give either or , which determines the parity of . Note that since is a permutation of , .
Finally, we construct the dense Hamiltonian that has the properties stated in the theorem. As before, is generated from an -bit string . acts on vertices , with , , and . The nonzero entries of are given by
for all , , , and . The graph of is similar to that of , except that for each vertex in , there are now copies of it in . This Hamiltonian is dense because it has vertices and each vertex is connected to all copies of its neighboring vertices, which gives at least nonzero entries in each row.
Now, just as before, the parity of can be determined by simulating for time . This gives the lower bound of queries.
A stronger limitation for dense Hamiltonians
The currently known dense Hamiltonian simulation algorithms rely on certain properties of the Hamiltonian that we call its structural properties. By this we mean the location of nonzero entries in , which correspond to the location of edges in the graph of the Hamiltonian, and the magnitudes of the edge weights. (The remaining information about the Hamiltonian is the phase of each matrix entry .)
To show the lower bound, we need a black-box problem with an average-case lower bound, and a set of Hamiltonians whose simulation would solve this problem. We consider the problem of distinguishing strings that have sum or , given a black box for the entries of the string. When queried with an index , the black box returns the value of , where . The following lemma characterizes the query complexity of this problem.
Suppose we are given black-box access to a string , where is chosen uniformly at random from the set of strings with . Then determining has average-case quantum query complexity .
Thus, determining whether the sum is or , with the promise that one of these is the case, requires quantum queries on average. For each string , we construct a Hamiltonian whose simulation for a particular time allows us to distinguish the two possible cases assuming satisfies the promise.
Let be a symmetric circulant matrix of size , where is odd. (A circulant matrix is a matrix in which each row is rotated one element to the right relative to the preceding row.) In general, a circulant matrix is completely specified by its first row. However, since is a symmetric circulant matrix, it is completely specified by the first entries of the first row. Let the first entry of the first row be 0, and the next entries of the first row be . In other words, the first entries of the first row of are followed by the string . Then the remaining entries of the first row are .
Given a black box for the entries of , we can easily construct a black box for the entries of . Indeed, one query to can be simulated with at most one query to the string . Sometimes no query to is needed, since the diagonal entries of are always 0.
Since is a circulant matrix, it is diagonalized by the discrete Fourier transform. Its eigenvalues are
Thus the time evolution of can be used to learn whether is or . Since , the two cases can be distinguished by determining the sign of . Note that we know the eigenvector corresponding to : it is the first column of the discrete Fourier transform matrix, i.e., the uniform superposition over all computational basis states.
Using Lemmas 3 and 4, we can upper bound the probability that is large when is chosen uniformly at random from . If is the event that and is the event that , then is given by Lemma 3 and is given by Lemma 4. In these terms, we can compute an upper bound for as follows:
Thus the average-case query complexity of the claimed algorithm is , which violates the lower bound of . ∎
The proof technique above can be extended to rule out algorithms with query complexity sub-exponential in as well, by changing the promised set (i.e., the value of used in Lemma 2) and choosing a larger value of in Lemma 3. Exponential functions of cannot be ruled out, of course, since any Hamiltonian can be simulated by making queries, which is exponential in . On the other hand, if we insist that the query complexity of an algorithm depends only on (and not ), then the proof above can be modified to rule out algorithms whose time complexity is an arbitrary function of . For example, there exists no Hamiltonian simulation algorithm that makes queries.
Finally, we emphasize that even though the above proof involves average-case complexity and distributions over inputs, Theorem 4 is a statement about the worst-case complexity of simulating Hamiltonians.
Simulation complexity for structured Hamiltonians
The matrix is diagonal. To define , we arbitrarily fix some vertex as the root and consider the unique path from the root to vertex . Let the path contain the vertices , where is the root and is the parent of . For each nonzero entry of , define \alpha_{ij}\mathrel{\mathchoice{\vbox{\hbox{\displaystyle:}}}{\vbox{\hbox{\textstyle:}}}{\vbox{\hbox{\scriptstyle:}}}{\vbox{\hbox{\scriptscriptstyle:}}}{=}}H_{ij}/|H_{ij}|. Then let U_{ii}\mathrel{\mathchoice{\vbox{\hbox{\displaystyle:}}}{\vbox{\hbox{\textstyle:}}}{\vbox{\hbox{\scriptstyle:}}}{\vbox{\hbox{\scriptscriptstyle:}}}{=}}1 if is the root and U_{ii}\mathrel{\mathchoice{\vbox{\hbox{\displaystyle:}}}{\vbox{\hbox{\textstyle:}}}{\vbox{\hbox{\scriptstyle:}}}{\vbox{\hbox{\scriptscriptstyle:}}}{=}}\alpha_{i_{0}i_{1}}\alpha_{i_{1}i_{2}}\cdots\alpha_{i_{p-1}i_{p}}\alpha_{i_{p}i} otherwise.
Since is diagonal, . If and are not adjacent in the tree, then as required. Otherwise, suppose without loss of generality that is the parent of . Then , so as claimed. ∎
If can be expressed as the sum of a small number of Hamiltonians, each of whose graph is a forest, then can be efficiently simulated when is small. Recall that a graph is said to have arboricity if its adjacency matrix can be written as the sum of the adjacency matrices of forests, but not forests.
We begin by considering the case of a star graph. A star graph is a tree on vertices with one vertex having degree and the others having degree (i.e., the complete bipartite graph ). We show that if is a Hamiltonian whose graph is a star,
To show the result for graphs of arboricity , we begin by showing how a rooted tree can be decomposed into the sum of two forests of stars. The first forest contains all the edges in which the parent vertex is at a even distance from the root. The second forest contains the rest of the edges. This decomposes a rooted tree into two forests of stars, and similarly decomposes a forest into two forests of stars. Since the Hamiltonian has arboricity , it can be decomposed into forests, which can be decomposed into forests of stars.
Open questions
Acknowledgments
We thank Aram Harrow for suggesting the use of Hoeffding’s inequality to simply the proof of Lemma 3. This work was supported by MITACS, NSERC, QuantumWorks, and the US ARO/DTO.
Appendix: Proofs of lemmas
In this appendix, we prove Lemmas 2, 3, and 4.
We show the lower bound by first showing the same lower bound for the worst-case problem using the quantum adversary method [Amb02] and then reducing the worst-case problem to the average-case problem.
For the worst-case lower bound, we use the notation of Theorem 2 of Ref. [Amb02]. We require two sets of inputs and that have different outputs. Let be the set of all strings for which , and be the set for which . We define a relation between the sets as follows. Let an element be related to an element of if and only if can be reached from by changing exactly s to s in the string . Note that a string in has exactly s and s.
Using these sets and , and the relation defined above, it is easy to see that
The adversary method now provides a lower bound of for the worst-case query complexity of this problem.
The worst-case query complexity can now be reduced to the average-case query complexity under the uniform distribution over all input strings satisfying the promise. To do this, we first apply a uniformly random permutation to the input string, and then with probability multiply all the entries by (and leave them unchanged with probability ). The resulting distribution is now uniform over all input strings satisfying the promise. If the string is not multiplied by , then the output of the permuted string is the same as the input string. If all the entries are multiplied by , then the output of the modified string is the opposite of that of the original input.
The lower bound is tight due to a matching upper bound provided by the algorithm for approximate quantum counting [BHMT02]. To distinguish the two types of inputs, we can approximately count the number of s to accuracy , which requires queries. ∎
The eigenvalues of are , where . We wish to bound the probability that is large, so as to bound the probability of being large. This is achieved by applying Hoeffding’s inequality [Hoe63, Theorem 2].
If are independent and for all , then for any , we have
Since a similar inequality holds when is replaced by , we get
Finally, since , a union bound gives
Of the strings of length , those with sum or have either s or s. Thus the total number of such strings is
We can asymptotically approximate this expression using a well-known approximation for the binomial coefficients (see for example equations 4.5 and 4.10 of Ref. [Odl95]), which states that
provided . Applying this to (34), we get