# Optimizing Variational Quantum Algorithms using Pontryagin’s Minimum Principle

###### Abstract

We use Pontryagin’s minimum principle to optimize variational quantum algorithms. We show that for a fixed computation time, the optimal evolution has a bang-bang (square pulse) form, both for closed and open quantum systems with Markovian decoherence. Our findings support the choice of evolution ansatz in the recently proposed Quantum Approximate Optimization Algorithm. Focusing on the Sherrington-Kirkpatrick spin-glass as an example, we find a system-size independent distribution of the duration of pulses, with characteristic time scale set by the inverse of the coupling constants in the Hamiltonian. The optimality of the bang-bang protocols and the characteristic time scale of the pulses provide an efficient parameterization of the protocol and inform the search for effective hybrid (classical and quantum) schemes for tackling combinatorial optimization problems. For the particular systems we study, we find numerically that the optimal nonadiabatic bang-bang protocols outperform conventional quantum annealing in the presence of weak white additive external noise and weak coupling to a thermal bath modeled with the Redfield master equation.

###### pacs:

03.67.Ac, 02.30.Yy, 03.67.Lx, 75.10.Nr## I Introduction

Quantum Annealing (QA) aims to solve computational problems by using a guided quantum drive. The dynamics is generated by a time-dependent Hamiltonian along a trajectory that ends at a final target Hamiltonian whose ground state contains the solution of the problem Nishimori ; Sipser ; QAA . QA is based on the adiabatic theorem, which guarantees that if the Hamiltonian is changed sufficiently slowly, transitions to excited states are suppressed during the adiabatic evolution, thus preparing states that are close to the target ground state. Unfortunately, the adiabatic condition that ensures that the system remains in the instantaneous ground state leads to long time scales for the solution of hard computational problem. Within the framework of adiabatic computation, there has been several theoretical proposals on the optimizations of the Quantum Adiabatic Algorithm (QAA), such as heuristic guesses for the initial state Perdomo , increasing the minimum gap Mohan1 ; zhuang , and the quantum adiabatic brachistochrone formulation Rezakhani .

The adiabatic trajectory is not the only path for reaching the ground state of a final Hamiltonian that encodes the solution of the computational problem. More generally, one could imagine many other paths, including those where the Hamiltonian is varied rapidly, that land at the desired state or, of practical interest, reach low energy states. In fact, it has been already found that for certain hard instances of problems, fast nonadiabatic paths can sometimes prevent the system from getting stuck at local minima, thus improve the search results troyer ; heim ; crosson . The Variational Quantum Algorithm (VQA) is an example where one searches for such possible paths, using optimization of the outcome via the variation of a fixed number of parameters in the protocol. A hybrid machine, combining classical optimization and quantum evolution, optimizes the variational parameters. Such hybrid variational approaches have proved useful in the context of quantum state preparation Rohringer ; Rosi ; Rahmani1 ; Rahmani2 . Recently, Ref. Peruzzo:14 introduced a variational quantum eigensolver (VQE) for applications in quantum chemistry. This idea was further explored in Yung:14 ; Wecker:15 ; wecker ; McClean:16 ; McClean:16-2 and experimentally tested in Shen:15 ; Eichler:15 ; Omalley:15 . In a related approach Farhi ; Farhi:2 ; Farhi:3 ; Yechao , Farhi et al. introduced a Quantum Approximate Optimization Algorithm (QAOA) for combinatorial optimization problems based on a parameterized square-pulse ansatz for dynamical evolution of the solver.

In this paper, we make a connection between VQA and optimal control theory control1 ; Pontryagin ; control2 ; Mohan2 . VQA is essentially an adaptive feedback control adaptive ; Brif:10 of a quantum system with the objective function encoding the solution of a computational problem, see Fig. 1(a). It utilizes a hybrid system comprised of a classical computer that searches for the optimal variational protocol using measurements done on a quantum machine that generates the final states corresponding to different variational protocols, via a closed-loop learning method Dong:10 .

Using Pontryagin’s minimum principle of optimal control, we show that the optimal protocol for VQA has a “bang-bang” form. Our results put the bang-bang ansatz of QAOA on a rigorous ground in contrast to VQA with a continuous-time evolution. A comparison of the performance of the optimal nonadiabatic bang-bang protocol with conventional (linear ramp) QAA demonstrates that the former significantly reduces error in the final state in the absence of noise or decoherence. The advantage over the linear ramp protocol in QAA survives weak dephasing white noise as well as weak coupling to a thermal bath. Furthermore, we perform a quantitative analysis of the characteristics of these optimal protocols. We numerically find a system-size independent distribution function for the duration of individual pulses, which may facilitate the development of effective algorithms for the classical optimizer through an efficient representation of the protocol with few variational parameters. Interestingly, each of the pulses in our bang-bang protocols contains commuting (either one-qubit or two-qubit) terms. Thus our protocol can be implemented by applying a sequence of one-qubit gates [ generated by the initial Hamiltonian, in Eq. (9)] and two-qubit gates generated by the problem Hamiltonian ().

