This paper was converted on www.awesomepapers.org from LaTeX by an anonymous user.
Want to know more? Visit the Converter page.

Shortcuts to Quantum Approximate Optimization Algorithm

Yahui Chai [email protected] Origin Quantum Computing Company Limited, Hefei 230026, China    Yong-Jian Han CAS Key Laboratory of Quantum Information (University of Science and Technology of China), Hefei 230026, China    Yu-Chun Wu CAS Key Laboratory of Quantum Information (University of Science and Technology of China), Hefei 230026, China    Ye Li Origin Quantum Computing Company Limited, Hefei 230026, China    Menghan Dou Origin Quantum Computing Company Limited, Hefei 230026, China    Guo-Ping Guo [email protected] Origin Quantum Computing Company Limited, Hefei 230026, China CAS Key Laboratory of Quantum Information (University of Science and Technology of China), Hefei 230026, China
Abstract

The Quantum Approximate Optimization Algorithm (QAOA) is a quantum-classical hybrid algorithm intending to find the ground state of a target Hamiltonian. Theoretically, QAOA can obtain the approximate solution if the quantum circuit is deep enough. Actually, the performance of QAOA decreases practically if the quantum circuit is deep since near-term devices are not noise-free and the errors caused by noise accumulate as the quantum circuit increases. In order to reduce the depth of quantum circuits, we propose a new ansatz dubbed as “Shortcuts to QAOA” (S-QAOA), S-QAOA provides shortcuts to the ground state of target Hamiltonian by including more two-body interactions and releasing the parameter freedoms. To be specific, besides the existing ZZ interaction in the QAOA ansatz, other two-body interactions are introduced in the S-QAOA ansatz such that the approximate solutions could be obtained with smaller circuit depth. Considering the MaxCut problem and Sherrington-Kirkpatrick (SK) model, numerically computation shows the YY interaction has the best performance. The reason for this might arise from the counterdiabatic effect generated by YY interaction. On top of this, we release the freedom of parameters of two-body interactions, which a priori do not necessarily have to be fully identical, and numerical results show that it is worth paying the extra cost of having more parameter freedom since one has a greater improvement on success rate.

I Introduction

In the noisy intermediate-scale quantum (NISQ) era [1], the number of reliable quantum operations is limited by the quantum errors which contains quantum decoherence, rotation error, and so on. Thus people are interested in the quantum-classical hybrid algorithm whose quantum circuit depth is decreased with the help of classical optimizers, like the Quantum Approximate Optimization Algorithm (QAOA) [2] which is expected to get an approximate solution for combinatorial optimization problems. In this hybrid algorithm, the quantum state is prepared by a quantum computer, the parameters in the quantum circuit are optimized by a classical optimizer to find an evolution path that needs less circuit depth. Furthermore, QAOA is expected to have a better performance than quantum adiabatic algorithms (QAA) and get a quantum advantage using near-term devices  [3, 4]. However, the performance of QAOA is limited by the noise of the near-term devices [5], and Google’s experiment for QAOA with their Sycamore superconducting qubit quantum processor shows that errors overwhelm the theoretical performance increase at larger layers [6]. Therefore executing QAOA on near-term quantum computers is a challenging task. It is important to reduce the circuit depth of QAOA to make it achievable for near-term devices.

QAOA can be regarded as a digitized and variational version of QAA. QAA starts with a simple-to-prepared ground state of an initial Hamiltonian, and the adiabatic theorem guarantees that the ground state of the final Hamiltonian can be obtained if the time-dependent Hamiltonian varies slowly. The adiabatic condition requires that the running time of QAA scales as TO(1/Δmin2)T\sim O(1/{\Delta_{min}}^{2}), Δmin\Delta_{min} is the minimal spectral gap [7] of the quantum system during the evolution, thus many problems are hard to optimize using QAA because of the overlong annealing time. Besides, the digitization of QAA may lead to a deep quantum circuit to minimize the trotter error [8, 9]. QAOA is expected to overcome these problems by optimizing parameters (including evolution path and duration for every digitized step) using a classical optimizer. The optimized parameters of QAOA are related to a fast evolution path, so QAOA is expected to break through the limits of the adiabatic condition [3].

Shortcuts to adiabaticity (STA) [10, 11] is a class of methods to accelerate the quantum adiabatic process, counterdiabatic (CD) driving [12, 13, 14] is a technique of STA to reduce the finite-speed diabatic effect by adding counter terms to the time-dependent Hamiltonian. The CD driving Hamiltonian has a better performance and reduces the evolution time compared to adiabatic evolution [15]. Besides, Ref. [16] proposes a superadiabatic route to implement universal quantum computation by using CD driving, and energy cost of STA via CD driving is studied at Ref. [16, 17]. In addition, energy cost optimization of CD driving, through the correct choice of the counterdiabatic Hamiltonian is studied in Ref. [18]. Recently, Ref. [4] indicates QAOA is at least counterdiabatic and has a better performance than finite time adiabatic evolution. There is also an effort to add a conterdiabatic term to the ansatz of QAOA to reduce the quantum circuit depth [19, 20].

Our work focuses on the MaxCut problems and Sherrington-Kirkpatrick (SK) Model, both of them are NP-hard problems, and the QAOA is expected to have a quantum acceleration on these problems. In this work, we investigate the counterdiabatic effect of QAOA, and the simulation result implies that adding a two-gate term associate with the YY interaction to the quantum circuit will accelerate the optimization of QAOA. Besides, we release the QAOA parameter freedom of the two-body interactions (including ZZ interaction and YY interaction) to reduce the quantum circuit depth, eg. each two-body interaction has its independent parameter. The idea of extending the parameter degree is mentioned in 2017 [21] and they use random initial parameters of each ZZ interaction. In our case, firstly, we optimize the QAOA parameters to get an optimal global value, and then use the optimal parameters of QAOA as the initial parameters of each two-body term to do a further local optimization. The proposed algorithm uses the philosophy of STA, so we call it “Shortcuts to QAOA” (S-QAOA), and the simulated result shows that S-QAOA can get a good result with a shallower quantum circuit compared with QAOA.

