Brought to you by:
Letter

Optimize quantum simulation using a force-gradient integrator

, and

Published 17 September 2021 Copyright © 2021 EPLA
, , Citation Yi-Tong Zou et al 2021 EPL 135 10004 DOI 10.1209/0295-5075/135/10004

0295-5075/135/1/10004

Abstract

Quantum simulation has shown great potential in many fields due to its powerful computational capabilities. However, the limited fidelity can lead to a severe limitation on the number of gate operations, which requires us to find optimized algorithms. Trotter decomposition and high-order Trotter decompositions are widely used in quantum simulations. We find that they can be significantly improved by force-gradient integrator in lattice QCD. By using two applications as examples, we show that the force-gradient decomposition can reduce the number of gate operations up to about a third of those using high-order Trotter decompositions. Therefore, force-gradient decomposition shows a great prospective in future applications of quantum simulation.

Export citation and abstract BibTeX RIS

Introduction

Quantum simulation as proposed by Feynman [1] has shown great potential in many fields due to its powerful computational capabilities and their potential to avoid the fermionic sign problem [24] which is an NP hard problem [5]. Consequently, in recent years quantum simulation has developed rapidly and has been applied in many fields [69]. With Google's announcement of quantum "supremacy" [10] and the subsequent experiment using photons [11], quantum simulations hold great promise for the future.

One of the biggest problems plaguing quantum simulations is the lack of fidelity. Recently, the fidelity can reach up to $99.9\%$ for one-qubit gate and $94.7\%$ for Clifford gate [12]. The fidelity decays exponentially with the number of gate operations, as a result the required computing resources increase exponentially, and the computational power of a quantum computer will be unable to surpass that of classical computers [13]. This problem has led to widespread researches in quantum error correction [1421].

The Trotter (or Lie-Trotter-Suzuki) decomposition (TD) is one of the earliest quantum algorithms in quantum simulations [22]. TD belongs to the product formulas, although some post-Trotter methods have been proposed, the product formulas are still found to be competitive especially for the case in which the simulated system has a Lie-algebraic structure, and the error of product formulas has been well studied [23]. A class of optimizations of TD is the high-order TDs [24,25], for example the second-order (or symmetric) TD (STD) has been widely applied [2630]. Until very recently, TD was still used in simulations [3134]. The optimization of TD and high-order TDs is very important, since the fidelity decays exponentially, even modest optimization can make a drastic improvement, and may enable some models to be simulated under existing conditions. In addition, the real quantum computers are not yet widespread and many simulations are performed on quantum computer simulators running on a classical computer [35]. The optimization can accelerate these simulations significantly as well.

There is a problem in the field of lattice QCD similar to the improvement on TD and high-order TDs. The STD with two non-commutating terms can correspond to the leapfrog integrator in lattice QCD. However, there are integrators much faster than leapfrog such as the Omelyan integrator [36] and the force-gradient integrators [3739]. The latter do not belong to the class of high-order TDs. There has been prior work on optimizing the simulations of quantum systems using analytically derived gradients, such as the GRAPE algorithm [4043]. However, to our knowledge the force-gradient integrators have barely caught the attention of the quantum simulation community so far. The force-gradient integrators can be applied in quantum simulations alongside other optimizations used in product formulas [30,4446], and with the nested integrator techniques [47]. In this letter, we investigate the feasibility of a force-gradient decomposition (FGD) in quantum simulations.

Force-gradient decomposition

Considering a system whose Hamiltonian can be written as $H=S+T$ , with $[ S,T] \neq 0$ , such a system can be simulated using TD, i.e., the $\exp{(\textrm{i}Ht)}$ is approximated by $\exp (\textrm{i}Ht) \approx(\exp (\textrm{i} \tau S) \exp (\textrm{i} \tau T))^{m}$ with $\tau=t/m$ . When decomposed to m steps, the total number of exponential operations (denoted as n) required is $n=2m$ . Its error can be roughly estimated by the Baker-Campbell-Hausdorff formula. Assume $\tau \lt 1$ and $[ S,T] \sim \mathcal{O}(l)$ , the error when evolute to t is $\epsilon \sim \mathcal{O}( t^2 l /2m )$ . Similarly, the STD is $\exp (\textrm{i}Ht) \approx (\exp (\textrm{i}\tau S/2) \exp (\textrm{i}\tau T) \exp (\textrm{i}\tau S/2))^m$ with $n=2m+1$ and $\epsilon \sim \mathcal{O}( t^3 l^2 /8m^2 )$ . The STD is in the category of higher-order TDs which has the form ${\rm e}^{t_1S}{\rm e}^{t_2T}{\rm e}^{t_3S}{\rm e}^{t_4T}\ldots {\rm e}^{t_MS}$  [24,25], the FGDs are no longer higher-order TDs. A widely used FGD is [39]

Equation (1)

with

Equation (2)