## Ii Variational Quantum Algorithm

Consider a computational optimization problem such as finding a sequence of bits that minimizes a certain function of all of the bits. To solve this problem with VQA, we consider a system of qubits with a parameterized Hamiltonian

(1) |

Generically, we can cast the problem into generating a state that minimizes a certain cost function such as the expectation value of an operator with respect to . A common example is finding the ground state of a disorderd classical Ising Hamiltonian Lucas:14 , where the operator is a Hamiltonian diagonal in the computational basis. In the context of quantum chemistry, VQE considers the operator to be the Hamiltonian of a molecule Yung:14 .

The essence of VQA, as depicted in Fig. 1, is finding the time-dependent parameters over a time period such that

(2) |

minimizes a cost function . Generically, the controls belong to a permissible set determined by the experimental setup. A common such set is given by simple bounds as seen in Eq. (3) below. The ideal solution could be a unique state [as depicted in Fig.1(b)] that is the ground state of the target Hamiltonian or more generally a set of states in the Hilbert space with an optimal figure of merit. One can either fix the initial state or add it to the list of the variational parameters (here we fix it motivated by experimental constraints). Generally, the longer the total time , the closer we can get to an ideal solution.

One way to view this is to consider the reachable set, i.e., the set of all the final states one can reach by using one of the infinite number of permissible controls. The reachable set, naturally, grows with (in fact, if is allowed, the reachable set for is strictly a subset of the reachable set for ). As seen in Fig. 1(b), there could be a critical time beyond which the reachable set includes the target state and an exact solution is possible. There is no advantage in increasing beyond this critical time. Generically, for smaller , where the reachable set does not include the target state, the optimal protocols are highly constrained as they should prepare the closest point(s) of the reachable set to the target. For times longer than the critical time mentioned above, we expect an infinite number of protocols to produce the target as the evolution has extra time to meander in the Hilbert space. Our strategy is to fix and find the best variational protocol . If the solution is not acceptable, we can increase . Next we discuss how Pontryagin’s minimum principle from optimal control theory determines the form of optimal functions.

## Iii Pontryagin’s minimum principle applied to VQA

### iii.1 Bang-bang optimal protocols

The parameters in Hamiltonian (1) are generically constrained by their range:

(3) |

during the evolution . Eq. (3) implies that, by assumption, each can be tunned in the above range independently of the values of the other control parameters. For fixed initial state , the coupling constants uniquely determine the final wave function. Consequently, the cost function, which we take as an arbitrary function of the final state, is a functional of

(4) |

The Pontryagin’s minimum principle Pontryagin is directly applicable here. Briefly, this theorem states that for a set of dynamical variables evolving from given initial values with the equations of motions , where are a set of control functions, the control functions that minimize an arbitrary function of the final values of the dynamical variable satisfy

(5) |

at any point in time and for each of the control functions. The optimal-control Hamiltonian is defined as for conjugate variables that evolve as with boundary conditions . Here the “” superscript indicates the optimal solution corresponding to .

An important consequence of Eq. (5) is that if the equations of motion for , and consequently the optimal-control Hamiltonian , are linear in , generically, the optimal protocol is bang-bang, i.e., at any time during the evolution we have or . This follows from the fact that at any point in time we need to choose to minimize . If the sign of the coefficient of in the optimal-control Hamiltonian is positive (negative), we should then choose the smallest (largest) from the permissible range (3). In other words, the optimal protocol for each control function involves a sequence of sudden jumps between its minimum and maximum permissible values. The only caveat for the above argument is the possibility that the coefficient of a particular in vanishes over a finite interval (since the sign of this coefficient determines whether we should choose the minimum or maximum value). We expect this special scenario to be nongeneric particularly for the disordered systems considered in the present paper.

In the quantum mechanical context, if the physical Hamiltonian is linear in the controls, the equations of motion and consequently the optimal-control Hamiltonian will also be linear, giving rise to bang-bang protocols as verified in several recent studies on optimal topological quantum computing Rahmani3 ; Rahmani4 . To find the protocol that minimizes the cost function in our case, we expand the wave function in a complete orthonormal basis, e.g., the computational basis as and treat the real and imaginary parts of the amplitudes as dynamical variables, which evolve according to the Schrödinger equation

