Abstract
Quantum annealing is a heuristic algorithm for solving combinatorial optimization problems, and hardware for implementing this algorithm has been developed by D-Wave Systems Inc. The current version of the D-Wave quantum annealer can solve unconstrained binary optimization problems with a limited number of binary variables. However, the cost functions of several practical problems are defined by a large number of integer variables. To solve these problems using the quantum annealer, integer variables are generally binarized with one-hot encoding, and the binarized problem is partitioned into small subproblems. However, the entire search space of the binarized problem is considerably larger than that of the original integer problem and is dominated by infeasible solutions. Therefore, to efficiently solve large optimization problems with one-hot encoding, partitioning methods that extract subproblems with as many feasible solutions as possible are required. In this study, we propose two partitioning methods and demonstrate that they result in improved solutions.
Similar content being viewed by others
Introduction
The combinatorial optimization problems aim to minimize cost functions defined by discrete variables, and these problems often have significant real-world applications. In general, the cost function of a combinatorial optimization problem can be expressed as the Hamiltonian of a classical Ising model1. Therefore, many algorithms for solving combinatorial optimization problems have been inspired by physics. Simulated annealing (SA)2 is one of the most famous algorithms, employing thermal fluctuations to escape local minima. In contrast to SA, quantum annealing (QA)3 is a method that exploits quantum fluctuations and the resulting tunneling effect. A popular research topic involves evaluating whether it is more advantageous to employ quantum effects than thermal fluctuations, and numerous studies have been conducted on this topic4,5,6,7,8,9. In addition, the recent development of a commercial quantum annealer by D-Wave Systems Inc10. has attracted many companies and researchers. The performance of QA has been experimentally studied using the quantum annealer and compared with that of SA11,12,13, and several companies have demonstrated the applicability of the annealer to practical problems14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30.
The time-dependent Hamiltonian of QA is given as follows
where \({\hat{H}}_{0}\) is the target Hamiltonian representing the cost function, and \({\hat{H}}_{{\rm{q}}}\) denotes the quantum fluctuation term for which the ground state is trivial. The initial values of the coefficients are set to A(0) = 1 and B(0) = 0, and the system is prepared in the trivial ground state determined by \({\hat{H}}_{{\rm{q}}}\). Then, the strength of the quantum fluctuation is reduced toward zero, and the coefficients are set to A(τ) = 0 and B(τ) = 1 at the end of QA, where τ is the annealing time. The dynamics of the system is described by the Schrödinger equation:
where ψ(t) is the state vector of the system, and ℏ is set to 1 for simplicity. Given that the coefficients change sufficiently slowly, the adiabatic theorem31 ensures that the system remains close to the instantaneous ground state of the time-dependent Hamiltonian. Thus, by setting the annealing time τ to be sufficiently large, the ground states of the target Hamiltonian \({\hat{H}}_{0}\) can be obtained with high probability.
The current version of the D-Wave quantum annealer (D-Wave 2000Q) implements transverse-magnetic-field QA, for which the quantum fluctuation is given as follows:
where Nq denotes the number of qubits. The quantum annealer can handle a cost function as follows:
where the interactions between qubits are restricted to the Chimera graph32, which is a 16 × 16 grid of complete bipartite graphs K4,4 in D-Wave 2000Q. It should be noted that the number of operable qubits is less than Nq = 2,048 due to defects in the qubits and connectivities.
Due to the limited number of available qubits, large optimization problems cannot be solved directly using the D-Wave quantum annealer. In real settings, large problems are partitioned into subproblems that can be handled by the quantum annealer. The subproblems are iteratively optimized by the quantum annealer, and the optimization result is used to improve the current solution33,34,35. A cluster of spins in the subproblem is simultaneously updated in this scheme; this iterative method is a type of large-neighborhood local search algorithm36. Although these algorithms can be performed using classical computers, subproblems are fundamentally restricted to tree structures that are solvable in polynomial time by belief propagation or dynamic programming37,38,39,40. Therefore, using the quantum annealer is advantageous if it can solve subproblems with many closed loops more efficiently than classical algorithms. Furthermore, solving subproblems that are as large as possible is essential for improving solution accuracy41. The size of subproblems that can be embedded into the quantum annealer strongly depends on the quality of the minor embedding, in particular for problems with few interactions. Because subproblems must be iteratively embedded, fast algorithms for embedding larger subproblems are required for exploiting the potential of the quantum annealer. Although complete-graph embedding42,43,44 can be used for problems with dense interactions, a subproblem-embedding algorithm, that was developed in a previous study41, may be effective in improving the solution accuracy of sparse problems.
In addition, the quantum annealer requires the cost function to be represented in the form of a quadratic unconstrained binary optimization (QUBO) problem or Ising model; however, many cost functions in practical problems are defined by integer variables. The binarization of integer variables is generally achieved using one-hot encoding1. For example, suppose that we wish to solve the following integer optimization problem with N integer variables {Si}i = 1,2,...,N:
where Si ∈ (1, 2, ..., Q), Q is the number of components, Ji,i+1 is an interaction between Si and Si+1, and δ is the Kronecker delta function. The integer variables {Si}i = 1,2,...,N can be binarized by one-hot encoding as follows:
where \({x}_{i}^{(q)}\in (0,1)\) is a binary variable that is assigned to component q of Si, and \({x}_{i}^{(q)}=1\) indicates that component q is selected for Si. In addition, feasible solutions are constrained to configurations in which exactly one component is selected for each Si. Subsequently, a penalty term is introduced to obtain the following unconstrained form:
where the second term formulates the penalty term which is introduced to extract feasible solutions satisfying the constraint \({\sum }_{q=1}^{Q}{x}_{i}^{(q)}=1\), which we call the one-hot constraint, and parameter λ controls the strength of the penalty term. By setting parameter λ to a sufficiently large value, the ground states of the original integer optimization problem (Eq. (5)) are correctly encoded. However, the performance of the D-Wave quantum annealer is significantly affected by noise and intrinsic control errors when λ is larger than necessary. Therefore, to obtain highly accurate solutions, we must explore an appropriate value of λ, which is a tedious task for optimization under the one-hot constraint. In addition, the entire search space of the binarized optimization problem (Eq. (7)) is dominated by infeasible solutions. Figure 1(a) presents the problem graph of Eq. (7). In this figure, vertices and edges represent binary variables and the interactions between them, respectively. Q binary variables \({\{{x}_{i}^{(q)}\}}_{q=1,2,...,Q}\) are assigned to each Si, and the total number of binary variables is NQ. Although the number of configurations of the binary variables is 2NQ, the number of feasible solutions is only QN. Therefore, to efficiently solve large optimization problems under the one-hot constraint using the quantum annealer, partitioning methods are required for extracting subproblems with as many feasible solutions as possible. A simple example of an undesirable partition is depicted in Fig. 1(b). Here, suppose that we wish to improve the current solution presented in Fig. 1(b) and that the three binary variables enclosed by the green rectangle are extracted as the subproblem. In this case, superior feasible solutions cannot be explored by optimizing the subproblem because only the current solution in the subproblem satisfies the one-hot constraint. To the best of our knowledge, the partitioning method proposed by Nishimura et al.30 is the first to focus on the one-hot constraint. This method is applicable to the double-constrained problems \({\sum }_{q}{x}_{i}^{(q)}=1\) and \({\sum }_{i}{x}_{i}^{(q)}=1\), such as the assignment problem and the traveling salesman problem. However, the extracted subproblems still contain infeasible solutions for which parameter λ must be adjusted. In this study, we propose two partitioning methods applicable to problems whose cost function involves a single one-hot constraint, as illustrated in Eq. (7). The first method is similar to the partition proposed by Nishimura et al., while the second method extracts subproblems comprising only feasible solutions and does not require adjusting parameter λ. The performance of the proposed methods is assessed for several Potts models, which are generalized Ising models whose cost function is defined by integer variables45. We demonstrate that the proposed methods efficiently obtain superior solutions.
Results
In this section, we propose efficient partitioning methods for solving large integer optimization problems under the one-hot constraint. In addition, we assess the performance of the proposed methods for several Potts models.
Proposed methods
We propose two partitioning methods: a multivalued partition and a binary partition. These methods are summarized in Fig. 2. Both methods extract a subproblem that involves binary variables assigned to the tentatively selected components for each Si. The resulting subproblems include feasible solutions other than the current solution.
The multivalued partition extracts a subproblem with two or more components for each Si, as illustrated in Fig. 2(a). In addition to the tentatively selected component, the multivalued partition randomly selects one or more components for each Si, and then extracts a subproblem that comprises the binary variables assigned to the selected components. The extracted subproblem involves feasible solutions other than the current solution, and the randomly selected components are explored for each Si by optimizing the subproblem. However, the extracted subproblem still contains infeasible solutions, and the penalty term remains in the cost function of the subproblem. This partitioning method is similar to the partition proposed by Nishimura et al. Although subproblems are embedded using complete-graph embedding in the study by Nishimura et al.30, we employed the subproblem-embedding algorithm developed in our previous paper41. Details of achieving a multivalued partition using the subproblem-embedding algorithm are provided in the Methods section.
The binary partition is summarized in Fig. 2(b). In addition to a tentatively selected component, the binary partition randomly selects exactly one component for each Si. Subsequently, new binary variables {yi}i = 1,2,...,N that represent “stay in the tentatively selected component (yi = 0)” or “transit to the randomly selected component (yi = 1)” are introduced for each Si, and a binary subproblem is constructed whose cost function is defined by {yi}i = 1,2,...,N. The cost function of the binary subproblem is derived in the Methods section. Thereafter, a subproblem of the binary subproblem is embedded into the D-Wave quantum annealer by the subproblem-embedding algorithm41. Here, the cost function of the binary subproblem does not involve the penalty term because all solutions in the binary subproblem are feasible. Therefore, the binary partition does not require adjusting parameter λ. In addition, a larger number of binary variables can be embedded into the D-Wave quantum annealer because the penalty term, which generates fully connected interactions between \({x}_{i}^{(q)}\) and \({x}_{i}^{(q\text{'})}\), is not involved. Consequently, the number of feasible solutions involved in the embedded subproblem is significantly increased using the binary partition. The binary subproblem can be regarded as one of the simplest cases of optimization under the half-hot constraint46. The penalty term of the half-hot constraint is given by
and Q/2 components are extracted. The half-hot constraint is proposed to avoid the difficulty caused by the longitudinal magnetic field in the penalty term of the one-hot constraint. This difficulty is avoidable using the binary partition, which may contribute to improving solution accuracy. A disadvantage of the binary partition is that only two components are considered for each integer variable. As demonstrated in the following subsection, this leads to poor performance for the ferromagnetic Potts model.
Performance assessment
The performance of the proposed methods is evaluated for the following four types of Potts models on a cubic lattice with 10 × 10 × 10 integer variables: the ferromagnetic, anti-ferromagnetic, Potts glass47 and Potts gauge glass48,49 models. While the ground states of the ferromagnetic and anti-ferromagnetic Potts models are trivial, it is generally difficult to obtain the ground states of the Potts glass and Potts gauge glass models due to competing interactions.
The cost function is given by
where Q is set to 4, Si ∈ (1, 2, 3, 4), Δij ∈ (0, ±1), δ is the Kronecker delta function, and Jij represents the interaction between the nearest neighbors on the cubic lattice with the periodic boundary condition. The cost function is represented in QUBO form using the one-hot constraint as follows:
Parameters Jij, Δij, and λ in each model are presented in Table 1. Δij ≠ 0 generates interactions between different components in the Potts gauge glass model, and Fig. 3 illustrates the local interactions generated by the first term of Eq. (10). Although it is generally difficult to determine an appropriate value of λ a priori, we can derive the lower bound of λ to correctly encode the original optimal solutions for the ferromagnetic and anti-ferromagnetic Potts models. The lower bound strongly depends on whether there exist infeasible solutions that set the first term of Eq. (10) to a smaller value than that of the original optimal solutions. λ > 0 is sufficient if such infeasible solutions do not exist; however, a sufficiently large value of λ is necessary if such infeasible solutions exist. For the ferromagnetic Potts model, the first term of Eq. (10) for an infeasible solution with \({x}_{i}^{(1)}={x}_{i}^{(2)}=1,{x}_{i}^{(q\ge 3)}=0\) is lower than that of the original optimal solution (e.g., \({x}_{i}^{(1)}=1,{x}_{i}^{(q\ge 2)}=0\)) by 3N. Because the second term in Eq. (10) increases by Nλ in this infeasible solution, λ > 3 is required. In this study, we set λ = 3.3 because an unnecessarily large value is not preferable, as mentioned in the Introduction section. While for the anti-ferromagnetic Potts model, the original optimal solutions minimize the first term of Eq. (10). Therefore, λ > 0 is sufficient, and we set λ = 1.0, which is the same value as Jij in the first term. However, for the Potts glass and Potts gauge glass models, the lower bound cannot be derived because the original optimal solutions are not trivial. At least, by setting λ > 3, we can restrict energy changes caused by a single-spin flip from the optimal solutions to be a positive value, and λ is set to 3.3 in this study.
The optimization process demonstrated in this study is illustrated in Fig. 4. The original large problem is partitioned using three partitioning methods: random, multivalued, and binary partitions. The random partition does not address whether an extracted subproblem contains feasible solutions for each Si. A subproblem-embedding algorithm proposed in the literature41 is used for embedding a subproblem into the D-Wave quantum annealer with defects in qubits and the interactions between them (details on embeddings are provided in the Methods section). After optimizing the embedded subproblem by the D-Wave quantum annealer under the parameter settings provided in Table 2, the variables in the subproblem are replaced by the best solution among the 1,000 solutions obtained using the quantum annealer. Subsequently, a greedy algorithm is executed by a conventional digital computer to recover the one-hot constraint and obtain an exact (local) minimum. In this algorithm, if there exist integer variables violating the one-hot constraint, the constraint is first recovered by extracting the integer variables and selecting exactly one component that minimizes the local energy for each integer variable. Then, an integer variable is randomly selected, and the tentatively selected component is replaced with one that minimizes the local energy. Refining the current solution is completed when all local energies are minimized. Finally, the best solution obtained in the procedure is updated, and the above processes are iterated. We then compare the solution accuracy for the three partitioning methods.
Figure 5 represents the energies obtained by the three partitioning methods. The average, maximum, and minimum energies for 16 trials are plotted, and the same 16 initial states are used for each partitioning method. The horizontal axis represents the number of iterations, which is the number of subproblem optimizations performed by the D-Wave quantum annealer. The plot for the multivalued partition is shifted slightly to the left to avoid overlap with other plots. Figure 5(a,b) illustrate the energies obtained for the ferromagnetic and anti-ferromagnetic Potts models, respectively. The ground states of these models are trivial, and the minimum energy is −3 and 0 for the ferromagnetic and anti-ferromagnetic Potts models, respectively. Although the multivalued partition is expected to solve large optimization problems more efficiently than the random partition, the performances of the random and multivalued partitions are almost identical. The performance of the binary partition differs from the other methods, however; it is the lowest for the ferromagnetic Potts model, and the highest for the anti-ferromagnetic Potts model. Figure 5(c,d) present the energies obtained for the Potts glass and Potts gauge glass models, respectively. As expected, superior solutions are obtained with a smaller number of iterations using the multivalued partition rather than the random partition, in particular for the Potts gauge glass model. Of the three partitioning methods, the binary partition shows the highest performance for both the Potts glass and Potts gauge glass models.
Discussion
In this section, we discuss the differences between the three partitioning methods. The following three questions arise from the results presented in the previous section.
-
Why is the multivalued partition not superior to the random partition for the ferromagnetic and anti-ferromagnetic Potts models?
-
Why is the performance of the binary partition the lowest for the ferromagnetic Potts model?
-
Why does the binary partition exhibit the highest performance for all models except for the ferromagnetic Potts model?
A possible answer to the first question is that, for the ferromagnetic and anti-ferromagnetic Potts models, improved feasible solutions can be obtained through infeasible solutions because there likely exist infeasible solutions whose energy is lower than that of a current feasible solution in a neighbor. Figure 6(a) presents a simple example for the one-dimensional ferromagnetic Potts model. We assume that the binary variable enclosed by the green rectangle is extracted as a one-variable subproblem, which is one of the simplest cases of the random partition. The energy change caused by flipping the extracted binary variable is −2J + λ because two interactions are simultaneously recovered (−2J) and the one-hot constraint is violated (+λ). If λ < 2J, flipping the binary variable decreases the energy despite violating the constraint. It should be noted that λ > J is sufficient to correctly encode the ground states of the one-dimensional ferromagnetic Potts model. This is because the energy of the lowest-energy infeasible states, in which two components are commonly selected for each Si, is −2NJ + Nλ and must be larger than that of the ground states (−NJ). Consequently, if λ is appropriately tuned (J < λ < 2J), the current solution is updated to the infeasible solution by optimizing the subproblem, and superior feasible solutions are obtained via the infeasible solution. Whether energy changes become negative or not in spite of violating the one-hot constraint strongly depends on the number of simultaneously recovered interactions. For the ferromagnetic and anti-ferromagnetic Potts models without competing interactions, many interactions can be simultaneously recovered by violating the one-hot constraint. As a result, the multivalued partition is not effective in improving the solution accuracy for these models. In contrast, for the Potts glass and Potts gauge glass models with competing interactions, the performance of the multivalued partition is superior to that of the random partition.
In answer to the second question, subproblems that can eliminate domain walls are rarely extracted by the binary partition. Figure 6(b) presents one of first excited states, which is commonly observed in the optimization of the ferromagnetic Potts model. The 10 variables in Fig. 6(b) are divided into two domains: five variables S1, ..., S5 are aligned to q = 1 in one domain, while the remaining five variables S6, ..., S10 are aligned to q = 2 in the other domain. The boundary between the domains is referred to as the domain wall. To improve the current solution, an extracted subproblem must contain one of the ground states because the current solution is the first excited state. For example, to align all integer variables {Si}i = 1,2,...,10 to q = 1, component q = 1 must be selected for integer variables S6, ..., S10. The probability of component q = 1 being selected for S6, ..., S10 is (1/3)5 = 1/243 because, in addition to the tentatively selected component, the binary partition randomly selects one component for each Si. This probability exponentially decreases with respect to the number of variables, and the extraction of only two components is not suitable for the ferromagnetic Potts model. We further conjecture that the binary partition exhibits poor performance for optimization problems containing ferromagnetically ordered domains, and that the concomitant use of the binary and multivalued partitions may be preferable for such problems.
The answer to the third question is that there exist several binary subproblems that can improve the current solution. Figure 6(c) illustrates the local interactions in the anti-ferromagnetic Potts model. The current solution is one of the first excited states in which the local energy with respect to S1 and S4 is not minimized, which we say “the interaction between S1 and S4 is broken” in this paper. Assuming that the integer variable S4 is updated to improve the current solution, there are two binary subproblems that can improve the current solution. Therefore, the disadvantage of the binary partition, which is that only two components are considered for each integer variable, is mitigated for the optimization of the anti-ferromagnetic Potts model. We can thus exploit the advantages of the binary partition, which are that the extracted subproblems contain a larger number of feasible solutions and that the adjustment of parameter λ is not required. This is also the case for the Potts glass and Potts gauge glass models, in which competing interactions generate several binary subproblems that improve the current solution. Figure 6(d) presents a simple example for the Potts gauge glass model. One of the ground states and first excited states are illustrated at the top of Fig. 6(d), where the interaction depicted by a dashed line represents the broken interaction. There exist no configurations that minimize all of the local energies due to the competing interaction between different components, and one interaction is broken even in the ground state. Suppose that we update integer variable S4 to improve the current solution in the first excited state, then there are two binary subproblems that can improve the current solution, as illustrated at the bottom of Fig. 6(d). One subproblem recovers the interaction between S1 and S4, while the other subproblem recovers the interaction between S3 and S4. The competing interactions generate two binary subproblems that improve the current solution, and each subproblem recovers different interactions. Thus, the disadvantage of the binary partition is mitigated as long as Q is not very large. It should be noted that although the number of binary subproblems that improve the current solution increases as Q is increased for the anti-ferromagnetic Potts model, this number does not increase for the Potts gauge glass model.
Conclusion
In this study, we proposed two partitioning methods to efficiently solve large optimization problems under the one-hot constraint using the D-Wave quantum annealer. The performance of the proposed methods was assessed for the ferromagnetic, anti-ferromagnetic, Potts glass, and Potts gauge glass models. Of the three partitioning methods, the binary partition showed the highest performance for all models except for the ferromagnetic Potts model. The advantages of the binary partition are that it enables embedding a larger number of binary variables and does not require adjusting parameter λ. However, its disadvantage is that only two components are considered for each integer variable. Although this disadvantage leads to poor performance for the ferromagnetic Potts model, the effect is mitigated for optimization problems that have many binary subproblems improving the current solution, such as the anti-ferromagnetic Potts model, and for optimization problems with competing interactions. Although the multivalued partition exhibits a better performance than the random partition for Potts glass and Potts gauge glass models, we did not identify problems for which the multivalued partition is most suitable. Future studies should focus on constructing algorithms that can efficiently solve the ferromagnetic Potts model using the binary partition. In addition, the performance of the proposed methods should be assessed for various optimization problems, such as the graph coloring problem whose cost function is represented as the Hamiltonian of the anti-ferromagnetic Potts model.
Methods
Details on partitioning and embedding are provided in this section.
Subproblem-embedding algorithm
In this subsection, we briefly explain the subproblem-embedding algorithm developed in a previous study41. This algorithm aims to quickly find minor embeddings of subproblems to efficiently implement large-neighborhood local searches using the D-Wave quantum annealer.
Given a large optimization problem whose cost function is represented in QUBO form, this algorithm embeds binary variables one by one into the Chimera graph. After a randomly selected binary variable is embedded into the Chimera graph first, this algorithm embeds a binary variable interacting with the already embedded binary variables into the graph. The latter procedure is iterated until all qubits in the Chimera graph are used. It is generally necessary to assign several qubits to one binary variable and extend a chain to correctly represent interactions between binary variables on the Chimera graph. This algorithm implements Dijkstra’s algorithm to greedily determine how to extend chains. Although chains often cannot be extended by only unused qubits, this difficulty can be avoided in the embedding of subproblems because it is not necessary to embed all binary variables. In this case, the algorithm stops attempting to embed the binary variable and attempts to embed other binary variables that can be easily embedded. Thus, extracting and embedding a subproblem is simultaneously implemented in this algorithm, and the resulting subproblem comprises only binary variables that can be easily embedded. Therefore, the computational time is significantly lower than in Cai’s algorithm50. In addition, this algorithm can easily deal with hardware defects by implementing Dijkstra’s algorithm on a Chimera graph with defects.
It is the random partition to directly apply this algorithm to extract and embed a subproblem of integer optimization problems because this algorithm does not address whether an extracted subproblem contains feasible solutions for each Si or not. To combine the multivalued partition with this algorithm, the order of the binary variables embedded into the Chimera graph must be appropriately specified, as described in the following subsection.
Multivalued partition
The multivalued partition requires that the binary variable assigned to the tentatively selected component must be embedded into the Chimera graph. In addition, more than two binary variables should be embedded for each integer variable to distinguish the multivalued and binary partitions. On the other hand, the subproblem-embedding algorithm extracts and embeds a subproblem comprising binary variables that can be easily embedded. Therefore, in order to combine the multivalued partition and the subproblem-embedding algorithm, it is needed to appropriately specify the order of the binary variables embedded into the Chimera graph.
First, an integer variable is randomly selected, and binary variables assigned to the selected integer variable are embedded into the Chimera graph. Then, to determine binary variables to be additionally embedded into the Chimera graph, we select an integer variable as follows:
-
1.
An already embedded binary variable xembedded is selected in the order of being embedded into the Chimera graph.
-
2.
An integer variable Sctr to which xembedded is assigned is selected.
-
3.
Integer variables {Si} that interact with Sctr in the problem graph are extracted.
-
4.
An integer variable Si is selected in a random order from {Si}.
-
5.
The binary variables \({\{{x}_{i}^{(q)}\}}_{q=1,2,...,Q}\) assigned to Si are attempted to be embedded.
Then, the order of the binary variables \({\{{x}_{i}^{(q)}\}}_{q=1,2,...,Q}\) embedded into the Chimera graph is determined using the following two criteria:
-
1.
The binary variable adjacent to the binary variables that are already embedded.
-
2.
The binary variable assigned to the tentatively selected component.
For the binary variable that is embedded first among \({\{{x}_{i}^{(q)}\}}_{q=1,2,...,Q}\), criterion 1 is important than criterion 2 to avoid embedding independent integer variables. For the reminder of the binary variables assigned to Si, we prioritize criterion 2 to achieve the multivalued partition. It should be noted that the number of components embedded into the Chimera graph is not uniform for each integer variable because the subproblem-embedding algorithm embeds only binary variables that can be easily embedded. If only one component can be embedded, the integer variable is excluded from the subproblem.
Table 3 represents the average number NS(Qembed) of embedded integer variables with Qembed components per subproblem. The performance is assessed for embedding the Potts gauge glass model on the cubic lattice into D-Wave 2000Q_2 with defects and is averaged over 1,000 trials. 65.7(=14.5 + 8.0 + 43.2) integer variables are embedded into the Chimera graph on average, and the average number of embedded binary variables is as follows:
It should be noted that, to distinguish the multivalued and binary partitions, Qembed > 2 is required for most integer variables. All four components are embedded for 65.8% of the integer variables in the subproblem, indicating that we can embed the multivalued subproblem that is distinct from the binary subproblem.
Binary partition
To solve large optimization problems using the binary partition, the cost function of the binary subproblem must be derived from the cost function of the original large problem. The general form of the local energy between Si and Sj is given by
where \({Q}_{ij}^{(qq^{\prime} )}\) represents the interaction between \({x}_{i}^{(q)}\) and \({x}_{j}^{(q^{\prime} )}\). The binary partition extracts a binary subproblem by randomly selecting one component in addition to the tentatively selected component for each integer variable. The local energy of the binary subproblem in QUBO form is given as follows:
where yi ∈ {0, 1}, αi and βi denote the tentatively selected component and randomly selected component for Si, respectively, and yi = 0(yi = 1) indicates “stay in the tentatively selected component αi” “(“transit to the other component βi”)” It should be noted that the cost function of the binary subproblem does not contain the penalty term because all solutions in the binary subproblem satisfy the one-hot constraint.
The problem graph of the binary subproblem extracted from the three-dimensional Potts model is a cubic lattice with bond dilutions. The density of the interactions in the binary subproblem is lower than that in the multivalued subproblem because the cost function of the binary subproblem does not contain the penalty term, which generates partially fully connected interactions between \({x}_{i}^{(q)}\) and \({x}_{i}^{(q^{\prime} )}\). The average number of embedded binary variables is 408 when the binary partition is used, and only 225 when the multivalued partition is used. Furthermore, all configurations in the binary subproblem satisfy the one-hot constraint, while the configurations in the multivalued subproblem do not. Therefore, the average number Nfeasible of feasible solutions involved in the embedded subproblem is considerably increased using the binary partition. Table 4 illustrates log10Nfeasible in a subproblem embedded by the multivalued and binary partitions combined with the complete graph embedding44 and subproblem-embedding algorithm41 for the Potts gauge glass model on the cubic lattice.
References
Lucas, A. Ising formulations of many np problems. Front. Phys. 2, 5, https://doi.org/10.3389/fphy.2014.00005 (2014).
Karkpatrick, S., Gelatt, C. D. & Vecchi, M. P. Optimization by simulated annealing. Sci. 220, 671–680, https://doi.org/10.1126/science.220.4598.671 (1983).
Kadowaki, T. & Nishimori, H. Quantum annealing in the transverse ising model. Phys. Rev. E 58, 5355–5363, https://doi.org/10.1103/PhysRevE.58.5355 (1998).
Santoro, G. E., Martoňák, R., Tosatti, E. & Car, R. Theory of quantum annealing of an ising spin glass. Sci. 295, 2427–2430, https://doi.org/10.1126/science.1068774 (2002).
Martoňák, R., Santoro, G. E. & Tosatti, E. Quantum annealing of traveling-salesman problem. Phys. Rev. E 70, 057701, https://doi.org/10.1103/PhysRevE.70.057701 (2004).
Stella, L., Santoro, G. E. & Tosatti, E. Optimization by quantum annealing: Lessons from simple cases. Phys. Rev. B 72, 014303, https://doi.org/10.1103/PhysRevB.72.014303 (2005).
Battaglia, D. A., Santoro, G. E. & Tosatti, E. Optimization by quantum annealing: Lessons from hard satisfiability problems. Phys. Rev. E 71, 066707, https://doi.org/10.1103/PhysRevE.71.066707 (2005).
Zanca, T. & Santoro, G. E. Quantum annealing speedup over simulated annealing on random ising chains. Phys. Rev. B 93, 224431, https://doi.org/10.1103/PhysRevB.93.224431 (2016).
Wauters, M. M., Fazio, R., Nishimori, H. & Santoro, G. E. Direct comparison of quantum and simulated annealing on a fully connected ising ferromagnet. Phys. Rev. A 96, 022326, https://doi.org/10.1103/PhysRevA.96.022326 (2017).
Johnson, M. W. et al. Quantum annealing with manufactured spins. Nat. 473, 194–198, https://doi.org/10.1038/nature10012 (2011).
Rønnow, T. F. et al. Defining and detecting quantum speedup. science 345, 420–424, https://doi.org/10.1126/science.1252319 (2014).
Katzgraber, H. G., Hamze, F., Zhu, Z., Ochoa, A. J. & Munoz-Bauza, H. Seeking quantum speedup through spin glasses: The good, the bad, and the ugly. Phys. Rev. X 5, 031026, https://doi.org/10.1103/PhysRevX.5.031026 (2015).
Denchev, V. S. et al. What is the computational value of finite range tunneling? Phys. Rev. X 6, 031015, https://doi.org/10.1103/PhysRevX.6.031015 (2016).
Wang, C., Chen, H. & Jonckheere, E. Quantum versus simulated annealing in wireless interference network optimization. Sci. Rep. 6, 25797, https://doi.org/10.1038/srep25797 (2016).
Rosenberg, G. et al. Solving the optimal trading trajectory problem using a quantum annealer. IEEE J. Sel. Top. Signal Process. 10, 1053–1060, https://doi.org/10.1109/JSTSP.2016.2574703 (2016).
Boyda, E. et al. Deploying a quantum annealing processor to detect tree cover in aerial imagery of california. PLoS ONE 12((2)), e0172505, https://doi.org/10.1371/journal.pone.0172505 (2017).
O’Malley, D., Vesselinov, V. V., Alexandrov, B. S. & Alexandrov, L. B. Nonnegative/binary matrix factorization with a d-wave quantum annealer. Preprint at https://arxiv.org/abs/1704.01605 (2017).
Neukart, F. et al. Traffic flow optimization using a quantum annealer. Front. ICT 4, 29, https://doi.org/10.3389/fict.2017.00029 (2017).
Baldassi, C. & Zecchina, R. Efficiency of quantum vs. classical annealing in nonconvex learning problems. Proc. Natl. Acad. Sci. 115, 1457–1462, https://doi.org/10.1073/pnas.1711456115 (2018).
Yarkoni, S., Plaat, A. & Back, T. First results solving arbitrarily structured maximum independent set problems using quantum annealing. In 2018 IEEE Congress on Evolutionary Computation (CEC), 1–6, https://doi.org/10.1109/CEC.2018.8477865 (2018).
Adachi, S. H. & Henderson, M. P. Application of quantum annealing to training of deep neural networks. Preprint at https://arxiv.org/abs/1510.06356 (2015).
Amin, M. H., Andriyash, E., Rolfe, J., Kulchytskyy, B. & Melko, R. Quantum boltzmann machine. Phys. Rev. X 8, 021050, https://doi.org/10.1103/PhysRevX.8.021050 (2018).
Benedetti, M., Realpe-Gómez, J., Biswas, R. & Perdomo-Ortiz, A. Quantum-assisted learning of hardware-embedded probabilistic graphical models. Phys. Rev. X 7, 041052, https://doi.org/10.1103/PhysRevX.7.041052 (2017).
Harris, R. et al. Phase transitions in a programmable quantum spin glass simulator. Sci. 361, 162–165, https://doi.org/10.1126/science.aat2025 (2018).
King, A. D. et al. Observation of topological phenomena in a programmable lattice of 1,800 qubits. Nat. 560, 456–460, https://doi.org/10.1038/s41586-018-0410-x (2018).
Streif, M., Neukart, F. & Leib, M. Solving quantum chemistry problems with a d-wave quantum annealer. Preprint at https://arxiv.org/abs/1811.05256 (2018).
Ohzeki, M., Miki, A., Miyama, M. J. & Terabe, M. Control of automated guided vehicles without collision by quantum annealer and digital devices. Preprint at https://arxiv.org/abs/1812.01532 (2018).
Kitai, K. et al. Expanding the horizon of automated metamaterials discovery via quantum annealing. Preprint at https://arxiv.org/abs/1902.06573 (2019).
Irie, H., Wongpaisarnsin, G., Terabe, M., Miki, A. & Taguchi, S. Quantum annealing of vehicle routing problem with time, state and capacity. In Quantum Technology and Optimization Problems (2019).
Nishimura, N., Tanahashi, K., Suganuma, K., Miyama, M. J. & Ohzeki, M. Item listing optimization for e-commerce websites based on diversity. Preprint at https://arxiv.org/abs/1903.12478 (2019).
Morita, S. & Nishimori, H. Mathematical foundation of quantum annealing. J. Math. Phys. 49, 125210, https://doi.org/10.1063/1.2995837 (2008).
Bunyk, P. I. et al. Architectural considerations in the design of a superconducting quantum annealing processor. IEEE Transactions. Appl. Supercond. 24, 1700110, https://doi.org/10.1109/TASC.2014.2318294 (2014).
Booth, M., Reinhardt, S. P. & Roy, A. Partitioning optimization problems for hybrid classcal/quantum execution. http://www.dwavesys.com/sites/default/files/partitioning_QUBOs_for_quantum_acceleration-2.pdf (2017).
Rosenberg, G. et al. Building an iterative heuristic solver for a quantum annealer. Comput. Optim Appl 65, 845, https://doi.org/10.1007/s10589-016-9844-y (2016).
Narimani, A., Saeed, S. S., Changiz, R & Zaribafiyan, A. Combinatorial optimization by decomposition on hybrid cpu–non-cpu solver architectures. Preprint at https://arxiv.org/abs/1708.03439 (2017).
Ahuja, R. K., Ergun, O., Orlin, J. B. & Punnen, A. P. A survey of very large-scale neighborhood search techniques. Discret. Appl. Math. 123, 75–102, https://doi.org/10.1016/S0166-218X(01)00338-9 (2002).
Hamze, F. & Freitas, N. D. From fields to trees. In The 20th conference on Uncertainty in Artificial Intelligence (AUAI Press, Arlington, Virginia, 2004), 243–250 (2004).
Fix, A., Chen, J., Boros, E. & Zabih, R. Approximate mrf inference using bounded treewidth subgraphs. In Computer Vision – ECCV 2012, 385–398, https://doi.org/10.1007/978-3-642-33718-5_28 (2012).
Decelle, A. & Krzakala, F. Belief-propagation-guided monte-carlo sampling. Phys. Rev. B 89, 214421, https://doi.org/10.1103/PhysRevB.89.214421 (2014).
Selby, A. Efficient subgraph-based sampling of ising-type models with frustration. Preprint at https://arxiv.org/abs/1409.3934 (2014).
Okada, S., Ohzeki, M., Terabe, M. & Taguchi, S. Improving solutions by embedding larger subproblems in a d-wave quantum annealer. Sci. Rep. 9, 2098, https://doi.org/10.1038/s41598-018-38388-4 (2019).
Choi, V. Minor-embedding in adiabatic quantum computation: Ii. minor-univerdal graph design. Quantum Inf. Process. 10, 343–353, https://doi.org/10.1007/s11128-010-0200-3 (2011).
Klymko, C., Sullivan, B. D. & Humble, T. S. Adiabatic quantum programming: Minor embedding with hard faults. Quantum Inf Process. 13, 709, https://doi.org/10.1007/s11128-013-0683-9 (2014).
Boothby, T., King, A. D. & Roy, A. Fast clique minor generation in chimera qubit connectivity graphs. Quantum Inf Process. 15, 495, https://doi.org/10.1007/s11128-015-1150-6 (2016).
Wu, F. Y. The potts model. Rev. Mod. Phys. 54, 235–268, https://doi.org/10.1103/RevModPhys.54.235 (1982).
Okada, S., Ohzeki, M. & Tanaka, K. The efficient quantum and simulated annealing of potts models using a half-hot constraint. Preprint at https://arxiv.org/abs/1904.01522 (2019).
Gross, D. J., Kanter, I. & Sompolinsky, H. Mean-field theory of the potts glass. Phys. Rev. Lett. 55, 304, https://doi.org/10.1103/PhysRevLett.55.304 (1985).
Nishimori, H. & Stephen, M. J. Gauge-invariant frustrated potts spin-glass. Phys. Rev. B 27, 5644–5652, https://doi.org/10.1103/PhysRevB.27.5644 (1983).
Çağlar, T. & Berker, A. N. Chiral potts spin glass in d = 2 and 3 dimensions. Phys. Rev. E 94, 032121, https://doi.org/10.1103/PhysRevE.94.032121 (2016).
Cai, J., Macready, B. & Roy, A. A practical heuristic for finding graph minors. Preprint at https://arxiv.org/abs/1406.2741 (2014).
Acknowledgements
The authors are deeply grateful to Shu Tanaka, Masamichi J. Miyama and Tadashi Kadowaki for fruitful discussions. The author M. O. is grateful for the financial support provided by JSPS KAKENHI 19H01095 and 16H04382, Next Generation High-Performance Computing Infrastructures and Applications R&D Program by MEXT.
Author information
Authors and Affiliations
Contributions
S.O. conceived and developed the concept and conducted all the experiments. M.O. proposed the plan to evaluate the validity of the concept, discussed the details of the results, and reviewed the manuscript. S.T. directed the project in our study.
Corresponding author
Ethics declarations
Competing Interests
The authors declare no competing interests.
Additional information
Publisher’s note: Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Rights and permissions
Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons license, and indicate if changes were made. The images or other third party material in this article are included in the article’s Creative Commons license, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons license and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this license, visit http://creativecommons.org/licenses/by/4.0/.
About this article
Cite this article
Okada, S., Ohzeki, M. & Taguchi, S. Efficient partition of integer optimization problems with one-hot encoding. Sci Rep 9, 13036 (2019). https://doi.org/10.1038/s41598-019-49539-6
Received:
Accepted:
Published:
DOI: https://doi.org/10.1038/s41598-019-49539-6
This article is cited by
-
Incorporating preoperative frailty to assist in early prediction of postoperative pneumonia in elderly patients with hip fractures: an externally validated online interpretable machine learning model
BMC Geriatrics (2024)
-
Analysis and prediction of interactions between transmembrane and non-transmembrane proteins
BMC Genomics (2024)
-
A machine learning model predicts stroke associated with blood cadmium level
Scientific Reports (2024)
-
A deep learning model for anti-inflammatory peptides identification based on deep variational autoencoder and contrastive learning
Scientific Reports (2024)
-
Prediction of crop yield in India using machine learning and hybrid deep learning models
Acta Geophysica (2024)