Usually, $[S, [S,[S,T]]]\neq 0$ , therefore one needs to further decompose $\exp (2\textrm{i}\tau S/3 +\textrm{i} \tau^3 [S,[S,T]]/72 )$ . Both n and epsilon depend on how this term is decomposed. Nevertheless, as will be shown, eq. (1) can be usually decomposed as the m-th power of the product of 7 exponents (denoted as 7-stage decomposition). For l-stage decomposition, $n=(l-1)m$ .

A general discussion of the error of FGD is beyond our ability, and is model dependent. Instead, we study the optimization brought by the FGD using two specific applications as examples.

Applications

To concentrate on the error due to the decomposition, we define $\varepsilon= \sqrt{||\exp(\textrm{i}tH)-M||}/\sqrt{||\exp(\textrm{i}tH)||}$ , where $||\ldots||$ denotes the sum of squares of the matrix elements and the matrix M denotes the decomposed matrix, for example $M=(\exp{(\textrm{i}\tau S)}\exp{(\textrm{i}\tau T)})^m$ in the case of TD.

For a small system, the Hamiltonian can be numerically diagonalized, and ε can be calculated on a classical computer. We use two small systems to compare different decompositions. The Omelyan integrator is frequently used in lattice QCD and is also included as an example of high-order TDs, which is denoted as Omelyan decomposition (OD) [36],

Equation (3)

with $\alpha \approx 0.1931833275037836$ .

The FGD in eq. (1) is usually a 7-stage decomposition, therefore we also compare FGD with a 7-stage high-order Trotter decomposition (7TD). An optimized 7TD is [38]

Equation (4)

Since the number of gate operations is approximately proportional to n for a same model, we use n to quantify the complexity of the decompositions.

Transverse Ising model

The transverse Ising model (TIM) is a popular benchmark for quantum simulations. Therefore we also use TIM in 1D and 2D to test the FGD.

The Hamiltonian of TIM can be written as

Equation (5)

where $\sigma_{x,z}$ are the Pauli matrices, $\langle ij\rangle$ refers to the nearest-neighbouring pairs. The $\sigma_z(n_i)$ is short for the tensor product of $2\times 2$ matrices on each site, the matrix on ni is $\sigma_z$ , and the others are identity matrices.

Firstly, we consider a 1D transverse Ising chain with only 3 sites and with a periodic boundary condition. The Hamiltonian in this case is a $8\times 8$ matrix acting on 3 qubits. Denoting the indices of the sites as n1, 2,3, $H=T+S$ with

Equation (6)

Therefore $[S,[S, T]]=-8 \lambda^{2}(Y-T)$ with

Equation (7)

For the $\exp (2\textrm{i}\tau S/3 +\textrm{i} \tau^3 [S,[S,T]]/72 )$ term we use the STD which is found to be optimized among 5-stage decompositions for 3 non-commutating terms [48]. The FGD is then

Equation (8)

Similar to the TD, before each exponential evaluation, the qubits should be rotated to $\sigma_{x,y,z}$ representations accordingly. Note that there is a Y operator which is diagonalized in $\sigma_y$ representation which is different from TD and high-order TDs.

In the case of infinite volume, the 1D TIM is self-dual, there is a phase transition at $\lambda_c=1$  [49,50]. Therefore we use $\lambda = 0.5, 1, 1.5$ as examples. When t = 1, we calculate the minimum number of exponential operations needed (denoted as $n_{\min}$ ) when the error satisfies $\varepsilon \lt 0.1\%$ . The results are shown in table 1.

Table 1:. The $n_{\min}$ required to satisfy $\varepsilon \lt 0.1\%$ for the Ising chain when t = 1.

λ  TDSTDOD7TDFGD
0.5 $n_{\min}$ 103439334319
  $\varepsilon(\%)$ 0.100.0980.0860.0610.033
1 $n_{\min}$ 160655535525
  $\varepsilon(\%)$ 0.100.0980.0990.0880.035
1.5 $n_{\min}$ 145671696731
  $\varepsilon(\%)$ 0.100.0950.0940.0920.048

The non-commutativity l grows with λ, therefore the worst case is when $\lambda =1.5$ . When $\lambda =1.5,t=1$ , the error decays for the decompositions are shown in fig. 1. The results indicates that the simulation of 1D TIM can be significantly optimized by the FGD.

Fig. 1:

Fig. 1:  ε as functions of n for the Ising chain when t = 1, $\lambda = 1.5$ .

Standard image

Once the FGD of 1D TIM is known, the FGD for higher-dimensional TIM with periodic boundary condition can be obtained because $T=\sum T_{1D}$ , and $[S,[S,T]]=\sum [S,[S, T_{1D}]]$ .

Take the TIM on a $2\times 3$ lattice with periodic boundary condition as an example, the lattice is depicted in fig. 2, and the Hamiltonian is a $64\times 64$ matrix with

Equation (9)

Fig. 2:

Fig. 2: The TIM on a $2\times 3$ lattice with periodic boundary condition, the numbers are indices of the sites.

Standard image