II Problems and Quantum Algorithms

In this work, we focus on the MaxCut problem and SK model. The MaxCut problem is defined on a graph G(V,E)G(V,E), V={1,2,,n}V=\{1,2,\cdots,n\} is the set of vertices, and E={((i,j),wij)}E=\{\left((i,j),w_{ij}\right)\} is the set of edges where (i,j)(i,j) is a pair of connected vertices and wijw_{ij} is the weight of the edge (i,j)(i,j). We study two classes of graphs: the first class is unweighted 3-regular graphs (u3R) whose weights wijw_{ij} are a constant for the all edges, eg. wij=1,(i,j)Ew_{ij}=1,\forall(i,j)\in E; the second class is weighted 3-regular graphs (w3R) whose weights wijw_{ij} are uniform random numbers in range [0,1][0,1]. The target Hamiltonian of MaxCut problem is:

HC=(i,j)EwijIZiZj2.H_{C}=-\sum_{(i,j)\in E}w_{ij}\frac{I-Z_{i}Z_{j}}{2}. (1)

The SK model is defined on the complete graph and the coefficient wijw_{ij} is randomly chosen from the set {1,1}\{-1,1\}. The Hamiltonian of the SK model is :

HC=i<jwijZiZj.H_{C}=\sum_{i<j}w_{ij}Z_{i}Z_{j}. (2)

II.1 Quantum Adiabatic Algorithms

QAA is able to find the ground state of a target Hamiltonian if the annealing process is slow enough, and its feasibility is guaranteed by the adiabatic theorem. In QAA, a simple-to-prepared quantum state is chosen as the initial state, which usually is the uniform superposition over computational basis states: ψ(t=0)=|+n\psi(t=0)=|+\rangle^{\otimes n}, nn is the number of qubits of the quantum system. ψ(t=0)\psi(t=0) is the ground state of Hamiltonian HB=i=1nXiH_{B}=-\sum_{i=1}^{n}X_{i}. The time-dependent Hamiltonian of QAA is:

H(t)=(1λ(t))HB+λ(t)HC,\displaystyle H(t)=(1-\lambda(t))H_{B}+\lambda(t)H_{C}, (3)
0tT,λ(0)=0,λ(T)=1,\displaystyle 0\leq t\leq T,\lambda(0)=0,\lambda(T)=1,

where HCH_{C} represents the target Hamiltonian. The time evolved state driven by HH would be:

|ψ(T)=𝒯ei0T𝑑tH(t)|ψ(0),|\psi(T)\rangle=\mathcal{T}e^{-i\int_{0}^{T}dtH(t)}|\psi(0)\rangle, (4)

where =1\hbar=1 and 𝒯\mathcal{T} is the time-ordering operator. The approximate ground state of HCH_{C} can be obtained in the end t=Tt=T if the Hamiltonian HH varies adiabatically.

STA is able to suppress the finite-speed diabatic excitations by adding the CD driving term to the Hamiltonian HH [14], this CD term is theoretically known and given by adiabatic gauge potential (AGP) AλA_{\lambda} [22]:

HCD(t)=H+λ˙Aλ.H_{CD}(t)=H+\dot{\lambda}A_{\lambda}. (5)

However, it requires the knowledge of the spectral properties of the instantaneous Hamiltonian to get the AGP, and the exact AGP is typically nonlocal, which makes the experimental implementation difficult [23]. The exact AGP can be approximated by a local parameterized gauge potential Aλ(𝜶)A_{\lambda}(\bm{\alpha}), and the requirement of Aλ(𝜶)A_{\lambda}(\bm{\alpha}) is to minimize the action S(Aλ)S(A_{\lambda}):

Min𝜶\displaystyle\mathop{Min}\limits_{\bm{\alpha}} :S(Aλ(𝜶))=Tr[G2(Aλ)],\displaystyle:S\left(A_{\lambda}(\bm{\alpha})\right)=Tr\left[G^{2}(A_{\lambda})\right], (6)
G(Aλ)=λAλ+i[Aλ,H],\displaystyle G(A_{\lambda})=\partial_{\lambda}A_{\lambda}+i[A_{\lambda},H],

the coefficient 𝜶\bm{\alpha} can be determined variationally [24]. Furthermore, the approximate AGP can be systematically constructed by the nested commutators [25]:

Aλl(𝜶)=ik=1lαk(t)[H,[H,[H,2k1λH]]].A_{\lambda}^{l}(\bm{\alpha})=i\sum_{k=1}^{l}\alpha_{k}(t)\underbrace{[H,[H,\cdots[H,}_{2k-1}\partial_{\lambda}H]]]. (7)

The first order of the approximate AGP is the commutator of the initial Hamiltonian HBH_{B} and the target Hamiltonian HCH_{C}, so the counterdiabatic Hamiltonian becomes:

HCD1\displaystyle H_{CD}^{1} =H+λ˙Aλ1\displaystyle=H+\dot{\lambda}A_{\lambda}^{1} (8)
=(1λ(t))HB+λ(t)HC+iλ˙α1[HB,HC],\displaystyle=(1-\lambda(t))H_{B}+\lambda(t)H_{C}+i\dot{\lambda}\alpha_{1}[H_{B},H_{C}],

and it can be proven that the coefficient α1\alpha_{1} is negative [4]. In l=+l=+\infty limits, the CD driving terms Aλl(𝜶)A_{\lambda}^{l}(\bm{\alpha}) are able to compensate the diabatic excitations exactly, but it is necessary to just consider the first few orders of Aλl(𝜶)A_{\lambda}^{l}(\bm{\alpha}) to avoid the nonlocal operations.

