Nearly optimal lattice simulation by product formulas
Andrew M. Childs, Yuan Su

TL;DR
This paper proves that product formulas can simulate lattice Hamiltonians on quantum computers with nearly optimal gate complexity, providing rigorous error bounds and extending previous results.
Contribution
It offers a rigorous proof of the nearly optimal gate complexity for lattice Hamiltonian simulation using product formulas, including error analysis and generalizations.
Findings
Gate complexity is (nt)^{1+o(1)} for lattice Hamiltonian simulation.
Provides error bounds for canonical product formulas including Lie-Trotter-Suzuki.
Extends analysis to time-dependent Hamiltonians and higher dimensions.
Abstract
We consider simulating an -qubit Hamiltonian with nearest-neighbor interactions evolving for time on a quantum computer. We show that this simulation has gate complexity using product formulas, a straightforward approach that has been demonstrated by several experimental groups. While it is reasonable to expect this complexity---in particular, this was claimed without rigorous justification by Jordan, Lee, and Preskill---we are not aware of a straightforward proof. Our approach is based on an analysis of the local error structure of product formulas, as introduced by Descombes and Thalhammer and further simplified here. We prove error bounds for canonical product formulas, which include well-known constructions such as the Lie-Trotter-Suzuki formulas. We also develop a local error representation for time-dependent Hamiltonian simulation, and we discuss…
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.
Nearly optimal lattice simulation by product formulas
Andrew M. Childs and Yuan Su
Department of Computer Science, Institute for Advanced Computer Studies, and Joint Center for Quantum Information and Computer Science, University of Maryland*
Abstract
We consider simulating an -qubit Hamiltonian with nearest-neighbor interactions evolving for time on a quantum computer. We show that this simulation has gate complexity using product formulas, a straightforward approach that has been demonstrated by several experimental groups. While it is reasonable to expect this complexity—in particular, this was claimed without rigorous justification by Jordan, Lee, and Preskill—we are not aware of a straightforward proof. Our approach is based on an analysis of the local error structure of product formulas, as introduced by Descombes and Thalhammer and further simplified here. We prove error bounds for canonical product formulas, which include well-known constructions such as the Lie-Trotter-Suzuki formulas. We also develop a local error representation for time-dependent Hamiltonian simulation, and we discuss generalizations to periodic boundary conditions, constant-range interactions, and higher dimensions. Combined with a previous lower bound, our result implies that product formulas can simulate lattice Hamiltonians with nearly optimal gate complexity.
pacs:
Simulating the Hamiltonian dynamics of a quantum system is one of the most natural applications of a quantum computer. Indeed, the idea of quantum computation, as suggested by Feynman (1) and others, was primarily motivated by the problem of quantum simulation. Quantum computers can simulate a variety of physical systems, including quantum chemistry (2, 3, 4, 5), quantum field theory (6, 7), and many-body physics (8), and could ultimately lead to practical applications such as designing new pharmaceuticals, catalysts, and materials (9, 10).
A natural class of Hamiltonians that includes many physically reasonable systems is the class of lattice Hamiltonians (6, 11, 12, 13). Lattice Hamiltonians arise in many models of condensed matter physics, including systems of spins (e.g., Ising, XY, and Heisenberg models; Kitaev’s toric code and honeycomb models; etc.), fermions (e.g., the Hubbard model and the - model), and bosons (e.g., the Bose-Hubbard model). Note that fermion models can be simulated using local interactions among qubits by using a mapping to qubits that preserves locality (14). Digital simulations of quantum field theory also typically involve approximation by a lattice system (6).
For simplicity, we mainly focus on nearest-neighbor lattice systems in one dimension (although we discuss generalizations to other lattice models as well). In this case, qubits are laid out on a one-dimensional lattice and the Hamiltonian only involves nearest-neighbor interactions. Specifically, a Hamiltonian is a lattice Hamiltonian if it acts on qubits and can be decomposed as , where each is a Hermitian operator that acts nontrivially only on qubits and . We assume that , for otherwise we evolve under the normalized Hamiltonian for time .
Lloyd’s original proposal for an explicit quantum simulation algorithm (15) uses the Lie-Trotter product formula. Subsequent work achieves better asymptotic complexity (16) using higher-order Suzuki formulas (17). We refer to all such formulas as product formulas. The product-formula algorithm is straightforward yet surprisingly efficient for quantum simulation. Indeed, it can conserve certain symmetries of the dynamics (18) and appears to be advantageous for various practical systems (19, 2, 20). Although recent simulation algorithms have better asymptotic complexities (21, 22, 23, 24, 25, 26, 27, 28, 29, 30), the product-formula approach remains a natural choice for experimental simulations (31, 32, 33) due to its simplicity and the fact that it does not require any ancilla qubits. Its study has also illuminated areas beyond quantum computing (34).
One of the main challenges in quantum simulation is to analyze the gate complexity of simulation algorithms. Explicit gate counts are especially desirable for near-term simulation because early quantum computers will only be able to reliably perform a limited number of gates. While existing analysis appears to be tight for recent simulation algorithms, the product-formula bound can be loose by several orders of magnitude (19, 8, 20, 2). This dramatic gap makes it hard to identify the fastest simulation algorithm and to find optimized implementations for near-term applications (19).
Product formulas can simulate a lattice system with fixed accuracy with gate complexity O\big{(}n(nt)^{2}\big{)} in the first-order case and O\big{(}n(nt)^{1+\frac{1}{2k}}\big{)} in the ()th-order case. However, it is natural to expect a more efficient simulation. Roughly speaking, a system simulates its own evolution for constant time using only constant circuit depth—and hence an extensive number of gates—so one might expect a true simulation complexity of . Indeed, Jordan, Lee, and Preskill claimed that product formulas can simulate an -qubit lattice system with gates (6), but they did not provide rigorous justification and it is unclear how to formalize their argument. Subsequent work improves the analysis of the product-formula algorithm using information about commutation among terms in the Hamiltonian (35, 19, 4, 3), the distribution of norms of terms (36), and by randomizing the ordering of terms (37, 38). However, none of these improvements can achieve the claimed gate complexity for lattice simulation.
Main result. Let be an -qubit lattice Hamiltonian. We order the terms in the even-odd pattern obtaining the first-order product formula
[TABLE]
and the ()th-order product formulas
[TABLE]
with . Our main result is an asymptotic upper bound on the product-formula error
[TABLE]
where denotes the spectral norm.
The above error bound works well only for very small . To simulate for a longer time, we divide the entire evolution into segments, and within each segment, we simulate using product formulas. To achieve accuracy , it suffices to choose for the first-order formula and r_{2k}=O\big{(}t(nt/\epsilon)^{\frac{1}{2k}}\big{)} for the ()th-order formula. Equivalently, we have gate complexity O\big{(}(nt)^{2}\big{)} and O\big{(}(nt)^{1+\frac{1}{2k}}\big{)} for the first- and ()th-order algorithm, assuming that we simulate with constant accuracy.
For any , we choose an integer sufficiently large so that , upper-bounding the gate complexity as O\big{(}(nt)^{1+\frac{1}{2k}}\big{)}=O\big{(}(nt)^{1+\delta}\big{)}. This proves that the product-formula algorithm has asymptotic gate complexity . Combining with the lower bound of established in (12), we have showed that product formulas can simulate a lattice Hamiltonian with nearly optimal gate complexity.
Applications. As an immediate application, our result gives a rigorous proof of the Jordan-Lee-Preskill claim about the complexity of simulating quantum field theory (6). Recent works have analyzed the gate complexity of other quantum field theory simulations (39), including digital simulation of gauge theories (40). The lattice Hamiltonians there have similar locality, so our analysis still applies. We expect our technique can be generalized to speed up the simulation of other systems, such as electronic structure Hamiltonians (9), power-law decaying interactions (41), exponentially decaying interactions (42), and clustered Hamiltonians (43), but we leave a thorough study of such generalizations as a subject for future work (44).
To simulate an -qubit lattice Hamiltonian for time , our algorithm has circuit depth . As a side application, our analysis gives a tensor network representation of lattice systems with bond dimension , using the counting argument of (45). This significantly improves a recent construction of (46, Lemma 17) which uses only the first-order Trotter decomposition.
We work primarily with an idealized setting where quantum operations can be performed faithfully. However, in realistic experiments, quantum gates will be imperfectly implemented (47). For such a case, Reference (48) estimates the simulation accuracy as in diamond-norm distance (49, 50), where captures the algorithmic error of product formulas and captures gate errors. This leads to an optimal number of segments r=\big{(}\alpha 2k/\beta\big{)}^{\frac{1}{2k+1}}, which can be improved by our result. Specifically, the original analysis in (16) implies \alpha_{\text{orig}}=O\big{(}(nt)^{2k+1}\big{)}. This has been improved by subsequent work (19, 37), although none of these improvements achieves linear scaling in . In contrast, the analysis of this letter gives \alpha_{\text{opt}}=O\big{(}nt^{2k+1}\big{)}, improving the performance as a function of even in the presence of noise.
Our main goal is to establish the gate complexity of for the product-formula algorithm. However, our analysis is not only nearly optimal in the asymptotic regime but also appears to be much tighter in practice. For concreteness, we numerically implement and optimize our fourth-order bound, and compare it with previous product-formula analysis, for simulation of a one-dimensional Heisenberg model with a random magnetic field with open boundary conditions (51, Eq.(98)) (see Figure 1). We find that the scaling of our bound matches the empirical performance and the constant prefactor is off by only one order of magnitude, a significant improvement over previous rigorous bounds (19). Further improvements of our bound are possible by optimizing its numerical implementation; we leave a detailed study for future work (44).
Analysis of the first-order algorithm. The key technique behind our approach is an integral representation of the error that we develop based on Descombes and Thalhammer’s local error analysis of product formulas (52). In the local error representation, the integrand is expressed as a linear combination of commutators nested with unitary conjugations, where the numbers of summands and nesting layers are both independent of and . We use this representation to get the correct asymptotic gate count as a function of and . In contrast, the conventional approach uses the Baker-Campbell-Hausdorff formula or naive Taylor expansion, which requires the manipulation of infinite series and appears to be technically challenging to analyze (53) (51, Section I).
To illustrate the proof idea, we show how to obtain for the first-order formula. We differentiate and obtain
[TABLE]
Using the variation-of-constants formula (52) (54, Theorem 4.9) with initial condition , we find an integral representation of the product-formula error as
[TABLE]
We repeat this procedure to analyze the commutator \big{[}e^{-i\tau_{1}H_{\text{even}}},\ -iH_{\text{odd}}\big{]}, obtaining an upper bound on the spectral-norm error
[TABLE]
We expand and according to their definitions. Fixing an arbitrary term in , the commutator \big{[}H_{2l,2l+1},\ H_{2k-1,2k}\big{]} is non-zero only when . We thus find that
[TABLE]
Using the triangle inequality, we have , which proves the claim (3) for the first-order case.
Ordering robustness. Our above bound works when terms of the lattice Hamiltonian are ordered in the even-odd pattern. However, this choice is not necessary: the first-order algorithm has the same asymptotic error bound with respect to any ordering of the lattice terms.
Our analysis relies on an error bound for swapping lattice terms:
[TABLE]
if and [math] otherwise. In words, we may swap two exponentials and without error unless their supports overlap, in which case the error is .
Let be a lattice Hamiltonian. We now simulate it using the first-order formula, but allow terms to be ordered arbitrarily as , where is a permutation on the elements . Then the spectral-norm error is upper bounded by
[TABLE]
The second term is upper bounded by . For the first term, we transform into by swapping neighboring exponentials. Every time two exponentials are swapped, we use (8) to bound the error. The total number of swaps of exponentials and with is at most , incurring error .
We have therefore obtained the same asymptotic error bound for an arbitrary ordering of the Hamiltonian terms. We call this phenomenon ordering robustness. Our analysis shows that the first-order algorithm is ordering-robust. Whether a similar property holds for a general higher-order formula remains an open question.
We also numerically compare the first-order algorithm with the even-odd ordering and the ordering of (19). Although they have the same asymptotic error bound, in practice the even-odd ordering has smaller exponent and constant prefactor. Details can be found in (51, Section VI).
Analysis of higher-order algorithms. Analyzing higher-order product formulas is more challenging. To this end, we represent them in a canonical form, which is easy to manipulate and encompasses well-known constructions such as the Lie-Trotter-Suzuki formulas , as special cases. We then use the variation-of-constants formula to write
[TABLE]
where \mathscr{T}(t)=\mathscr{S}_{2k}^{\dagger}(t)\big{[}\frac{\mathrm{d}}{\mathrm{d}t}\mathscr{S}_{2k}(t)-(-iH)\mathscr{S}_{2k}(t)\big{]}. As a ()th-order formula, satisfies an order condition , which further implies by Taylor’s theorem
[TABLE]
Canonical product formulas and their order conditions are further discussed in (51, Section II).
A direct expansion of gives the correct -dependence of the product-formula error, but the scaling in is incorrect. Instead, we seek an alternative expression for the integrand that consists of a linear combination of commutators nested with unitary conjugations, where the number of summands and nested layers are both independent of and . Such an expression is referred to as a local error representation in (52). However, the result of (52) depends on auxiliary functions whose recursive structure is hard to unravel. Instead, we develop a simpler representation of the local error structure (51, Section III).
In our representation, the operator can be written as a linear combination of operator-valued functions of the form , where operators . As such, its higher-order derivatives consist of unitary conjugations and commutators. When a commutator is composed, we imitate (7) to show that the support of the operator is expanded by at most a constant factor. When a unitary conjugation is composed, we decompose the unitary operators and cancel exponentials with non-overlapping supports. Throughout this procedure, we only introduce error in the innermost layer, proving the claim in (3) for the higher-order cases. This error analysis is discussed in more details in (51, Section IV).
Generalized lattice Hamiltonians. We have so far focused on time-independent one-dimensional systems with nearest-neighbor interactions and open boundary conditions. However, our analysis can be easily adapted to handle time-dependent Hamiltonians, periodic boundary conditions, constant-range interactions, and higher-dimensional systems, again with nearly optimal gate complexity.
When the Hamiltonian is time-dependent, the problem of quantum simulation becomes more difficult (55). Then there no longer exists a closed-form solution to the Schrödinger equation. Furthermore, some quantum simulation algorithms (22, 25) that behave well in the time-independent case fail to handle the time-dependent Hamiltonian simulation. Nevertheless, we show that product formulas can simulate time-dependent lattice Hamiltonians with nearly optimal gate complexity. We group the terms in the even-odd pattern
[TABLE]
and simulate using the time-dependent Lie-Trotter-Suzuki formulas (55). We show that
[TABLE]
where denotes the time-ordered matrix exponential. Similar to the time-independent case, we find that the total gate complexity is O\big{(}(nt)^{1+\frac{1}{2k}}\big{)}. See (51, Section V) for detailed discussions.
We also consider lattice Hamiltonians with periodic boundary conditions , where represents a local term that acts nontrivially only on qubits and . To simulate such a system, we decompose as , where . Correspondingly, we also use a canonical product formula with three exponentials per stage. With a similar analysis for the open boundary condition, we find that the product-formula error is as expected.
A generalization of this approach allows us to simulate a -dimensional lattice Hamiltonian with nearly optimal gate complexity. We use a -coloring of the edges of the lattice to decompose the Hamiltonian into terms, each of which is a sum of commuting terms. We also extend the definition of canonical product formulas to allow for exponentials per stage. An analysis of the local error structure shows that this algorithm has gate complexity , where is the total number of lattice sites and is the linear size of the lattice.
Finally, our algorithm can also simulate lattice Hamiltonians with constant-range interactions . To achieve nearly-optimal gate complexity, we classify the Hamiltonian terms into the groups
[TABLE]
and use a product formula with elementary exponentials per stage.
Discussion. The product-formula algorithm is arguably the simplest approach to quantum simulation. We have showed that this approach can simulate lattice Hamiltonians with nearly optimal gate complexity. Our algorithm invokes product formulas by ordering terms in an even-odd pattern, which is conceptually easy to understand and straightforward to implement. Beyond the one-dimensional time-independent system with nearest-neighbor interactions and open boundary conditions, our analysis is also applicable to periodic boundary conditions, constant-range interactions, higher dimensions, and the time-dependent case, all with nearly optimal gate complexity. Our result also gives product-formula bounds that are much tighter in practice.
Recently, Haah, Hastings, Kothari and Low (HHKL) proposed another nearly optimal algorithm for lattice simulation (12). Instead of analyzing the product-formula approach, they develop a new approach motivated by the Lieb-Robinson bound (56, 57), which quantifies how fast information can propagate in a system with local interactions. HHKL decomposes the entire evolution into blocks, where each block involves forward and backward evolution on a small region. Using product formulas within each block, their approach gives an ancilla-free algorithm for lattice simulation with asymptotic gate complexity . However, this results in a much larger constant prefactor in practice than the pure product-formula algorithm analyzed here (51, Section VI).
The near optimality of HHKL depends essentially on the use of a Lieb-Robinson bound. As noted in (12), it may be difficult to apply this idea to Hamiltonians whose interactions are described by general graphs. Our approach directly exploits the commutation of lattice terms without the help of Lieb-Robinson bounds, which we expect could illuminate the simulation of other physical systems (9, 41, 42, 43).
Our local error analysis represents the product-formula error as an integral of a linear combination of commutators nested with unitary conjugations. Similar techniques have been used to establish the Lieb-Robinson bound and to study computational complexity aspects of many-body physics (56, 57, 41, 58). We leave it as an avenue for future work to explore whether these techniques could find more applications in the study of locality in quantum systems.
Acknowledgments
Acknowledgements.
Y.S. thanks Nathan Wiebe, Guang Hao Low, Minh Cong Tran, Stephen Jordan, Jeongwan Haah, Robin Kothari, Su-Kuan Chu, Rolando Somma, Xin Wang, Alexey Gorshkov, James R. Garrison, Anurag Anshu, Xiaodi Wu, Leonard Wossnig, Salini Karuvade, Xiao Yuan, Simon Benjamin, Shuchen Zhu, Scott Lawrence, and Zohreh Davoudi for helpful discussions. We thank anonymous referees for their comments. This work was supported in part by the Army Research Office (MURI award W911NF-16-1-0349), the Canadian Institute for Advanced Research, the National Science Foundation (grants 1526380 and 1813814), and the U.S. Department of Energy, Office of Science, Office of Advanced Scientific Computing Research, Quantum Algorithms Teams and Quantum Testbed Pathfinder programs.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1Feynman (1982) R. P. Feynman, International Journal of Theoretical Physics 21 , 467 (1982) . · doi ↗
- 2Babbush et al. (2015) R. Babbush, J. Mc Clean, D. Wecker, A. Aspuru-Guzik, and N. Wiebe, Physical Review A 91 , 022311 (2015) , ar Xiv:1410.8159 . · doi ↗
- 3Wecker et al. (2014) D. Wecker, B. Bauer, B. K. Clark, M. B. Hastings, and M. Troyer, Physical Review A 90 , 022305 (2014) , ar Xiv:1312.1695 . · doi ↗
- 4Poulin et al. (2015) D. Poulin, M. B. Hastings, D. Wecker, N. Wiebe, A. C. Doherty, and M. Troyer, Quantum Information and Computation 15 , 361 (2015), ar Xiv:1406.4920 .
- 5Cao et al. (2019) Y. Cao, J. Romero, J. P. Olson, M. Degroote, P. D. Johnson, M. Kieferová, I. D. Kivlichan, T. Menke, B. Peropadre, N. P. D. Sawaya, S. Sim, L. Veis, and A. Aspuru-Guzik, Chemical Reviews 119 , 10856 (2019) , ar Xiv:1812.09976 . · doi ↗
- 6Jordan et al. (2012) S. P. Jordan, K. S. M. Lee, and J. Preskill, Science 336 , 1130 (2012) , ar Xiv:1111.3633 . · doi ↗
- 7Jordan et al. (2014) S. P. Jordan, K. S. M. Lee, and J. Preskill, Quantum Information and Computation 14 , 1014 (2014), ar Xiv:1112.4833 .
- 8Raeisi et al. (2012) S. Raeisi, N. Wiebe, and B. C. Sanders, New Journal of Physics 14 , 103017 (2012) , ar Xiv:1108.4318 . · doi ↗