It can be verified that $[S,[S,T]]=-8\lambda^2 (Y-T)$ holds. Therefore one can still use the FGD in eq. (8). The critical transverse field $\lambda_c$ for 2D TIM is found to be $2\text{--}4$  [5054], therefore we choose $\lambda = 1.5, 3, 5$ as examples. When t = 1, $n_{\min}$ required when the error satisfies $\varepsilon \lt 0.1\%$ are listed in table 2. When $\lambda =5,t=1$ , the error decays for the decompositions are shown in fig. 3. Similar to the case of 1D TIM, the FGD can significantly reduce the number of gate operations.

Table 2:. The $n_{\min}$ required to satisfy $\varepsilon \lt 0.1\%$ for the Ising chain when t = 1.

λ  TDSTDOD7TDFGD
1.5 $n_{\min}$ 378812112510937
  $\varepsilon(\%)$ 0.100.100.0940.0880.099
3 $n_{\min}$ 404218719715755
  $\varepsilon(\%)$ 0.100.0980.0980.0890.091
5 $n_{\min}$ 456424325721179
  $\varepsilon(\%)$ 0.0990.100.100.0960.081
Fig. 3:

Fig. 3:  ε as functions of n for 2D TIM when $t=1,\lambda = 5$ .

Standard image

Ising gauge model

The $D=d+1$ dimensional Ising gauge model, i.e., $\mathbb{Z}_2$ lattice gauge model [55] at finite temperature can be dual to a d-dimension Ising gauge model in a transverse field at zero temperature [49,56], also known as one of the quantum link models [57]. The Hamiltonian can be written as

Equation (10)

where l is an index of a link, and "□ " denotes a plaquette. We consider the case of a stripe containing two plaquettes with periodic boundary condition on major direction as shown in fig. 4. The Hamiltonian is a $64\times 64$ matrix with

Equation (11)

Fig. 4:

Fig. 4: The Ising gauge model with two plaquettes, the numbers are indices of the links.

Standard image

The FGD is

Equation (12)

In the infinite volume, the 2D Ising gauge model in transverse field can be dual to 2D TIM or $D=2+1$ Ising model at finite temperature [49,58]. The $1/k$ corresponds to λ in eq. (5). The $\lambda_c$ for 2D TIM is $2\text{--}4$ , indicating a phase transition at $k_c= 0.25\text{--}0.5$ , which is also a topological phase transition [59]. Recently, the 2D Ising gauge model is studied by quantum simulation on a $3\times 3$ lattice with periodic boundary condition and kc is found to be 0.380 [60]. Therefore we use $k =0.1,0.3,1$ as examples. When t = 1, the $n_{\min}$ needed when $\varepsilon \lt 0.1\%$ are shown in table 3. For the case of the largest k, the error decays are shown in fig. 5. Again, the FGD can significantly reduce the number of gate operations.

Table 3:. The $n_{\min}$ required to satisfy $\varepsilon \lt 0.1\%$ for the Ising gauge model when t = 1.

k  TDSTDOD7TDFGD
0.1 $n_{\min}$ 37615131913
  $\varepsilon(\%)$ 0.100.0920.0740.0350.036
0.3 $n_{\min}$ 101229253119
  $\varepsilon(\%)$ 0.100.0940.0870.0670.022
1.0 $n_{\min}$ 159063536725
  $\varepsilon(\%)$ 0.100.0940.100.0900.10
Fig. 5:

Fig. 5:  ε as functions of n for the Ising gauge model when $t=1, k=1$ .

Standard image

Summary of the applications

It can be shown that the FGD is feasible for many models. For example, the TIM with periodic condition, and the 2D Ising gauge model with two plaquettes. For both cases, the FGD surpasses 7TD, OD, STD and TD. When t = 1, the $n_{\min}$ of FGD when $\varepsilon \lt 0.1\%$ can reach up to about one third of those of TD and high-order TDs. In the case of the Ising gauge model with $t=0,k=0.1$ , although $n_{\min}$ is the same for OD and FGD, the ε of FGD is smaller than half of the ε of OD. From the decays of ε, one can see that the optimization mentioned above can be even better when t is larger, or when the required ε is smaller.

Conclusion

Quantum simulation is an extremely promising research direction extensively studied recently due to the rapid development of quantum computing technology. Reducing the number of decomposition steps in the product formulas paves a way to practical quantum simulation. While the TD and high-order TDs are widely applied in quantum simulations, we show that significant optimization can be achieved by the force-gradient integrator used in lattice QCD. We use the TIM and the Ising gauge model as examples, the FGD can reduce the number of gate operations up to about a third of those using high-order TDs. In addition, it can be seen that if one wishes to use FGD, the $\exp (2\textrm{i}\tau S/3 +\textrm{i} \tau^3 [S,[S,T]]/72 )$ term needs to be processed, which is sometimes not easy to handle. Nevertheless, FGD shows great advantages in quantum simulations and deserves further studies for various of models.

Acknowledgments

This work was partially supported by the National Natural Science Foundation of China under Grant No. 12047570.

Please wait… references are loading.
10.1209/0295-5075/135/10004