II.2 Quantum Approximate Optimization Algorithm

The ansatz of QAOA consists of a series of digitized evolution, and the parameters of QAOA are optimized by a classical optimizer [2]:

|ψ(𝜷,𝜸)=eiβpHBeiγpHCeiβ1HBeiγ1HC|ψ(0).|\psi(\bm{\beta},\bm{\gamma})\rangle=e^{-i\beta_{p}H_{B}}e^{-i\gamma_{p}H_{C}}\cdots e^{-i\beta_{1}H_{B}}e^{-i\gamma_{1}H_{C}}|\psi(0)\rangle. (9)

The purpose of the classical optimization is to find the optimal parameters to minimize the expectation of the target Hamiltonian:

Min𝜷,𝜸\displaystyle\mathop{Min}\limits_{\bm{\beta},\bm{\gamma}} :E(𝜷,𝜸)=ψ(𝜷,𝜸)|HC|ψ(𝜷,𝜸),\displaystyle:E(\bm{\beta},\bm{\gamma})=\langle\psi(\bm{\beta},\bm{\gamma})|H_{C}|\psi(\bm{\beta},\bm{\gamma})\rangle, (10)
𝜷=(β1,,βp),𝜸=(γ1,,γp).\displaystyle\bm{\beta}=(\beta_{1},\cdots,\beta_{p}),\bm{\gamma}=(\gamma_{1},\cdots,\gamma_{p}).

If the layer pp of QAOA is large enough, the expectation EE will decrease during the optimization and converge to the target Hamiltonian ground state. The effective Hamiltonian of QAOA can be constructed by the second order Baker-Campbell-Hausdorff (BCH) expansion [4]:

eiβkHBeiγkHCeiHeff, 1kp,\displaystyle e^{-i\beta_{k}H_{B}}e^{-i\gamma_{k}H_{C}}\sim e^{-iH_{eff}},\ 1\leq k\leq p, (11)
Heff=γkHC+βkHBiβkγk2[HB,HC]\displaystyle H_{eff}=\gamma_{k}H_{C}+\beta_{k}H_{B}-\frac{i\beta_{k}\gamma_{k}}{2}[H_{B},H_{C}]

Compare the result of Eq.8 and Eq.11, we can find that the effective Hamiltonian HeffH_{eff} of QAOA has a first-order CD driving term, and the coefficient of this term is also negative. So the evolution of QAOA will include some counterdiabatic effects to compensate the diabatic excitation.

II.3 Shortcuts to QAOA

Inspired by the technique of STA, we consider the counterdiabatic effect of QAOA by introducing more two-body interactions: HM=(i,j)EPiQj+QiPj2,PQ{YZ,YY,XX,XZ,XY}H_{M}=\sum\limits_{(i,j)\in E}\frac{P_{i}Q_{j}+Q_{i}P_{j}}{2},PQ\in\{YZ,YY,XX,XZ,XY\}. The ansatz and the effective Hamiltonian become:

eiαkHMeiβkHBeiγkHCeiHeff, 1kp,\displaystyle e^{-i\alpha_{k}H_{M}}e^{-i\beta_{k}H_{B}}e^{-i\gamma_{k}H_{C}}\sim e^{-iH_{eff}},\ 1\leq k\leq p, (12)
Heff=αHM+βHB+γHC\displaystyle H_{eff}=\alpha H_{M}+\beta H_{B}+\gamma H_{C}
iβγ2[HB,HC]iαβ2[HM,HB]iαγ2[HM,HC],\displaystyle-i\frac{\beta\gamma}{2}[H_{B},H_{C}]-i\frac{\alpha\beta}{2}[H_{M},H_{B}]-i\frac{\alpha\gamma}{2}[H_{M},H_{C}],

where αk,k=1,,p\alpha_{k},k=1,\cdots,p are the variational parameters for HMH_{M}. The effective Hamiltonian in Eq.12 might have more CD terms and would accelerate the process of quantum optimization. Introducing more interactions led to a deeper quantum circuit, this problem can be partially solved by a compact implementation of the HMH_{M} and HCH_{C} (Eq.13), which does not need extra SWAP gates if using a local connectivity superconducting quantum computer. Furthermore, the combination of YY/XX and ZZ interaction can be realized using two CNOT gates and some single-qubit gates, which has the same number of CNOT gates as the way only implementing ZZ interaction (the details of this part will be discussed in Sec.IV). In this case, the circuit depth of S-QAOA and QAOA can be regarded as the same, because the errors caused by CNOT gates are more serious than single-qubit gates.

Another difference between S-QAOA and QAOA is the optimization of the parameters: in S-QAOA, after the optimization of QAOA parameters, the parameter freedoms of two-body interactions are released and a further optimization is performed. More parameters will improve the expressivity of the quantum circuit and can get a better result than QAOA in the same quantum layer. The procedure of S-QAOA is as follows:

1. Optimize the QAOA parameters using INTERP strategy [3], get the optimal parameters (𝜷~,𝜸~)p(\tilde{\bm{\beta}},\tilde{\bm{\gamma}})_{p} for layer pp.

2. Release the parameter freedom of ZZZZ interaction, and introduce an extra two-body interaction Mij=PiQj+QiPj2,PQ{YZ,YY,XX,XZ,XY}M_{ij}=\frac{P_{i}Q_{j}+Q_{i}P_{j}}{2},PQ\in\{YZ,YY,XX,XZ,XY\}, followed by each ZZZZ interaction. Operation of each layer k[1,p]k\in[1,p] of S-QAOA is:

eiβkinXieiγkijwijZiZj\displaystyle e^{i\beta_{k}\sum\limits_{i}^{n}X_{i}}e^{-i\gamma_{k}\sum\limits_{ij}w_{ij}Z_{i}Z_{j}}\rightarrow (13)
eiβkinXiij{eiγkijwijZiZjeiαkγkijwijMij}.\displaystyle e^{i\beta_{k}\sum\limits_{i}^{n}X_{i}}\prod\limits_{ij}\{e^{-i\gamma^{ij}_{k}w_{ij}Z_{i}Z_{j}}e^{-i\alpha_{k}\gamma^{ij}_{k}w_{ij}M_{ij}}\}.

The initial parameters of S-QAOA are: βk=β~k,γkij=γ~k,αk=0\beta_{k}=\tilde{\beta}_{k},\gamma_{k}^{ij}=\tilde{\gamma}_{k},\alpha_{k}=0. The strength of MijM_{ij} interaction should be positively related to that of ZiZjZ_{i}Z_{j} interaction, so the parameter γij\gamma_{ij} is added to each MijM_{ij} interaction (This is the ansatz of S-QAOA for SK model, and it is the same for MaxCut problem except for a coeffecient 12\frac{1}{2}. For simplicity, we will only show the ansatz for SK model in the following.)

3. Use the finite-difference method to calculate the gradients of parameters ({γkij},βk,αk)(\{\gamma^{ij}_{k}\},\beta_{k},\alpha_{k}):

g(θ)=E(θ+ϵ)E(θ)ϵ,\displaystyle g(\theta)=\frac{E(\theta+\epsilon)-E(\theta)}{\epsilon}, (14)
θ({γkij},βk,αk),k=1,,p,\displaystyle\forall\theta\in(\{\gamma^{ij}_{k}\},\beta_{k},\alpha_{k}),k=1,\cdots,p,

ϵ\epsilon is a small constant. Set a threshold δ1\delta_{1} and if |g(θ)|>δ1|g(\theta)|>\delta_{1}, add θ\theta to set AA.

4. Optimize the parameters in set AA until convergent, if the decrease of energy is smaller than a threshold δ2\delta_{2} after the optimization, exit; else, update the optimized parameters and return to step3.

III Simulation Result

We study the u3R and w3R MaxCut problem on 14-vertex graphs, and SK model on 6-vertex graphs. In each case, the results are averaged on 20 random graphs. There are three ansatzes being studied: QAOA; only releasing the parameter freedom of ZZ interaction (This ansatz only contains ZZ interaction, and for simplicity, we call it ‘ZZ technique’ below); adding an extra two-body interaction and releasing the freedom of parameters (S-QAOA). The simulation result implies that the third ansatz has the best performance in all cases, and the suitable extra two-gate term is able to accelerate the optimization process significantly. A comprehensive study of the optimal type of extra two-gate term in S-QAOA can be found in Fig.8, which shows the performance and the comparison of all the possible extra two-gate types: Mij=PiQj+QiPj2,PQ{YZ,YY,XX,XZ,XY}M_{ij}=\frac{P_{i}Q_{j}+Q_{i}P_{j}}{2},PQ\in\{YZ,YY,XX,XZ,XY\}. In general, YYYY interaction has the best performance, and it is included in S-QAOA ansatz. Thus the operation of each layer k[1,p]k\in[1,p] of S-QAOA is:

eiβkinXiij{eiγkijwijZiZjeiαkγkijwijYiYj}.e^{i\beta_{k}\sum\limits_{i}^{n}X_{i}}\prod_{ij}\{e^{-i\gamma^{ij}_{k}w_{ij}Z_{i}Z_{j}}e^{-i\alpha_{k}\gamma^{ij}_{k}w_{ij}Y_{i}Y_{j}}\}. (15)
Refer to caption
Figure 1: Comparison of the performance of QAOA, ZZZZ technique and S-QAOA for MaxCut problem on 14-vertex u3R graphs. (a)(a)The fractional error of the results obtained by these algorithms, the definition of the fractional error is : r=1EEoptr=1-\frac{E}{E_{opt}}, EoptE_{opt} is the theoretical optimal value. (b)(b)The fidelity obtained by these algorithms, the fidelity represents the possibility of the optimal solutions in the final state. Label ‘ZZ’ represents the ansatz which only releases the freedom of parameters (ZZ technique). Label ‘YY’ represents the S-QAOA ansatz.

The results of u3R MaxCut problem are shown in Fig.1. Obviously, only releasing the freedom of parameters of the existing ZZZZ interaction will produce a better result in the same layer than QAOA. On top of this, adding the YYYY interaction will improve the performance further, especially at the low layer where the performance of QAOA is not so good. When the quantum layer pp increases, the difference between the three ansatz is smaller, this is due to that the evolution time is large enough for QAOA if the quantum layer is large and there is little space for improvement. Fig.2 demonstrate the simulation results of w3R graphs, and the superiority of S-QAOA is more obvious in this case, the average fidelity is improved significantly even at p=10p=10. The MaxCut problem on w3R graphs is more difficult than u3R graphs, since the energy gap of the MaxCut Hamiltonian on w3R graph is smaller than that of u3R graph, and it needs a longer evolution time to satisfy the adiabatic condition. The result shows the potential of S-QAOA to solve the problems which are difficult for QAA and QAOA.

SK model is defined on the complete graph, it is challenging to implement SK model on a NISQ device which has a limited qubit connectivity. Because of the all-to-all interaction of SK model, all the nodes can be entangled together at p=1p=1, and there are sufficient parameters to optimize if the parameters of ZZ interaction are independent. So that a pretty good result can be obtained at p=1p=1 if only releasing the parameter freedom (Fig.3). Furthermore, if a YYYY interaction is added to the ansatz, the fidelity is obviously improved and reaches about 80%80\% at p=1p=1. S-QAOA introduces only one extra parameter compared with the ZZ technique, and the performance of S-QAOA is significantly better than the latter at p=1p=1. The significant improvement produced by YYYY interaction confirms its effects on countering the diabatic excitations and accelerating the process of quantum optimization. The difference between S-QAOA and ZZZZ technique becomes smaller and smaller when the quantum layer pp is increased, and this is due to that the parameter freedoms of ZZZZ technique are enough for the optimization at large layer pp, and there is not much space for S-QAOA to improve.

