Obstacles to quantum annealing in a planar embedding of XORSAT
Pranay Patil, Stefanos Kourtis, Claudio Chamon, Eduardo R. Mucciolo,, and Andrei E. Ruckenstein

TL;DR
This paper introduces a planar embedding of the XORSAT problem that avoids certain phase transitions but still exhibits slow glassy dynamics, making quantum annealing inefficient for solving it despite the polynomial solvability of the original problem.
Contribution
The study presents a novel planar embedding of XORSAT that bypasses thermodynamic phase transitions but demonstrates that quantum annealing remains inefficient due to energy gap scaling.
Findings
No finite-temperature phase transition in the embedding.
Quantum Monte Carlo shows polynomial and exponential gap scaling for k=2 and k=3.
Quantum annealing does not efficiently solve the embedded XORSAT.
Abstract
We introduce a planar embedding of the k-regular k-XORSAT problem, in which solutions are encoded in the ground state of a classical statistical mechanics model of reversible logic gates arranged on a square grid and acting on bits that represent the Boolean variables of the problem. The special feature of this embedding is that the resulting model lacks a finite-temperature phase transition, thus bypassing the first-order thermodynamic transition known to occur in the random graph representation of XORSAT. In spite of this attractive feature, the thermal relaxation into the ground state displays remarkably slow glassy behavior. The question addressed in this paper is whether this planar embedding can afford an efficient path to solution of k-regular k-XORSAT via quantum adiabatic annealing. We first show that our model bypasses an avoided level crossing and consequent exponentiallyâŠ
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.
Obstacles to quantum annealing in a planar embedding of XORSAT
Pranay Patil
Department of Physics, Boston University, 590 Commonwealth Avenue, Boston, Massachusetts 02215, USA
ââ
Stefanos Kourtis
Department of Physics, Boston University, 590 Commonwealth Avenue, Boston, Massachusetts 02215, USA
ââ
Claudio Chamon
Department of Physics, Boston University, 590 Commonwealth Avenue, Boston, Massachusetts 02215, USA
ââ
Eduardo R. Mucciolo
Department of Physics, University of Central Florida, Orlando, Florida 32816, USA
ââ
Andrei E. Ruckenstein
Department of Physics, Boston University, 590 Commonwealth Avenue, Boston, Massachusetts 02215, USA
Abstract
We introduce a planar embedding of the -regular -XORSAT problem, in which solutions are encoded in the ground state of a classical statistical mechanics model of reversible logic gates arranged on a square grid and acting on bits that represent the Boolean variables of the problem. The special feature of this embedding is that the resulting model lacks a finite-temperature phase transition, thus bypassing the first-order thermodynamic transition known to occur in the random graph representation of XORSAT. In spite of this attractive feature, the thermal relaxation into the ground state displays remarkably slow glassy behavior. The question addressed in this paper is whether this planar embedding can afford an efficient path to solution of -regular -XORSAT via quantum adiabatic annealing. We first show that our model bypasses an avoided level crossing and consequent exponentially small gap in the limit of small transverse fields. We then present quantum Monte Carlo results for our embedding of the -regular -XORSAT that strongly support a picture in which second-order and first-order transitions develop at a finite transverse field for and , respectively. This translates into power-law and exponential dependences in the scaling of energy gaps with system size, corresponding to times-to-solution which are, respectively, polynomial and exponential in the number of variables. We conclude that neither classical nor quantum annealing can efficiently solve our reformulation of XORSAT, even though the original problem can be solved in polynomial time by Gaussian elimination.
I Introduction
Boolean satisfiability problems form an important subset of computer science problems which have been studied extensively with regard to their general solvability. These problems usually comprise of finding a set of bits, each of which can take values of either 0 or 1, which satisfy the set of constraints demanded by the particular problem. One of the simplest examples of such a constraint satisfaction problem is XOR-satisfiability, where each constraint (or clause) reads in a set of bits and requires their sum modulo 2 to be 0 or 1. A bit assignment (arrangement of 0âs and 1âs) which satisfies all the clauses in an XORSAT problem is said to be a solution.
Connections between such computer science (CS) problems and statistical physics models of bits (spins) is an active area of research. The generic approach encodes the solution of the computational problem in the ground state of a statistical mechanics model. This line of research has led to novel insights and algorithms, such as simulated annealing and belief propagation Kirkpatrick et al. (1983); MĂ©zard et al. (2002); MĂ©zard and Montanari (2009), which have become standard tools in many applied science areas. A shortcoming of most implementations of this approach is that the underlying physical systems tend to display glass transitions that prevent one from reaching the ground state, thus blocking the path-to-solution for the computational problem. While one may be tempted to connect the complexity of the computational problem to the glassiness of the model, this naive expectation is misdirected. A glass transition, and thus a barrier to solution, also occurs in some of the current statistical mechanics realizations of XORSAT, an âeasyâ computational problem in class P Ricci-Tersenghi (2010).
In a set of recent publications Chamon et al. (2017); Zhang et al. (2018) we introduced a planar embedding of universal classical computation which displays no finite temperature bulk phase transitions, thus eliminating an obvious obstruction to reaching solution through thermal annealing. In spite of this conceptual simplification, within our mapping the difficulty is transferred to the dynamical behavior as one cools to low temperatures. We find that, even for some simple computational problems (such as multiplication) and 3-regular 3-XORSAT, a problem which is solvable in polynomial time by Gaussian elimination Yang (2013), the relaxation times into the ground state and thus the times-to-solution are extremely long. The source of glassiness in our reformulation of these easy computational problems can be traced back to two qualitatively different mechanisms. In the case of multiplication, a single thermally excited defect created in the annealing process translates into a macroscopic number of computational errors  Zhang et al. (2018). On the other hand, for 3-regular 3-XORSAT our statistical mechanics representation involves partial knowledge of input/output boundaries (see Appendix). For this âmixed-boundary conditionsâ case we have shown Chamon et al. (2017) that thermal annealing is an ineffective way of reaching solution (i.e., of determining the full state of the boundaries).
In this paper, we explore the alternative of employing quantum adiabatic annealing (QAA) Boixo (2014); Farhi et al. (2000, 2012); Kadowaki and Nishimori (1998); Albash and Lidar (2018); Farhi et al. (2001a) to solve our planar model of XORSAT efficiently. Specifically, we are motivated to ask whether our reformulation, which removes the first-order thermal transition, also removes the first-order quantum phase transition that was encountered in the original quantum annealing formulation of XORSAT on random regular graphs Farhi et al. (2000). We present quantum Monte Carlo results for our embedding of the -regular -XORSAT. In particular, we study the nature of the phase transition along the quantum axis as a function of transverse field for and . The first obstruction one could encounter in approaching the classical ground state along the quantum axis is an avoided level crossing, resulting in an exponentially small gap in the limit of small transverse fields and signaling an exponentially long time to solution Altshuler et al. (2010). We show that our embedding does not suffer from this avoided crossing shortcoming.
The case is simple and can be solved via both thermal and quantum annealing. In particular, the model displays a second-order phase transition along the quantum axis, corresponding to a time-to-solution that scales polynomially with the system size. In contrast, our results show that the model undergoes a first-order transition at a finite transverse field. This translates into an exponential scaling of energy gaps and thus to a time-to-solution that scales exponentially with the number of variables in the XORSAT instances. Thus, even though our embedding bypasses two of the obvious obstructions to annealing into the ground state â the classical phase transition at finite temperature along the classical axis and the perturbation theory collapse for small transverse field along the quantum axis â our results for reinforce the conclusion that both classical and quantum annealing can be ineffective pathways to solution even for easy (i.e., complexity P) computational problems. The same conclusion was reached by Farhi et al. Farhi et al. (2000), whose approach also bypassed the âperturbation theory collapseâ of Ref. Altshuler et al., 2010 but not the thermodynamic transition along the classical axis. In summary, our embedding of classical computational problems into statistical mechanics models defines a class of systems with short-range interactions and no classical bulk thermal phase transitions that display slow glassy dynamics in both thermal and quantum annealing.
The outline of the paper is as follows. In Sec. II we provide an introduction to quantum annealing in the context of the general class of problems we are interested in studying, along with a comparison to simulated annealing. This is followed by Sec. III where we describe the particular problem we study and its lattice embedding that we investigate for efficiency of annealing. In Sec. IV we provide an interpretation for the efficacy of simulated annealing in reaching solutions in two classes of regular XORSAT problems, as well as weak perturbation theory argument concerning quantum annealing at small transverse fields. Sec. V presents numerical results from quantum Monte Carlo for a simple illustrative example of a single CNOT gate and builds on these results to address the more complex case of regular XORSAT through similar simulations. We present our conclusions in Sec. VI.
II Quantum adiabatic annealing algorithm: outline and general considerations
The quantum adiabatic annealing (QAA) algorithm was introduced as a method to solve computational problems in Refs. Farhi et al. (2000, 2001b). It exploits long-range quantum coherence in a time dependent quantum system whose defining Hamiltonian interpolates adiabatically between two limits. The goal is to use QAA to reach the ground state of a complicated classical Hamiltonian , which encodes the solution of the computational problem at hand, by adiabatically deforming the quantum ground state of a âsimplerâ initial Hamiltonian, which is easy to prepare.
Concretely, a computational problem on Boolean variables is mapped to a Hamiltonian that describes interactions between classical Ising spin degrees of freedom for . The spin-up state can be chosen to represent bit state and the spin-down state the bit state . The mapping is such that the bit assignment that corresponds to the ground-state spin configuration of encodes the solution of the computational problem. (Here we will mainly concern ourselves with a class of problems that have a single solution, such that the ground state of is non-degenerate.)
In the QAA algorithm, the classical spins (bits) are represented by quantum spin-1/2 degrees of freedom. The QAA protocol is typically carried out at zero temperature and proceeds by preparing the system in a uniform superposition of all eigenstates by applying a strong transverse field ( is a Pauli matrix that defines a local quantization axis for the -th spin). Annealing is implemented by adiabatically âturning offâ the transverse field while âturning onâ the Hamiltonian . This process defines a time-dependent Hamiltonian
[TABLE]
where is the transverse field term and is a time-dependent parameter. The protocol usually starts with to ensure that the system is in the transverse-field ground state, where each spin is polarized along the -axis, and ends with , which recovers the target Hamiltonian at time . The quantum adiabatic theorem Wannier (1965); Kato (1950) guarantees that the system remains in its instantaneous ground state if varies âslowly enoughâ with time. To be more specific, it says that the total duration of the protocol should satisfy
[TABLE]
where in the eigenbasis spanned by , , and is the minimum gap between the ground state and the first excited state encountered during the entire protocol.
Generally, is proportional to system size for a local Hamiltonian and the scaling of is controlled by the scaling of the minimum gap. This implies that if the system passes through a phase transition where the gap vanishes, the time to solution using a quantum annealing protocol can be polynomial or exponential in system size depending on the behavior of the minimum gap with system size. Continuous phase transitions have a scale-invariant critical point, which implies that the gap must have a polynomial dependence on system size Sondhi et al. (1997). First-order transitions, on the other hand, manifest themselves in finite-size systems via gaps that vanish exponentially with system size, although there are pathological cases where the gap closing is only polynomial Laumann et al. (2012). It is therefore highly probable that the QAA algorithm fails to find the solution when the annealing protocol described by leads through a first-order transition in the thermodynamic limit.
In what follows, we will rewrite as
[TABLE]
allowing and to take arbitrary positive values, to conform with common notation in the literature.
Since is classical, one may also consider using simulated annealing (SA) to reach its ground state. In this protocol, and one slowly varies the temperature from to . Local thermal dynamics, implemented via, e.g., the Metropolis algorithm, progressively lead toward lower-energy configurations. SA, and in fact any local classical algorithm, fails whenever a first-order transition into a glass phase is encountered upon reducing the temperature. This is true regardless of the hardness of the computational problem encoded by  Ricci-Tersenghi et al. (2001); Ricci-Tersenghi (2010).
When SA and QAA are taken on equal footing as methods for the solution of a given problem, they give rise to a phase diagram as a function of and , whose origin represents the solution of the problem. Fig. 1 shows two distinct scenarios for this phase diagram. In the first scenario, the solution is separated from both the classical high- paramagnet and the strong-field quantum paramagnet, i.e., the initial states of the SA and QAA protocols, respectively, by first-order transitions. This is a commonly encountered scenario for computational problems, such as satisfiability or coloring, and is illustrated in Fig. 1(a). For example, the 3-regular 3-XORSAT problem, as it was formulated and studied in Ref. Farhi et al., 2012 and also briefly introduced below, belongs to this category.
In this work, we will use a lattice reformulation of computational problems that lacks the classical transition to a glassy phase. This formulation introduces an alternative scenario to the aforementioned one and raises the question of whether the quantum phase transition is absent as well in this case, i.e., whether the two transitions are somehow linked. Below we will provide evidence for a negative answer to this question: our results suggest that the quantum phase transition remains present and first-order, and hence most probably accompanied by exponentially vanishing gaps in progressively larger finite-size systems, even in the absence of a thermodynamic classical transition to a glassy phase.
III -regular -XORSAT and lattice embedding
III.1 The XORSAT problem
In this section, we describe the mapping of the the -regular -XORSAT problem Johnson and Garey (1979) to a spin Hamiltonian. We choose XORSAT because it is a prototypical problem in both physics and theoretical computer science. Even though XORSAT can be solved in polynomial time with Gaussian elimination, it nevertheless has evaded efficient solution with any local algorithm, including variants of the Davis-Putnam algorithm HaanpÀÀ et al. (2006), message-passing methods Jia et al. (2005), stochastic search Guidetti and Young (2011), simulated annealing Ricci-Tersenghi et al. (2001), and quantum adiabatic annealing Farhi et al. (2012).
Here we focus on the -regular variant of -XORSAT. This constraint satisfaction problem is defined on Boolean variables subject to clauses, where each clause takes in bits and each bit participates in clauses. The solution to the problem is a bit assignment that satisfies all clauses. An XORSAT clause evaluates to 0 (false) or 1 (true) if the sum of the bits in the clause modulo 2 is 0 or 1, respectively. In spin language, this can be interpreted as requiring the product of the spins in a particular clause to be positive or negative and associating an energy cost to the unfavorable outcome. For example, the spin Hamiltonian can be written as
[TABLE]
where is the set of the indices of the spins that participate in the -th clause, for odd. Since clauses are not constrained to connect nearby spins only, this spin Hamiltonian is best represented as a bipartite -regular graph, where one independent set of vertices represents the spins and the other the clauses. A random instance of this problem is thus a randomly generated bipartite -regular graph. A solution of an instance (if it exists) is given by a corresponding ground state of .
Numerical examination of the QAA algorithm for Hamiltonian (4) restricted to and to instances with unique ground states showed that the minimum gap closes exponentially with system size, indicating a first-order transition at a particular value of the transverse field in the thermodynamic limit Farhi et al. (2012). This finding implies that QAA takes an exponentially long time to find the solution in this formulation of 3-regular 3-XORSAT. On the other hand, application of the SA algorithm to the XORSAT problem reveals a random first-order transition into a glassy phase at some characteristic temperature â see, e.g., Ref. Ricci-Tersenghi et al., 2001. These results suggest that the solutions of XORSAT instances reside deep inside a glass phase and are inaccessible to both classical local search algorithms and QAA, despite the fact that XORSAT is computationally tractable (i.e., in complexity class P).
III.2 Lattice embedding
In an attempt to avoid the aforementioned obstructions to the solution of XORSAT, here we introduce a lattice embedding of the problem that circumvents the classical thermodynamic transition. The idea is based on previous works by some of us Chamon et al. (2017); Zhang et al. (2018). Note that this lattice embedding does not enable an efficient solution of the problem via SA, despite the absence of the glass transition, as the dynamics instead becomes glassy upon approaching . The rationale for this reformulation is rather to see whether the avoidance of the thermodynamic glass transition and hence the absence of a finite- classical glass phase has any effect on the quantum axis.
The lattice embedding is achieved by drawing each variable and each clause as a bit line or âbusâ and laying all lines on a 2D plane, with vertical lines corresponding to clauses and horizontal ones to variables, as shown in Fig. 2. Each variable (clause) corresponds to a horizontal (vertical) Ising spin chain and the intersection between variable chains and clause chains is mediated by CNOT or SWAP gates. If the -th variable participates in the -th clause, then a CNOT gate is placed at the intersection of the -th vertical line with the -th horizontal line, else a SWAP gate is placed to ensure that the bit and clause do not couple.
Each gate has two inputs ( and ) and two outputs ( and ). The gate constraints can be written in spin language as
[TABLE]
Inter-site ferromagnetic bonds of strength are placed between the outputs of a gate and the inputs of nearest-neighboring gates. This construction ensures that when all ferromagnetic bonds are satisfied by a spin configuration, the corresponding bit assignment satisfies all clauses and is the solution to the problem. The overall spin Hamiltonian is
[TABLE]
The sums are over , so that a problem instance with variables maps to a lattice with sites with a gate at each site, denotes neighboring positions on the lattice, is the orientation of the bond labeled as 1 (2) for horizontal (vertical), and is a constant that offsets the energy cost of the gate and boundary terms with respect to the bond terms.
The first line of Eq. (5c) defines the interactions in the bulk. is the biadjacency matrix of the bipartite -regular graph that defines the problem instance, as described above. When , a CNOT gate is placed at position , otherwise a SWAP is placed there instead, as sketched in Fig. 2. Note that in our convention indexing proceeds from left to right and top to bottom. We consider the limit , so that outputs are essentially âdummyâ spins, whose state is completely controlled by the gate inputs. When the ground state of is reached, the solution appears on the left and right boundaries of the lattice, which are left free. The requirement that clauses sum modulo 2 to 0 or 1 is enforced by the term on the last line, which acts only on the top and bottom rows of boundary spins and whose relative sign between top and bottom depends on whether is odd or even. For example, for we choose (all-zeros state in bottom row) to ensure that all clauses sum modulo 2 to 0, whereas for we choose (all-ones state in bottom row), which requires all clauses to sum modulo 2 to 1. When this interaction becomes a hard constraint. This clause constraint is then propagated to the bulk by the terms in Eqs. (5d) and  (5e), which define the interaction between spins at the top () and bottom () boundaries and bulk gate spins.
Here we restrict our analysis to instances of -regular -XORSAT which have all the minimum nonzero number of solutions. For , generic problems with a unique solution exist. For all such problems, a spin reversal transformation exists which maps the solution to the all spins down state Farhi et al. (2012) and we shall assume that our system has already undergone this transformation. We will focus on these problems below, as they are a finite fraction of all 3-XORSAT instances and are thus good representatives of the full ensemble Jörg et al. (2010). For , there are always two solutions, one of which corresponds to the all-down state.
We generate 3-regular 3-XORSAT instances with unique solutions by first generating a random bipartite 3-regular graph and retaining only those instances which have an odd determinant, as this condition enforces a unique solution Yang (2013). We also ensure that the generated graph is connected. We then use the biadjacency matrix of this graph to define the lattice embedding. For the -regular variants of XORSAT, the finite lattices are by definition square. Varying the clause-to-variable ratio amounts simply to changing the lattice aspect ratio.
IV Analytic results: limiting cases and weak-field perturbation theory
IV.1 Dilute constraint limit and 2-XORSAT
In the lattice setup, if we only have SWAP gates at all the intersections between clauses and bits, then we recreate disconnected transverse field Ising chains. This can be seen by considering the action of the SWAP gate as given in Eq. (5a), where we see that spins are only coupled along either the horizontal or vertical directions. Considering also the transverse-field term, and remembering that input and output spins of gates are locked when , the Hamiltonian for a decoupled chain reduces to
[TABLE]
where now denotes the coordinate along the chain. This is simply the transverse-field Ising (TFI) chain, which is known to have a continuous phase transition at and a critical behavior which is well understood Pfeuty (1970). This would then imply that in the limit of zero CNOT gates on the lattice, we would have a second-order transition characterized by the TFI chain universality class.
The lattices that arise in our embedding of -regular -XORSAT have CNOTs in each vertical and horizontal line. This leads to a CNOT density . For , the system reduces to independent TFI chains coupled at a vanishing number of points. Two possibilities arise for a potential phase transition that the system may undergo as a function of . The first is that the phase transition remains continuous as for decoupled TFI chains when the density of âimpuritiesâ is vanishing. The second possibility is that this vanishing number of impurities drastically changes the nature of the phase transition from continuous to first-order. In the first case, we would be left with a lattice which is able to solve the computational problem in polynomial time. In the second case, the lattice would require exponential time and would be an example of a system where adding a vanishing number of impurities changes the order of the transition. An example of this behavior occurs in the polymerization of rubber Flory and Rehner Jr (1943), where the process of vulcanization leads to a vanishing number of cross-links between polymers, which in turn changes the state of rubber from liquid to solid.
Let us examine the case. Each instance contains a periodic Ising chain, as it corresponds to a series of ferromagnetic bonds between spins, where each spin participates in only two bonds, as illustrated in Fig. 3(a). This lattice can be reconfigured as an Ising chain with offshoots, as shown in Fig. 3(b), using the following âunravelingâ procedure. First, pick an arbitrary CNOT and an arbitrary direction (vertical or horizontal), then draw a link between the starting CNOT and its neighbor in that direction. As there is only one neighbor in either direction, there is no ambiguity in this step. Now rename the neighbour as the starting site and follow the same procedure using the direction perpendicular to the current direction. This process creates a unique loop with spin chains branching out at the locations with CNOTs. This equivalence is valid as SWAP gates only braid chains over each other without interactions. Taking the limit of large size, we would expect the average separations between CNOTs to be of order and the fluctuations about this should be statistically small.
Examining the energetics of domain walls in this system illustrates why SA is expected to be efficient in reaching the solution in this case. Let us consider a configuration of this system with a number of domain walls which would correspond to a typical state encountered at finite temperature, as seen in Fig. 3(b). If we translate a domain wall through a CNOT, it generates two domain walls on the other side, one of which can be healed by translating it out to the boundary, while the other can travel around the ring until it meets another domain wall, with which it can mutually annihilate. In this way, domain walls can be healed all the way to a state without domain walls, i.e. the ground state, in a smooth sequence of steps that monotonically reduce energy other than the one additional bond that must be broken when passing through a CNOT. In Sec. V, we will show that 2-XORSAT is also efficiently solved with QAA.
We now apply the same argumentation to the lattice representation of the case. We decompose the lattice into a loop using the unraveling procedure. Fig. 4 shows a realization of 3-regular 3-XORSAT with the same backbone structure as Fig. 3. The additional CNOT gates now provide frustrating interactions which force the backbone chain to have all spins pointing down and spin inversion symmetry for that section of the lattice is lost. We can look at this in detail using the particular cross-connecting CNOT shown in Fig. 4 (highlighted in red) for the classical ground state where all bonds must be satisfied. If we assume that the spins lying in the blue chain are +1, then spin A3 would be forced to -1, implying B1 has to be -1. From this it follows that B2 must be +1, as B3 is +1 due to a direct connection to the boundary. This would then force B4 and as a result C2 to be +1. And as C3 is +1 due to the boundary, C1 must both be -1 creating a contradiction as C1 belongs in the blue chain and must be +1. In terms of the ring structure in Fig. 4(b), this would mean cross-connections between various offshoots, which would destroy the one-dimensional nature of the chain.
The convoluted loop structure of instances implies that domain wall movement now becomes highly non-trivial: we cannot simply heal domain walls by moving them to the boundary, but must instead translate them to the next CNOT, where they can perhaps annihilate by merging with another domain wall. However, moving a domain wall around the ring now produces a large number of domain walls, as each CNOT results in branching. Each of the resulting defects can be healed only after traversing half the ring on average. This illustrates why SA will fail to solve this problem efficiently, even though our lattice formulation can be shown to feature no thermodynamic glass transition Chamon et al. (2017); Zhang et al. (2018) and is also found to be similar to the vertex models proposed in Ref. Chamon et al., 2017 (see also Appendix A).
IV.2 Weak-field perturbation theory: absence of gap collapse
Altshuler et al. Altshuler et al. (2010) pinpointed a potential setback inherent in the QAA protocol. Perturbative analysis showed that generic classical Hamiltonians set up to solve computational problems may give rise to an avoided level crossing when an arbitrarily small transverse field is added. This implies an exponential reduction in annealing velocity, in order to maintain fidelity with the target ground state. In order to fully address the potential issue of avoided level crossings and to show that it is not present in our lattice formulation, we will now present a full perturbative treatment of the general -regular -XORSAT problem. A similar analysis appears in Ref. Knysh and Smelyanskiy, 2010.
Consider the spectrum of a classical spin model that represents a computational problem. We again restrict ourselves to instances with a unique solution. The ground state of the model is therefore unique. The first excited state is degenerate and is made out of all those configurations that differ from the ground state in the status of a single bond. At , the corresponding energy levels have a difference of from the ground-state level. Altshuler et al. show that perturbative corrections to the gap between the ground state and the first excited state for small should depend on system size in the general case, an argument resulting from the disorder present in most spin representations of computational problems. This leads to a second-order correction proportional to , where is the system size. They conclude that for arbitrarily small there exists such that the correction surpasses , leading to an avoided level crossing.
Contrary to the above argument, we will show that there are no vanishing gaps in the weak-field limit for -regular -XORSAT. First, let us define a bond to have two states, the set state where it is satisfied and the broken state, and the two inputs of a gate to be degrees of freedom (as mentioned in the previous section, the outputs of the gates are completely determined by the inputs, so they are not degrees of freedom, and thus will be ignored). Each gate has four bonds radiating out. Flipping either of the two input spins of a SWAP gate flips the states of two bonds, irrespective of what their states are and irrespective of what the state of the spin was. For the CNOT gate, flipping the carry input (C) switches the state of two bonds, but flipping the control input (X) switches the state of three bonds, again irrespective of the initial bit states (Fig. 5). Flipping a boundary spin switches the state of only one bond. The important thing to note here is that the cost induced due to a flip does not depend on the states of spins. Therefore, perturbation theory on the ground state creates corrections, but none of these depend on the ground-state configuration.
First, consider that all excited-state levels are non-degenerate. This situation is artificial and we treat it only because it simplifies the discussion of the physically relevant case of highly degenerate excitation manifolds discussed below. The excitation energy of the state created due to a single spin flip at site is one of , depending on whether it belongs to the boundary, a SWAP gate or a CNOT gate respectively. The second-order perturbation correction to the ground-state energy is
[TABLE]
so far in accordance with the Altshuler et al. argument. Any term in this sum is determined only by the state of the four bonds radiating out of a particular point on the lattice and the gate corresponding to that point. Each lattice point carries two spins, implying that the status of a particular bond, which can only control two lattice points, is relevant only to at most four terms in this sum. As the only difference between the ground state and one of the first excited states is the status of one bond, only four or lesser number of terms in the perturbation corrections for both states can differ. It follows that the change in the gap due to these corrections is
[TABLE]
which is independent of system size, similar to the clean TFI model Suzuki et al. (2012).
We now take into account the mixing of the degenerate first-excited states amongst themselves due to the transverse field. This typically results in the degenerate levels spreading over a band of width and is, once again, independent of system size. After first-order degenerate perturbation theory, the states that result from the mixing of the first-excited configurations at zero field are
[TABLE]
where is a first-excited configuration with energy . The states are then used to perform higher-order perturbation theory. Second-order corrections look like
[TABLE]
where runs over states that are necessarily not . Of the âdiagonalâ terms , at most four are nonzero, by the same reasoning we employed above. For the terms with , if has a frustrated bond in the bulk, there is no way to connect it to via using states within the first level. On the other hand, when contains a frustrated boundary bond, we can connect to all other such singly excited states. However, these second-order processes are equally possible for all states, regardless of gate configuration, and hence this correction amounts to a uniform shift of all levels. The above means that the relative shift of a first-excited state level with respect to the ground-state level is going to be bounded in the same way as it was for just one spin configuration in the first level. The same argumentation extends to higher corrections straightforwardly. We therefore conclude that there is no perturbative gap collapse in the weak-field limit for the models we study here.
We remark that the arguments presented above also extend to the random graph spin model for 3-regular 3-XORSAT studied in Ref. Farhi et al., 2012, and evidence for this can be seen in the duality of that that model possesses. This duality implies that the spectrum is identical for , and as the strong transverse field limit has a well defined gap, the ferromagnetic limit does too.
V Numerical results
In this Section, we apply the QAA protocol to the lattice models for -regular -XORSAT we introduced above. We simulate QAA via projector Quantum Monte Carlo (QMC) simulations to investigate the transitions encountered upon varying the transverse field. Our calculations are set up following the style of simulations for TFI models Sandvik (2003); Liu et al. (2013) due to the similarity in the Hamiltonians and they are able to access ground state expectation values for various observables. It is known that for glassy systems or at first-order transitions, this style of QMC suffers from long equilibration times and non-ergodic behavior Brady and van Dam (2016). Cluster updates using larger objects made out of multiple spins, which have been found to be useful for particular frustrated Ising antiferromagnets Biswas and Damle (2018), were found to be rejection-prone for our 3-XORSAT model due to the three-body terms that make up CNOTs. This limits the sizes of the lattices we can simulate and also how deep our simulations can reach into the ferromagnetic phase. We use a variety of local and replica exchange updates Hukushima and Nemoto (1996); Takahashi and Hukushima (2019) to speed up the algorithm. Details of the implementation of the replica exchange method can be found in Ref. Takahashi and Hukushima, 2019, where it has been applied to a similar model. We will study our models in the context of continuous and first-order phase transitions, which show a diverging and a finite correlation length, respectively. The energy gap is expected to close for both types of transitions, but the scaling of the minimum gap with system size differs, closing as for the former and for the latter .
The lattice models of -regular -XORSAT with a transverse field, defined by Eqs. (3) and (5), show two phases: a disordered phase in the limit of strong transverse field and an ordered phase in the ferromagnetic (or classical) limit. To simplify our analysis, we set and vary through the transition between the two phases. To find the critical value of the ferromagnetic coupling and the nature of the phase transition, we use the Binder cumulant Binder (1981)
[TABLE]
where is the magnetization of the system in the direction. In the strong transverse field limit, the system is magnetized along the axis, which implies that , whereas in the ferromagnetic limit all spins are aligned, leading to a saturation of magnetization. is defined such that it evaluates to zero in the disordered phase and unity in the ordered one. At the phase transition, goes from 0 to 1 within a window of that gets narrower as system size increases. For a continuous transition, the behavior is monotonically increasing in most cases, although exceptions are known Jin et al. (2012), and for a first-order transition has a negative peak at the critical point which diverges with system size as , where is the dimensionality of the system Binder (1987).
The Binder cumulant is chosen here to be sensitive to symmetry breaking, which would be the symmetry usually studied in Ising systems. For the case, the boundary conditions enforce a single solution, meaning that the system is not doubly degenerate and in this case, shows a non-zero value on the disordered side before the transition (seen in Fig. 9), as the histogram favors net negative magnetization. This anomaly is also seen in the transverse field Ising chain with fixed boundary conditions similar to the ones studied.
We begin our study of the effectiveness of QAA on 2-regular 2-XORSAT by first applying the algorithm to the building block of this system: a single CNOT gate coupling long spin chains, as shown in Fig. 6. The CNOT coupling is expected to result in no drastic change to the continuous phase transition of the two chains, as it is a single defect in a large system. Numerical evidence for this is shown in Fig. 7. Even for large systems of two chains intersecting, the magnetization histogram shows no coexistence of phases, indicative of a second-order transition. For first-order transitions, on the other hand, the same histogram would show a bimodal distribution, indicative of phase coexistence Binder (1987). We expect the same conclusion to extend to the case of a large number of these âcrossâ-linked chains connected horizontally when the separation between CNOT gates is large, which is the case for , as shown in Fig. 3. It is seen that CNOTs interact only along a linear chain and correlation length growth is controlled by the physics of the TFI chains connecting them. We therefore expect a continuous phase transition at .
We analyze 2-XORSAT instances by studying the behavior of and the evolution of the magnetization histograms â see Fig. 8. 20 realizations are used for each size and the critical value of is found to be close to unity, which matches the decoupled TFI chain value. For , the two ground states correspond to the configuration with all spins pointing down and the configuration with all bit line spins pointing up and a complicated ordering of the clause spins which is consistent with the solution and realization dependent. Due to the non-trivial structure of the ground states, has to be defined using only the variable spins, as they form a spin-symmetric subset. This implies that the order parameter we use for is the average -magnetization squared of only the row spins and at each position, which make up half of the total spins. For all the realizations of all lattice sizes, we found that never becomes negative and the magnetization histograms show no sign of phase coexistence, indicating a continuous transition, as seen in Fig. 8.
The QAA protocol for 3-regular 3-XORSAT proceeds in the same vein as for . Using QMC simulations, we study the Binder cumulant using the full magnetization (as has only one ground state) as a function of ferromagnetic coupling for lattice sizes ranging from to . For each lattice size, we study 20 realizations of the 3-regular 3-XORSAT on the lattice with unique solutions. We find that for most of the realizations and for all sizes the Binder cumulant shows a negative peak. This can be seen in Fig. 9(g) for all realizations of a lattice. Due to lack of ergodicity typically seen at first order phase transitions, we had to reject a large number of QMC simulations, retaining only those where both phases are represented as some simulations are not able to break out of the paramagnetic phase. This in itself only indicates that we may have a first-order transition but does not say so definitively. Showing that the negative peak in the Binder cumulant scales as number of sites is taken to be definite proof that the system is undergoing a first-order transition but we are unable to perform this analysis due to insufficient data quality and range of sizes. We omit error bars in Figs. 8(g) and  9(g) for clarity and as the error bars are small compared to the spread of the Binder cumulant values for different realizations.
Fig. 9 shows the evolution of the histogram as a function of for the 3-regular 3-XORSAT including the value of at which is found to be minimum. The histogram indicates that there is a coexistence of phases which sharpens with increasing size and the phase transition can potentially develop into a first-order transition in the thermodynamic limit. Our system sizes and data quality limit our analysis, but for the system sizes we can access the first order nature appears to persist to the largest system size (Fig. 9). It is important to stress here that although the density of gates is vanishing in the thermodynamic limit, they are placed in a correlated manner, and can hence define the criticality of this model.
VI Summary and conclusion
We introduced a statistical mechanics representation of the XORSAT problem that recasts each instance as a planar grid of reversible gates acting on bits that represent the Boolean variables of the problem. The reason we chose this particular embedding of XORSAT is that it lacks a classical thermodynamic phase transition. We studied this system with quantum annealing and showed that it does not suffer from the perturbation theory collapse found by Altshuler et al. Altshuler et al. (2010) at small transverse field strengths. We found that 3-regular 3-XORSAT displays a first-order transition at intermediate values of the transverse field, implying that quantum annealing leads to a time-to-solution that scales exponentially with the size of the system. Our results also suggest that the physics of the phase transition is determined not only by the density of CNOT defects, but also by their correlations. Taken together, these results on this alternative embedding of XORSAT reinforce the conclusion that both thermal and quantum annealing, which are intrinsically local approaches, can be inefficient in solving even simple problems (in computational complexity class P).
Acknowledgements.
We would like to thank Anders W. Sandvik and Jun Takahashi for suggesting improvements to the algorithms and sharing valuable technical expertise and Lei Zhang for valuable results from simulated annealing. We would also like to thank Chris Baldwin, Phillip Weinberg, and Itay Hen for useful discussions. The computational work was performed using the Shared Computing Cluster administered by Boston Universityâs Research Computing Services. We used QuSpin for checking the Quantum Monte Carlo simulation against exact diagonalization calculations Weinberg and Bukov (2017). This work was partially supported by the U.S. Department of Energy (DOE), Division of Condensed Matter Physics and Materials Science, under Contract No. DE-SC0019275 (PP, CC, and ERM).
Appendix A Mapping to the vertex model
Here we comment on the limitation of using thermal annealing to reach the ground state of 3-regular 3-XORSAT in spite of the absence of a bulk thermodynamic phase transition  Chamon et al. (2017). The simplest way to understand the slow thermal relaxation into the ground state of the XORSAT model is to use the recipe of Ref. Chamon et al., 2017 to embed XORSAT into the alternative spin model shown in Fig. 10. In this model, only half the boundary spins are fixed in each boundary, corresponding to the clause spins being fixed by a strong field in Eq. (5e), with the free bits (spins) on the rest of the boundaries. Reaching the ground state of this model through thermal annealing requires that information propagates between the boundaries until all free spins on both boundaries are fixed. This âmixed boundary conditionâ case in which only partial initial information is available on the input/output boundaries was already studied in Ref. Chamon et al., 2017. There it was found that thermal annealing is ineffective in reconciling the non-local information between the two boundaries, explaining the slow relaxation of the lattice embedding of 3-regular 3-XORSAT.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1Kirkpatrick et al. (1983) S. Kirkpatrick, C. D. Gellat Jr., and M. P. Vecchi, Science 220 , 671 (1983) . · doi â
- 2Mézard et al. (2002) M. Mézard, G. Parisi, and R. Zecchina, Science 297 , 812 (2002).
- 3Mézard and Montanari (2009) M. Mézard and A. Montanari, Information, physics, and computation (Oxford University Press, 2009).
- 4Ricci-Tersenghi (2010) F. Ricci-Tersenghi, Science 330 , 1639 (2010) . · doi â
- 5Chamon et al. (2017) C. Chamon, E. R. Mucciolo, A. E. Ruckenstein, and Z.-C. Yang, Nat. Commun. 8 , 15303 (2017) . · doi â
- 6Zhang et al. (2018) L. Zhang, S. Kourtis, C. Chamon, E. R. Mucciolo, and A. E. Ruckenstein, preprint ar Xiv:1812.01621 (2018).
- 7Yang (2013) Y. Yang, Math. Comput. Educ. 47 , 224 (2013).
- 8Boixo (2014) S. Boixo, Nat. Phys. 10 , 218 (2014).
