Peering into the Anneal Process of a Quantum Annealer
Elijah Pelofske, Georg Hahn, Hristo Djidjev

TL;DR
This paper introduces a slicing technique to monitor the evolution of solutions in a quantum annealer during the annealing process, providing new insights into qubit behavior and freeze-out points.
Contribution
The study demonstrates how to track solution evolution in a quantum annealer using customizable anneal schedules, revealing qubit dynamics and freeze-out points.
Findings
Identified when individual bits flip and stabilize during annealing
Determined freeze-out points for each qubit
Visualized solution evolution in optimized instances
Abstract
Commercial adiabatic quantum annealers have the potential to solve important NP-hard optimization problems efficiently. The newest generation of those machines additionally allows the user to customize the anneal schedule, that is, the schedule with which the anneal fraction is changed from the start to the end of the annealing. In this work we use the aforementioned feature of the D-Wave 2000Q to attempt to monitor how the anneal solution evolves during the anneal process. This process we call slicing: at each time slice during the anneal, we are able to obtain an approximate distribution of anneal solutions. We use our technique to obtain a variety of insights into the D-Wave 2000Q. For example, we observe when individual bits flip during the anneal process and when they stabilize, which allows us to determine the freeze-out point for each qubit individually. We highlight our results…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Peering into the Anneal Process of a Quantum Annealer
Elijah Pelofske
Georg Hahn
Hristo Djidjev
(Los Alamos National Laboratory)
Abstract
Commercial adiabatic quantum annealers have the potential to solve important NP-hard optimization problems efficiently. The newest generation of those machines additionally allows the user to customize the anneal schedule, that is, the schedule with which the anneal fraction is changed from the start to the end of the annealing. In this work we use the aforementioned feature of the D-Wave 2000Q to attempt to monitor how the anneal solution evolves during the anneal process. This process we call slicing: at each time slice during the anneal, we are able to obtain an approximate distribution of anneal solutions. We use our technique to obtain a variety of insights into the D-Wave 2000Q. For example, we observe when individual bits flip during the anneal process and when they stabilize, which allows us to determine the freeze-out point for each qubit individually. We highlight our results using both random QUBO (quadratic unconstrained binary optimization) instances and, for better visualization, instances which we specifically optimize (using our own genetic algorithm) to exhibit a pronounced evolution of its solution during the anneal.
1 Introduction
Quantum computers of D-Wave Systems, Inc., make it possible to obtain fast approximate solutions of NP-hard problems of very high quality using a process called quantum annealing D-Wave Systems, (2017). The D-Wave annealer is designed to minimize a quadratic function given by
[TABLE]
where is the number of variables, are the linear weights, and are the quadratic weights. Depending on the values the variables can take, the function in (1) is called an Ising if , or a QUBO (quadratic unconstrained binary optimization) problem if . Both formulations are equivalent Chapuis et al., (2019). In this article, we solely focus on the QUBO formulation. Many important NP-complete problems, such as the maximum clique, minimum vertex cover, or the graph coloring problem, can be expressed as a minimization of the form (1), see Pelofske et al., 2019a ; Pelofske et al., 2019b ; E. D. Dahl, D-Wave Systems, (2013); Lucas, (2014).
Typically, in order to use D-Wave to obtain a high quality solution of an NP-complete problem, we proceed in three steps: First, the problem under investigation, for example an instance of the Maximum Clique problem, is expressed as a minimization of type (1). Second, the coefficients and of an instance of (1) are mapped onto the qubits and the connections between them (called couplers) of the D-Wave chip D-Wave Systems, 2019a . Once this is done, the third step is to request a pre-specified number of anneals (solutions) from the D-Wave annealer. Importantly, the sole output of an anneal is a bit string indicating the value of each variable read off the -th qubit at the end of the anneal process.
The time evolution of any quantum system can be described by an operator called Hamiltonian, and the D-Wave processor evolves a quantum system with a time-dependent Hamiltonian
[TABLE]
whose first term represents a quantum state where each output bit string is equally likely, and whose second term encodes the coefficient from (1). The functions and , whose values for the D-Wave 2000Q machine at Los Alamos are given in Figure 1, control the anneal path. The parameter is called anneal fraction. At we have , and the final Hamiltonian describes a low-energy quantum system whose qubits’ values can be used to get a good solution of (1).
The newest model of D-Wave annealers, 2000Q, gives more freedom to the user to tune some of the annealing control parameters. One of them is the anneal schedule which, using up to points, specifies how the anneal fraction evolves from the start to the end of the anneal (D-Wave Systems, 2019a, , Figure 2.1). Previously, this feature has been used for improving the accuracy of the annealer by inserting a pause is the anneal schedule Marshall et al., (2019); Passarelli et al., (2019).
The aim of this article is to investigate how the solution obtained by the D-Wave annealer changes during the anneal process. This process is unobservable, since D-Wave only allows users to read off the final qubit states at the end of each anneal. For this reason, we make use of a technique that allows us to approximate what a solution looks like at a given intermediate stage during the anneal. Using a custom anneal schedule, we follow the usual anneal curve up to the time at which we would like to obtain an intermediate solution. We then modify the anneal schedule by inserting a jump to the full anneal, thus freezing the solution at the intermediate time point. This process, referred to as quenching, and is a standard feature provided by the D-Wave 2000Q, see (D-Wave Systems, 2019a, , Section 2.5.2). Repeating this technique for various intermediate points allows us to slice the anneal process.
We employ our technique to obtain various insights into the D-Wave 2000Q which, to the best of our knowledge, have not been reported previously in the literature. First, our approach allows us to visualize how the solution evolves during the anneal process, both in terms of its energy and in terms of the total number of bit flips, that is, we measure how volatile the measured value of each individual qubit is during the anneal. This in turn allows us to determine the freeze-out point, which is a point at which either the energy does not significantly improve anymore or, at an individual qubit level, the point at which the state/value of each individual qubit stays fixed. We repeat those experiments for a varying number of slices and annealing times.
Second, in order to better understand what happens during an anneal, we present a simple genetic optimization scheme Mitchell, (1996) designed to find a QUBO that exhibits substantial improvements both in terms of energy decrease and number of bit flips during the anneal. We contrast the optimized QUBO with a random QUBO. Moreover, we study the characteristics and best parameter choices for our genetic algorithm.
Third, our technique allows us to track the freeze-out process of each individual qubit during the anneal. For this, we slice the anneal at various stages (for instance, using slices for a microsecond anneal), and observe how its measured value (zero or one) changes over the course of the anneal. The freeze-out point can then be defined as the approximate location at which the measured value of a qubit stays invariant until the end of the anneal.
The article is structured as follows. Section 2 presents our approach to slice the anneal process, that is the anneal schedule we employ in order to abort the anneal process at any intermediate time. We also present our genetic algorithm to find a QUBO that exhibits a substantial change during the anneal, both in terms of the total number of bit flips of all involved qubits, and the total energy decrease during the anneal. Using the optimized QUBO, Section 3 will visualize how the solution evolves during the anneal, both in terms of number of bit flips and total energy change. We investigate how a random QUBO compares to our optimized QUBO, and how the number of slices influences the results. Importantly, the simulations demonstrate how our method can be used to visualize how individual qubits change during the anneal. A discussion of our methodology and results can be found in Section 4.
2 Methodology
This section describes the methodology underlying our work, consisting of two parts: First, Section 2.1 describes the technique we use in order to approximate the current state of the solution during the anneal process. To visualize results later in the simulations, we are interested in finding a QUBO (see Section 1) that exhibits a pronounced evolution during the anneal process, that is (1) whose lowest energy result from a 1 microsecond D-Wave anneal is (significantly) greater than that of a longer (1000 microsecond) anneal and, (2) whose intermediate solutions involve a large number of bit flips during the anneal in order to arrive at the global minimum. We find such a QUBO with the help of a genetic algorithm presented in Section 2.2.
2.1 Slicing the anneal process
The goal of this work is to investigate how the anneal solution evolves during the anneal process of D-Wave 2000Q. For this, we use a feature provided in the newest generation of D-Wave machines: it allows users to manually define an anneal schedule through the specification of up to points on the anneal curve.
Figure 2 illustrates the anneal curves we employ. In order to slice the anneal process, we follow the standard anneal curve up to a time at which we would like to slice. Due to the hardware constraints of D-Wave 2000Q for specifying the anneal curve (precisely, D-Wave requires the maximal degree of the anneal curve to not exceed 45 degrees) as well as for consistency across all slices, we jump to the full anneal fraction of at time .
Ideally, the jump from an intermediate anneal fraction to the end of the anneal has to be done as quickly as possible in order to ”freeze” the solution at the anneal slice. Though the jump we employ is not perfectly vertical (our anneal curve jumps to at , where is the slice we would like to observe), we expect this jump to not considerably change the solution, due in large part to the properties our genetic algorithm optimizes for. For consistency, we define the last anneal slice to be the full anneal.
Other anneal schedules are possible. For instance, one could pause the anneal at the current anneal fraction of slice (corresponding to e.g. roughly an anneal fraction of for slice in Figure 2), thus leaving it unchanged until the end of the anneal before jumping to . We investigated such schedules but since results are qualitatively similar, we decided to only present our simplest slicing technique, which exclusively employs quenching.
2.2 A genetic algorithm to find a QUBO for better investigation of the anneal process
It is known that different QUBOs pose different levels of difficulty to the D-Wave annealer when it comes to finding a high quality solution Chapuis et al., (2019). In our experiments presented in Section 3, we aim to investigate how the anneal solution changes during the anneal process, and therefore seek to solve a non-trivial QUBO instance that exhibits a distinctive evolution measured both in terms of energy decrease and bit flips during the anneal process.
To find such a QUBO, we employ the genetic algorithm that works as follows. The algorithm starts by initializing a population of QUBOs which are collected in a set . Those QUBOs are randomly generated as follows: each QUBO fills the entire chimera graph, its linear weights are independently sampled from and its couplers are independently sampled from , the ranges of weights allowed by the hardware.
Then the algorithm proceeds by evaluating the fitness of the current population of QUBOs. To this end, for each , we find the minimum energy solution across D-Wave anneals for a microsecond and a microsecond anneal. We then compute the energy difference between both. Moreover, we find the Hamming distance (the number of bit positions with different values) between the minimum energy solutions for a full microsecond anneal and a microsecond slice (using the slicing technique of Section 2.1). We set the fitness for each to , where is the number of qubits in . Hence, the fitness is the energy decrease between the and microsecond anneals multiplied by the percentage of bit flips between the microsecond slice and the full anneal. This ensures that the genetic algorithm 2.2 will optimize for QUBOs having the property that between a microsecond and a full microsecond anneal, their minimum energy solution evolves considerably both in terms of energy and actual bit assignment.
Next, the proportion of fittest individuals are selected from the population for cross-over and mutation. Those QUBOs are stored in the set . Then we restore the original size of the population by crossing the fittest individuals from set : we randomly choose two QUBOs and from and generate a new QUBO by selecting each individual weight and quadratic coupler independently from either or with probability . We store the new QUBO in and repeat this step times.
Finally, a mutation step is applied to the new population. For each QUBO from the new population, , we overwrite any of the coefficients of with probability . As in the initialization step, a linear weight is sampled randomly from and a quadratic coupler is sampled from . The unmutated and mutated QUBOs are stored in a new set . After setting , the genetic algorithm is restarted with the newest population.
The entire process is repeated over iterations. After the last iteration, we return the fittest as the result of our algorithm, where is the newest population generation and fitness is calculated using function .
The dependence of the genetic algorithm described in 2.2 on its parameters is evaluated in Section 3.1, where we also suggest default parameter choices.
3 Experiments
This section presents our experimental setup and results. We start with an assessment of the tuning parameters of our genetic algorithm (Section 3.1). In Section 3.2, we present first results on the slicing technique of Section 2.1, demonstrating that the optimized QUBO indeed yields more pronounced changes during the anneal. The remaining sections give insights into how the energy (Section 3.3) and the Hamming distance (Section 3.4) of the best solution evolves during annealing. Section 3.5 shows freeze-out points for all individual qubits during annealing.
Apart from Section 3.2, which also displays results for a random QUBO, all figures in the remainder of the simulations were computed using an optimized QUBO obtained with the genetic algorithm described in 2.2.
The results of the following subsections are reported with error bars, with the exception of Figure 4. We compute those results as follows: We run anneals on D-Wave 2000Q and record the best (minimal) energies found among those anneals. We repeat this step times, thus resulting in measurements. We then plot the mean of those measurements together with one standard deviation error bar.
3.1 Parameter choices for the genetic algorithm
We start by assessing the dependence of the genetic algorithm described in 2.2 on its tuning parameters. For this we first define a set of default parameters: population size , crossover proportion , and mutation rate .
While keeping two of the default parameters fixed, we vary the third parameter in Figure 3. The figure shows that increasing the population size above does not considerably change the behavior of the algorithm. Similarly, using a crossover rate of around seems to be advantageous, and likewise a too low or too high mutation rate is disadvantageous, thus leading us to the choice . The default parameters will be used in the remainder of the simulations. Figure 3 (bottom right) shows three runs of the genetic algorithm with default parameters, demonstrating that around iterations are needed to find a QUBO with the desired properties.
3.2 Evolution of solutions for random vs. optimized QUBO
We verify that using a QUBO computed with the genetic algorithm 2.2 is indeed advantageous for investigating the evolution of the solution during the anneal. Figure 4 shows, for slices and averages for each slice, the progression of the average of the percent minimum energies found.
Figure 4 shows that, the optimized QUBO requires a longer annealing time in order to gain a significant benefit in the form of a large decrease in the best energies found. Of significance is that that the total change in energy is significantly more for the optimized QUBO. We suggest defining the freeze-out point at roughly slice where both curves stabilize horizontally.
3.3 Energy evolution during the anneal process
We now look at the evolution of energies for the optimized QUBO. Figure 5 displays results for the optimized QUBO when dissecting the anneal process using slices of a microsecond anneal (left) as well as slices of a microsecond anneal (right). We observe that, initially, the energies only decrease slowly up to around a quarter of the anneal. At that point, a continuous reduction in energies sets in, during which the anneal solution becomes better and better with every slice. Moreover, we also observe that the error on the energy readings becomes smaller at that point, meaning that the energy distribution of the anneals returned by D-Wave is considerably narrower.
3.4 Evolution of the Hamming distance between adjacent slices
Similarly to Figure 5, we repeat the experiment and record the Hamming distance between the binary solution vectors (indicating the final measured value of each qubit) of adjacent slices.
Figure 6 shows the evolution of the Hamming distance for the minimum energy solution between adjacent slices, both for slices of microsecond annealing time (left) and slices of microsecond annealing time (right). As expected, the shapes of the curves are similar in the two cases. However, several interesting observations can be made: First, while the energy of the solutions initially stays almost constant and then shows a pronounced decline during the anneal (Figure 5), this decrease is much less pronounced when looking at the number of bit changes of the solution vectors. Second, the freeze-out points (defined as the time at which the energy or Hamming distance plateaus) determined from the evolutions of either the energy (Figure 5) or Hamming distance roughly coincide.
3.5 Determining the freeze-out point for each individual qubit
Finally, we can use our methodology from Section 2.1 to track the freeze-out points of individual qubits of D-Wave. For this end, we again employ the optimized QUBO obtained with the genetic algorithm (see Section 2.2), and read out the value of each qubit at each of 1000 slices during the anneal process. We visualize the rate with which each bit flips in adjacent slices with different colors: blue indicates no bit flips (the qubit kept the same measured value from the start to the end of the anneal), red indicates a high rate of bit flips, and weaker colors show intermediate rates.
Figure 7 shows results for the LANL D-Wave 2000Q chimera graph. We observe that although the QUBO employed for annealing used up all linear weights and quadratic couplers on the chip, the majority of qubits remained in their initial (i.e. first slice) measured value (either zero or one) during the anneal. It also seems as if qubits with either low or high rates of bit flips somehow cluster together. This is expected as it is known that there is leakage on the chip, meaning that adjacent qubits influence each other: thus it is sensible that a qubit which changes at a high rate during the anneal also induces bit flips in adjacent qubits.
4 Discussion
This article is a first attempt to explore how the solution obtained by the D-Wave 2000Q quantum annealer evolves during the anneal process. To the best of our knowledge, such work has not been presented previously in the literature.
In order to estimate the states of individual qubits at any point during the anneal, we develop a novel method we refer to as slicing, which uses the 2000Q quenching control feature. Using this technique, we dissect the anneal process and monitor both how the energy of the solution evolves, and how the state of each qubit changes from slice to slice.
We summarize our findings as follows:
We demonstrate that using an optimized QUBO computed with a genetic algorithm results in a much more pronounced evolution during the anneal than using a random QUBO. 2. 2.
Using the optimized QUBO, we observe that, initially, the energy does not considerably decrease during the anneal. At roughly a quarter of the anneal, a pronounced decrease sets in, which correlates with a reduction in the number of bit flips. At around the midpoint of the anneal, the energy stabilizes at around the energy value that D-Wave returns as a solution at the end of the anneal. During that phase, the number of bit flips likewise stabilizes at a constant level (meaning that the solution still changes from slice to slice) which could reflect the noise in the machine. 3. 3.
We show that many qubits actually keep their initial measured value during the anneal, and that qubits with a high rate of bit flips during the anneal seem to cluster together.
This work serves as a first step in the development of methods that allows getting insights into the (unobservable) anneal process. Indeed, further avenues of research are possible:
Investigating the potential utility of measuring individual qubit freezeout points. 2. 2.
Slicing anneals with shorter total annealing times and smaller annealing time increments compared to the results we present. 3. 3.
Using this slicing technique we present in order to look at the evolution of specific optimization problems, such as the Maximum Clique problem. 4. 4.
Analyzing slices of chained (minor embedded) problems in order to determine freeze out of chains relative to all active variables on the chip.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1Chapuis et al., (2019) Chapuis, G., Djidjev, H., Hahn, G., and Rizk, G. (2019). Finding Maximum Cliques on the D-Wave Quantum Annealer. Journal of Signal Processing Systems , 91(3-4):363–377.
- 2D-Wave Systems, (2017) D-Wave Systems (2017). Quantum Computing for the Real World Today .
- 3(3) D-Wave Systems (2019 a). Technical Description of the D-Wave Quantum Processing Unit .
- 4(4) D-Wave Systems (2019 b). QPU Properties: D-Wave 2000 Q System at LANL (DW_2000 Q_LANL).
- 5E. D. Dahl, D-Wave Systems, (2013) E. D. Dahl, D-Wave Systems (2013). Programming with D-Wave: Map coloring problem.
- 6Lucas, (2014) Lucas, A. (2014). Ising formulations of many NP problems. Front Phys , 2(5):1–27.
- 7Marshall et al., (2019) Marshall, J., Venturelli, D., Hen, I., and Rieffel, E. G. (2019). Power of pausing: Advancing understanding of thermalization in experimental quantum annealers. Phys. Rev. Applied , 11:044083.
- 8Mitchell, (1996) Mitchell, M. (1996). An Introduction to Genetic Algorithms . MIT Press, Cambridge, MA, USA.