Refer to caption
Figure 2: Comparison of (a) the fractional error and (b) the fidelity of QAOA , ZZ technique and S-QAOA for MaxCut problem on 14-vertex w3R graphs. The performance of S-QAOA is obviously better than QAOA at the same layer. The fidelity of S-QAOA in p=4,5p=4,5 is rough twice as much as that of QAOA. Moreover, if the quantum layer pp is increased, S-QAOA is still able to improve the fidelity of the result. For example, S-QAOA gets a 38%38\% improvement of the fidelity over QAOA at p=10p=10.
Refer to caption
Figure 3: Comparison of (a) the fractional error and (b) the fidelity of QAOA, ZZ technique and S-QAOA for 6-vertex SK model. ZZZZ technique can significantly decrease the fractional error and improve the fidelity at low layers, and the result can be improved further by using S-QAOA with a few additional parameters.

S-QAOA has a better performance in all cases we study, e.g. for a specific quantum layer, Rp=pS/pQ>1R_{p}=p_{S}/p_{Q}>1, pS(pQ)p_{S}(p_{Q}) is the possibility of the optimal solution got by S-QAOA(QAOA). S-QAOA does a further optimization and has more parameters compared with QAOA, so the number of function evaluations of S-QAOA is more than that of QAOA, e.g. Rf=fS/fQ>1R_{f}=f_{S}/f_{Q}>1, fS(fQ)f_{S}(f_{Q}) is the cumulative number of function evaluations of S-QAOA(QAOA), which will faithfully reflect the total cost of the algorithm. More specifically, fS=fQ+fG+fOf_{S}=f_{Q}+f_{G}+f_{O}, where fGf_{G} is the number of function evaluations for calculating the gradients of parameters, and fOf_{O} is the number of function evaluations for further optimizations in S-QAOA. It is necessary to consider whether it is cost-effective to do these extra optimizations. We show the ratio of RfR_{f} and RpR_{p}: Rfp=Rf/RpR_{fp}=R_{f}/R_{p} in Fig.4, and Rfp<1R_{fp}<1 represents that it is deserved to do the extra optimizations of S-QAOA to produce a higher improvement of fidelity. It is clearly that the ratio Rfp<1R_{fp}<1 if p4p\leq 4 for almost cases. If p increases, QAOA can produce quite high fidelity for SK model and u3R MaxCut problem. There is little space to improve for S-QAOA, so the ratio RfpR_{fp} of SK model and u3R MaxCut problem approach to 1 or even larger than 1 for large p. For w3R MaxCut problem, the fidelity of QAOA is far away from 1, so S-QAOA can improve the fidelity effectively with some further optimizations. In all, S-QAOA is an effective way to improve the result of QAOA, especially in case QAOA has limited performance.

Refer to caption
Figure 4: The ratio of function evaluations and fidelity for u3R, w3R MaxCut problems and SK model. We include 20 random instances for each problem. There are some unusual data in w3R MaxCut case, and the reason is that the cost function of S-QAOA is the expectation of the energy, so it is possible to get a lower fidelity with a better expectation value. These unusual points disappear when p increases.

IV Discussion

The quantum circuit of QAOA consists of the alternating implementation of eiγHCe^{-i\gamma H_{C}} and eiβHBe^{-i\beta H_{B}}, the nest commutator of HBH_{B} and HCH_{C} is able to span the entire Lie algebra associated with the Hilbert space of the n-qubit system. QAOA can approximate any element of the entire unitary group U(2n)U(2^{n}) if a sufficient deep quantum circuit is applied [26, 27]. Based on the existing generator HBH_{B} and HCH_{C}, S-QAOA provides an extra generator associated with the two-body interaction to accelerate the process of approximating the desired unitary operation. The numerical result shows that the generator associated with the YY interaction has the best performance, and the quantum circuit depth is reduced significantly by including it in S-QAOA ansatz (Fig.8). The advantage of YY interaction might be explained by the connection of it and the CD driving terms (Eq.5). For MaxCut problem and SK model, the first order of Eq.5 is:

HCD1=iα1[HB,HC]\displaystyle H_{CD}^{1}=i\alpha_{1}[H_{B},H_{C}] (16)
=2α1(i,j)wij(ZiYj+YiZj).\displaystyle=-2\alpha_{1}\sum_{(i,j)}w_{ij}(Z_{i}Y_{j}+Y_{i}Z_{j}).

There is a little improvement when we add the above YZYZ term to the quantum circuit Eq.13(Fig.8). The limited improvement of YZYZ term is possibly due to that the effective Hamiltonian of QAOA contains the first order of CD driving terms (Eq.11). In order to introduce more counter terms to compensate the diabatic excitations, we consider the second order of CD driving terms(Eq.13):

HβHB+γHC,H\sim\beta H_{B}+\gamma H_{C}, (17)
HCD2=iα2[H,[H,[HB,HC]]]\displaystyle H_{CD}^{2}=i\alpha_{2}[H,[H,[H_{B},H_{C}]]] (18)
=α2{(c1β2+c2γ2)(i,j)wij(YiZj+ZiYj)\displaystyle=-\alpha_{2}\{(c_{1}\beta^{2}+c_{2}\gamma^{2})\sum_{(i,j)}w_{ij}(Y_{i}Z_{j}+Z_{i}Y_{j})
+c3βγijk{ni}wijwik(XiZjYk+XiYjZk)\displaystyle+c_{3}\beta\gamma\sum_{i}\sum_{jk\in\{n_{i}\}}w_{ij}w_{ik}(X_{i}Z_{j}Y_{k}+X_{i}Y_{j}Z_{k})
+c4γ2ijkm{ni}wijwikwimYiZjZkZm},\displaystyle+c_{4}\gamma^{2}\sum_{i}\sum_{jkm\in\{n_{i}\}}w_{ij}w_{ik}w_{im}Y_{i}Z_{j}Z_{k}Z_{m}\},