(6) | |||||

(7) |

where and . Clearly, these equations of motion are linear in the control functions and the cost function (4) is a function of only the final values of the dynamical variables. Thus, the argument above holds and the optimal protocol is generically bang-bang regardless of the number of variational parameters. We remark that our optimal bang-bang protocol is nonadiabatic by construction, and we put no constraint on maximizing the degree of adiabaticity. The value of this result hinges upon the time scale over which a coupling constant is held fixed. The longer this time scale, the fewer parameters (switching times) are needed to represent the protocol. In fact, in the limit where this time scale goes to zero, any protocol can be approximated by a sequence of square pulses through Trotterization. In this paper, we find that the time scale above is indeed finite and is set by the energy scale of the Hamiltonian for the Sherrington-Kirkpatrick (SK) Ising spin-glass model [see Eq. (9)].

### iii.2 Presence of decoherence

From a practical point of view, it is important to assess the validity of the closed system findings in the presence of decoherence. Again, a straightforward application of the Pontryagin principle extends the above results for a closed system evolution to an open quantum system with Markovian dynamics described by a Lindblad equation

(8) |

where the optimal protocol , if controllable, are of type bang-bang. This is due to the linearity of the dynamical equation (8). A decoherence operator can represent either noise in the Hamiltonian parameters (in which case, is Hermitian Pilcher2013 ; Rahmani2015 ) or an engineered bath open . In the former case, ’s are constant rates of noise processes and in the latter, ’s are control knobs that the Pontryagin’s minimum principle says should vary in bang-bang form for an optimal protocol. In the rest of the paper, we only focus on closed systems Schrödinger dynamics when finding the optimal protocol. We do, however, discuss the effects of noise and open-system dynamics on our optimal protocols.

## Iv VQA for the SK Spin-Glass Model

We now focus on a canonical problem in combinatorial optimization, namely the SK Ising spin glass SK with the energy function

(9) |

where and are independent Gaussian random variables with zero mean and variance , and each spin can take the values . The goal is to minimize over all the spin configurations. A multitude of practical combinatorial optimization problems map to this model. The computational cost of finding the minimum with classical algorithms is exponential in .

In analogy with the simple instances of quantum annealing, we focus on the case with only one control function and use the following parameterized Hamiltonian:

(10) |

with the operator representing a transverse field, which generates quantum fluctuations.

For the initial state, we choose the ground states of . It is easy to prepare product state commonly used in other schemes such as the QAA. Here and . We would like to minimize the cost function . In the adiabatic scheme, a smooth ramp such as is applied for and we can generate large overlap with the ground state of in the limit of large . Here, we allow for arbitrary time dependence of the control function in the fixed range . According to the general argument of Sec. III.1, the optimal solution is bang-bang.

As discussed in the introduction, in VQA a classical optimization algorithm commands a quantum system to find the optimal protocol variationally from measurement of the cost function for many protocols. This requires many repetitions and it is to our advantage to use the shortest possible time for which the final state has an acceptable overlap with the ground state of (projective measurement is ultimately used in generating the ground state). In the adiabatic scheme, we only need one shot but there are important restrictions from the small energy gaps along the adiabatic trajectory, which can lead to exceedingly long time scales, over which quantum coherence cannot be even approximately sustained. Furthermore, the presence of noise or modulation in the control fields places important limitations on adiabatic schemes due to the emergence of the recently proposed noise-induced anti-adiabaticity in the long-time limit Dutta . Unlike QAA, which relies on the adiabatic theorem, VQA has no known connection to instantaneous ground states and the minimum gap to excitations as transitions to excited states during the time evolution are allowed as long as the system eventually lands at the ground state of the final Hamiltonian.

Given the limitations of adiabatic scheme, a quantum approximate algorithm has been introduced for solving combinatorial optimization problems Farhi ; Farhi:2 ; Farhi:3 ; Yechao in the spirit of VQA. The algorithm of Ref. Farhi uses an ansatz

(11) |

where the evolution operators are given by and . The integer is a parameter characterizing a variational ansatz.

