Abstract
Using counterdiabatic (CD) driving—aiming at suppression of diabatic transition—in digitized adiabatic evolution has garnered immense interest in quantum protocols and algorithms. However, improving the approximate CD terms with a nested commutator ansatz is a challenging task. In this work, we propose a technique of finding optimal coefficients of the CD terms using a variational quantum circuit. By classical optimization routines, the parameters of this circuit are optimized to provide the coefficients corresponding to the CD terms. Then their improved performance is exemplified in Greenberger–Horne–Zeilinger state preparation on the nearest-neighbour Ising model. Finally, we also show the advantage over the usual quantum approximation optimization algorithm, in terms of fidelity with bounded time.
This article is part of the theme issue ‘Shortcuts to adiabaticity: theoretical, experimental and interdisciplinary perspectives’.
1. Introduction
Quantum computing has been of significant interest for a long time now due to the successes in the fields of machine learning [1,2], quantum simulation [3], optimization [4–6] and others. Especially, solving optimization problems with quantum computers as they are expected to outperform classical computers in the noisy intermediate-scale quantum (NISQ) era, see current review [7]. Among various methods [8–11], adiabatic quantum optimization (AQO) [12] is an effective method to tackle these problems. In AQO, the optimization problem is encoded into a problem Hamiltonian such that the ground state corresponds to the solution of the problem. Then, a simple Hamiltonian, whose ground state is easy to prepare, is taken and adiabatically evolved to the problem Hamiltonian. The adiabatic theorem guarantees that the problem Hamiltonian will be in the ground state with a high success probability. The problem with this is that adiabatic processes are slow, and becomes unfeasible. With the digitized adiabatic evolution [13], AQO can be reformulated into a gate model. However, the long time evolution requires lots of gates, which spoils the desired results due to the errors in the noisy quantum devices.
To circumvent this, shortcuts of adiabaticity (STA) was proposed, to implement fast adiabatic-like control protocols [14,15]. Since then, these have become powerful methods with applications in quantum information processing, and more generally quantum computing during the past decade. These methods include counterdiabatic (CD) driving [16,17], also known as transitionless quantum driving [18,19], fast-forward approach [20,21] and invariant-based inverse engineering [22,23]. Particularly, local CD driving and its variations have been used for many-body spin systems, e.g. to find the ground state [24–29]. Recently, the digitized counterdiabaticity for quantum computing has been proposed [30] in the context of quantum gates and circuits. It is found that the inclusion of CD interactions shallows the circuit depth significantly, when compared with previous digitized adiabatic computing [13]. The advantage of this method has been analysed in quantum annealing [31], quantum approximate optimization algorithm (QAOA) [32–35], and variational quantum eigensolver [36], two typical quantum-classical hybrid algorithms, intending to find the ground state of a target Hamiltonian. Apart from this, the implementation of these methods has been also reported in various scenarios, such as factorization [37] and portfolio optimization [38]. Moreover, a wide range of optimization problems has been further tackled using the drastic advantage, illuminating that CD driving serves as a non-stoquastic catalyst in the acceleration of quantum adiabatic algorithms [39].
With the advantages of the counterdiabaticity, a challenging task is to find the efficient CD terms, see [40–42]. Instead of finding CD terms using spectral knowledge, adiabatic gauge potentials [43] have been proposed to achieve the approximate CD terms recently, particularly for many-body spin systems [25,26,29]. The approximate CD terms can be easily found by using the variational principle [25] and Floquet engineering [26], while diagonalizing the Hamiltonian for a many-body spin system is difficult or a time-consuming task to obtain the exact CD term. Along with this, an approximate form of the CD term is pre-selected, and the coefficients are determined by minimizing the action or the nested commutator (NC). However, more high-fidelity control of larger spin systems requires a higher-order NC of CD terms, beyond the two-body interaction [30], which implies the problematic implementation with more CNOT gates. Actually, the optimal (local) CD driving can be achieved by hybridizing the technique of STA through optimal control theory [40,42] and reinforcement learning [41].
In this work, we propose an alternative way to find efficient counterdiabaticity by using a variational quantum circuit, where quantum circuit and classical optimizer are applied to optimize parameters to minimize a cost function. In detail, we first replace the CD coefficients with free optimizable parameters and then use a classical optimizer to optimize them accordingly. The concrete example of Greenberger–Horne–Zeilinger (GHZ) state preparation on the nearest-neighbour Ising model is further considered, see figure 1, to demonstrate that the enhanced performance of optimal CD terms, as compared with digitized adiabatic evolution and QAOA.
Figure 1. (a) Schematic diagram for the digitized adiabatic algorithm assisted by CD term and (b) QAOA used here for the GHZ state preparation in the nearest-neighbour Ising model. (Online version in colour.)
The article is organized as follows. In §2, we explain the CD driving and classical optimizer in detail. In §3, we investigate these methods with the nearest-neighbour Ising model and GHZ state preparation. Section 4 is devoted to the comparison with usual QAOA. Finally, the article ends with a brief conclusion in §5.
2. Counterdiabatic driving and optimization
The use of variational quantum circuits has bloomed a lot since most of them are hybrid quantum-classical algorithms that are considered one of the most crucial applications of the quantum computing paradigm in the NISQ era [44]. It consists of two parts, the quantum part that includes a circuit with variational parameters, and the classical part that includes iterative routines to optimize these parameters. Here, we will apply this method to counterdiabaticity, aiming to minimize a given cost function by tuning the free parameters of the quantum circuit to achieve optimal CD terms.
In AQO, the trivial Hamiltonian is prepared in its ground state and adiabatically evolved to the problem Hamiltonian . This can be encoded by the following Hamiltonian:
Based on the approximate CD term (NC = 1), we use a variational circuit to find optimal CD parameters by the quantum-classical hybrid algorithm. The circuit can be firstly constructed with gates to digitize the time evolution of Hamiltonian reads
On the other hand, for the classical optimization routine in quantum-classical hybrid algorithms, a variety of optimization algorithms have been proposed but a gradient-based systematic optimization of parameters is crucial. For that purpose, we use simultaneous perturbation stochastic approximation (SPSA), which is an algorithmic method for optimizing systems with multiple unknown parameters. It is appropriately suited to large-scale population models, adaptive modelling and simulation optimization. The applications of SPSA are widely implemented in many problems, such as neural network training [45], statistical model parameter estimation and fault exposure [46], adaptive control of dynamic systems [47,48], and using QAOA with the SPSA algorithm to solve the Max-cut problem [49].
In general, there exist many classical optimizers, such as the adaptive moment estimation algorithm, constrained optimization by linear approximations, with their pros and cons. In contrast to others, SPSA uses only the objective function measurements of the objective function. So SPSA is considered to be efficient in high-dimensional problems in terms of providing a good solution for a relatively small number of measurements. More specifically, a differentiable cost function in the SPSA algorithm is considered, and is a L-dimensional vector. The optimization problem can be translated into finding a new at which . SPSA starts with an initial parameter vector , yielding
3. Nearest-neighbour Ising model and Greenberger–Horne–Zeilinge state preparation
As a heuristic study, we consider the spin 1/2 Ising chain with nearest-neighbour interaction, which is of importance for many-body systems and quantum optimization problems [7,30]. The Hamiltonian of the nearest-neighbour Ising model can be written as
To encode the GHZ state preparation into the adiabatic quantum computing (see equation (2.1)), we write down the time-dependent Hamiltonian,
with . By minimizing the action , where , we finally achieve
As a consequence, the output state is given by , where the unitary operator (2.5) is
In figure 1a, we show the form of the quantum circuit, where the parameters are either or optimized using SPSA. We will implement the results on an ideal quantum simulator based on Qiskit [52], where the number of iterations , and are set.
Figure 2 displays the density matrix representation at for the GHZ state preparation in a 5-qubit system with the approximate and optimal CD terms based on NC (). Obviously, it is exemplified in figure 2 that the results with both types of CD terms adapt to the target GHZ state for . However, figure 3 further shows the optimized CD terms by SPSA have the better performance, where the results with approximate and optimal CD terms based on NC () are compared with the normal adiabatic evolution. In detail, without CD driving, the final fidelity of the prepared GHZ states in a 5-qubit system is quite low, due to the adiabatic error when the total time is very short, and does not fulfil the adiabatic criteria. However, the approximate CD terms are not valid at all for all the cases of large spin size and interaction systems [30]. With the assistance of the SPSA optimizer, the optimal CD terms improve the fidelity. So our method provides a simple but efficient approach for improving the fidelity of entangled GHZ state preparation by keeping the structure of two-body interaction. Of course, one can also extend this to higher-order NCs, with the many-body interaction involved. Also, other methods including genetic algorithms [53] and reinforcement learning [41] are interesting to incorporate for further exploration with richer structures of CD terms.
Figure 2. Density matrix representation for 5-qubit GHZ state preparation (at ) using the approximate (a,b) and optimal (c,d) CD terms, where the approximate CD terms are obtained NC (), and CD is accordingly optimized by SPSA with the parameters , , and . Panels (a,c) and (b,d) show real and imaginary parts, respectively. These results for the 5-qubit system are calculated on an ideal quantum simulator. (Online version in colour.) Figure 3. Fidelity of the prepared GHZ state in Ising spin systems with various sizes ranging from 2 to 10 qubits, where the approximate CD NC () and its optimization by SPSA are included, and for completeness, the case without CD terms is also compared. The parameters: , , and are implemented on the ideal quantum simulator Qiskit. (Online version in colour.)
Meanwhile, figure 4 illustrates the coefficients of the digitized CD terms, and , in the quantum circuit for the 5-qubit system, where their intensities are compared. As is apparent, the fidelity is improved by the optimized CD terms, using the SPSA algorithm, at the cost of the intensity of CD driving, proportional to the energy. Finally, in figure 5, we check the fidelity of the entangled GHZ state preparation with various interactions , where the rest parameters and are considered in the Ising model with five qubits. It is concluded that the results of optimal CD terms outperform those of the approximate one, with the same NC ().
Figure 4. The coefficients of digitized CD terms for the nearest-neighbour Ising model with five qubits, where (red line) is obtained by the optimal CD terms in equation (3.8) and (blue line) is obtained from equation (3.6), the approximate CD term with NC (). (Online version in colour.) Figure 5. Fidelity of the Ising model with are compared for the approximate and optimal CD terms, where blue and grey present the results from approximate (NC ()), and corresponding optimized CD terms. are considered in the 5-qubit system, with , , , , , , . Results were computed on the ideal quantum simulator Qiskit. (Online version in colour.)
4. Comparison with the quantum approximate optimization algorithm
Typically, QAOA is a quantum algorithm that attempts to solve such combinatorial problems [54–56]. QAOA falls under the category of VQAs where -layers of two unitaries and are applied iteratively to an initial state , in the computational basis where is the system size. Thus the final state is given by
We come up with a perspective of QAOA from quantum control by having an eye on equation (4.1). Indeed, QAOA represents the variational quantum control task that alternatively evolves the problem Hamiltonian and the mixing Hamiltonian for the operation time of and , respectively. Thus, it shares the same expression in equation (3.2) for our problem, where is no longer continuous, but a binary value controller instead, reproducing a bang-bang control toward a target state. In this way, we reckon that it is necessary to compare our protocol, a digitized quantum annealing with counterdiabaticity, with QAOA by bounding the operation time, as a critical energetic quantity that affects the performances of bang-bang control and quantum annealing.
In the following, we compare the performance of QAOA ( and ) with the optimized CD evolution in the respect of fidelity with a bounded time of the algorithms. We define the time to compare the performance through preparing the GHZ state for and , where the target state . Also, we apply the same SPSA as a classical optimizer while performing QAOA, see figure 1b.
In table 1, we have compared the fidelities in the same time with the optimized CD driving, which shows the fidelities of QAOA are lower than the results from optimized CD terms at . We have to emphasize that the shorter time is of significance to prevent the state evolution from decoherence, and gate errors. As expected, the fidelities decrease as the system size increases. Compared with hybrid quantum-classical algorithms like QAOA, the optimal CD works better with bounded time, where the parameters for SPSA are the same, , and . In fact, QAOA can be also accelerated by adding the CD terms, , as a richer ansatz in a variational circuit [32,33], which is beyond the scope of our paper.
qubit number | optimal CD | QAOA (p = 1) | QAOA (p = 2) |
---|---|---|---|
4 | 0.77 | 0.46 | 0.62 |
6 | 0.49 | 0.25 | 0.37 |
8 | 0.30 | 0.10 | 0.19 |
10 | 0.18 | 0.04 | 0.10 |
Last but not least, we briefly analyse the errors in our protocols, resulting in the state preparation’s infidelity. The adiabatic error, i.e. excitation induced by the non-adiabatic process, is not cancelled perfectly, even if we have introduced optimized CD terms. It can be reduced by prolonging the operation time, or equivalently scaling up the mixing and problem Hamiltonian. The Trotter error is also introduced by the first-order Suzuki–Trotter decomposition [57] in our digital quantum computing paradigm. We realize that the Trotter error increases since either two of the mixing Hamiltonian, problem Hamiltonian, and the CD terms do not commute. However, the Trotter error is still on the scale of by extending the Baker–Campbell–Hausdorff formula to the case of three components as
5. Conclusion
In summary, we have implemented a variational quantum circuit to find optimal coefficients of CD driving, in order to speed up digitized adiabatic quantum computing. By suppressing non-adiabatic transitions but keeping high-fidelity, we have exemplified this method for the GHZ entangled state preparation in the nearest-neighbour Ising model and within a short time. The results have demonstrated that our method is superior to the approximate CD term, based on NC, by minimizing the action. With the first-order NC (), the coefficients of two-body interaction have been optimized by SPSA, a classical optimizer with variational quantum circuits. In addition, our method is still better than the usual QAOA in terms of fidelity with bounded time, with reminiscences of the comparison between shortcuts to adiabaticity and optimal control theory with respect to robustness and operation time, etc. [59]. Of course, by using a richer ansatz of CD terms (e.g. with N-body interaction), one can also further increase the fidelity in quantum circuits, but the physical implementation becomes tough with the state-of-the-art architecture of NISQ devices. Moreover, other techniques of optimization, such as reinforcement learning [32], greedy and genetic algorithms [53] are worthy of further exploration and comparison. Finally, it would be interesting to apply this method for various complex systems [7], e.g. the Ising antiferromagnet model and transverse-field Ising model, solving the combinatorial optimization problems, and addressing the fundamental and relevant issues on the circuit complexity, gate error mitigation, Trotter and adiabatic errors.
Data accessibility
This article has no additional data.
Authors' contributions
D.S.: formal analysis, investigation, writing—original draft, writing—review and editing; P.C.: formal analysis, investigation, writing—original draft; Z.-H.X.: investigation, writing—original draft, writing—review and editing; X.C.: conceptualization, investigation, methodology, project administration, supervision, writing—review and editing.
All authors gave final approval for publication and agreed to be held accountable for the work performed therein.
Conflict of interest declaration
The authors declare no competing interests.
Funding
This work was supported by NSFC (grant no. 12075145), STCSM (grants no. 2019SHZDZX01-ZX04), EU FET Open Grant EPIQUS (899368), QUANTEK project (KK-2021/00070), the Basque Government through Grant No. IT1470-22, the project grant PID2021-126273NB-I00 funded by MCIN/AEI/10.13039/501100011033 and by “ERDF A way of making Europe” and “ERDF Invest in your Future” and the Ramón y Cajal program (RYC-2017-22482).
Acknowledgements
We acknowledge the discussions with Yongcheng Ding and N. N. Hegade.