There are some positive coefficients c1,c2,c3,c4c_{1},c_{2},c_{3},c_{4}, and {ni}\{n_{i}\} represent the neighbors of vertex ii, eg. (i,j)E,j{ni}(i,j)\in E,\forall j\in\{n_{i}\} The first two terms on the right side of equation Eq.18 can be generated if a series of YYYY interaction HY=ijwijYiYjH_{Y}=\sum_{ij}w_{ij}Y_{i}Y_{j} is added to ansatz:

eiαHYeiβHBeiγHCeiHeff,\displaystyle e^{-i\alpha H_{Y}}e^{-i\beta H_{B}}e^{-i\gamma H_{C}}\sim e^{-iH_{eff}}, (19)
Heff=αHY+βHB+γHC\displaystyle H_{eff}=\alpha H_{Y}+\beta H_{B}+\gamma H_{C}
iβγ2[HB,HC]iαβ2[HY,HB]iαγ2[HY,HC]\displaystyle-i\frac{\beta\gamma}{2}[H_{B},H_{C}]-i\frac{\alpha\beta}{2}[H_{Y},H_{B}]-i\frac{\alpha\gamma}{2}[H_{Y},H_{C}]
=αHY+βHB+γHC+H1+H2+H3.\displaystyle=\alpha H_{Y}+\beta H_{B}+\gamma H_{C}+H_{1}+H_{2}+H_{3}.

H1H_{1} has the same form as the first order of CD driving terms (Eq.8). H2H_{2} and H3H_{3} will generate terms same as the first two terms on the right side of equation Eq.18:

H2=iαβ2[HY,HB]=αβijwij(YiZj+ZiYj).\displaystyle H_{2}=-i\frac{\alpha\beta}{2}[H_{Y},H_{B}]=\alpha\beta\sum_{ij}w_{ij}(Y_{i}Z_{j}+Z_{i}Y_{j}). (20)
H3=iαγ2[HY,HC]\displaystyle H_{3}=-i\frac{\alpha\gamma}{2}[H_{Y},H_{C}] (21)
=αγijk{ni}wijwik(XiYjZk+XiZjYk).\displaystyle=\alpha\gamma\sum_{i}\sum_{jk\in\{n_{i}\}}w_{ij}w_{ik}(X_{i}Y_{j}Z_{k}+X_{i}Z_{j}Y_{k}).

H2H_{2} contains the same interaction as the first term on the right side of equation Eq.18, and H3H_{3} contains the same interaction as the second term. Besides, the sign of the coefficient of H2H_{2} and H3H_{3} are the same, it is the same for that of Eq.18. So it can partially compensate the excited states by adding the YYYY interaction to S-QAOA ansatz.

Besides, the parameter freedom of ZZ interaction is released to further reduce the quantum circuit depth, and since the strength of YYYY and ZZZZ interactions should be positively related, the coefficient γij\gamma_{ij} is added to each YY interaction:

eiαHYeiβHBeiγHC\displaystyle e^{-i\alpha H_{Y}}e^{-i\beta H_{B}}e^{-i\gamma H_{C}}\rightarrow (22)
eiα(ij)wijγijYiYjeiβi=1nXiei(ij)wijγijZiZj.\displaystyle e^{-i\alpha\sum\limits_{(ij)}w_{ij}\gamma_{ij}Y_{i}Y_{j}}e^{-i\beta\sum\limits_{i=1}^{n}X_{i}}\ e^{-i\sum\limits_{(ij)}w_{ij}\gamma_{ij}Z_{i}Z_{j}}.

The coefficient α\alpha plays the same role as in STA, and is also be determined variationally.

To reduce the number of CNOT gates, the order of operations in the ansatz is adjusted, and the operations of the YYYY and ZZZZ interactions are combined together:

eiβiXi(ij)eiwijγij(αYiYj+ZiZj).e^{-i\beta\sum\limits_{i}X_{i}}\prod\limits_{(ij)}e^{-iw_{ij}\gamma_{ij}(\alpha Y_{i}Y_{j}+Z_{i}Z_{j})}. (23)

The combined implementation of YY and ZZ interactions can be realized as shown in Fig.5. Fig.6 shows the comparison of the performance of ansatz in Eq.22 and Eq.23 by considering the MaxCut problem on w3R graphs. The result implies that the performance of those two ansatzes are basically the same, so we choose the ansatz in Eq.23 to reduce the quantum circuit depth.

Refer to caption
Figure 5: The implementations of the two-body interactions in QAOA and S-QAOA using CNOT gate. The definitions of the single-qubit rotation gates are : RX(θ)=eiθ2X,RY(θ)=eiθ2Y,RZ(θ)=eiθ2ZR_{X}(\theta)=e^{-i\frac{\theta}{2}X},R_{Y}(\theta)=e^{-i\frac{\theta}{2}Y},R_{Z}(\theta)=e^{-i\frac{\theta}{2}Z}. As shown above, the number of CNOT gate will be the same for QAOA and S-QAOA if introducing YY or XX interaction to S-QAOA. Other two-body interaction types can be implemented using three CNOT gates as shown at Ref. [28].
Refer to caption
Figure 6: The average fractional error of MaxCut problem on 10 random w3R graphs for the comparison of Eq.22 and Eq.23. Label ‘YY not gather’ represents the ansatz in Eq.22. Label ‘YY’ represents the ansatz in Eq.23, e.g., combining the YY and ZZ interactions together.

V Summary and outlook