For a given , the goal of the algorithm is to find a set of variational parameters that minimizes the expectation value of , which ensures that the state approaches the ground state of . Physically, the ansatz describes time evolution for a total time , and a sequence of sudden switching between the Hamiltonians and . While this ansatz with a finite is an intelligent guess, the result that we derived using Pontryagin’s minimum principle implies that given bounded independent control of Hamiltonian terms, the ansatz (11) is the optimal choice for a VQA approach to optimization. We reiterate that and are each a sum of commuting one- and/or two-qubit terms. Therefore, our protocol can be interpreted as a sequence of simple gates. Estimating the required requires an analysis of the characteristic time scales of the pulses, which we carry out in this paper.

## V Numerical studies

We start by verifying for small system sizes and short annealing times that the optimal annealing protocol is indeed bang-bang, by using a Metropolis Monte Carlo (MC) algorithm, which makes no assumptions about the nature of the protocol. We divide the total time into slices of duration and use a piece-wise constant protocol. The method approaches an unbiased optimization, i.e., it explores all permissible controls and chooses the optimal one, if the protocols obtained converge upon increasing . We then proceed by carrying out a MC simulation starting from random initial protocols, without any assumption regarding the bang-bang nature of the protocol. In each step, we slightly change the control parameter in a randomly chosen discretized time interval. If the cost function gets smaller, we accept the attempt; if the cost function gets larger, we accept the attempt with probability , where is a fictitious temperature that is gradually reduced to zero.

In Fig. 2(a), we show the optimal protocol obtained from such MC simulation for a fixed instance of Hamiltonian (9) with spins and total time .

Indeed, the MC simulation converge to a bang-bang protocol for different initial protocols in agreement with the Pontryagin’s minimum principle. Despite the convergence for short total time, the MC simulations often fail to converge for longer times and larger systems, signaling the difficulty of implementing VQA without any a priori knowledge about the form of the optimal protocol. However, based on the mathematical proof of the bang-bang nature of the optimal protocols, we can parameterize the protocol similar to QAOA Farhi and use the durations of the pulses as variational parameters to be optimized with the interior-point minimization method (IPMM), increasing to achieve convergence.

We have checked that IPMM results are indeed in agreement with MC results, e.g., Fig. 2(a) (it also runs much faster). In Fig.2(b), we show a typical optimized protocol obtained with IPMM for a certain instance of Hamiltonian (9) with spins and . Guided by MC results, we choose around variational parameters, which proved to be adequate (we converged to a smaller number of bangs than we allowed in the ansatz).

We now turn to the critical question of the time scales of the pulses. We observe numerically and then argue analytically that the typical time scale of each bang is independent of the system size, and is only determined by some characteristic energy scale of Hamiltonian (9). Therefore, from a complexity theory perspective, this result implies that the hardness of the optimization problem should translate into the number of pulses and/or the hardness of the protocol optimization. In Fig. 3 we plot the distribution of the time scales of each bang for system sizes and 10. For each system size, we fix the total annealing time to be , and average over 50 instances of the Hamiltonian (9).

We find that the distributions for the bang time collapse for different system sizes, and peak at almost the same value. This observation suggests a universal average distribution of the bang times for the near optimal protocols, and a typical time scale (peak or average value) that is independent of the system size. Although we have only considered a few system sizes, the dependence on is extremely weak and we expect our results to extrapolate to large .

Finally we comment on the performance of our protocols. The cost function we minimize is the expectation value . Minimizing the energy expectation value results in larger overlap with the ground state of . As expected, the time scales for our protocols are significantly shorter than those of the adiabatic algorithm with similar success rate. A comparison between the optimal bang-bang protocols and linear ramps is shown in Fig. 4. The errors in the final wavefunctions and final energies are averaged over the 20 instances (out of 50 generated realizations) with the highest success rates, for the optimal bang-bang protocol and linear QAA ramp respectively. We find that, in the system sizes considered in this work, the nonadiabatic bang-bang protocol with the same total time, significantly outperforms the linear ramp (commonly used in QAA) in the ideal case, where the thermal environment and external noise are neglected. Of course, in practice one needs to include the overhead of searching for the optimal solution, and understand how it scales as function of system size. In particular, while implementing the bang-bang protocol consisting of square pulses on a quantum annealer is feasible Barends , finding the optimal protocol with a classical optimizer could be difficult for certain hard instances of problems.

## Vi Effects of Dissipation and Dephasing

Real-world implementations of the bang-bang and QAA protocols are inevitably subject to noise either in the external controls or due to coupling to the thermal environment. Therefore, it is important to examine the effects of these perturbations on our optimal protocols for practical applications. Here we consider two noise models in order to evaluate the robustness of our bang-bang protocol, at the same time comparing it with the performance of QAA.

