Greatly improved higher-order product formulae for quantum simulation
Abstract
Quantum algorithms for simulation of Hamiltonian evolution are often based on product formulae. The fractal method of Suzuki gives a systematic way to find arbitrarily high-order product formulae, but results in a large number of exponentials. On the other hand, product formulae with fewer exponentials can be found by numerical solution of simultaneous nonlinear equations. It is also possible to reduce the cost of long-time simulations by processing, where a kernel is repeated and a processor need only be applied at the beginning and end of the simulation. In this work, we found thousands of new product formulae of both 8th and 10th order, and numerically tested these formulae, together with many formulae from prior literature. We provide methods to fairly compare product formulae of different lengths and different orders. We have found a new 8th order processed product formula with exceptional performance, that outperforms all other tested product formulae for about eight orders of magnitude in system parameters (time) and (allowable error). That includes most reasonable combinations of parameters to be used in quantum algorithms.
I Introduction
The Lie-Trotter product formula is commonly used in quantum algorithms for Hamiltonian simulation, where one can approximate the Hamiltonian evolution of in terms of exponentials of and when these operators do not commute. For short time, a standard approximation is the second-order symmetric formula , which satisfies . More generally, the error in an order formula is . Longer times are simulated by breaking the evolution into many repetitions of a short time. The number of repetitions needed is reduced with the order, motivating the search for higher-order product formulae. A systematic method to produce arbitrarily high order formulae is the fractal method of Suzuki [1, 2], which has found applications in Hamiltonian simulation [3]. The first explicit use of product formulae for quantum simulation was given in [4], applying it for quantum evolution under local Hamiltonians. Later work considered the broader class of sparse Hamiltonians [5] and higher orders [3], as well as methods beyond product formulae [6, 7, 8, 9].
Recent work has shown that despite its simplicity, the Lie-Trotter product formula can compete with other Hamiltonian simulation algorithms due to the low error that it achieves in practice [10]. Methods based on linear combinations of unitaries [11, 12] or quantum signal processing [13] give complexity logarithmic in the inverse error, but the error is not required to be extremely small, meaning those methods do not provide as large an advantage as might be expected. Product formula error bounds can be further improved by considering particular physical systems [14, 15, 16] or leveraging randomisation [17, 18, 19]. Moreover, Trotter formulae are expected to be relevant for both noisy intermediate-scale quantum computation and fault-tolerant computation. It is then of great importance to seek efficient implementations of product formulae as it can have a great impact on the efficiency of Hamiltonian simulation algorithms in practice.
The downside of the Suzuki method to generate higher-order formulae is that the number of exponential operators to implement it grows very rapidly. Suzuki’s product formulae are usually assumed in quantum computing, but they can be greatly improved upon. An alternative method by Yoshida [20] can be used to obtain product formulae with a smaller number of exponentials. Similar to Suzuki’s formulae, they are given as a product of for different time intervals, but in contrast to Suzuki’s approach there is not an explicit analytic form for the higher-order formulae. Instead one needs to derive and solve a complicated set of simultaneous nonlinear polynomial equations.
Yoshida gives what appears to be all 6th order solutions but only some 8th order integrators, and did not consider any orders beyond that. More recent work [21, 22, 23, 24] has pushed the search to higher orders. In Ref. [23] a summary of product formulae in the literature is given, including results from orders 4 to 10. The terminology used in that work is stages for the number of in the product formula. In Ref. [21] the authors provide 8th order product formulae with 15 and 17 stages which improve over those of Suzuki and Yoshida. Other product formulae based on the ansatz of Yoshida are also presented in Ref. [22]. For 8th order, Ref. [22] replicates the findings of [21] for product formulae with 15 and 17 stages, and finds new solutions with 19 and 21 stages. For 10th order, Ref. [22] provides solutions with 31 and 33 stages.
Another approach is that of processed product formulae [25, 26, 27, 28, 29, 30, 24, 31]. Instead of the product formula being symmetric, it is of the form for kernel and processor . The and cancel when using the product of many of these for evolution over a long time, so the cost is dominated by the number of stages in the kernel. Since the kernel has fewer restrictions on it, it can have fewer stages than a normal symmetric product formula.
The objective of this work is to find improved product formulae and compare their performance in a consistent manner. We show that the performance of product formulae is better quantified by the error in the eigenvalues, rather than the spectral-norm error as usually considered in prior work. This is because it is the eigenvalue error that dominates the error for evolution at longer times. We also derive a method to consistently compare the performance of product formulae with different numbers of exponentials.
We use these methods to compare between the performance of our product formulae, as well as to compare to prior product formulae in the literature. By our numerical search, we found hundreds of thousands of solutions at 8th order, including some that outperform those previously reported in the literature, with our best being a processed product formula. For 10th order we have found thousands of new solutions including some with extremely low error, though one given in Ref. [22] provides even better performance. A detailed list of the product formulae considered in this work can be found in Section VI.
When comparing product formulae of different orders, it is better to use higher-order formulae for larger values of , where is the total evolution time and is the required precision. For smaller it is better to use lower-order formulae, but as it is increased there are threshold values beyond which it is optimal to use higher-order formulae. We derive a methods for determining these thresholds, and show that our 8th order product formula is best for from about to , which includes the range of typical values for quantum chemistry applications. This means that the best 8th order product formula we have found in this work will be best suited to real applications. It is possible to reduce the lower threshold by an order of magnitude by adjusting the product formula to provide low error for larger time steps.
The organisation of this work is as follows. In Section II we introduce the background necessary for the rest of the paper. First, we define product formulae and introduce the Suzuki method for generating higher-order product formulae in Section II.1, then in Section II.2 we give a summary of Yoshida’s method, then we explain processors for product formulae in Section II.3. In Section III we present the methods used for solution, including Subsection III.2 where we introduce the Taylor series method to find new product formulae, which is distinct from Yoshida’s method. In Sections IV.1 and IV.2 we present the results regarding new 8th and 10th order product formulae, and then in Section VI we give a comprehensive comparison of the product formulae.
II Background
In this section, we give a summary of the background for our work. We begin by defining product formulae and the Baker-Campbell-Hausdorff formula, then we introduce the Suzuki method and Yoshida method to obtain higher-order formulae, and describe the processed product formulae.
II.1 Product formulae
It is well known that, for any non-commuting operators and ,
(1) |
where we have absorbed the factor used in quantum simulation into and . The above equation demonstrates that the exponential of a sum of two operators is, to first order, equal to the product of the exponential of those operators. The above equation is often referred as a ‘first-order product formula’. Higher-order terms can be computed via the Baker-Campbell-Haussdorff (BCH) formula.
Theorem 1 (Baker-Campbell-Haussdorff formula [32]).
Let and be any operators such that . We have for an operator that , with
(2) |
where
The standard second-order symmetric product formula is as given in the definition below.
Definition 2 (Symmetric product formula of order two).
Let and be non-commuting operators and let be a real variable. Define
(3) |
The operators and used in the definition of should always be clear from context. More generally, when there is a sum of , the product formula is
(4) |
Products are ordered with the starting index on the right and the final one on the left, so for terms the expression in the definition is obtained. Note that , and all product formulae considered in this work, have an order independent of , so there may be any number of terms in the sum. The corollary below describes the form of the error terms in the symmetric product formula, and also implies that it is second order.
Corollary 3 (Symmetric BCH formula [20]).
Let and be any operators such that and let be a real variable. Define such that . Then there is a sequence consisting of linear combinations of -term commutators in and such that
(5) |
Moreover, whenever is even.
Reference [20] also shows that even terms are zero for more general symmetric product formulae. The first three non-zero terms from above are
(6) | ||||
(7) | ||||
(8) |
Here the square brackets are used to indicate multicommutator expressions similar to the notation in Theorem 1, for example
(9) |
Expressions for each can be derived from two applications of the usual BCH formula.
Definition 4 (Product formula).
Let and be any non-commuting operators. Given a natural number , a product formula of order is a pair with and a natural number such that for all
(10) |
We refer to the number of non-zero coefficients in as the length of the product formula.
Hence is a length- product formula. The number of exponentials used in the product formula is a crucial measure of its efficiency, and in quantum simulation it is proportional to the required number of gates.
Suzuki method for generating higher-order product formulae.
Here we describe Suzuki’s fractal methods from [1, 2] to obtain higher-order product formulae. Starting from the symmetrised product formula in Eq. (3), the fractal method produces product formulae at all even orders. Suzuki’s first fractal method to generate a product formula of order is [1]
(11) |
where . This method can be used to generate even orders starting at . A drawback to this method is that both and are greater than 1, so the coefficients in the higher-order methods are large, causing greater error.
Alternatively to Eq. 11, an order product formula can be obtained via Suzuki’s second fractal method [2]
(12) |
where . This method has the advantage that both and are less than 1, so the coefficients of higher-order formulae are small resulting in small error. The drawback is that far more exponentials are required. Each iteration uses 5 copies of the lower-order formula, whereas the previous one uses 3 copies. The virtue of these fractal methods is that they allow one to generate arbitrarily high-order product formulae easily, albeit at the expense of a large number of exponentials.
Exponential length scaling of the Suzuki method.
For Suzuki’s first method, the total number of exponentials for a given order in the product formula is given by
(13) |
For example for and just corresponds to , and the expression gives 3 as expected. For Suzuki’s second method the number of exponentials is
(14) |
The number of exponential operators in both cases of the Suzuki method grows very rapidly. Thus one may be interested in alternative method to obtain product formulae with a lower count, such as the method of Yoshida in the next section.
II.2 Yoshida’s method for deriving 6th order product formulae
Approach.
Rather than using Eqs. 11 and 12, Yoshida uses the general procedure
(15) |
where for are parameters to be determined. Note the number of exponentials in this product is given by . Given this ansatz, the task becomes to find and such that is an order product formula. We will illustrate Yoshida’s method by deriving the result for 6th order.
Expand Yoshida product using Baker-Campbell-Haussdorf formula.
The method is to expand Eq. 15 using the BCH formula from Theorem 1 recursively as follows. First, note that from Corollary 3, , where is a commutator of operators as described below Corollary 3. We are for the moment considering sums of two terms . Define and . Then,
(16) |
A simple computation shows
(17) |
Define so
(18) |
By an induction argument Yoshida shows that
(19) |
where and are polynomials on the variables .
The case is just the symmetric BCH formula, so it is clear that Eq. (19) holds with
(20) |
To prove Eq. (19) for , one needs to show that the exponential is of the form with operator for first order in , operator for third order in , and operators and for fifth order in . This result may be shown using
(21) |
Hence, if the product formula can be expressed as in the form (19) for , it can again be expressed in this form for , establishing it for all by induction. This expression also shows that the scalar coefficients can be determined from the formulae
(22) |
See Appendix A for an explanation of how to extend this approach to 10th order.
Constraints to satisfy in order to derive 6th order formula.
To derive a 6th order formula, the lower-order terms in the exponential in Eq. 19 must be zero (see also Eq. (5.16) of [20]), which gives the four conditions
(23) |
For there are four unknowns to , and it can be expected there are solutions because there are the same number of equations as unknowns. In practice is satisfied by taking , so there are then three equations for three unknowns . Whereas it is possible to solve the equations using the Newton-Raphson method, the expression for the appropriate Jacobian matrix is complicated, so Yoshida instead uses the Brent method. Yoshida produced three solutions in this way, and states “It seems that there is no other solution.” We have performed an extensive search and also found no more solutions.
The product formulae obtained through the Yoshida method also work for exponentials of sums of more operators. The product formula can again be used as the building block for the product formula, and we can write
(24) |
where are now order- multicommutator expressions on the terms. The reasoning for finding the product formula is entirely based on the construction with , but without taking advantage of its particular form, so exactly the same reasoning holds for . This immediately implies that the higher-order product formulae work in general. This is an advantage of constructing product formulae as products of , because deriving coefficients separately for exponentials of and would not generalise.
II.3 Processed product formulae
Another technique to obtain higher-order product formulae is that of processing [24, 25, 26, 27, 28, 29, 30]. In this technique a product formula of order is generated by the composition of a kernel conjugated by a processor operator as
(25) |
The advantage of this method is that usually requires fewer stages than other methods, and due to the construction, we have that . This means that the cost of using the product formula is effectively that of the kernel in the usual application where a long time evolution is partitioned into many repetitions of the product formula for short times.
Typically, one chooses a kernel as a product formula that has a smaller order than , but conjugating by processors gives an order integrator. A table of available kernels that can be combined with processors is given in Ref. [24], and recently new kernels were reported in [31]. Another advantage of this method is that the number of nonlinear equations required to be solved to find new product formulae is reduced, as one only needs to find new parameters for the kernel , and then conjugate it by known processors in the literature to give an order integrator.
To be more specific, Ref. [24] gives a set of conditions for the kernels and processors in Table 4 of that work. Reference [24] uses the notation rather than , so . It then uses the notation for multicommutator expressions, with and for example
(26) | ||||
(27) |
where is given in Appendix A. In Ref. [24] the quantities are the coefficients of , so the equivalent of Eq. (19) in that notation is
(28) |
To obtain the conditions for a 6th order kernel from Ref. [24], one should use the conditions for up to in Table 4, which give , , , which in the above notation are equivalent to
(29) |
The conditions for the kernel are the same as for the complete product formula, but missing . That is a general feature of the kernel order conditions; they are a subset of the conditions for the complete product formula, enabling shorter kernels, or more flexibility to choose kernels of the same length but lower error. For 4th order there are the same number of conditions, so the kernel is a valid product formula of that order.
For the processors, Ref. [24] uses the notation for the coefficients of in the expansion of . These need to be determined from the BCH formula rather than symmetric BCH, and instead of only odd-order terms there need to be only even-order terms. Some symmetries mean that low-order odd terms automatically cancel, but higher-order ones need to be made zero by the choice of . Table 4 in Ref. [24] gives the conditions on the even-order terms. The first processor condition depending on is for , which means that for 6th order and higher the processors are dependent on the kernel. The 4th order the kernel is already 4th order, and the processors will yield another 4th order product formula, but can be chosen to reduce the error (which arises from higher-order terms). See Appendix B for more detail on the method of determining processors.
III Method of solution
III.1 Numerical methods
The size of the product formula we consider as in Eq. (15) is giverned by the value of , so there is a product of integrators. The number of free parameters is , and it needs to be a least a large as the number of independent equations in order for there to be a solution. Yoshida [20] finds that is minimal for 8th order, and similarly to prior work [22] we find that is minimal for 10th order; see Appendix A. Choosing the minimal typically yields product formulae with large error, and for that reason we also consider larger values of .
For the numerical solution of the simultaneous nonlinear equations, we found that Matlab’s fsolve (using the Levenberg-Marquardt algorithm) provided rapid results using the vector of errors. The method was to repeatedly solve from random starting vectors generated according to the normal distribution. The best solutions were those with smaller values for the coefficients; for much of the calculations we selected standard deviations of for 8th order and for 10th order. We filtered the large number of solutions by numerically checking the error for example Hamiltonians, and selecting those that provided the best performance. We then perform tests for larger numbers of samples, to better select the best performing product formulae. We also further refined the solutions to give the results to extended precision, which enables testing of the error with smaller values of . We were also able to further reduce the error by using an alternative solution method using a Taylor series.
III.2 Solution using Taylor expansion
Another solution method we use is based on computing the Taylor expansion of both the exact exponential and its product formula approximation with given . This Taylor expansion is performed on both sides up to the desired order of approximation for the integrator. By imposing equality on terms of the same order we obtain a series of equations for which can be solved. For higher orders, a large number of simultaneous equations are obtained, so we need an automated way of generating them.
To make precise the problem we are solving, denote as the map giving the Taylor expansion in around , truncated at order , so
(30) |
We consider a sum of two operators , but this approach for solving for will also be sufficient to provide product formulae for sums of arbitrary numbers of terms. That is because the solutions must also be solutions of the equations derived using Yoshida’s method, and as explained above those equations will be the same when considering sums of arbitrary numbers of terms. Now consider the ansatz operator of Yoshida from Eq. 15
(31) |
where in the last line we have defined the constants , , . We Taylor expand this ansatz up order , noting that the total number of exponentials in Yoshida’s ansatz is
(32) |
We require that the product formula obtained from our solution procedure be independent of the choice of and , so need to match the coefficients for each sequence of products of and . Because and are non-commuting, we need to record coefficients for each ordered sequence. To do this in an automated way we construct a data structure to store the coefficients.
Given operators of the form and with scalar coefficients and general operators, we describe this Taylor expansion up to order using an array encoding. First, write monomials composed of and operators in lexicographical order and note that these operators can be mapped to binary numbers:
(33) |
To construct a bit string, we map each to 0 and each to 1, then place a 1 on the left to flag the length of the string, as shown in the second line of Eq. 33. Then, to obtain the operator products, simply remove the leading 1 and then map to and to . The empty string corresponds to the identity . Now, to store the coefficients in a sum of products of and , convert each product to a binary integer as above, then store the coefficient in the corresponding location in a vector.
By way of illustration, consider the polynomial . This operator would be stored in an array as . In this way, any polynomial of and can be efficiently stored in a vector. We denote this vector storing the coefficients of operators of order up to as , where denotes that the vector will only store the coefficients of the corresponding operators up to order (so a vector of length ) and is the polynomial in terms of and .
This approach can be used to solve for product formulae, but is also very effective at further improving the performance of solutions that have already been found. If a solution is of 8th order (for example), then we can consider the error using the Taylor expansion up to and including the 9th order. This will give nonzero error for the 8th order product formula, so minimising the error gives a new product formula. That can be used as a starting point to again solve for an 8th order formula, and often it is found that the product formula adjusted in that way has reduced error.
IV Product formula search
IV.1 Improved 8th order
Following the method outlined in Section III, we have searched for new product formulae and found thousands of product formulae of 8th order. The case yields product formulae of minimal length, because the number of equations is equal to the number of unknowns. We have found over 600 solutions, and the search now finds almost only repeated solutions and very few new solutions. This indicates that we have found nearly all solutions, but it is also possible that there are many more solutions with large values of . Indeed, the most recent new solutions we found have significantly larger values of . We find that large values of correspond to worse product formulae with larger error. Therefore, even if there are many more solutions with large , they likely will not give improved performance over those we have already found.
Once we have obtained the potential solutions, we generate random Hamiltonians and compute the product formula errors as a function of time. For 8th order product formulae we know that the product formula error is . We check the error scaling by picking two times and and computing errors and at these times, then we compute and check that it is close to . As the error for our product formulae is given by where is a constant factor, we can compute for each of them by from . For each product formula, we compute an average constant factor error; this average corresponds to the geometric mean of the constant factors computed for each random Hamiltonian. This method of comparing the performance of product formulae through the estimation of the constant factor in the error has been used before (see for example [33]) and is considered a good approximation to the performance of the product formula in practice.
The best performing 8th order product formula of minimal length is shown in Table 1. This has average constant factor , where we are measuring error using the spectral norm. We evaluated all the 8th order solutions of Yoshida, and found Solution D was best, with a constant . See Section VI for more extensive comparisons other product formulae. The best solution we found for corresponds to that reported as s15odr8 in [21], where the relation between the coefficients given is (so they list the coefficients in reverse order to ours). The extensive nature of our search indicates that the product formula reported in Ref. [21] is optimal for minimal-length 8th order product formulae.
Best 8th order with | Best 8th order with | |
---|---|---|
NA |
Best 8th order for spectral-norm error | Best 8th order for eigenvalue error | |
---|---|---|
We have also conducted a search for 8th order solutions with , finding over 600 solutions. Using results in an underdetermined system of equations with continuous sets of solutions, and nearly half of these solutions were close (with a norm less than 0.01). The underdetermined nature of the solutions also gives the flexibility to adjust the solution to reduce the error by further using the method described in Section III. The best solution found is given in Table 1, with an average constant factor of , which is an order of magnitude improvement with only a slight increase in the number of exponentials. This solution is close to solutions s17odr8a and s17odr8b given in Ref. [21], suggesting that the difference is due to the system of equations being underdetermined.
Extending our search further to we found over 100,000 solutions, including solutions improving over those in prior work. Our best solution is given in Table 2 and has a constant of . This new 8th order product formula for improves 40,000 times over the ones provided by Yoshida. An alternative measure of the performance of the product formulae is the accuracy of the eigenvalues. When considering this error, the product formula has a somewhat smaller constant factor . It is also possible to select product formulae to provide the minimum error in the eigenvaules. When we do this, we obtain the second solution given in Table 2, which has the significantly smaller constant factor in the error . That is better than any prior product formulae we have tested when accounting for the number of exponentials.
A further improvement in product formulae can be obtained by using processing [24]. We have performed a search for high-accuracy 8th order product formulae using this method with , and found one particular example that provides excellent performance. In our testing this solution is found repeatedly, and provides significantly lower error than any other solutions. Because the equations are underdetermined, the solution may be adjusted to provide best performance.
Best 8th order kernel | Processor for kernel | ||
---|---|---|---|
Our best solution is given in Table 3. For the kernel there are many solutions for the processor, but we list the one with the best performance of the solutions we have found. This one was found by solving for many (hundreds of thousands) of processors, picking the one with the best performance, and further optimising. This kernel provides a constant of , only slightly larger than the best length product formula, while providing better performance due to the shorter length. Moreover, using the processor the constant for the spectral-norm error is . That is only about 10% more than the best length formula, while again providing better performance due to the shorter length.
IV.2 Finding 10th order
We have also used our solution procedure to find new th order product formulae. We generalised Yoshida’s method, and find independent equations to be solved (see Appendix A). We performed searches for solutions with (the minimal number) to . Again the larger values of give the flexibility to adjust the solution to reduce the error. We report our 10th order product formulae for , and in Table 4 that are best for spectral-norm error. We don’t report values for as the performance of the product formulae found were worse than for . In Table 5 we report product formulae for and with our best results for eigenvalue error.
As in Section IV.1, we compare the performance of product formulae of th order by computing the constant factors and for random Hamiltonians. For the best solution with we have a constant factor of , and the best solution with has , which is about a factor of 24 times worse. The far better constant factor for is far more significant than the slightly larger number of exponentials in the product formula.
Further increasing to 18 gives a product formula with ; a significant further improvement. Again we can consider the error in terms of the eigenvalues; in this case the constant for eigenvalue error is , only slightly less. Selecting the best performing product formula for eigenvalue error gives the significantly smaller constant . However, out of our solutions the best eigenvalue performance is given by a solution, which yields . These solutions are listed in Table 5.
In the search for 10th order product formulae, unlike in the case of 8th order, we find that almost all new solutions found are different from those found before. That indicates that there is an extremely large number of solutions, and we have only found a very small proportion of them. Indeed, the solutions are distinct from those in prior work.
Best 10th order solution with | Best 10th order solution with | Best 10th order solution with | |
---|---|---|---|
0.019042478645106035261914181501875 | |||
NA | |||
NA | NA | ||
NA | NA |
Best 10th order solution with | Best 10th order solution with | |
---|---|---|
NA |
V Methods for comparison of product formulae
V.1 Same order comparison
We make a fair comparison between product formulae of different length in the following way. An order integrator for time will have an error where is a real constant. Let be the total evolution time for an integrator of order , and be the maximum allowable error. Subdivide the evolution time into subintervals, so is the length of each time subinterval. We thus have , which gives
(34) |
As explained above, the number of exponentials in the product is . When applying products of these product formulae, two exponentials can be combined, so the effective number for each is . As a result, the total number of exponentials can be given as proportional to
(35) |
where we have ignored a common factor of , and . If we wish to compare product formulae of the same order, then we need only compare the values of , and the one with the smaller value is the more efficient product formula. Similarly, if we consider eigenvalue error then we should compare between the formulae.
V.2 Thresholds for different order
If we wish to compare product formulae of different order, then we need to take account of the values of and . Assume we have two integrators of order and , with corresponding constants , . Given and , when the two integrators use the same number of exponentials we have , thus
(36) | ||||
(37) |
This gives the threshold beyond which the higher-order product formula should be used for improved performance. Again, when considering eigenvalue error, would be replaced with .
A limitation of this analysis it is assumed that the time step is small enough for the scaling law for the error to hold. To adjust the threshold for cases where the time step is large, we can consider a more general functional dependence of the error on the time interval as . Then we require for time and error that
(38) |
The cost is then proportional to . For the threshold between two product formulae, we require
(39) |
That implies . For the total error to be equal to in each case, we then require
(40) |
That can be rearranged to give
(41) |
This is an expression we can solve for , which may then be used to determine the threshold from
(42) |
This means that the threshold is still for the ratio , rather than having separate dependence on and .
V.3 Motivation for considering eigenvalue error
A further question is the measure of the error to be used. If the goal is to estimate eigenvalues of the Hamiltonian (as is often the case in quantum chemistry), then the measure of the error should be that in the eigenvalues. That is, how close are the eigenvalues of the product formula to those of the exact Hamiltonian evolution. In the case that the goal is to accurately reproduce the final state after the evolution, then an appropriate measure of the error should be the spectral norm of the difference of the unitary operators. This error accounts for both error in the eigenvalues and basis.
That error will upper bound the 2-norm error in the generated quantum state, but using the triangle inequality to bound the error for long evolution times overestimates the error. This is because the error beyond that in the eigenvalues cancels when using a product of many short time intervals. Let us denote the exact evolution operator for short time , and the approximate evolution operator provided by the product formula as . In the basis of the Hamiltonian’s eigenstates, is diagonal, and we can diagonalise in this basis as . Then the difference between and describes the eigenvalue error, since these are diagonal matrices with the eigenvalues on the diagonal. The matrix describes the basis error.
It is convenient to write for some Hermitian matrix . Then the error can be given as
(43) |
That is, the error can be split up between a part corresponding to basis error, and a part corresponding to eigenvalue error. Note that is proportional to , so the error in the operator due to the basis error is one order higher than the error in the basis.
Then, for the case of a large number of time steps , we can bound the overall error as
(44) |
That is, the error due to the eigenvalues is multiplied by a factor of , but the error due to the basis is not. The error in the basis can be larger than for a single time step, but only by a factor of . That factor arises because for a single time step the basis error is commuted with which is proportional to , so the expression here without can be a factor larger.
In practice we find that in many cases the error in the basis scales as , resulting in the expected contribution to the spectral-norm error . However, in other cases we find scaling of the error in the basis as , resulting in a higher-order contribution to the spectral-norm error. Let us give the error in the eigenvalues as , and the error in the basis as where to account for the various scalings found numerically.
Then the choice of to make the error in the eigenvalues smaller than is
(45) |
The contribution to the total error from the basis error is
(46) |
That gives the ratio of the basis error to the eigenvalue error as approximately
(47) |
Hence, for large the eigenvalue error should be dominant. This means that the eigenvalue error for a single step is the relevant measure to estimate the spectral-norm error for long-time evolution.
VI Numerical comparison of product formulae
VI.1 Comparison for general matrices
In what follows, we report on the comparison between product formulae of 4th, 6th, 8th and 10th order based on the threshold provided above. We analyse those found in this work, and those from prior work including processed product formulae. When giving the number of stages of a processed product formula, we refer to the number of stages in the kernel (not ), because those are the ones that would be repeated for a simulation over an extended time.
We list 4th order product formulae in Table 6, 6th order in Table 7, 8th order in Table 8, and 10th order in Table 9, and give the constant factors in the error scaling (spectral norm or eigenvalue error). These product formulae include some constructed with even rather than as for our product formulae. We generated 10,000 random Hamiltonians for each product formula, and then estimated the constants and by taking the geometric mean. Each random Hamiltonian is generated as a sum of two random Hamiltonians , where and are random Hermitian matrices of dimension and norm 1.
label | processing | reference | |||||
---|---|---|---|---|---|---|---|
S4m1 | no | first Suzuki product [1] | 1.38 | 1.25 | |||
S4m2 | no | second Suzuki product [2] | 1.13 | 0.72 | |||
O4M5 | no | Ostmeyer Eq. (40) of [34] | 0.65 | 0.52 | |||
BM4M6 | no | Table 2 of [35] | 0.67 | 0.47 | |||
BCE4m6b | no | BM Table 1 of [31] | 0.99 | 0.87 | |||
PPBCM4m6 | yes | Table 5 of [24] | 1.01 | 0.74 | |||
BCE4m3 | yes | Table 6 of [31] | 2.09 | 1.23 | |||
BCE4m4 | yes | Table 6 of [31] | 1.19 | 0.85 | |||
BCE4m5 | yes | Table 6 of [31] | 0.88 | 0.72 | |||
BCE4m6 | yes | Table 6 of [31] | 0.83 | 0.66 | |||
BCE4m7 | yes | Table 6 of [31] | 0.82 | 0.62 | |||
BCE4m8 | yes | Table 6 of [31] | 0.82 | 0.60 | |||
BCE4m9 | yes | Table 6 of [31] | 0.83 | 0.58 |
label | processing | reference | |||||
---|---|---|---|---|---|---|---|
S6m1 | no | first Suzuki product [1] | 5.26 | 5.08 | |||
S6m2 | no | second Suzuki product [2] | 3.68 | 1.99 | |||
Y6m3a | no | Solution A in Table 1 of [20] | 2.42 | 2.32 | |||
KL6s9a | no | s9odr6a in Appendix A of [21] | 2.26 | 2.18 | |||
KL6s9b | no | s9odr6b in Appendix A of [21] | 2.25 | 2.18 | |||
SS6s11 | no | Section 4.2 of [22] | 1.98 | 1.77 | |||
SS6s13 | no | Section 4.2 of [22] | 2.08 | 1.64 | |||
BM6M10 | no | Table 2 of [35] | 1.33 | 1.12 | |||
BCE6m10b | no | BM Table 1 of [31] | 2.65 | 1.92 | |||
PPBCM6m9 | yes | Table 5 of [24] | 2.02 | 1.26 | |||
PPBCM6m5 | yes | in Table 6 of [24] | 1.19 | 1.09 | |||
PPBCM6m6 | yes | in Table 6 of [24] | 1.13 | 1.04 | |||
BCE6m5 | yes | Table 8 of [31] | 4.15 | 3.98 | |||
BCE6m6 | yes | Table 8 of [31] | 2.41 | 2.07 | |||
BCE6m7 | yes | Table 8 of [31] | 2.14 | 1.69 | |||
BCE6m8 | yes | Table 8 of [31] | 1.98 | 1.39 | |||
BCE6m9 | yes | Table 8 of [31] | 2.41 | 1.33 | |||
BCE6m10 | yes | Table 8 of [31] | 2.32 | 0.93 | |||
BCE6m11 | yes | Table 8 of [31] | 2.97 | 1.10 |
label | processing | reference | |||||
---|---|---|---|---|---|---|---|
S8m1 | no | first Suzuki product [1] | 18.5 | 16.9 | |||
S8m2 | no | second Suzuki product [2] | 11.4 | 3.62 | |||
Y8m7d | no | Solution D in Table 2 of [20] | 6.30 | 5.15 | |||
KL8s15 | no | s15odr8 in [21] (our Table 1) | 3.33 | 3.02 | |||
KL8s17a | no | s17odr8a in [21] | 2.83 | 2.52 | |||
KL8s17b | no | s17odr8b in [21] | 2.83 | 2.49 | |||
SS8s19 | no | Section 4.3 of [22] | 2.68 | 2.43 | |||
SS8s21 | no | Section 4.3 of [22] | 3.16 | 2.73 | |||
PP8s13 | yes | in Table 6 of [24] | 2.33 | 2.27 | |||
PP8s19 | yes | in Table 6 of [24] | NA | NA | 2.85 | ||
Y8m10 | no | Table 2 (our new result) | 2.56 | 2.13 | |||
Y8m10b | no | Table 2 (our new result) | 3.45 | 1.67 | |||
YP8m8 | yes | Table 3 (our new result) | 2.10 | 1.41 |
label | processing | reference | |||||
---|---|---|---|---|---|---|---|
S10m1 | no | first Suzuki product [1] | 62.5 | 50.0 | |||
S10m2 | no | second Suzuki product [2] | 34.5 | 9.39 | |||
KL10s31a | no | s31odr10a in Appendix A of [21] | 9.33 | 9.21 | |||
KL10s31b | no | s31odr10b in Appendix A of [21] | 11.88 | 11.3 | |||
SS10s31 | no | Section 4.4 of [22] | 5.55 | 5.43 | |||
SS10s33 | no | Section 4.4 of [22] | 5.25 | 5.12 | |||
SS10s35 | no | Section 4.4 of [22] | 4.31 | 3.22 | |||
Alberdi31 | no | Appendix A of [36] | 6.23 | 6.18 | |||
Alberdi33 | no | Appendix A of [36] | 6.25 | 6.17 | |||
Alberdi35 | no | Appendix A of [36] | 5.62 | 5.51 | |||
PP10s19 | yes | in Table 6 of [24] | NA | NA | 5.68 | ||
PP10s23 | yes | in Table 6 of [24] | 8.04 | 4.09 | |||
Y10m15 | no | Table 4 | 7.19 | 7.12 | |||
Y10m16 | no | Table 4 | 5.57 | 5.08 | |||
Y10m17 | no | Table 5 | 5.75 | 3.71 | |||
Y10m18 | no | Table 4 | 5.22 | 5.05 | |||
Y10m18b | no | Table 5 | 6.46 | 4.27 |
To compare among product formulae of the same order, we compare for spectral norm error, or for eigenvalue error, and the best results in each table are indicated by the values in bold. First we consider the comparison of for spectral-norm error. For 4th order, the lowest value for is that of the processed formulae BCE4m7 and BCE4m8, which yield very similar values. That is out of product formulae that are products of , we will discuss the others below. In the 6th order case we find that the best is PPBCM6m6. Among the 8th order, the best performing is our processed formula YP8m8. The best 10th order is given by SS10s35, but the second-best is given by our Y10m18.
For eigenvalue error, we compare the quantity to establish the performance of the product formulae when they have the same order. The best performing 4th order formula for eigenvalue error is BCE4m9 for product formulae based on . For 6th order, the best one is BCE6m10. Among the 8th order product formulae, our product formula YP8m8 is still the best performing. The best 10th order is still SS10s35, though the second-best is our Y10m17. Therefore, in both cases the best 10th order is SS10s35 from Ref. [22], though we have found the second-best product formulae. More importantly, our new 8th order product formula provides the best performance both in terms of spectral norm and eigenvalue error.
In Table 6 and Table 7 we also list results for some product formulae that are specific to Hamiltonians that are a sum of only two terms, and are not constructed as a product of . In the case of fourth order, these give better performance than any of the other product formulae listed. In particular, for eigenvalue error the best performance is given by the formula BM4M6 of Blanes and Moan [35], whereas for spectral-norm error, a recently proposed formula O4M5 of Ostmeyer [34] gives the best performance. In the case of 6th order, the formula BM6M10 of Blanes and Moan gives very good performance, but still not better than some of the processed product formulae.
The Suzuki product formulae give poor performance in all cases as compared to the best product formulae, and Suzuki’s second formula always outperforms the first. In the case of 6th order, Suzuki’s second formula provides better performance than the best 6th order product formula of Yoshida in terms of eigenvalue error, but not spectral norm error. Suzuki’s second product formula also outperforms the best 8th order product formula of Yoshida. A surprising result is that Suzuki’s second product formula provides much smaller eigenvalue error than spectral-norm error, particularly for higher orders. For 10th order it is smaller by nearly 6 orders of magnitude. Nevertheless, despite that extremely small error, the large number of factors in the product mean that it has significantly worse performance than most other product formulae in the list.
To consider the threshold to use a higher-order product formula over a lower-order one, we first consider the asymptotic expression using for eigenvalue error. For 4th order the value of this quantity is 0.58 (BCE4m9) and for 6th order is 0.93 (BCE6m10), which gives a threshold of 290. The value for the best 8th order is 1.41 (YP8m8), which gives a threshold of around 1,200 when compared with 4th order and 22,000 when compared with 6th order. The thresholds from 4th order are larger using BM4M6, which is specific to Hamiltonians that are a sum of two parts. Then the threshold from 4th to 6th is 3800, and from 4th to 8th is 7000. At 10th order the best value is 3.22 (SS10s35), which when compared with 8th order gives a threshold of . This is far greater than can be expected for realistic simulations.
Most of these thresholds based on asymptotic expressions are inaccurate, because the thresholds correspond to large time steps where the asymptotic expressions break down. An exception is the threshold for 8th to 10th order. That corresponds to a time interval around that is sufficiently small that the threshold estimate is accurate. In contrast, the calculated threshold between 6th and 8th order would correspond to a time step larger than 3, which is far too large for the scaling of the error to be accurate.
In this case we find numerically that the threshold between these 6th and 8th order formulae (BCE6m10 and YP8m8) is about , which is less than the threshold calculated above using the asymptotic scaling. On the other hand, the threshold for the 6th order formula PPBCM6m6 to our 8th order formula YP8m8 is 940,000. That corresponds to about 590,000 time steps, with a time step size of about (for the 8th order formula).
It is possible to optimise our kernel for the larger time step size in order to provide better performance. This optimisation provides a kernel (see Table 10) such that the threshold from PPBCM6m6 is about 82,000. This now corresponds to 36,000 time steps with a time step size of about . Thus the optimisation provides another order of magnitude where 8th order product formulae are optimal, albeit with a product formula tailored to the time step size.
8th order kernel for large time steps | |
---|---|
One must also be careful in considering thresholds based on eigenvalue error, because there needs to be a large number of time steps in order for the spectral-norm error in the complete evolution time to be dominated by the eigenvalue error. There is a factor of about 24 between the spectral-norm error and the eigenvalue error for the 8th order product formula YP8m8. For the threshold between 6th order and 8th order the number of time steps is orders of magnitude larger than this, which indicates that the eigenvalue error is an appropriate measure.
These threshold calculations are for Hamiltonians that are sums of two terms, each of which is normalised. In the case where the Hamiltonian is not normalised, the threshold should be scaled by the norm. In the simple case where the Hamiltonian is a sum of two terms with equal norms , then the threshold will be for rather than . More generally the Hamiltonian may be a sum of any number of terms with different norms, which would change the threshold and make it unclear what quantity the threshold should be considered in terms of. There is also the possibility that the threshold can be changed for Hamiltonians that have structure to them instead of being random, for example those for quantum chemistry.
VI.2 Comparison for fermionic Hamiltonians
Fermionic Hamiltonians encountered in quantum chemistry often have the form
(48) |
where and are the fermionic creation and annihilation operators acting on orbital , and there are a total of orbitals. Each entry , is real and there is symmetry in exchanging indices. The behaviour of the error as the size of system is changed can be predicted based on the result in Theorem 4 of [37].
Theorem 5 (Theorem 4 in [37]).
Let be an interacting-electronic Hamiltonian, and be a th order product formula splitting the evolutions under and . Then
(49) |
where corresponds to the operator norm on the operator acting in the -electron subspace, and .
To fairly compare product formulae as applied to quantum chemistry, we can define so that
(50) | ||||
(51) |
That is, are for the spectral-norm error, and are for the eigenvalue error, with being the quantities defined for fermionic Hamiltonians. Note that the expression in Ref. [37] was derived for error in the spectral norm, but that also provides an upper bound on the error in the eigenvalues, so it is reasonable to consider the constant defined for eigenvalue error. Then the formula for the threshold becomes, for (eigenvalue error)
(52) |
Thus we see that the ratio governs the threshold where a 10th-order product formula will improve over an 8th-order product formula (and similarly for other orders). This is somewhat different from the factor of the norm of the Hamiltonian that might otherwise be expected for unstructured Hamiltonians.
To analyse the non-asymptotic regime, we rewrite the error to be proportional to
(53) |
Following the derivation of Ref. [37], it is easily seen that the contributions to the error from each of the orders higher than will be of a similar form. These higher-order contributions to the error can be used to determine the error in the non-asymptotic regime where the order term is not dominant.
To see why that is the case, note that Lemma 2 of Ref. [37] describes the error at order ( in the notation of that work) in terms of a sum over norms of multicommutators of terms in the Hamiltonian. It is easily seen that the error at each of the higher orders will also be given by similar multicommutator forms. The method of proof of Theorem 4 in Ref. [37] is based on simplifying the multicommutator expressions from Lemma 2, and proceeds in exactly the same way for the higher orders.
Therefore, the sum over errors of all orders would give a total error of the form
(54) |
This sum would then give the non-asymptotic form for the error
(55) |
for some function .
Then following the same procedure to determine the threshold as before, we will have a total error given by
(56) |
That would imply that comparing two product formulae, the threshold will be obtained for
(57) |
Using and solving for as before, the threshold would then be given by substituting the solution for into
(58) |
The threshold can be calculated for Hamiltonians with a given value of , then for some new Hamiltonian with different values of the norms, the threshold should still be for the same value of . This implies that the right-hand-side of Eq. (58) should be the same for the threshold with the new Hamiltonian. As a result, we expect that the threshold should be in terms of the left-hand-side of Eq. (58), which is the same expression as found in the asymptotic regime.
In our numerical testing, the coefficients , were chosen uniformly from the interval . We computed for a selection of the product formulae with the best performance for random Hamiltonians. With the errors computed numerically, we can compute . In Table 11, Table 12 and Table 13 we give the computed result for orbitals, assuming half-filling of the orbitals. Our numerics indicate that the error is roughly proportional to the bound in Eq. 49, independent of the number of orbitals, though the constant factors are small. In Appendix C we give the constant factors for the case , showing that the computed constant does not change much with a different .
label | ||
---|---|---|
BCE6m10 | ||
PPBCM6m6 |
label | ||
---|---|---|
SS8s19 | ||
Y8m10 | ||
Y8m10b | ||
PP8s13 | ||
YP8m8 |
label | ||
---|---|---|
SS10s35 | ||
Y10m17 | 1.53 | |
Y10m18b | 1.74 | |
PP10s23 | 1.58 |
For calculating the thresholds based on the asymptotic formula in Eq. 52, we should compare our best 8th order formula YP8m8 to SS10s35 in the 10th order case, and BCE6m10 in the 6th order case. Then we obtain a threshold of for 8th to 10th order, and for 6th to 8th order, indicating about 9 orders of magnitude for where our 8th order product formula is optimal.
Similar to the case for general matrices, we expect that the threshold for 8th to 10th order is sufficiently large that the time steps are small and the asymptotic formulae are accurate, but the threshold between 6th and 8th order may be unreliable. In that case we solve Eq. 57 for with , and find the threshold using Eq. 58 is increased to . Similar to the case with general matrices, we expect that the 6th order product formula PPBCM6m6 can give better performance for larger time steps, and indeed we find that the threshold is further increased to . By using our 8th order kernel optimized for large time step in Table 10 we can improve the threshold between PPBCM6m6 and our 8th order formula in the non-asymptotic case. In this case we obtain a threshold of around , which is an improvement by a factor of 4 times; not as significant as the improvement for general random matrices.
Next we compare the performance of the product formulae for specific systems. From Ref. [37] the norms can be expected to scale as
(59) |
where is the number of orbitals and is the volume (denoted and in [37]). The constants for the scaling of these norms are derived in Ref. [38] as
(60) |
For an initial order of magnitude estimate, the chemical accuracy required for the phase estimation is about Hartree, which implies of about , and can be taken to be of order 1. With high estimates and , the left-hand-side (LHS) of Eq. (52) would be on the order of , which means our 8th order should be preferred to 10th order. Therefore, in this case either 8th order or 10th order could be chosen depending on the details of the system
For comparison, we also consider the Alpha + Hydrogen system from Ref. [38]. The parameters , and are given in Table II of that work. Some of the most challenging values of are given in Figure 8 of that work, with for example and . With these parameters the LHS of Eq. (52) is approximately , which is below the threshold (between 8th and 10th order) by a few orders of magnitude. The smallest values of from Ref. [38] are obtained with and (see Table IV). That results in a value for the LHS of Eq. (52) of , which is above the threshold between 6th and 8th order, so our 8th order product formula would still be optimal. This indicates that the new 8th order product formula found here should be optimal for the full range of parameter values used in Ref. [38]. Nonetheless, for smaller values of it may be advantageous to further customise the product formula to provide better performance at larger time steps, as described above to improve the threshold between 6th order and 8th order.
Note also that the fact that the threshold here is different than for random Hamiltonians means that the threshold will depend on the class of Hamiltonians. Selecting a different type of Hamiltonians can change the threshold. Similarly, it will be expected that choosing a particular class of fermionic Hamiltonians (such as those arising from plane waves) rather than random fermionic Hamiltonians can give a different threshold. Nevertheless, changing the class of Hamiltonians still resulted in an extremely large threshold for 10th order product formulae to be optimal. This suggests that the 8th order formula will be optimal for realistic simulations regardless of the class of Hamiltonians.
VII Conclusion
In this work we have developed a method of fairly comparing product formulae with different numbers of factors and different orders, as well as searched for improved higher-order product formulae. We find that it is better to compare the eigenvalue error, rather than the spectral-norm error as in prior work, because it is the eigenvalue error in a single step which dominates the error over longer time evolutions. The optimal order of integrator to use depends primarily on the ratio , the ratio of the total evolution time to the required error.
This is because, as becomes larger, the error allowed for each individual time step becomes smaller, and the time steps must become shorter to make the error sufficiently small. That results in a larger overall number of time steps, and so a larger complexity. The higher-order integrators better reduce the error, with shorter time steps, and so for large that improvement more than compensates for the larger number of exponentials for the higher-order product formulae.
In our search for higher-order product formulae we found very large numbers of solutions at both 8th and 10th order. Our solution at 8th order improves over all prior 8th order product formulae that we found in prior work. The best 8th order product formula we have found is a processed product formula, which means that in a long time simulation the kernel would be repeated many times, and the processor would only be used at the beginning and end of the simulation. For applications in eigenvalue estimation the processor would not be needed at all. We found highly accurate solutions at 10th order, though they are outperformed by one result found in prior work that is extremely accurate. These product formulae greatly outperform the fractal product formulae of Suzuki, which are commonly considered in quantum simulation but require a large number of exponentials.
We show via numerical testing for random Hamiltonians that there is a range of about eight orders of magnitude for where our new 8th-order product formula outperforms all other known product formulae. Moreover, our 8th order product formula can be further adjusted for smaller values of to provide another order of magnitude where it is optimal. This range includes reasonable combinations of parameters that one would use in applications. A lower-order formula would only be optimal for small simulations that are likely to be classically tractable. A 10th order formula would only be optimal for simulations well beyond the scale considered for quantum algorithms.
A particularly important class of Hamiltonians is those corresponding to fermions (rather than just random), because those are relevant to simulations in quantum chemistry. Using the formula from Ref. [37], those give a threshold for combined with norms of the matrices describing the fermionic system. As an example we consider parameters for the simulations from Ref. [38], and estimate that the threshold for 10th order product formulae to outperform our 8th order product formula is about three orders of magnitude larger than the largest simulations considered there. Those simulations are already expected to require more than Toffolis, so even larger simulations where 10th order product formulae are optimal would be well beyond the scale that could be realistically implemented on foreseeable quantum computers.
A potential topic for future work is further customising product formulae for large time steps. We have customised the 8th order product formula to improve the threshold, but it would also be possible to customise the 6th and 4th order product formulae. It would also be possible to customise the product formulae for larger time steps with the fermionic Hamiltonians. So far we have only customised the 8th order product formula for general matrices.
VIII Acknowledgements
MESM was supported by the ARC Centre of Excellence for Quantum Computation and Communication Technology (CQC2T), project number CE170100012 and a scholarship top-up and extension from the Sydney Quantum Academy. MESM and YRS were supported by the Defense Advanced Research Projects Agency under Contract No. HR001122C0074. Any opinions, findings and conclusions or recommendations expressed in this material are those of the author(s) and do not necessarily reflect the views of the Defense Advanced Research Projects Agency. DKB acknowledges funding by the Australian Research Council (project numbers FT190100106, DP210101367, CE170100009). DWB worked on this project under a sponsored research agreement with Google Quantum AI. DWB is also supported by Australian Research Council Discovery Projects DP210101367 and DP220101602.
References
- Suzuki [1990] M. Suzuki, Physics Letters A 146, 319 (1990).
- Suzuki [1991] M. Suzuki, Journal of Mathematical Physics 32, 400 (1991).
- Berry et al. [2007] D. W. Berry, G. Ahokas, R. Cleve, and B. C. Sanders, Communications in Mathematical Physics 270, 359 (2007).
- Lloyd [1996] S. Lloyd, Science 273, 1073 (1996).
- Aharonov and Ta-Shma [2003] D. Aharonov and A. Ta-Shma, in Proceedings of the Thirty-Fifth Annual ACM Symposium on Theory of Computing, STOC ’03 (Association for Computing Machinery, New York, NY, USA, 2003) p. 20–29.
- Berry and Childs [2012] D. W. Berry and A. M. Childs, Quantum Information and Computation 12, 29–62 (2012).
- Berry et al. [2014] D. W. Berry, A. M. Childs, R. Cleve, R. Kothari, and R. D. Somma, in Proceedings of the Forty-Sixth Annual ACM Symposium on Theory of Computing, STOC ’14 (Association for Computing Machinery, New York, NY, USA, 2014) p. 283–292.
- Berry et al. [2015a] D. W. Berry, A. M. Childs, and R. Kothari, in 2015 IEEE 56th Annual Symposium on Foundations of Computer Science (2015) pp. 792–809.
- Low [2019] G. H. Low, in Proceedings of the 51st Annual ACM SIGACT Symposium on Theory of Computing, STOC 2019 (Association for Computing Machinery, New York, NY, USA, 2019) p. 491–502.
- Childs et al. [2021] A. M. Childs, Y. Su, M. C. Tran, N. Wiebe, and S. Zhu, Physical Review X 11, 011020 (2021).
- Childs and Wiebe [2012] A. M. Childs and N. Wiebe, Quantum Information and Computation 12, 901–924 (2012).
- Berry et al. [2015b] D. W. Berry, A. M. Childs, R. Cleve, R. Kothari, and R. D. Somma, Physical Review Letters 114, 90502 (2015b).
- Low and Chuang [2017] G. H. Low and I. L. Chuang, Physical Review Letters 118, 010501 (2017).
- Babbush et al. [2015] R. Babbush, J. McClean, D. Wecker, A. Aspuru-Guzik, and N. Wiebe, Physical Review A 91, 022311 (2015).
- Childs et al. [2018] A. M. Childs, D. Maslov, Y. Nam, N. J. Ross, and Y. Su, Proceedings of the National Academy of Sciences 115, 9456 (2018).
- Su et al. [2021] Y. Su, H.-Y. Huang, and E. T. Campbell, Quantum 5, 495 (2021).
- Zhang [2012] C. Zhang, in Monte Carlo and Quasi-Monte Carlo Methods 2010, edited by L. Plaskota and H. Woźniakowski (Springer Berlin Heidelberg, Berlin, Heidelberg, 2012) pp. 709–719.
- Campbell [2019] E. Campbell, Physical Review Letters 123, 070503 (2019).
- Childs et al. [2019] A. M. Childs, A. Ostrander, and Y. Su, Quantum 3, 182 (2019).
- Yoshida [1990] H. Yoshida, Physics Letters A 150, 262 (1990).
- Kahan and Li [1997] W. Kahan and R.-C. Li, Mathematics of Computation 66, 1089–1099 (1997).
- Sofroniou and Spaletta [2005] M. Sofroniou and G. Spaletta, Optimization Methods and Software 20, 597 (2005).
- Blanes et al. [2008] S. Blanes, F. Casas, and A. Murua, arXiv:0812.0377 (2008).
- Blanes et al. [2006] S. Blanes, F. Casas, and A. Murua, SIAM Journal on Scientific Computing 27, 1817 (2006).
- Blanes [2001] S. Blanes, Applied Numerical Nathematics 37, 289 (2001).
- Blanes et al. [1999] S. Blanes, F. Casas, and J. Ros, SIAM Journal on Scientific Computing 21, 711 (1999).
- Butcher [1969] J. C. Butcher, in Conference on the Numerical Solution of Differential Equations, edited by J. L. Morris (Springer Berlin Heidelberg, Berlin, Heidelberg, 1969) pp. 133–139.
- Butcher and Sanz-Serna [1996] J. Butcher and J. Sanz-Serna, Applied Numerical Mathematics 22, 103 (1996).
- McLachlan [1996] R. I. McLachlan, Integration Algorithms and Classical Mechanics 10, 141 (1996).
- Wisdom et al. [1996] J. Wisdom, M. Holman, and J. Touma, Fields Institute Communications 10, 217 (1996).
- Blanes et al. [2024] S. Blanes, F. Casas, and A. Escorihuela-Tomàs, arXiv: 2404.04340 (2024).
- Blanes and Casas [2004] S. Blanes and F. Casas, Linear Algebra and its Applications 378, 135 (2004).
- Blanes et al. [2013] S. Blanes, F. Casas, P. Chartier, and A. Murua, Mathematics of Computation 82, 1559 (2013).
- Ostmeyer [2023] J. Ostmeyer, Journal of Physics A: Mathematical and Theoretical 56, 285303 (2023).
- Blanes and Moan [2002] S. Blanes and P. Moan, Journal of Computational and Applied Mathematics 142, 313 (2002).
- Alberdi et al. [2019] E. Alberdi, M. Antoñana, J. Makazaga, and A. Murua, arXiv: 1909.07263 (2019).
- Low et al. [2023] G. H. Low, Y. Su, Y. Tong, and M. C. Tran, PRX Quantum 4, 020323 (2023).
- Rubin et al. [2024] N. C. Rubin, D. W. Berry, A. Kononov, F. D. Malone, T. Khattar, A. White, J. Lee, H. Neven, R. Babbush, and A. D. Baczewski, Proceedings of the National Academy of Sciences 121, e2317772121 (2024).
- Van-Brunt and Visser [2016] A. Van-Brunt and M. Visser, Journal of Mathematical Physics 57, 023507 (2016).
- Duleba and Karcz-Duleba [2020] I. Duleba and I. Karcz-Duleba, in Computer Aided Systems Theory – EUROCAST 2019, edited by R. Moreno-Díaz, F. Pichler, and A. Quesada-Arencibia (Springer International Publishing, Cham, 2020) pp. 465–473.
Appendix A Extending Yoshida’s method to 10th order
Here we explain how to extend the method of Yoshida to obtain the equations for a 10th order integrator. See Section II.2 for an introductory explanation of how the method is used for 6th order. The general principle used there was to provide an expression for in Eq. (19) with the expression in the exponential given up to 6th order. Then the coefficients of the multicommutators of operators needed to be made equal to zero in order to obtain a 6th order approximation. Here we apply the same principle, except now we need to derive the terms up to 10th order.
In order to do this, we start by expressing up to 10th order as
(61) |
where we follow the notation from Corollary 3 with defined as commutators of operators. We will then iteratively apply the symmetric BCH expansion for in in order to obtain an expression for up to 10th order. It will be helpful to consider the following notation for commutators. For any operators we define
(62) |
where the commutator on the right hand should be understood as in Eq. 9. To express the results it will be useful to define the following commutators
(63) | ||||
(64) | ||||
(65) | ||||
(66) | ||||
(67) | ||||
(68) | ||||
(69) | ||||
(70) |
We also use the notation of Yoshida [20] for the commutators
(71) | ||||
(72) | ||||
(73) | ||||
(74) |
where we have indicated the equivalence to the multicommutators in the notation of Ref. [24].
Note that here we have only defined commutators of up to 7 of the operators. In the following we will be expanding expressions up to 9th order in , because the symmetry of the formulae means that 10th order terms (and all even-order terms) must be zero. The only way to obtain 9th order in with commutators of , , etc., is to have commutators of all as . But that expression must be zero, because . Then when we express the expansion of in , the first-order terms in and will be proportional to . That means the only 9th order terms coming from commutators of 9 of would correspond to and therefore be zero. This means we will only need commutators of up to 7 operators when expressing the expansion of in as well.
To obtain the coefficients multiplying the commutators with up to 7 operators in the symmetric BCH expansion for , we first use the algorithm defined in Section V of Ref. [39]. The algorithm in that work generates the scalar coefficients multiplying products of operators rather than their commutators, as we need here. In order to derive the corresponding expressions in terms of commutators, we express the symmetric BCH expansion in the Ph. Hall basis, which is a basis for writing Lie monomials consisting of commutators of the generators of the Lie algebra. For example, the elements up to 4th order in are the operators themselves, as well as
(75) |
For a list of operators in this basis up to 7th order, see Table 1 in [40].
We obtain the coefficients for the Ph. Hall basis by solving the corresponding linear problem of changing from one basis to another. As an example, consider the term with operators in the symmetric BCH expansion from Corollary 3, given as . We can also express the commutators as products by expanding out the commutators, which gives . The algorithm in [39] outputs expressions with the commutators expanded out as in . In order to obtain the original expression , we write with and expand the commutators and . This gives several linear equations that can be written in terms of a matrix. By inverting this matrix, we obtain the coefficients and .
By using this method, we obtain the symmetric BCH expansion for up to 7th order as
(76) |
Here is an infinite sum with commutators of an odd number of operators equal to or higher than . Now we prove the following Lemma which gives us the expansion up to 10th order of . This will allow us to derive the equations for 10th order product formulae.
Lemma 6.
Using the definition for as given in Eq. 15, we have that for all
(77) |
where the variables in upper case denote polynomials in the variables .
Proof.
We proceed by induction. First, note that the statement is true for the case ,
(78) | ||||
(79) |
This clearly has the form of Lemma 6 by taking and all other scalar variables as .
Assume now that Lemma 6 is correct, we want to derive an expression for . We then have and thus
(80) |
We compute the right-hand-side (RHS) of Appendix A applying the symmetric BCH formula from Corollary 3. Writing the RHS as , we have that
(81) | ||||
(82) |
We then compute the commutators of and that appear in the symmetric BCH formula, here we give the resulting 9th order operators after applying the commutators. When we write , the subscript indicates that we are only keeping the th order terms when expanding the commutator. We will explain in detail how to compute the commutator , the other commutators are computed in a similar way. Since we only need to consider terms of 9th order when computing , each term will have contributions from each operator inside (in this case two operators and one ) which is comprised of odd numbers that sum up to such that the commutator is non-zero. We then have that
(83) |
Given how we have defined the commutator, we have then
(84) | ||||
(85) | ||||
(86) | ||||
(87) | ||||
(88) | ||||
(89) | ||||
(90) | ||||
(91) | ||||
(92) | ||||
(93) | ||||
(94) | ||||
(95) | ||||
(96) |
Note that all the terms previously computed have terms that can be written as in Lemma 6, thus proving that can also be written in this way. ∎
Having proved Lemma 6, we can now compute the polynomials in Lemma 6. The polynomials are obtained from the recursion in Appendix A, the left hand side corresponds to and can can be written as a single exponential, the same is true of the right side which is written as a single exponential. We have then the following polynomials:
(97) | ||||
(98) | ||||
(99) | ||||
(100) | ||||
(101) | ||||
(102) | ||||
(103) | ||||
(104) | ||||
(105) |
We obtain the polynomial equations for the tenth order product formula by imposing that and all other terms are equal to zero. Because , one equation is eliminated, there are 15 equations to solve.
Appendix B Method for determining processors
A processed formula is composed of two elements: a kernel, , and a processor, . The effective order captures up to which order in the full product formula, including the processor, reproduces the the target dynamics, . In this work, we use processors that are constructed with the same procedure as Ref. [24]. This type of processors are products of arranged as , where . In the language of Ref. [24], is an element of the group of integrators . The same reference gives a basis for the generating algebra, which we used to perform the following calculations. The basis can be found in Table 2 of Ref. [24], and we use the same naming scheme for the algebra elements.
We can obtain recursive formulas for via successive applications of the BCH formula (as opposed to the symmetric BCH formula in the case of the kernel). After taking the product , the processor simplifies compared to . In particular, the logarithm of is zero up to terms of order . We illustrate the procedure that gives an iterative expression for the processor up to order 8, omitting the calculations. First, we write the product in the -basis. We have, for the logarithm of ,
(106) |
where each coefficient is a function of . Using an inductive argument analogous to the derivation in the case of the symmetric BCH formula, this expression will give a recursive expression for , whose logarithm is an expansion in terms of . The resulting expression is identical to the one above, with the superscripts replaced by , and each coefficient is a polynomial of . In fact, it is not necessary to compute all the -coefficients to find . For example, only three of them (out of seven) are necessary to find the processor up to order , since
(107) |
Similar cancellations occur at any order. In our simulations, terms up to eighth order are required. The seventh-order term in the expansion is (omitting the dependency on )
(108) |
while the eighth-order term is
(109) |
Note that not all the coefficients that appear in the expansion of are necessary.
Appendix C Error constants for fermionic Hamiltonians with 4 orbitals
In this appendix we provide the average error constant for the eigenvalue error for the evolution of fermionic Hamiltonians in the case that the number of orbitals is . We find that the obtained are close to those we obtain when .
label | ||
---|---|---|
BCE6m10 | ||
PPBCM6m6 |
label | ||
---|---|---|
SS8s19 | ||
Y8m10 | ||
Y8m10b | ||
PP8s13 | ||
YP8m8 |
label | ||
---|---|---|
SS10s35 | ||
Y10m17 | 1.53 | |
Y10m18b | 1.69 | |
PP10s23 | 1.51 |