In this work, S-QAOA ansatz is proposed to reduce the required quantum circuit depth. The main innovation of S-QAOA is: firstly, the extra two-body interaction is considered in the S-QAOA to compensate the diabatic effect and accelerate the process of quantum optimization; secondly, the parameter freedoms of two-body interactions are released to enhance the capacity of the quantum circuit. We study the performance of S-QAOA and QAOA on MaxCut problem and SK model, and the simulation result implies that S-QAOA has better performance at lower quantum layers compared with QAOA. So S-QAOA is a good candidate to solve the combinatorial problems using NISQ.

Releasing the parameter freedom needs extra cost of optimization, the numerical simulation shows it is cost-effective because of the greater improvement on fidelity. In S-QAOA, further optimization is performed on the parameters that have large gradients, and there needs more work to explore how to release the parameter freedoms properly, e.g., how to pick out the most critical parameters to do a further optimization. The most influential parameters should be different for different problems, and it is important to develop an efficient way to pick them out. Besides, in our primary exploration, introducing more parameters in S-QAOA makes the optimization more challenging when considering the shot noise, so the optimization methods that are more robust to noise should be considered in further work, like COBYLA, SPSA, etc. Furthermore, it deserves further exploration to explain the reason for the YY interaction’s effectiveness more clearly. We will study more cases and do simulations with noise to test and improve our idea in the next step.

Acknowledgements.
We thank Lingxiao Xu, Cheng Xue, Huanyu Liu and Qingsong Li for valuable discussions and suggestions. The results of this work are simulated using pyQpanda, and the pyQpanda package can be downloaded at https://github.com/OriginQ/QPanda-2.

References

  • Preskill [2018] J. Preskill, Quantum computing in the nisq era and beyond, Quantum 2, 79 (2018).
  • Farhi et al. [2014] E. Farhi, J. Goldstone, and S. Gutmann, A quantum approximate optimization algorithm (2014), arXiv:1411.4028 [quant-ph] .
  • Zhou et al. [2020] L. Zhou, S.-T. Wang, S. Choi, H. Pichler, and M. D. Lukin, Quantum approximate optimization algorithm: Performance, mechanism, and implementation on near-term devices, Physical Review X 1010.1103/physrevx.10.021067 (2020).
  • Wurtz and Love [2021] J. Wurtz and P. J. Love, Counterdiabaticity and the quantum approximate optimization algorithm (2021), arXiv:2106.15645 [quant-ph] .
  • Xue et al. [2021] C. Xue, Z.-Y. Chen, Y.-C. Wu, and G.-P. Guo, Effects of quantum noise on quantum approximate optimization algorithm, Chinese Physics Letters 38, 030302 (2021).
  • Harrigan et al. [2021] M. P. Harrigan, K. J. Sung, M. Neeley, K. J. Satzinger, F. Arute, K. Arya, J. Atalaya, J. C. Bardin, R. Barends, S. Boixo, and et al., Quantum approximate optimization of non-planar graph problems on a planar superconducting processor, Nature Physics 17, 332–336 (2021).
  • Albash and Lidar [2018] T. Albash and D. A. Lidar, Adiabatic quantum computation, Reviews of Modern Physics 9010.1103/revmodphys.90.015002 (2018).
  • Poulin et al. [2011] D. Poulin, A. Qarry, R. Somma, and F. Verstraete, Quantum simulation of time-dependent hamiltonians and the convenient illusion of hilbert space, Phys. Rev. Lett. 106, 170501 (2011).
  • Suzuki [1976] M. Suzuki, Generalized Trotter’s Formula and Systematic Approximants of Exponential Operators and Inner Derivations with Applications to Many Body Problems, Commun. Math. Phys. 51, 183 (1976).
  • Torrontegui et al. [2013] E. Torrontegui, S. Ibáñez, S. Martínez-Garaot, M. Modugno, A. del Campo, D. Guéry-Odelin, A. Ruschhaupt, X. Chen, and J. G. Muga, Shortcuts to adiabaticity, Advances in Atomic, Molecular, and Optical Physics , 117–169 (2013).
  • Guéry-Odelin et al. [2019] D. Guéry-Odelin, A. Ruschhaupt, A. Kiely, E. Torrontegui, S. Martínez-Garaot, and J. Muga, Shortcuts to adiabaticity: Concepts, methods, and applications, Reviews of Modern Physics 9110.1103/revmodphys.91.045001 (2019).
  • Demirplak and Rice [2003] M. Demirplak and S. A. Rice, Adiabatic population transfer with control fields, The Journal of Physical Chemistry A 107, 9937 (2003)https://doi.org/10.1021/jp030708a .
  • Demirplak and Rice [2005] M. Demirplak and S. A. Rice, Assisted adiabatic passage revisited, The Journal of Physical Chemistry B 109, 6838 (2005), pMID: 16851769, https://doi.org/10.1021/jp040647w .
  • Berry [2009] M. V. Berry, Transitionless quantum driving, Journal of Physics A: Mathematical and Theoretical 42, 365303 (2009).
  • Hegade et al. [2021] N. N. Hegade, K. Paul, Y. Ding, M. Sanz, F. Albarrán-Arriagada, E. Solano, and X. Chen, Shortcuts to adiabaticity in digitized adiabatic quantum computing, Physical Review Applied 1510.1103/physrevapplied.15.024038 (2021).
  • Santos and Sarandy [2015] A. C. Santos and M. S. Sarandy, Superadiabatic controlled evolutions and universal quantum computation, Scientific Reports 510.1038/srep15775 (2015).
  • Coulamy et al. [2016] I. B. Coulamy, A. C. Santos, I. Hen, and M. S. Sarandy, Energetic cost of superadiabatic quantum computation, Frontiers in ICT 310.3389/fict.2016.00019 (2016).
  • Santos and Sarandy [2017] A. C. Santos and M. S. Sarandy, Generalized shortcuts to adiabaticity and enhanced robustness against decoherence, Journal of Physics A: Mathematical and Theoretical 51, 025301 (2017).
  • Chandarana et al. [2021] P. Chandarana, N. N. Hegade, K. Paul, F. Albarrán-Arriagada, E. Solano, A. del Campo, and X. Chen, Digitized-counterdiabatic quantum approximate optimization algorithm (2021), arXiv:2107.02789 [quant-ph] .
  • Zhu et al. [2020] L. Zhu, H. L. Tang, G. S. Barron, F. A. Calderon-Vargas, N. J. Mayhall, E. Barnes, and S. E. Economou, An adaptive quantum approximate optimization algorithm for solving combinatorial problems on a quantum computer (2020), arXiv:2005.10258 [quant-ph] .
  • Farhi et al. [2017] E. Farhi, J. Goldstone, S. Gutmann, and H. Neven, Quantum algorithms for fixed qubit architectures (2017), arXiv:1703.06199 [quant-ph] .
  • Kolodrubetz et al. [2017] M. Kolodrubetz, D. Sels, P. Mehta, and A. Polkovnikov, Geometry and non-adiabatic response in quantum and classical systems, Physics Reports 697, 1–87 (2017).
  • Pandey et al. [2020] M. Pandey, P. W. Claeys, D. K. Campbell, A. Polkovnikov, and D. Sels, Adiabatic eigenstate deformations as a sensitive probe for quantum chaos, Phys. Rev. X 10, 041017 (2020).
  • Sels and Polkovnikov [2017] D. Sels and A. Polkovnikov, Minimizing irreversible losses in quantum systems by local counterdiabatic driving, Proceedings of the National Academy of Sciences 114, E3909–E3916 (2017).
  • Claeys et al. [2019] P. W. Claeys, M. Pandey, D. Sels, and A. Polkovnikov, Floquet-engineering counterdiabatic protocols in quantum many-body systems, Physical Review Letters 12310.1103/physrevlett.123.090602 (2019).
  • Jurdjevic and Sussmann [1972] V. Jurdjevic and H. J. Sussmann, Control systems on lie groups, Journal of Differential Equations 12, 313 (1972).
  • Morales et al. [2020] M. E. S. Morales, J. D. Biamonte, and Z. Zimborás, On the universality of the quantum approximate optimization algorithm, Quantum Information Processing 1910.1007/s11128-020-02748-9 (2020).
  • Shende et al. [2004] V. V. Shende, I. L. Markov, and S. S. Bullock, Minimal universal two-qubit controlled-not-based circuits, Physical Review A 6910.1103/physreva.69.062321 (2004).