### vi.1 Random Dephasing Noise

Here we consider pure dephasing noise, where we introduce random fields in the and directions. This type of noise can capture noise induced by hardware electronics. Our error model can be viewed as the continuous time analog of the depolarizing channel commonly used for simulating noise in quantum circuits Nielson . Since in a bang-bang protocol we either have or at any given time, we can write the stochastic Hamiltonian as

(12) | |||||

(13) |

where and are noise in the and directions respectively, with strengths independent of the value of the coupling constants (additive noise). Assuming independent white noise for different terms with zero mean and second moments

(14) | |||||

(15) |

the noise-averaged density matrix evolves with the following master equation Rahmani2015

(16) |

where we take for simplicity. In the bang-bang case, the Hamiltonian takes two different values () for (), while in the QAA case, has the explicit time dependence of Eq. (10) with .

In Fig. 4 we show the errors in the fidelity and final energy for different strengths of noise. We find that in the small regime, the noise only slightly decreases the fidelity, acting like a perturbation without inducing any instability. The effects of the noise on the linear QAA ramp are similar both qualitatively and quantitatively, changing the error by amount of the same order of magnitude. For the strongest strength of noise that we studied (), the fidelity of the optimal bang-bang protocol remains higher than that of the linear ramp protocol.

A comment is in order regarding the dimension of and the range used. As has a dimension of time (inverse energy), has a dimension of energy. Strictly speaking, the function introduces infinitely large (albeit completely uncorrelated) random fields. This is unrealistic. In real experiments there is a characteristic high frequency, introducing a characteristic short time scale , over which noise is correlated. This frequency scale is typically several orders of magnitude larger than the characteristic energy of the Hamiltonian (it diverges for the function). Therefore, Eq. (14) and (15) imply that , which means that for moderate noise in the random fields and , the corresponding values of are suppressed by .

### vi.2 Weak Thermal Bath

Here we consider coupling the system to a weak thermal bath at temperature . In this regime, the dynamics of the open system can be approximately described by the Redfield master equation which is commonly used to model noisy QAA for an actual annealing hardware Amin ; Albash ; Boixo . Here we use the formulation in Ref. Amin and apply it to both QAA and bang-bang protocols.

The system of many qubits is coupled to the thermal bath via the Hamiltonian , where are bath operators. We assume an Ohmic bosonic bath in thermal equilibrium, with the spectral density function given by

(17) |

where is a dimensionless coefficient describing the strength of the coupling to the environment. We have taken the cut-off frequency of the bath to be infinite, so as to guarantee the Markovian assumption of dynamics. We employed Eqs.(4-9) in reference Amin to simulate the dynamics of open systems based on the Redfield master equation.

Fig. 5 shows the errors in the fidelity for different strengths of coupling to the bath, for both QAA and bang-bang protocols. Similar to the case of the closed system in the presence of white noise, we find that the errors corresponding to both protocols change in an analogous manner due to weak coupling to the environment in both the short- and long-time regimes. There is an intermediate time regime , where QAA exhibits remarkable robustness and a much smaller change in error. However, the errors of the VQA and QAA get closer as we increase . Once again, the fidelity of the optimal bang-bang protocol remains higher than the QAA even for open system dynamics.

## Vii Pulse duration from the Pontryagin’s minimum principle

Here we provide more details on how the Pontryagin’s minimum principle can not only tell about the form of optimal solution for VQA but can also shed light on when the pulses should be switched on and off, in the context of the SK model.

Using the computational basis , we represent the wave function as . The initial state with all the spins in the direction corresponds to , and the Schrödinger equation reads

(18) |

with , where represents a flipped spin with respect to and is the energy function we would like to minimize. In terms of the real and imaginary parts of , we can then write

(19) | |||||

(20) |

Introducing conjugate momenta and respectively for the real and imaginary parts of , the explicit form of the optimal-control Hamiltonian is given by

(21) |

The equations of motion for the conjugate momenta are and , which can be written explicitly as

(22) | |||||

(23) |

where we have used the relationships and .

The cost function

(24) |

leads to the following boundary conditions at for the conjugate momenta:

(25) |

Notice that uniquely determines . From and the expression above, we can find and , solve the equations of motion backward in time and determine the conjugate momenta as a function of time. Therefore, also uniquely determines and . The Potryagin’s minimum principle states that the optimal protocol satisfies

(26) |

where are the corresponding optimal solution. As argued in Sec. III, is bang-bang and can only take two values of and . Which value will depend on the sign of given by the expression

(27) |