Appendix A Results With Error Bars

The results in Fig.1,2,3 are averaged over the random graphs. Typically, the fractional error rr got by QAOA should be concentrated for the same class of problems. So it is better to show the results with error bars to represent the variance in the fractional error, and determine whether the performance difference between S-QAOA and QAOA is outside the margin of errors. Fig.7 shows the fractional errors with error bars for Maxcut problems and SK model. Though there is a relatively large error bar because of the limited statistics, the performance of S-QAOA (labeled by ‘YY’) is better than QAOA significantly.

Refer to caption
Figure 7: Fractional errors with error bars. The results of each problem averaged over 20 random graphs, and the error bars are the standard deviation of the fractional error r for those random graphs.

Appendix B Additional Figures

Except for the existing ZZ interaction in QAOA ansatz, S-QAOA contains other two-body interactions to accelerate the process of quantum optimization. Operation of each layer k[1,p]k\in[1,p] of S-QAOA is:

k=1p{eiβkinXiij{eiγkijwijZiZjeiαkγkijwijMij}},\prod\limits_{k=1}^{p}\{e^{i\beta_{k}\sum\limits_{i}^{n}X_{i}}\prod\limits_{ij}\{e^{-i\gamma^{ij}_{k}w_{ij}Z_{i}Z_{j}}e^{-i\alpha_{k}\gamma^{ij}_{k}w_{ij}M_{ij}}\}\}, (24)

MijM_{ij} is a two-gate term and there are five possible types of it: Mij=PiQj+QiPj2,PQ{YZ,YY,XX,XZ,XY}M_{ij}=\frac{P_{i}Q_{j}+Q_{i}P_{j}}{2},PQ\in\{YZ,YY,XX,XZ,XY\}. To choose the best one in these two-gate terms, we do a comprehensive simulation for MaxCut problem and SK model, and the result can be found in Fig.8. The simulation result implies that the Mij=YiYjM_{ij}=Y_{i}Y_{j} has the best performance in all cases. A further study in Fig.9 is to explore the necessity of adding more two-body interactions in the ansatz, and it is obvious that the ansatz adding more interactions can not get better performance than the ansatz just adding YY interaction. So it is enough to just add the YY interaction in S-QAOA ansatz.

Refer to caption
Figure 8: Comparison of the performance of all the possible additional two-body interactions: {YZ,YY,XX,XZ,XY}\{YZ,YY,XX,XZ,XY\}, the results are averaged on 10 random graphs for every case. YY interaction performs best for all the three cases we study. The performance of XZ, XY, and ZZ types are almost the same, so it demonstrates that the XZ and XY interactions have little effect on the QAOA.
Refer to caption
Figure 9: Comparison of the performance of only adding the YY interaction to the ansatz and adding two or three additional interactions to the ansatz, which are combination of: {YZ,YY,XX}\{YZ,YY,XX\} interactions, e.g., ‘YZ_YY’, ‘YZ_XX’, ‘YY_XX’ represent there are two additional interactions followed by each ZZ interaction; ‘YZ_YY_XX’ represents the YZ, YY, XX interactions followed by ZZ interaction one by one. The results are averaged on 10 random graphs, and the performance of the ansatz that includes two or three additional interactions is almost the same as the ansatz that only includes the YY interaction. So if we consider two-gate terms, it is enough to add the YY interaction to accelerate the evolution.