The sudden quenches at which switches from 0 to 1 or vice versa correspond to the zeros of above.

Let us first combine and into one complex momentum

(28) |

As we argued above, the optimal protocol is bang-bang with . In any interval with , we can write

(29) | |||||

(30) |

where is the beginning of the current bang . We first note that the term in Eq. (27) and does not change in intervals with . Moreover the terms

(31) |

The above equation allows for an estimation of the typical time scale of the interval . Suppose at some , switches from 0 to 1, i.e. a bang starts. From the discussion above, we know that at we must have . The time when the bang stops corresponds to the next when . More explicitly, in the interval , Eq. (27) can be written as

(32) |

We have . The first root of the equation with then determines the duration of a pulse.

While we cannot derive analytically the average first root for from Eq. (32), one can see that the only time dependence in Eq. (32) within the current interval is in . Thus, the energy difference , which has zero mean (as both and have zero mean) and variance , sets the characteristic time scale proportional to observed in Fig. 3. Importantly, this time scale is finite and system-size independent, distinguishing our bang-bang type optimal protocol from the Trotterization of generic protocols, where the duration of individual pulses must be taken to zero. We believe the numerically obtained system-size independent distribution of Fig. 3 follows from Eq. (32) whose root determines one set of the switching times for quenching from 1 to 0, giving the duration of a pulse with [the distributions of pulse durations with and were found numerically to be almost identical]. However, an analytical derivation of the distribution in Fig. 3 has remained elusive.

## Viii Summary and Outlook

We have shown that the optimal VQA with bounded linear control parameters has a protocol of the bang-bang form. We verified this prediction by finding numerically the optimal protocol that minimizes the energy of a SK spin glass. The optimal nonadiabatic bang-bang protocols significantly reduce the error when compared to QAA within the same running time, and, at least for our system sizes, the advantage remains in the presence of weak additive white noise in the control parameters as well as weak coupling to a thermal environment.

Importantly, we show that the characteristic time scale between bangs is fixed by the energy scales in the problem and is independent of system size, which we confirm numerically. This finding significantly reduces the number of variational parameters in VQA, potentially decreasing the computational cost of the VQA outer-loop classical optimization algorithm to a great extent.

Our results, that the bang-bang protocols are optimal and the duration of each square pulse is size-independent, inform the search for effective hybrid classical-quantum schemes for solving combinatorial optimization problems. Further progress relies on the development of efficient outer-loop algorithms as well as hardware development for quantum enhanced optimization. Ultimately, the power of our results lies in their application to larger systems, for which solving the time-dependent Schrodinger equation is impossible on a classical computer. Rapid developments in quantum technologies Mohseni17 , together with the relative robustness of our protocols to specific models of external noise and thermal environment support the promise of such applications.

###### Acknowledgements.

We are grateful to Ryan Babbush, Pedram Roushan, Eduardo Mucciolo, Dries Sels and Anatoli Polkovnikov for illuminating discussions. Z.-C. Y. would like to thank Quntao Zhuang for many early discussions on QAA. This work was supported by NSERC (A. R.), Max Planck-UBC Centre for Quantum Materials (A. R.), and DOE Grant No. DE-FG02-06ER46316 (C. C. and Z.-C. Y.).## References

- (1) T. Kadowaki and H. Nishimori, Quantum annealing in the transverse Ising model, Phys. Rev. E 58, 5355 (1998).
- (2) E. Farhi, J. Goldstone, S. Gutmann, and M. Sipser, Quantum Computation by Adiabatic Evolution, arXiv:quant-ph/0001106.
- (3) E. Farhi, J. Goldstone, S. Gutmann, J. Laplan, A. Lundgren, and D. Preda, A Quantum Adiabatic Evolution Algorithm Applied to Random Instances of an NP-Complete Problem, Science 292, 472 (2001).
- (4) A. Perdomo-Ortiz, S. E. Venegas-Andraca, and A. Aspuru-Guzik, A study of heuristic guesses for adiabatic quantum computation, Quantum Info. Process. 10, 33 (2011).
- (5) L. Zeng, J. Zhang, and M. Sarovar, Schedule path optimization for adiabatic quantum computing and optimization, J. Phys. A: Math. Theor. 49, 165304 (2016).
- (6) Q. Zhuang, Increase of degeneracy improves the performance of the quantum adiabatic algorithm, Phys. Rev. A. 90 (5), 052317 (2014).
- (7) A. T. Rezakhani, W.-J. Kuo, A. Hamma, D. A. Lidar, and P. Zanardi, Quantum Adiabatic Brachistochrone, Phys. Rev. Lett. 103, 080502 (2009).
- (8) D. S. Steiger, T. F. Rønnow, and M. Troyer, Heavy Tails in the Distribution of Time to Solution for Classical and Quantum Annealing, Phys. Rev. Lett. 115, 230501 (2015).
- (9) B. Heim, T. F. Rønnow, S. V. Isakov, and M. Troyer, Quantum versus classical annealing of Ising spin glasses, Science 348, 215 (2015).
- (10) E. Crosson, E. Farhi, C. Y. Lin, H. H. Lin, and P. Shor, Different Strategies for Optimization Using the Quantum Adiabatic Algorithm, arXiv:1401.7320.
- (11) W. Rohringer, R. Bücker, S. Manz, T. Betz, C. Koller, M. Gbel, A. Perrin, J. Schmiedmayer, and T. Schumm, Stochastic optimization of a cold atom experiment using a genetic algorithm, Appl. Phys. Lett. 93, 264101 (2008).
- (12) S. Rosi, A. Bernard, N. Fabbri, L. Fallani, C. Fort, M. Inguscio, T. Calarco, and S. Montangero, Fast closed-loop optimal control of ultracold atoms in an optical lattice, Phys. Rev. A 88, 021601 (2013).
- (13) A. Rahmani, T. Kitagawa, E. Demler, and C. Chamon, Cooling through optimal control of quantum evolution, Phys. Rev. A 87, 043607 (2013).
- (14) A. Rahmani, Quantum Dynamics with AN Ensemble of Hamiltonians, Mod. Phys. Lett. B 27, 1330019 (2013).
- (15) A. Peruzzo, J. McClean, P. Shadbolt, M. H. Yung, X. Q. Zhou, P. J. Love, A. Aspuru-Guzik, and J. L. O’Brien, A variational eigenvalue solver on a photonic quantum processor, Nat. Comm. 5, 4213, (2014).
- (16) M. Yung, J. Casanova, A. Mezzacapo, J. McClean, L. Lamata, A. Aspuru-Guzik, and E. Solano, From transistor to trapped-ion computers for quantum chemistry, Scientific Reports, 4:3589 (2014)
- (17) D. Wecker, M. B. Hastings, and M. Troyer, Progress towards practical quantum variational algorithms, Phys. Rev. A 92, 042303 (2015).
- (18) D. Wecker, M. B. Hastings, and M. Troyer, Training a quantum optimizer, Phys. Rev. A 94, 022309 (2016).
- (19) J. R. McClean, J. Romero, R. Babbush, and A. Aspuru-Guzik, The theory of variational hybrid quantum-classical algorithms, New J. Phys. 18, 023023 (2016).
- (20) Jarrod R. McClean, Mollie E. Schwartz, Jonathan Carter, and Wibe A. de Jong, Hybrid Quantum-Classical Hierarchy for Mitigation of Decoherence and Determination of Excited States, arXiv:1603.05681.
- (21) Y. Shen, X. Zhang, S. Zhang, J. N. Zhang, M. H. Yung, and K. Kim, Quantum implementation of the unitary coupled cluster for simulating molecular electronic structure, Phys. Rev. A 95, 020501(R) (2017).
- (22) C. Eichler, J. Mlynek, J. Butscher, P. Kurpiers, K. Hammerer, T. J. Osborne, and A. Wallraff, Exploring Interacting Quantum Many-Body Systems by Experimentally Creating Continuous Matrix Product States in Superconducting Circuits, Phys. Rev. X 5, 041044 (2015).
- (23) P. O’Malley, R. Babbush, I. Kivlichan, J. Romero, J. McClean, R. Barends, J. Kelly, P. Roushan, A. Tranter, N. Ding, B. Campbell, Y. Chen, Z. Chen, B. Chiaro, A. Dunsworth, A. Fowler, E. Jeffrey, A. Megrant, J. Mutus, C. Neill, C. Quintana, D. Sank, A. Vainsencher, J. Wenner, T. White, P. Coveney, P. Love, H. Neven, A. Aspuru-Guzik, and J. Martinis., Scalable Quantum Simulation of Molecular Energies, Phys. Rev. X 6, 031007 (2016).
- (24) E. Farhi, J. Goldstone, and S. Gutmann, A Quantum Approximate Optimization Algorithm, arXiv:1411.4028.
- (25) E. Farhi, J. Goldstone, and S. Gutmann, A Quantum Approximate Optimization Algorithm Applied to a Bounded Occurrence Constraint Problem, arXiv:1412.6062.
- (26) E. Farhi, and A. W. Harrow, Quantum Supremacy through the Quantum Approximate Optimization Algorithm, arXiv:1602.07674.
- (27) C. Y.-Y Lin, and Y. Zhu, Performance of QAOA on Typical Instances of Constraint Satisfaction Problems with Bounded Degree, arXiv:1601.01744.
- (28) A. E. Bryson, and Y.-C. Ho, Applied optimal control: optimization, estimation and control (CRC Press, 1975).
- (29) L. S. Pontryagin, Mathematical Theory of Optimal Processes (CRC Press, 1987).
- (30) R. F. Stengel, Optimal control and estimation (Courier Corporation 2012).
- (31) C. Brif, M. D. Grace, M. Sarovar, and K. C. Young, Exploring adiabatic quantum trajectories via optimal control, New J. Phys. 16, 065013 (2014).
- (32) K. J. Astrom, Adaptive feedback control, Proceedings of the IEEE 75(2), 185-217 (1987).
- (33) C. Brif, R. Chakrabarti, and H. Rabitz, Control of quantum phenomena: past, present and future, New J. Phys. 12, 075008 (2010).
- (34) D. Dong, and I. R. Petersen, Quantum control theory and applications: a survey, IET Control Theory A 12, 2651, (2010).
- (35) A. Lucas, Ising formulations of many NP problems, Frontiers in Physics 2, 5 (2014).
- (36) T. Karzig, A. Rahmani, F. von Oppen, and G. Refael, Optimal control of Majorana zero modes, Phys. Rev. B 91, 201404 (2015).
- (37) A. Rahmani, B. Seradjeh, and M. Franz, Topologically Protected Non-Abelian Braiding through Optimal Diabatic Dynamics, arXiv:1605.03611.
- (38) H. Pichler, J. Schachenmayer, A. J. Daley, and P. Zoller, Heating dynamics of bosonic atoms in a noisy optical lattice, Phys. Rev. A 87, 033606 (2013).
- (39) A. Rahmani, Dynamics of noisy quantum systems in the Heisenberg picture: Application to the stability of fractional charge, Phys. Rev. A 92, 042110 (2015).
- (40) H. P. Breuer, and F. Petruccione, The Theory of Open Quantum Systems (Oxford University Press, New York, 2002).
- (41) D. Sherrington, and S. Kirkpatrick, Solvable Model of a Spin-Glass, Phys. Rev. Lett. 35, 1792 (1975).
- (42) A. Dutta, A. Rahmani, and A. del Campo, Anti-Kibble-Zurek Behavior in Crossing the Quantum Critical Point of a Thermally Isolated System Driven by a Noisy Control Field, Phys. Rev. Lett. 117, 080402 (2016).
- (43) R. Barends, A. Shabani, L. Lamata, J. Kelly, A. Mezzacapo, U. Las Heras, R. Babbush, A. G. Fowler, B. Campbell, Yu Chen, Z. Chen, B. Chiaro, A. Dunsworth, E. Jeffrey, E. Lucero, A. Megrant, J. Y. Mutus, M. Neeley, C. Neill, P. J. J. O’Malley, C. Quintana, P. Roushan, D. Sank, A. Vainsencher, J. Wenner, T. C. White, E. Solano, H. Neven, and John M. Martinis, Digitized adiabatic quantum computing with a superconducting circuit, Nature 534, 222-226 (2016).
- (44) M. A. Nielson, and I. L. Chuang, Quantum computation and quantum information (Cambridge University Press 2010).
- (45) M. H. S. Amin, C. J. S. Truncik, D. V. Averin, Role of single-qubit decoherence time in adiabatic quantum computation, Phys. Rev. A 80, 022303 (2009).
- (46) T. Albash, S. Boixo, D. A. Lidar, P. Zanardi, Quantum adiabatic Markovian master equations, New J. Phys 14, 123016 (2012).
- (47) S. Boixo, V. N. Smelyanskiy, A. Shabani, S. V. Isakov, M. Dykman, V. S. Denchev, M. H. Amin, A. Y. Smirnov, M. Mohseni, and H. Neven, Computational multiqubit tunnelling in programmable quantum annealers, Nat Commun. 7, 10327 (2016).
- (48) M. Mohseni, P. Read, H. Neven, S. Boixo, V. Denchev, R. Babbush, A. Fowler, V. Smelyanskiy, and J. Martinis, Commercialize quantum technologies in five years, Nature 543, 171 (2017).