Allocation device, allocation method, and allocation recording medium

The allocation device and method address the inefficiencies in existing quantum annealing systems by minimizing node usage and bias in Ising problem solutions on Pegasus graphs, improving computational efficiency and accuracy.

JP7571873B2Active Publication Date: 2024-10-23NEC CORP
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
JP2023520580
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2021-05-10
Publication Date
2024-10-23
Estimated Expiration
2041-05-10

AI Technical Summary

Technical Problem

Existing methods for solving Ising problems using quantum annealing machines, such as those by D-wave, struggle to efficiently reduce the number of nodes required and minimize bias in variable assignment on Pegasus graphs, leading to increased computational difficulty and time.

Method used

An allocation device and method that assigns Ising variables to nodes on a Pegasus graph based on the LHZ method, utilizing a periodic structure to minimize the number of nodes and reduce bias by converting four-body interactions into two-body interactions, ensuring unbiased variable assignment with a small number of qubits.

Benefits of technology

The solution effectively reduces the number of nodes used and eliminates bias in variable assignment, enhancing the efficiency and accuracy of quantum annealing in solving Ising problems on Pegasus graphs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007571873000016
    Figure 0007571873000016
  • Figure 0007571873000017
    Figure 0007571873000017
  • Figure 0007571873000018
    Figure 0007571873000018
Patent Text Reader

Abstract

This assignment device 800 comprises: an assignment means 801 for assigning binary variables of an Ising problem representing the cost function of an LHZ method to nodes on a Pegasus graph, in accordance with the number of binary variables and parameters for determining the assignment of the binary variables; and an output means 802 for outputting information indicating the correspondence between the binary variables and the nodes, on the basis of the result of assigning the binary variables to the nodes, wherein the assignment means 801 reflects a periodic structure representing the relationship between a pair of the binary variables that are products of the cost function of the Ising problem in the periodic structure of nodes and edges on the Pegasus graph, and assigns the binary variables to the nodes.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to an allocation device, an allocation method, and an allocation recording medium in quantum annealing. [Background technology]

[0002] Quantum annealing is one of the methods for solving combinatorial optimization problems. In quantum annealing, a cost function is defined. The state where the value of the cost function is minimized is associated with the solution of the combinatorial optimization problem.

[0003] The cost function used here is a function of variables called Ising variables or Ising spins. In the following, we will use Ising variables for our discussion. Ising variables are variables that can only take the values ​​1 and -1. The cost function is expressed by a large number of Ising variables. The Ising variables correspond to the variables of the combinatorial optimization problem. Any combination of the values ​​of the variables in the combinatorial optimization problem is expressed as a combination of the values ​​of the Ising variables in the cost function. In particular, the smaller the value of the cost function, the better the combination in the combinatorial optimization problem. Therefore, the combination of Ising variables that produces the smallest value of the cost function represents the optimal combination in the combinatorial optimization problem, i.e., the optimal solution.

[0004] A combinatorial optimization problem expressed as a problem of minimizing the cost function of Ising variables in this way is called an Ising problem. In the following, we will discuss solving this Ising problem.

[0005] In quantum annealing, a combination of Ising variables that minimizes a defined cost function is searched for. In this case, the Ising variables of the cost function are represented by quantum bits. Although quantum bits are simply variables in the quantum annealing method, the idea originates from physical entities and can take two states. These two states correspond to the Ising variables 1 and -1. The quantum annealing machine is hardware that implements this method.

[0006] It is possible to define the energy of an entire system consisting of multiple quantum bits. Quantum annealing is a method for finding the combination of quantum bit states that results in, for example, the lowest energy. Quantum annealing can be used to solve Ising problems. That is, in a quantum annealing machine, the two states of a quantum bit correspond to the Ising variables, and the energy of the entire quantum bits corresponds to the cost function of the Ising problem. In this way, obtaining a state with low energy for the entire quantum bits using quantum annealing corresponds to finding a combination of variables that reduces the value of the cost function of the Ising problem.

[0007] There is a method called the LHZ (Lechner-Hauke-Zoller) method (Patent Document 1) for expressing a cost function corresponding to an Ising problem. Performing quantum annealing on a cost function handled by the LHZ method is called LHZ quantum annealing. In order to perform LHZ quantum annealing with a quantum annealing machine, it is necessary to make four quantum bits directly interact (four-body interaction) in the quantum annealing machine.

[0008] The only quantum annealing machine currently in commercial use is the quantum annealing machine developed by D-wave Systems Inc. (hereinafter referred to as D-wave (registered trademark)). However, the hardware in D-wave can only handle interactions between two quantum bits (two-body interactions). In other words, D-wave cannot directly handle four-body interactions, and cannot directly handle LHZ quantum annealing.

[0009] However, it is possible that LHZ quantum annealing can be effectively realized in D-wave. By converting four-body interactions into multiple two-body interactions, D-wave can handle LHZ quantum annealing. The state of the quantum bits that lower the energy of the entire system is consistent before and after this conversion. Therefore, D-wave can effectively realize quantum annealing that aims to explore low-energy states.

[0010] When performing quantum annealing using D-wave, not limited to the LHZ method, the product of Ising variables appearing in the cost function is made to correspond to the interaction between quantum bits. The quantum bit interaction network of D-wave has a structure called a chimera graph or Pegasus graph, which is composed of nodes and edges. This specification focuses on the Pegasus graph. In order to solve the Ising problem by quantum annealing using D-wave, the variables of the cost function are appropriately assigned to the nodes on the Pegasus graph. An example of a method for finding an appropriate assignment is described in Non-Patent Document 1 and Non-Patent Document 2. [Prior art documents] [Patent documents]

[0011] [Patent Document 1] Patent No. 6656273 [Non-patent literature]

[0012] [Non-Patent Document 1] K. Boothby, et al., “Technical report”, [online], D-wave Systems inc., [Retrieved March 23, 2021] Internet <URL:https: / / www.dwavesys.com / sites / default / files / 14-1026A-C_Next-Generation-Topology-of-DW-Quantum-Processors.pdf> [Non-Patent Document 2] J. Cai, et al., “A practical heuristic for finding graph minors”, arXiv:1406.2741 (2014). [Non-Patent Document 3] A. Rocchetto, et al., “Stabilizers as a design tool for new forms of the Lechner-Hauke-zoller annealer”, Science Advances 2, e1601246 (2016). Summary of the Invention [Problem to be solved by the invention]

[0013] The method described in Non-Patent Document 1 is a method that can be applied to any Ising problem. However, the method described in Non-Patent Document 1 performs the same allocation for any Ising problem. Then, there is a possibility that there is an allocation that can reduce the number of nodes used on the Pegasus graph for each Ising problem. The method described in Non-Patent Document 2 is a heuristic method. In the method described in Non-Patent Document 2, an allocation can be found, but there is no guarantee that the same allocation can be obtained every time it is performed. In particular, the method described in Non-Patent Document 2 does not guarantee that the number of nodes used can be reduced. In addition, in the method described in Non-Patent Document 2, the number of nodes to which each variable is assigned may be biased. Therefore, in the above-mentioned two methods, when expressing and solving an Ising problem on a Pegasus graph, there is a problem that it is not possible to find an allocation that uses a small number of nodes and has a small bias, or there is no guarantee that it can be found.

[0014] One of the objectives of the present invention is to solve such problems, and to provide an allocation device, an allocation method, and an allocation recording medium that can obtain a correspondence between the variables of an Ising problem handled when performing LHZ quantum annealing and the nodes of a graph for solving the Ising problem, which has little bias in the number of nodes to which each variable is assigned and uses a small number of nodes. [Means for solving the problem]

[0015] The allocation device according to the present invention includes an allocation means for assigning binary variables of an Ising problem representing a cost function of the LHZ method to nodes on a Pegasus graph in accordance with the number of binary variables and parameters for determining the allocation of the binary variables, and an output means for outputting information indicating the correspondence between the binary variables and the nodes based on the results of the allocation of the binary variables to the nodes, and the allocation means reflects a periodic structure representing the relationship between pairs of binary variables that are products in the cost function of the Ising problem in a periodic structure between the nodes and edges on the Pegasus graph, and assigns the binary variables to the nodes.

[0016] The allocation method according to the present invention assigns binary variables of an Ising problem representing a cost function of the LHZ method to nodes on a Pegasus graph according to the number of binary variables and parameters for determining the allocation of the binary variables, outputs information indicating the correspondence between the binary variables and the nodes based on the results of the allocation of the binary variables to the nodes, reflects a periodic structure representing the relationship between pairs of binary variables that are products in the cost function of the Ising problem in a periodic structure of the nodes and edges on the Pegasus graph, and assigns the binary variables to the nodes.

[0017] The assignment recording medium according to the present invention, when executed by a computer, executes an assignment process for assigning binary variables of an Ising problem representing a cost function of the LHZ method to nodes on a Pegasus graph in accordance with the number of binary variables and parameters for determining the assignment of the binary variables, and an output process for outputting information indicating the correspondence between the binary variables and the nodes based on the results of the assignment of the binary variables to the nodes, and records an assignment program that reflects a periodic structure representing the relationship between sets of binary variables that are products in the cost function of the Ising problem in a periodic structure between the nodes and edges on the Pegasus graph in the assignment process, and assigns the binary variables to nodes. Effect of the Invention

[0018] According to the present invention, when LHZ quantum annealing in which the quantum bit coupling structure is a Pegasus graph is performed, it is possible to perform unbiased variable assignment with a small number of quantum bits. [Brief description of the drawings]

[0019] [Figure 1] FIG. 13 is an explanatory diagram showing four-body interactions in a cost function using the LHZ method. [Diagram 2] FIG. 13 is an explanatory diagram showing an example of a Pegasus graph. [Diagram 3] FIG. 2 is an explanatory diagram showing an example of a unit in the Pegasus graph. [Figure 4] FIG. 1 is an explanatory diagram showing the tile at u=0 in the Pegasus graph. [Diagram 5] FIG. 1 is an explanatory diagram showing the tile u=1 in the Pegasus graph. [Figure 6] FIG. 13 is an explanatory diagram showing an example of a chain. [Figure 7] FIG. 13 is an explanatory diagram showing the structure of a product between variables in a cost function. [Figure 8] FIG. 13 is an explanatory diagram showing a part of the structure of a product between variables in a cost function. [Figure 9] FIG. 13 is an explanatory diagram showing a part of the structure of a product between variables in a cost function. [Figure 10]FIG. 2 is an explanatory diagram showing a unit sequence in a Pegasus graph. [Figure 11] FIG. 13 is an explanatory diagram showing a part of the structure of a product between variables in a cost function and a plaquette sequence. [Figure 12] FIG. [Figure 13] FIG. 1 is an explanatory diagram illustrating an example of a computing system. [Figure 14] FIG. 2 is a block diagram showing an example of a configuration of an allocation device. [Figure 15] 2 is a block diagram showing an example of a hardware configuration of an allocation device. FIG. [Figure 16] FIG. 13 is an explanatory diagram showing a part of the structure of a product between variables in a cost function and a plaquette sequence. [Figure 17] 13 is a flowchart showing the flow of operations of the allocation device. [Figure 18] 1 is a flowchart showing a flow of a calculation operation for solving an Ising problem by a calculation system. [Figure 19] FIG. 11 is an explanatory diagram for explaining the effect of the present embodiment. [Figure 20] FIG. 2 is a block diagram showing a main part of an allocation device. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0020] To facilitate understanding of the embodiments, we will first explain the Ising problem, LHZ quantum annealing, Pegasus graph, representing the Ising problem on the Pegasus graph, and the quantum annealing machine related thereto.

[0021] The Ising problem is generally expressed as follows. First, prepare N variables (N is a natural number) that can take the values ​​1 and -1, i.e., binary variables. i Here, i can take the values ​​1, 2, ..., N, and the difference in the value of i determines the s i The cost function H is defined, for example, as the following equation (1).

[0022]

number

[0023] J on the right side of equation (1) ij is the value of row i, column j of matrix J, where i and j can take the values ​​1, 2, ..., N-1. i is the value of the i-th column of vector h, where i can take the values ​​1, 2, ..., N-1. ij and h i can take on real values. Equation (1) is written as a set of N-1 variables s that can only take on the values ​​1 or -1. i This is a general expression of a linear and quadratic polynomial with real coefficients. N =1, J iN =h i Assuming that i and j can take on the values ​​of N, equation (1) can be expressed as equation (2).

[0024]

number

[0025] s N If the value of can take the values ​​1 and -1, then equation (1) is included in equation (2) as a special case. In the following, we consider the cost function in the form of equation (2). Also, for J with i>j, ij It is sufficient to generally express the value of all 0. Therefore, in the following, J for i ≥ j ij The values ​​of i are all set to 0. <jのJ ij The Ising problem is to find a solution to minimize the cost function H in Eq. (2) when the matrix J is given. i The problem is to find combinations of values ​​(i=1,2,...,N).

[0026] As mentioned above, quantum annealing is one method for solving the Ising problem. One of the quantum annealing methods is the LHZ method. In order to solve the Ising problem whose cost function is expressed by equation (2), the following cost function H LHZ Minimize.

[0027]

number

[0028] J in Equation (3) ij is J in Eq. (2). ij is the same as σ ij is a variable that can take the values ​​1 and -1, and s i In equation (3), s i The letter σ is used to distinguish it from J. ij The values ​​of i and j in are in the same range as those of i and j in equation (2). However, σ ij i and j are J ij In addition to the range of i=j, where σ ii is introduced for simplicity of expression, is always equal to 1, and is a constant rather than a variable. C is a parameter to be adjusted in the range of positive values.

[0029] FIG. 1 is an explanatory diagram showing four-body interactions in a cost function using the LHZ method. ik σ il σ jk σ jl The scope of the sum of σ 2 ) can be understood from FIG. 1, in which the variable σ 2 ) in Eq. ij are expressed as variables on the lattice points. The product of four σ (σ ik σ il σ jk σ jl The sum of σ is the sum of the products of σ written at the four vertices of the rectangle represented by the shaded area in Figure 1. An example of a product of four σ is σ 13 σ 14 σ 23 σ 24 It is.

[0030] Since the value of σ is either 1 or -1, the product of four σ (σ ik σ il σ jk σ jl ) is also 1 or -1. When C is a large positive value, H LHZ σ that minimizesij For the combination of values ​​(i=1,2,...,N, j=i+1,i+2,...,N), the product of the four σs in the second term on the right-hand side of equation (3) (hereafter referred to as the second sum) (σ ik σ il σ jk σ jl ) is 1. The products of the four σ in the second sum are all 1. ij There are multiple combinations of values ​​(i=1,2,...,N, j=i+1,i+2,...,N), and the second sum is equal for all of those combinations. LHZ The one that minimizes Σ i<j J ij σ ij Also, when all four products of the second sum are 1, σ ij =s i s j This can be done. i is s in equation (2) i Similarly, σ is a binary variable that can take the values ​​1 and -1. ij =s i s j When σ ik σ il σ kj σ lj =s i s k s i s l s k s j s l s j = 1. As above, σ ii = 1, but this is σ ii =s i s i = 1. Therefore, when C is large, H LHZ Minimize the value of σ ij The combination of values ​​(i=1,2,...,N, j=i+1,i+2,...,N) is Σ i<j J ij s i s j Minimize s i (i=1,2,...,N). That is, s obtained here iminimizes the cost function H in equation (2) and is the solution to the original Ising problem.

[0031] Next, the minimum necessary matters regarding the Pegasus graph will be explained. FIG. 2 is an explanatory diagram showing an example of the Pegasus graph. The Pegasus graph is composed of a plurality of nodes 901 and edges 902 connecting them. The Pegasus graph is configured by arranging units 903. The units 903 are unit graphs that constitute the Pegasus graph. In the Pegasus graph, the nodes 901 and the units 903 are arranged periodically. In other words, the Pegasus graph can be said to be information representing the hardware configuration of the quantum annealing machine. The hardware configuration represents, for example, a plurality of quantum bits and a structure that couples the plurality of quantum bits. This periodic arrangement will be explained below.

[0032] Coordinates in the Pegasus graph are represented by (u, w, k, z). They can take values ​​such as u=0, 1, w=0, 1, ..., M-1, k=0, 1, ..., 11, z=0, 1, ..., M-2. M is a parameter that represents the size of the entire Pegasus graph. For example, M of the Pegasus graph shown in FIG. 2 is 3. FIG. 3 is an explanatory diagram showing an example of a unit in the Pegasus graph. As shown in FIG. 3, u of four nodes 911a, 911b, 911c, and 911d arranged horizontally in the unit is 0. u of four nodes 912a, 912b, 912c, and 912d arranged vertically is 1. Nodes with u=0 are grouped into groups of 12 adjacent nodes in the horizontal direction. In the example shown in FIG. 2, it corresponds to three units and is called a tile. The tiles are arranged in a square lattice in the horizontal and vertical directions. The horizontal number of the tiles is represented by w. The vertical number of the tile is represented by z. In other words, (u, w, k, z) can be said to be parameters representing a repeating structure in which a certain structure (represented as a "unit structure") appears repeatedly in the Pegasus graph, and a structure in each unit structure. Note that the unit structure does not necessarily have to be a certain structure, and may be a structure that is determined to be a unit structure. The determination process may be performed, for example, based on the similarity between two structures, or based on the degree of difference between a different structure and the same structure. The process of determining a repeating structure is not limited to the above example.

[0033] FIG. 4 is an explanatory diagram showing the tile of u=0 in the Pegasus graph. In the example shown in FIG. 4, the tile of u=0, w=0, z=0 is tile 921. The tile of u=0, w=1, z=0 is tile 922. The tile of u=0, w=0, z=1 is tile 924. The node of u=1 is also grouped into tiles. However, unlike the case of u=0, the node of u=1 is grouped into tiles in groups of 12 adjacent nodes in the vertical direction. The vertical number of the tile is represented by w, and the horizontal number is represented by z.

[0034] FIG. 5 is an explanatory diagram showing the tile of u=1 in the Pegasus graph. In the example shown in FIG. 5, the tile of u=1, w=0, z=0 is tile 931. The tile of u=1, w=1, z=0 is tile 932. The tile of u=1, w=0, z=1 is tile 934. That is, for both u=0 and u=1, the tile number in the direction in which the nodes are arranged is represented by w, and the tile number in the direction perpendicular to that is represented by z. k represents the node number in each tile. For example, in FIG. 4, the tile of u=0, w=2, z=0 is tile 923, and k of nodes 927a, 927b, 927c, ..., 927l in tile 923 is k=0, 1, 2, ..., 11.

[0035] Next, we will explain how to represent the Ising problem on a Pegasus graph. Representing an Ising problem on a Pegasus graph corresponds to appropriately assigning the variables of the cost function of the Ising problem to the nodes of the Pegasus graph. What constitutes "appropriate" will be explained later. The assignment is represented by listing the nodes to which each of the variables of the Ising problem, i.e., the variables of the cost function, is assigned. In this case, one variable may be assigned to multiple nodes.

[0036] The reason behind assigning the cost function variables to the nodes of the Pegasus graph is that the Ising problem can be solved by a machine that uses the Pegasus graph, for example, a quantum annealing machine. Although a quantum annealing machine does not necessarily have to be used, the following assumes that a quantum annealing machine is used to solve the Ising problem.

[0037] A quantum annealing machine has quantum bits and connections between quantum bits. A quantum bit has two main states, and which of the two states the quantum bit is in can be treated as a binary variable. In addition, in a quantum annealing machine, the energy of the entire quantum bit can be defined. Quantum annealing is a method of finding the combination of quantum bit states that results in the lowest energy. A quantum annealing machine executes quantum annealing and aims to find the combination of quantum bit states that results in the lowest energy. Finding the combination can be used to solve an Ising problem as follows. In a quantum annealing machine, the two states of the quantum bit correspond to Ising variables, and the energy of the entire quantum bit corresponds to the cost function of the Ising problem. In this way, obtaining a state with low energy for the entire quantum bit in a quantum annealing machine is equivalent to finding a combination of variables that reduces the value of the cost function of the corresponding Ising problem.

[0038] In order to make the overall energy of the quantum bits of the quantum annealing machine correspond to the cost function of the Ising problem, the two states of the quantum bits are made to correspond to the variables of the Ising problem, and the coupling between the quantum bits is made to correspond to the product of the variables in the cost function. To make the coupling correspond to the product of the variables, for example, the strength of the coupling between the i-th quantum bit and the j-th quantum bit is made to correspond to the J ij Then, if all elements of the cost function matrix J correspond to the strength of the coupling between quantum bits, the energy of the entire quantum bit corresponds to the cost function of the Ising problem. Therefore, in order to solve the Ising problem with a quantum annealing machine, the matrix J is input to the quantum annealing machine, and the quantum annealing machine adjusts the strength of the coupling between quantum bits to J ijHowever, the connections between quantum bits in a quantum annealing machine do not necessarily exist for all combinations of quantum bits. In fact, the connections between quantum bits in the quantum annealing machine developed by D-wave Systems inc. are structured as a Pegasus graph or a Chimera graph. In this specification, we focus only on the Pegasus graph and do not consider the Chimera graph. A quantum bit corresponds to a node in the Pegasus graph. The connections between quantum bits correspond to the edges of the Pegasus graph.

[0039] As explained above, there is a correspondence between the variables of the Ising problem, the quantum bits, and the nodes of the Pegasus graph. At the same time, there is also a correspondence between the products of the variables of the Ising problem, the connections of the quantum bits, and the edges of the Pegasus graph. In order to solve the Ising problem with a quantum annealing machine, the variables of the Ising problem are made to correspond to the quantum bits. In other words, this is equivalent to making the variables of the Ising problem correspond to the nodes of the Pegasus graph. At the same time, in order to make the products of the variables of the Ising problem correspond to the connections of the quantum bits, the products of the variables are made to correspond to the edges of the Pegasus graph.

[0040] As described above, when solving an Ising problem with a quantum annealing machine, the variables of the problem are assigned to the nodes of the Pegasus graph. Furthermore, this assignment is such that the product of the variables in the Ising problem corresponds to the edges of the Pegasus graph. Such an assignment is an appropriate assignment. Once an appropriate assignment is obtained, the quantum annealing machine knows which connection between quantum bits on the Pegasus graph should correspond to the product of the variables in the Ising problem. When this assignment and the matrix J of the Ising problem are input into the quantum annealing machine, the quantum annealing machine is able to associate the strength of the connection between quantum bits with the matrix J. As a result, the quantum annealing machine can solve the Ising problem.

[0041] As mentioned above, in general, to represent an Ising problem on a Pegasus graph, it is necessary to appropriately assign variables to nodes. One variable may be assigned to multiple nodes. To specifically explain what kind of assignment is appropriate, we first introduce chains. A chain is a set of nodes to which the same variable is assigned, and is a series of nodes connected by edges. Here, variables are determined to be the same when their values ​​match, including the subscripts. For example, s and σ are different variables. σ and τ are different variables. For example, s i ands j are different variables when i and j are different, and are the same variable when i and j are the same. However, the number of nodes in a chain may be one or more. When the number of nodes in a chain is more than one, all nodes in the chain are connected by edges to at least one node in the same chain. Figure 6 is an explanatory diagram showing an example of a chain.

[0042] The condition for a proper assignment is that for all pairs of variables that are products of the cost function of the Ising problem, the two chains of each pair are connected by an edge. A chain is connected by an edge when at least one node in one chain is connected by an edge to at least one node in the other chain. Here, a pair of variables that are products is generally defined as J in Equation (1). ij s represented by i and j with ≠ 0 i ands j This is a pair with J. ij If = 0, s i ands j It is interpreted that the pair of and does not appear as a product in the cost function.

[0043] For example, the chain shown in FIG. 6 gives a suitable assignment of the cost function of the Ising problem expressed by the following equation (4) to the Pegasus graph.

[0044]

number

[0045] Nodes 941, 942, 943, and 944 shown in Fig. 6 each correspond to a chain consisting of one node. Nodes 945a and 945b form a chain in which two nodes are connected by edge 946. In equation (4), there are five variables in the Ising problem, and any pair of two variables appears as a product in the cost function. In equation (4), for all i and j, J ij = 1. Each of the variables in formula (4) is assigned to one of the chains illustrated in Figure 6. In this case, if there are no overlaps, any variable can be assigned to any chain. For example, s 1 is assigned to node 941 in FIG. 2 is assigned to node 942. 3 is assigned to node 943. 4 is assigned to node 944. 5 is assigned to the chain consisting of node 945a and node 945b.

[0046] The background to the conditions for assignment is as follows. As mentioned above, when solving an Ising problem with a quantum annealing machine, the product of the variables in the cost function of the Ising problem is made to correspond to the edges of the Pegasus graph. Therefore, the condition for assigning variables to nodes is, simply put, that the nodes to which the two variables that are the product in the cost function are assigned are connected by an edge. However, in the Pegasus graph, not all pairs of nodes are connected by an edge. Therefore, chains are used.

[0047] The same variables of the Ising problem are assigned to the nodes in a chain. Therefore, if two chains are connected by an edge, the product of the variables corresponding to the two chains can be expressed on the Pegasus graph. Therefore, by constructing the chains well, it is possible to express all products of variables in the cost function as edges between chains on the Pegasus graph. In fact, an example of this method is shown in Non-Patent Document 1. The above is the background of the above-mentioned conditions.

[0048] When assigning variables to nodes on a Pegasus graph to solve problems using a quantum annealing machine, etc., there are some points to be aware of. That is, the quantum annealing machine does not recognize the existence of a chain. Also, the quantum annealing machine solves problems by treating the qubits of the nodes in the chain as different variables. However, to solve an Ising problem, the nodes in the chain are assigned the same variables as those in the original Ising problem. Therefore, it is required that the states of the qubits of the nodes in the chain are all the same. Therefore, the bonds between the qubits corresponding to the edges connecting the nodes in the chain are strengthened so that the qubits of the nodes in the chain are all in the same state as a result. The strength of this bond is specified, for example, by the user when solving a problem with a quantum annealing machine.

[0049] The fact that the quantum annealing machine solves problems with different nodes on the Pegasus graph as different variables also means that for one Ising problem, if variables are assigned to the Pegasus graph by different assignments, the representation of the problem on the Pegasus graph obtained by those different assignments will be recognized as a different problem by the quantum annealing machine. Therefore, when different assignments exist, it should be considered which assignment should be made.

[0050] An allocation that satisfies the above conditions for a particular problem is generally not unique. Furthermore, among the multiple possible allocations, an allocation that uses fewer nodes is preferable. This is because, when solving a problem using a quantum annealing machine or the like, it tends to be more difficult to obtain the correct answer when more nodes on the Pegasus graph are used. Furthermore, it is preferable that the number of nodes used is not biased for each variable, because it is preferable that the influence of the allocation is uniform. In particular, the reasons why it becomes more difficult to obtain the correct answer when more nodes are used are as follows.

[0051] When solving an Ising problem, the more the number of variables, the more the number of combinations, so it is generally more difficult to obtain the correct answer. This can also be said to take longer to calculate to reliably obtain the correct answer. And the quantum annealing machine actually solves problems expressed on a Pegasus graph. The number of variables in the problem solved by the quantum annealing machine is the number of nodes used on the Pegasus graph. Therefore, if the number of nodes used by the allocation is large, the number of variables in the problem solved by the quantum annealing machine will also increase, making it more difficult to obtain the correct answer. In other words, even if the original Ising problem is the same, if a different allocation is made, the difficulty of obtaining the correct answer using the quantum annealing machine will change. Therefore, among the multiple possible allocations, an allocation that uses fewer nodes is preferable.

[0052] The techniques described in the above-mentioned Non-Patent Documents 1 and 2 do not aim to find an allocation that uses a small number of nodes. It is not easy to find an allocation that satisfies the conditions for an appropriate allocation and uses a small number of nodes.

[0053] Hereinafter, an embodiment will be described in which, when the LHZ method is effectively implemented on a Pegasus graph, the number of nodes used can be reduced and an unbiased correspondence can be obtained as the correspondence between the variables of an Ising problem and the nodes of a graph for solving the Ising problem. Hereinafter, for convenience of explanation, the term "unbiased" is used, but it can also be read as "small bias". For example, the smallness of bias is determined based on whether the bias satisfies a predetermined criterion. The predetermined criterion is a criterion for determining that the bias is small, for example, the criterion that the bias is smaller than a predetermined value. <Overview of the embodiment>

[0054] Before describing the embodiment in detail, an overview will be given. In the allocation device and allocation method of the present embodiment, an Ising problem is expressed by the LHZ scheme, and when the LHZ scheme is expressed on a Pegasus graph and solved, variables of the Ising problem are assigned to nodes on the Pegasus graph.

[0055] The allocation method of this embodiment is roughly divided into two steps.

[0056] The first step is to convert the cost function (equation (3)) used in the LHZ method into a cost function in which the product of three or more variables does not appear. For this conversion, for example, the method described in Non-Patent Document 3 is used. The cost function after conversion is as follows:

[0057]

number

[0058] J in Equation (5) ij , σ ij , C is the cost function before transformation, J in Eq. (3) ij , σ ij , C. In formula (5), i and j can take the same range of values ​​as i and j in formula (3). τ i,j is an Ising variable that can take the values ​​1 or -1, and is a new variable (auxiliary variable) generated by the transformation.

[0059] The cost function in equation (5) does not include a product of three or more Ising variables, so if we express it as the Ising variable s without distinguishing between σ and τ, it can be expressed in the form of equation (2). i ands j and the coefficient J ij In general, J appears in Eq. (5). ij Although different from J ij It can be calculated and derived based on the values ​​of and C.

[0060] σ that minimizes the cost function in Eq. (5). ij The combination of values ​​of σ that minimizes the cost function in Eq. (3) is ij When minimizing the cost function, τ i,j The value of is also determined, but it depends on the problem to be solved (J ij τ i,jis introduced to decompose the four products of variables σ in the cost function of equation (5) into two products.

[0061] FIG. 7 is an explanatory diagram showing the structure of the product between variables in a cost function. When the variables of the cost function expressed by equation (5) are variables on lattice points as illustrated in FIG. 7, the product of the variables in the cost function can be described as edges between lattice points. The edges between lattice points are not shown in FIG. 7. For example, σ 12 , σ 13 , σ 22 , σ 23 , τ 12 If we draw the edges for only this part, it will look like Figure 8. Figure 8 is an explanatory diagram showing part of the structure of the product between variables in the cost function. Edges between σ are shown with solid lines, and edges between σ and τ are shown with dotted lines. Similar structures can be seen in other parts of the lattice.

[0062] FIG. 9 is an explanatory diagram showing a part of the structure of the product between variables in the cost function. A square lattice as shown in FIG. 9 can be considered as a periodic structure that represents the relationship between the variables of the cost function. A circle represents σ, and a square represents τ. The edges shown in FIG. 9 represent a part of the product of variables in the cost function expressed by equation (5). The product of variables is, for example, the product of σ and τ. There are also products of σ in the cost function, but they are not shown as edges in FIG. 9. They are products of variables of the second adjacent node and variables of the third adjacent node based on the spatial distance between the nodes in FIG. 9. This lattice structure is used in the second step described below.

[0063] The second step is to convert the variables σ and τ of the cost function in equation (5) obtained by the transformation in the first step. i,j This is the step of assigning each of the nodes on the Pegasus graph to multiple nodes. At this time, the goal is to reduce the total number of nodes used by constructing a chain with a small number of nodes. The goal is also to achieve an even allocation. The policy for constructing the chain is explained below. In particular, the policy for constructing a chain with a small number of nodes and the specific method for doing so are explained.

[0064] The basic policy for configuring the allocation of a small number of nodes by chains is to make the periodic structure expressing the relationship between the variables of the cost function of formula (5) correspond to the periodic structure of the Pegasus graph. The periodic structure for the cost function is the above-mentioned square lattice structure. Figure 9 shows a periodic structure corresponding to the structure shown in Figure 7. As described above, in a square lattice structure, only variables assigned to adjacent lattice points appear as products in the cost function. Adjacent to a certain lattice point means that the product for the variables defined at the certain lattice point is defined in the lattice. In the Pegasus graph, the set of nodes connected by edges is limited. Nodes connected by edges can be interpreted as adjacent nodes. By reflecting the square lattice structure on the Pegasus graph, variables that become products in the cost function can be assigned to adjacent nodes, or to another node adjacent to an adjacent node. This eliminates the need to make the chain longer.

[0065] In order to specifically explain how the square lattice structure and the Pegasus graph structure correspond to each other, first, consider the structure of the Pegasus graph. FIG. 10 is an explanatory diagram showing a unit string in the Pegasus graph. A unit in the Pegasus graph has connections with multiple other units. In the example shown in FIG. 2, the units adjacent to the lower left and upper right of the unit have the most connections. As a string of units with such many connections, unit strings 951a to 951e extending from the lower left to the upper right direction as shown in FIG. 10 can be considered. Hereinafter, each of these will be simply called a unit string. However, as in unit strings 951a, 951b, 951d, and 951e in FIG. 10, near the edge of the entire Pegasus graph, a unit string may include units with some nodes missing. In the Pegasus graph, there are only edges connecting units within the unit string and edges connecting adjacent unit strings. Adjacent unit strings refer to a set of unit strings connected by edges, such as unit string 951b and unit string 951c in FIG. 10. The unit strings 951a, 951b, 951d, and 951e can be said to be group information in which a plurality of components (units) in the hardware of the quantum annealing machine are grouped (unit strings) according to the connection relationships between the components. The group information may be given group information, or may be information obtained according to a process of grouping according to the connection relationships between the components.

[0066] Next, consider periodically dividing the lattice points of a square lattice (see FIG. 9) that represents the relationship between the variables of the cost function of Equation (5) as shown in FIG. 11. FIG. 11 is an explanatory diagram showing a part of the structure of the product between the variables in the cost function and a plaquette array. A square consisting of four lattice points is called a plaquette, and each of the divisions here is called a plaquette array. An example of a plaquette array is the part 961b in FIG. 11. Near the edge of the entire lattice points that represent the variables, there are some parts that are not complete plaquette consisting of four lattice points, but these are also divided periodically, and each part resulting from the division is called a plaquette array. That is, in this embodiment, the part 961a and the part 961e are also plaquette arrays.

[0067] As will be described later with reference to FIG. 14, the allocation unit 102 may execute a process of dividing a plurality of variables into a plurality of process groups (plaquette sequences) having a periodic structure according to a reference relationship (or a relationship) in a process procedure, from information representing a process procedure for calculating a cost function from a plurality of variables in an Ising problem, as exemplified by formula (5). In other words, the allocation unit 102 executes lexical analysis, syntax analysis, etc., of a process (or program) as exemplified by formula (5), thereby identifying a plurality of variables used in the process, including subscripts. When two variables are multiplied, the allocation unit 102 determines that the two variables have a reference relationship (or a relationship) in the process. The allocation unit 102 extracts a periodic structure from the relationship, thereby dividing the process (or program) into a plurality of process groups (plaquette sequences) having a periodic structure. The process of determining the periodic structure may be a method based on the unit structure as described above, or may be a different method.

[0068] As mentioned above, we make the square lattice structure correspond to the Pegasus graph structure in the variable assignment. That means that plaquette sequences correspond to unit sequences. All variables in one plaquette sequence are assigned to the same unit sequence. Different plaquette sequences are assigned to different unit sequences. And the intersection of variables belonging to different plaquette sequences is represented as an edge between different unit sequences.

[0069] Next, an outline of variable allocation will be given. We will focus on the allocation of variables in the plaquette string to nodes in the unit string. First, consider one plaquette (for example, plaquette 962a in FIG. 11). The four variables of the plaquette are assigned to nodes in one unit (unit 952a in FIG. 10). Specifically, the four variables of the plaquette are assigned to the four nodes in the lower left corner of the unit (nodes 911a, 911b, 912c, and 912d in FIG. 3). The nodes and edges in the plaquette are a subgraph of the four nodes in the Pegasus graph and the edges connecting them. Therefore, the plaquette can be expressed by the four nodes in the Pegasus graph.

[0070] Four variables of the next plaquette in the plaquette sequence (e.g., plaquette 962b in FIG. 11) are assigned to the remaining four nodes in the same unit of the Pegasus graph (unit 952a in FIG. 10). Due to the symmetry of the units, this new plaquette can also be represented by the remaining four nodes (nodes 911c, 911d, 912a, and 912b in FIG. 3). There are two variables that belong to both of the two plaquette (variables 963a and 963b in FIG. 11). These will be assigned to two nodes in the unit of the Pegasus graph. Specifically, variable 963a is assigned to nodes 911b and 912b. Variable 963b is assigned to nodes 911c and 912c. These two nodes are connected by an edge. The node assigned by the variable becomes the chain of this variable. Furthermore, the product of variables belonging to two plaquette can also be represented by an edge in the unit. Thus, one unit can represent all the variables in the two plaquettes and their products.

[0071] Consider the next plaquette (for example, plaquette 962c in FIG. 11) in the same plaquette row. This plaquette is assigned to the four nodes (nodes 911a, 911b, 912c, and 912d in FIG. 3) at the bottom left of the next unit (unit 952b in FIG. 10) in the unit row. Variables (variables 963c and 963d in FIG. 11) belonging to both plaquette 962b and plaquette 962c are assigned to a total of two nodes, one node in unit 952a and one node in unit 952b. Specifically, variable 963c is assigned to node 912a in unit 952a and node 911a in unit 952b. Variable 963d is assigned to node 911d in unit 952a and node 912d in unit 952b. These two nodes are connected by an edge. A node to which a variable is assigned becomes a chain of this variable. The product of variables belonging to plaquette 962b and plaquette 962c can also be represented by edges between units. Therefore, the two units 952a and 952b can represent all the variables of the two plaquette 962b and 962c and their products.

[0072] By repeating the above process, the product of the variables in the plaquette sequence and the variables in the plaquette sequence are appropriately assigned to the nodes in the unit sequence. And the chain length of each variable is 2.

[0073] Next, consider expressing the product of variables belonging to adjacent plaquette columns (plaquette columns 961c and 961d in FIG. 11) with edges between adjacent unit columns. Specifically, consider the product of variables belonging to plaquette 962c and plaquette 962d in FIG. 11. The variables of plaquette 962c and the variables of plaquette 962d are assigned to unit columns 951c and 951d in FIG. 10, respectively. In particular, by assigning them to unit 952b and unit 952c in FIG. 10, all products of variables between plaquette columns can be expressed with edges.

[0074] By repeating the above process, all products between variables belonging to the first and second plaquette sequences can be expressed as edges between the first and second unit sequences. No new chains are introduced to represent products of variables between plaquette sequences. Also, no new nodes are added to existing chains. Therefore, the length of the chain for each variable remains 2.

[0075] FIG. 12 is an explanatory diagram showing chains. The chains used in the above allocation method are classified into four types, chains 971a, 971b, 971c, and 971d, when any two adjacent units in a unit string are considered as shown in FIG. 12. These types of chains will be described later. When allocating variables, the unit in the Pegasus graph and the type of chain are specified. In this way, the node to be used is uniquely specified. Once the position of the unit to which one Ising variable is allocated and the type of chain are determined, all variables can be allocated by the above-mentioned procedure. With this allocation, all products of variables are represented as edges in the Pegasus graph. As will be described later, the parameter for determining the allocation of the first Ising variable is c 0 , w 0 , k 0 , z 0 These parameters can be said to represent a criterion for associating a repetitive structure that represents the relationship between variables in the cost function with a repetitive structure in the Pegasus graph. Therefore, as described below, the repetitive structure in the cost function can be associated with the repetitive structure in the Pegasus graph using such a given criterion.

[0076] Hereinafter, the embodiments will be described in detail with reference to the drawings. [Configuration Description]

[0077] FIG. 13 is an explanatory diagram showing an example of the computation system 10 of this embodiment. In this embodiment, the allocation device 100 determines the correspondence between the variables and nodes of the Ising problem. In the computation system 10 shown in FIG. 13, it is assumed that a quantum annealing machine 200 is used to solve the Ising problem. Note that, instead of the quantum annealing machine 200, any other device that solves the Ising problem using a Pegasus graph may be used. In addition, the computation system 10 includes a computation device 300 and an input / output device 400 as auxiliary devices for inputting a problem to the quantum annealing machine 200 and obtaining an output of the computation result. Thus, in the example shown in FIG. 13, the computation system 10 has the allocation device 100, the quantum annealing machine 200, the computation device 300, and the input / output device 400.

[0078] The assignment device 100 receives as input the number N of Ising variables in the Ising problem and c 0 , w 0 , k 0 , z 0 and outputs information indicating the correspondence between the variables of the Ising problem and the nodes of the Pegasus graph. In this embodiment, information indicating the correspondence between the variables of the Ising problem and the nodes of the Pegasus graph is input to the input / output device 400. Information may be input to the input / output device 400 via a user's input operation, or may be input directly from the allocation device 100. Coefficients of the variables of the Ising problem are input to the input / output device 400. Coefficients may be input to the input / output device 400 via a user's input operation, or may be input directly from the calculation device 300. The input / output device 400 is a device that performs input / output processing with the quantum annealing machine 200. Based on the output results of the allocation device 100 and the calculation device 300, the input / output device 400 outputs the quantum bit to be used and the strength of the coupling between the quantum bits to the quantum annealing machine 200. The input / output device 400 also acquires the final state of the quantum bit from the quantum annealing machine 200 and outputs the solution to the Ising problem.

[0079] The allocation device 100, the calculation device 300, and the input / output device 400 are general computers, that is, so-called classical computers. A part or all of the functions of the calculation device 300 and the input / output device 400 may be incorporated in the allocation device 100.

[0080] In addition, some or all of the allocation device 100, the quantum annealing machine 200, the calculation device 300, and the input / output device 400 may be realized by the cloud. For example, only the quantum annealing machine 200 and the input / output device 400 may be realized by the cloud. When only the quantum annealing machine 200 and the input / output device 400 are realized by the cloud, the output from the allocation device 100 and the calculation device 300 may be input to the input / output device 400 via a network. Then, the output of the input / output device 400 is input to the quantum annealing machine 200, and the output from the quantum annealing machine 200 is input to the input / output device 400. Furthermore, the output of the calculation result from the input / output device 400 is performed via a network.

[0081] As described above, the allocation device 100 determines the number N of Ising variables of an Ising problem and the Ising variables σ 1,2 The parameter c of the node to which 0 , w 0 , k 0 , z 0 The allocation device 100 receives as input the above equation (2) and outputs information indicating which node on the Pegasus graph the Ising variables of the cost function are to be allocated to, based on the expression of the cost function of the Ising problem.

[0082] The computing device 300 also calculates J ij and C, a parameter to be adjusted within a positive value range, are received as input. Then, the calculation device 300 calculates and outputs the coefficients of the Ising variables of the cost function shown in equation (5) based on this input. The coefficients of the Ising variables are the coefficients of J in equation (2) when equation (5) is expressed in the form of equation (2). ijSpecifically, the calculation device 300 calculates a variable σ ij Coefficients and variables of σ ij and σ kl Print a list of coefficients of the product with .

[0083] The output (allocation result) of the allocation device 100 and the output (coefficients of Ising variables) of the calculation device 300 are input to the input / output device 400. Furthermore, the user specifies the strength of the bond between the quantum bits corresponding to the edges connecting the nodes in the chain (chain strength), and inputs the value of that strength to the input / output device 400. A value is input as this value that brings all the quantum bits of the nodes in the chain into the same state. It is assumed that the chain strength specified here is the same for all chains.

[0084] The input / output device 400 uses the allocation result, the coefficients of the Ising variables, and the chain strength to determine the quantum bits to be used in the quantum annealing machine 200, and calculates the strength of the coupling between the quantum bits. The strength of the coupling between the quantum bits calculated here includes the strength of the coupling corresponding to the edges in the chain. All the coupling strengths are equal to the specified chain strength. Then, the input / output device 400 inputs the list of quantum bits to be used and the strength of the coupling between the quantum bits to the quantum annealing machine 200.

[0085] The quantum annealing machine 200 realizes the strength of the coupling between quantum bits specified by the input, for the quantum bits specified by the input. Then, the quantum annealing machine 200 executes quantum annealing, and outputs a list indicating the final quantum bit states to the input / output device 400. The input / output device 400 converts the list indicating the quantum bit states into a list indicating the values ​​of Ising variables. The input / output device 400 outputs the list to an output device (e.g., a display or an electronic file) not shown.

[0086] The relationship between the Pegasus graph and the quantum annealing machine is as described above. That is, which quantum bits of the quantum annealing machine 200 are coupled to which quantum bits correspond to the structure of the Pegasus graph. That is, the quantum bits correspond to the nodes of the Pegasus graph, and the coupling between the quantum bits corresponds to the edges of the Pegasus graph. The quantum bits are composed of two states, and the quantum annealing machine 200 can treat which state the quantum bit is in as a binary variable. Then, the quantum annealing machine 200 can correspond this binary variable to the variable of the Ising problem. The quantum annealing machine 200 can solve the Ising problem by associating the Ising problem with the Pegasus graph and associating the value of the Ising variable assigned to the node on the Pegasus graph with the state of the quantum bit. However, as described above, when the quantum annealing machine 200 associates the Ising problem with the Pegasus graph, it appropriately assigns the variable of the Ising problem to the node on the Pegasus graph.

[0087] The allocation device 100 will be described in detail below. Fig. 14 is a block diagram showing an example of the configuration of the allocation device 100. As shown in Fig. 14, the allocation device 100 includes an input receiving unit 101, an allocation unit 102, and an output unit 103. The input receiving unit 101 receives the number N of variables of an Ising problem, an Ising variable σ 1,2 The parameter for the allocation of 0 , w 0 , k 0 , z 0 The input is performed, for example, via an input device (not shown) such as a keyboard. For example, the user inputs the number N of variables in the Ising problem to be solved and c 0 , w 0 , k 0 , z 0 Enter:

[0088] The allocation unit 102 performs a process of allocating Ising variables of an Ising problem to nodes on a Pegasus graph. That is, the allocation unit 102 reflects a periodic structure in a cost function of an Ising problem in a periodic structure of the Pegasus graph, and allocates each Ising variable to a node of the Pegasus graph.

[0089] The output unit 103 outputs information indicating the correspondence between the binary variables and the nodes based on the result of the assignment of the binary variables to the nodes by the assignment unit 102. For example, the output unit 103 outputs the information indicating the correspondence to an output device (not shown) such as a display. The output unit 103 outputs, for example, a list indicating the correspondence between the binary variables and the nodes. For example, the output unit 103 outputs a list indicating the correspondence between the Ising variables σ i,j and Ising variables τ i,j For example, the assignment unit 102 outputs a list of nodes on the Pegasus graph to which the Ising variable σ is assigned, for i=1, 2, ..., N and j=i+1, i+2, ..., N. 1,2 to node 0 and node 1, and the Ising variable σ 2,3 to node 2 and node 3, and the Ising variable τ 1,2 to nodes 4 and 5, and the Ising variable τ 2,3 to node 6 and node 7, the output unit 103 outputs {σ 1,2 :[0,1],σ 2,3 :[2,3],τ 1,2 :[4,5],τ 2,3 :[6,7]} is output.

[0090] Fig. 15 is a block diagram showing an example of a hardware configuration of the allocation device 100. The allocation device 100 shown in Fig. 15 includes a network interface 150, a memory 151, and a processor 152. The network interface 150, the memory 151, and the processor 152 are connected to each other via a data bus or the like.

[0091] The network interface 150 is used to communicate with any other device and may include, for example, a network interface card (NiC).

[0092] The memory 151 is configured, for example, by a combination of a volatile memory and a non-volatile memory. The memory 151 is used to store software (computer programs) including one or more instructions executed by the processor 152, data used for various processes of the allocation device 100, and the like.

[0093] The processor 152 reads out and executes software (computer programs) from the memory 151 to perform processing of each of the components shown in FIG.

[0094] The processor 152 is, for example, a microprocessor, a microprocessor unit (MPU), or a central processing unit (CPU). The processor 152 may include multiple processors.

[0095] In this way, the allocation device 100 can be realized by a device that functions as a computer (information processing device).

[0096] The above-mentioned program may be stored in various types of non-transitory computer readable media and supplied to the computer. The non-transitory computer readable media includes various types of tangible storage media. Examples of the non-transitory computer readable media include magnetic recording media (e.g., flexible disks, magnetic tapes, hard disks), magneto-optical recording media (e.g., magneto-optical disks), CD-ROMs (Read Only Memory), CD-Rs, CD-RWs, and semiconductor memories (e.g., mask ROMs, PROMs (Programmable ROMs), EPROMs (Erasable PROMs), flash ROMs, and RAMs (Random Access Memory)). The program may also be supplied to the computer by various types of transitory computer readable media. The transitory computer readable medium is, for example, a RAM (Random Access Memory). The program may also be supplied to the computer via a wired communication path such as an electric wire or optical fiber, or via a wireless communication path.

[0097] The allocation by allocation section 102 will now be described.

[0098] As described above, the allocation unit 102 designates the unit position and the chain type when allocating. First, a method for designating a node in a Pegasus graph will be described. Then, a method for designating the unit position will be described, and after that, the chain type will be described.

[0099] As described above, the coordinates of a node on the Pegasus graph are represented by (u, w, k, z). The possible values ​​are u=0, 1, w=0, 1, ..., M-1, k=0, 1, ..., 11, and z=0, 1, ..., M-2. M is a parameter that represents the size of the entire Pegasus graph. Here, M is assumed to be sufficiently large. However, when the allocation device 100 outputs a list of allocations of Ising variables to nodes, the coordinates of the node themselves are not used for output. Instead, the number of the node that is uniquely determined from the coordinates is used. When the coordinates of a node are (u, w, k, z), if the number of the node is x, then x is given by equation (6).

[0100]

number

[0101] However, the process of converting (u, w, k, z) to x is not limited to the process exemplified in formula (6). The conversion process may be any process in which two different coordinates (u, w, k, z) are converted to different x.

[0102] However, in the following explanation, coordinates (u, w, k, z) will be used instead of the above x.

[0103] Next, a method for assigning the position of a unit by the allocation unit 102 will be described. Consider four nodes in the unit for which u=0. The coordinates of the node with the smallest k (node ​​911a in FIG. 3) among these four nodes are (0, w 0 ,k 0 ,z 0 ) is defined as the unit (w 0 ,k 0 ,z 0 ) will be called k 0 can take the values ​​0, 4, or 8. The unit (w 0 ,k 0 ,z 0 The coordinates of the node with the smallest k (node ​​912a in FIG. 3) among the four nodes with u=1 in 0For each value of k, 0 When z = 0, the coordinates of node 912a are (1, z 0 ,8,w 0 -1). 0 When z = 4, the coordinates of node 912a are (1, z 0 +1,4,w 0 ) k 0 When z = 8, the coordinates of node 912a are (1, z 0 +1,0,w 0 ) and the unit (w 0 ,k 0 ,z 0 ) and the adjacent units in the same unit sequence are defined as k 0 It can be specified according to the value of k 0 When =0, the adjacent units are units (w 0 ,8,z) and unit (w 0 ,4,z-1). 0 When = 4, the connected units are units (w 0 ,0,z+1) and unit (w 0 ,8,z). 0 When = 8, the connected units are units (w 0 ,4,z) and unit (w 0 +1,0,z). 0 Of the two units corresponding to each, the former will be called the lower-left unit and the latter the upper-right unit. In particular, the change in coordinates when moving to the upper-right unit is expressed by equation (7) as follows.

[0104] (w,k,z)->(w,4,z-1) (when k=0) (w,8,z) (when k=4) Equation (7) (w+1,0,z) (when k=8)

[0105] Next, the types of chains are explained. The type of chain is determined only by the relative positional relationship between the nodes in two adjacent units. The type of chain does not depend on the position of the two adjacent units in the Pegasus graph. Therefore, consider two units 972a and 972b that are adjacent in a unit row as shown in FIG. 12. Unit 972b is the unit immediately above and to the right of unit 972a. The position of unit 972a in the Pegasus graph is arbitrary. Here, the four nodes of u=0 in unit 972a are called nodes A00, A01, A02, and A03 in ascending order of k, and the four nodes of u=1 in unit 972a are called nodes A10, A11, A12, and A13 in ascending order of k. The four nodes of unit 972b with u=0 are called nodes B00, B01, B02, and B03 in ascending order of k, and the four nodes of unit 972b with u=1 are called nodes B10, B11, B12, and B13 in ascending order of k. There are four types of chains. These are called chain types (hereafter also called chains) α, β, γ, and δ. All of these are composed of two nodes. The nodes used in each chain are composed of the above nodes as follows. Chain α is composed of node A12 and node A02. Chain β is composed of node A01 and node A11. Chain γ is composed of node A03 and node B13. Chain δ is composed of node A10 and node B00. That is, in FIG. 12, chain α is chain 971a. Chain β is chain 971b. Chain γ is chain 971c. Chain δ is chain 971d.

[0106] When allocating a variable, the allocation unit 102 designates the position (w, k, z) of the unit 972a in the Pegasus graph and the type of chain. This identifies the node to be allocated. Therefore, the position of the unit 972a and the type of chain are expressed as one to represent the chain in which the node is identified. For example, if the unit 972a is a unit (w 0 ,k 0 ,z 0 ) and the type of chain is chain α, then we call this chain α(w0 ,k 0 ,z 0 The same applies when the type of chain is chain β, γ, or δ. The assignment of variables comes down to associating each variable with each of the chains above.

[0107] A specific method in which the allocation unit 102 allocates variables by specifying the unit position and the chain type will be described below.

[0108] As described above, the allocation unit 102 performs allocation so that the plaquette sequence in the square lattice structure of the Ising variables corresponds to the unit sequence. First, a method in which the allocation unit 102 corresponds one plaquette to one unit will be described. i+1,j+1 , τ i,j , τ i+1,j , σ i+1,j Consider a plaquette consisting of the Ising variables σ i+1,j+1 , τ i,j , τ i+1,j ,σ i+1,j are Ising variables 981a, 981b, 981c, and 981d, respectively. The plaquette is the plaquette 982a. The allocation unit 102 assigns each Ising variable of the plaquette 982a to a chain α(w 0 ,k 0 ,z 0 ), Chain β(w 0 ,k 0 ,z 0 ), chain γ(w 0 ,k 0 ,z 0 ), chain δ(w 0 ,k 0 ,z 0 )

[0109] Next, a method for associating a plaquette sequence with a unit sequence by the allocation unit 102 will be described. Consider a plaquette 982b that is two adjacent to the plaquette 982a in the plaquette sequence 983a to which the plaquette 982a belongs. The plaquette 982b has an Ising variable σ i+2,j , τ i+1,j-1 , τi+2,j-1 ,σ i+2,j-1 The allocation unit 102 divides these four variables into units (w 0 ,k 0 ,z 0 ) to the chains α, β, γ, and δ in the unit immediately above and to the right of the unit. When moving to the unit immediately above and to the right, the coordinates change as shown in formula (7). The allocation unit 102 repeats this process to allocate all Ising variables in the plaquette sequence 983a to chains consisting of nodes in the same unit sequence. Therefore, by determining which unit to allocate one plaquette in the plaquette sequence, the allocation of all plaquette in the plaquette sequence is determined. Therefore, it can be said that the allocation unit 102 determines the allocation so that each processing group (i.e., plaquette sequence) is processed by one group (unit sequence) according to given group information in which multiple components (units) in the hardware of the quantum annealing machine are grouped (unit sequence) according to the connection relationship between the components. According to this process, it is possible to allocate so that the number of nodes is less biased and the number of nodes used is reduced. This is because, for multiple processing groups having a periodic structure, each processing group is assigned to each group according to the periodic structure of the hardware configuration of the quantum annealing machine.

[0110] When the plaquette sequence corresponds to the unit sequence, the Ising variables are assigned to the types of chains according to the following rules. All Ising variables σ with the same sum of two subscripts are assigned to the same type of chain. Similarly, all Ising variables τ with the same sum of two subscripts are assigned to the same type of chain. This rule holds because when moving one unit to the upper right of the unit sequence in the Pegasus graph, the first subscript of the assigned Ising variable increases by 1 and the second subscript decreases by 1. In the case of the above plaquette sequence 983a, the Ising variable σ with the sum of the two subscripts being i+j+2 is assigned to the chain α. The Ising variable σ with the sum of the two subscripts being i+j+1 is assigned to the chain δ. And the Ising variable τ with the sum of the two subscripts being i+j is assigned to the chain β. The Ising variable τ with the sum of the two subscripts being i+j+1 is assigned to the chain γ.

[0111] Next, consider the adjacent plaquette sequence. In the example shown in FIG. 16, the plaquette sequence adjacent to the above plaquette sequence 983a is the plaquette sequence 983b. The Ising variables included in the plaquette sequence 983b are assigned to the chain of the adjacent unit sequence. The assignment unit 102 selects the units to be assigned so that the product of the Ising variables in the adjacent plaquette sequence is represented by the edge between the nodes. The Ising variable σ i+1,j+1 , τ i,j , τ i+1,j ,σ i+1,j and the Ising variable τ i+1,j+2 ,σ i+1,j+2 ,σ i+2,j+2 , τ i+1,j+1 Consider a bracket consisting of:

[0112] In FIG. 16, the plaquette is a plaquette 982a consisting of Ising variables 981a, 981b, 981c, and 981d, and a plaquette 982c consisting of Ising variables 981i, 981j, 981k, and 981l. The allocation unit 102 allocates the Ising variables 981a, 981b, 981c, and 981d of the plaquette 982a to the units (w 0 ,k 0 ,z0 ) to the chains α, β, γ, and δ of the 0 That is, the allocation unit 102 allocates the bracket 982c to the unit as follows: k 0 When w = 0, the allocation unit 102 allocates the bracket 982c to the unit (w 0 ,4,z 0 ) k 0 When w = 4, the allocation unit 102 allocates the bracket 982c to the unit (w 0 ,8,z 0 +1)). 0 When w = 8, the allocation unit 102 allocates the bracket 982c to the unit (w 0 +1,0,z 0 +1). The relative positions of the units to which the two plaquettes are assigned in the Pegasus graph are 0 The values ​​are the same. Each Ising variable 981i, 981j, 981k, and 981l of the plaquette 982c is assigned to the chains α, β, γ, and δ of the unit in this order. In this way, when a unit to which one plaquette row is assigned is determined, all units to which adjacent plaquette rows are assigned are uniquely determined. With this assignment, all products of Ising variables belonging to adjacent plaquette rows are associated with the edges of the Pegasus graph.

[0113] In the above assignment, in the plaquette sequence 983b to which the plaquette 982c belongs, the Ising variable σ with the sum of two subscripts being i+j+3 is assigned to the chain β. The Ising variable σ with the sum of two subscripts being i+j+4 is assigned to the chain γ. The Ising variable τ with the sum of two subscripts being i+j+3 is assigned to the chain α. The Ising variable τ with the sum of two subscripts being i+j+2 is assigned to the chain δ. In the plaquette 982a, the Ising variable σ is assigned to the chains α and δ, whereas in the plaquette 982c, the Ising variable σ is assigned to the chains β and γ. In other words, when the Ising variable σ of a plaquette sequence is assigned to the chains α and δ, the Ising variable σ belonging to the plaquette sequence adjacent to the plaquette sequence is assigned to the chains β and γ.

[0114] The sum of two subscripts of the Ising variable σ in the above two plaquette sequences 983a and 983b and the types of chains are summarized as follows: i+j+1 and chain δ, i+j+2 and chain α, i+j+3 and chain β, and i+j+4 and chain γ. In this assignment, the plaquette is assigned to an adjacent unit sequence every time the sum of the two subscripts of the Ising variable σ increases by 2. The correspondence between the sum of the subscripts and the types of chains has a periodicity of 4 for the sum of the subscripts. That is, in the above example, for example, variables whose sums are i+j+5 and i+j+7 are assigned to the chains δ and β of the adjacent unit sequences, respectively. Note that although there is a periodicity, the type of chain is not uniquely determined by the sum of the subscripts alone. By the assignment unit 102 specifying the type of chain of any one of the Ising variables, it is possible to uniquely associate the sum of the subscripts with the type of the chain. For example, in the above case, the Ising variable σ i+1,j+1 is assigned to the chain α, the chains to which other Ising variables are assigned are uniquely determined.

[0115] A similar periodicity is observed for τ. In addition to the periodicity, there is also the following relationship: i,jWhen i+j=m, the Ising variable τ whose two subscripts sum to m+1 is the Ising variable σ i,j For example, in the above assignment, the Ising variable σ i+1,j+1 is assigned to chain α, and the Ising variable τ i+1,j+2 is also assigned to chain α. This is because the type of chain to be assigned is switched between Ising variable σ and Ising variable τ each time the next plaquette row is moved to the next plaquette row.

[0116] We have explained how adjacent plaquette strings are assigned when the Ising variable σ of a plaquette string is assigned to chains α and δ of the same unit string. On the other hand, we will explain below how adjacent plaquette strings are assigned when the Ising variable σ of a plaquette string is assigned to chains β and γ of the same unit string.

[0117] Ising variable τ i+1,j+2 ,σ i+1,j+2 ,σ i+2,j+2 , τ i+1,j+1 The brackets are arranged in this order as units (w 0 ,k 0 ,z 0 In the example shown in FIG. 16, this plaquette is a plaquette 982c consisting of Ising variables 981i, 981j, 981k, and 981l. The plaquette 982c is included in a plaquette row 983b. The Ising variables σ i+3,j+3 , τ i+2,j+2 , τ i+3,j+2 ,σ i+3,j+2 In the example shown in FIG. 16, the plaquette is a plaquette 982d consisting of Ising variables 981m, 981n, 981o, and 981p. The plaquette 982d is included in a plaquette sequence 983c. The allocation unit 102 allocates the plaquette 982d to k 0 Depending on the value of k, we assign it to the units as follows: 0 When w = 0, the allocation unit 102 allocates the bracket 982d to the unit (w0 ,8,z 0 ) k 0 When w = 4, the allocation unit 102 allocates the bracket 982d to the unit (w 0 +1,0,z 0 +1). 0 When w = 8, the allocation unit 102 allocates the bracket 982d to the unit (w 0 +1,4,z 0 ) and the assignment unit 102 assigns the Ising variable σ i+3,j+3 , τ i+2,j+2 , τ i+3,j+2 ,σ i+3,j+2 are assigned to the chains of the units in this order. Note that the Ising variables σ i+3,j+3 , τ i+2,j+2 , τ i+3,j+2 ,σ i+3,j+2 The value of the subscript is the Ising variable σ of the first Plaquette 982a. i+1,j+1 , τ i,j , τ i+1,j ,σ i+1,j This can be obtained by increasing i and j by 2.

[0118] From the relationships we have seen so far, we can see the relative relationship of the subscripts of the Ising variables in the plaquette assigned to one unit and the combination with the chain. This relative relationship means that if one Ising variable and the chain to which it is assigned are given, it is possible to identify other Ising variables in the plaquette that are assigned to the same unit as that Ising variable and the chain to which they are assigned. There are two types of such relative relationships.

[0119] The first type is the Ising variable σ for Plaquette 982a. i+1,j+1 , τ i,j , τ i+1,j ,σ i+1,jThe types of chains are α, β, γ, and δ, in that order. If the subscript i of these Ising variables is increased by a positive integer m and j is decreased by m, those Ising variables become the subscript values ​​of the Ising variables assigned to the unit that is moved m to the upper right in the same unit row. Also, if both i and j are increased by 2×m, they become the subscripts of the Ising variables of the plaquette in the plaquette row that is 2×m away, and those Ising variables are assigned to the unit row that is 2×m away.

[0120] The second type is the Ising variable τ for Plaquette 982c. i+1,j+2 ,σ i+1,j+2 ,σ i+2,j+2 , τ i+1,j+1 The types of chains are α, β, γ, and δ, in that order. This plaquette belongs to the plaquette row adjacent to the first type of plaquette. This plaquette is assigned to the unit row adjacent to the unit row to which the first type of plaquette row is assigned. As with the first type of plaquette, if the subscript i of the Ising variable is increased by m and j is decreased by m, those Ising variables become the subscript value of the Ising variable assigned to the unit that is moved m to the upper right in the same unit row. Also, if both i and j are increased by 2×m, they become the subscript of the Ising variable of the plaquette in the plaquette row that is 2×m away, and those Ising variables are assigned to the unit row that is 2×m away. All plaquette assignments to units are expressed by these two types alone. For example, the Ising variable σ 1,3 When is assigned to chain α, this Ising variable belongs to the first type of plaquette. And, the Ising variable τ 0,2 , τ 1,2 , σ 1,2 are assigned to the same unit chains β, γ, and δ, respectively. Also, the Ising variables σ 1,3 When is assigned to chain β, this Ising variable belongs to the second kind of plaquette. And, the Ising variable τ in the same plaquette 1,3 , σ 2,3 , τ 1,2are assigned to the chains α, γ, and δ of the same unit, respectively.

[0121] As described above, the allocation unit 102 designates a unit to which one plaquette is assigned, and thus the units to which all plaquette are assigned are determined. In general, the plaquette that the allocation unit 102 first designates may belong to any plaquette sequence. It is arbitrary whether the Ising variable σ of the plaquette sequence that is first designated is assigned to chains α and δ or to chains β and γ. Therefore, when the allocation unit 102 determines the type and position of a chain to which one Ising variable is assigned, the chain to which other variables in the plaquette to which that variable belongs are assigned is determined. This determines the allocation of the first plaquette. The above allocation method determines the chains to which all plaquette, i.e., all variables, are assigned.

[0122] In this embodiment, the assignment unit 102 first assigns the Ising variable σ 1,2 Next, the adjacent plaquette sequences are considered in order, and the assignment unit 102 assigns the Ising variable σ 1,j The allocation unit 102 then assigns other Ising variables. The allocation unit 102 uses a function c[i] when specifying a chain. The remainder when an integer i is divided by an integer j is represented as i%j. c[i] represents the type of chain. When i%4 is 0, the type of chain is Chain α. When i%4 is 1, the type of chain is Chain β. When i%4 is 2, the type of chain is Chain γ. When i%4 is 3, the type of chain is Chain δ.

[0123] Ising variable σ 1,2 The chain to which is assigned is c[c 0 ](w 0 ,k 0 ,z 0 ) will be called. 0 is either 0, 1, 2, or 3. In this case, the Ising variable σ 1,jThe type of chain to which is assigned is the chain c[c 0 +j-2]. The unit to which the chain belongs is derived by the following rules. Ising variable σ 1,j is the chain c[c 0 +j-2](w j ,k j ,z j ), the Ising variable σ 1,j+1 The unit to which the value is assigned is (w j+1 ,k j+1 ,z j+1 ) is assumed. 0 +j-2)%4 is 0 or 2, (w j+1 ,k j+1 ,z j+1 ) is expressed as equation (8).

[0124]

number

[0125] (c 0 +j-2)%4 is 3, then (w j+1 ,k j+1 ,z j+1 ) is expressed as equation (9).

[0126]

number

[0127] (c 0 +j-2)%4 is 1, then (w j+1 ,k j+1 ,z j+1 ) is expressed as equation (10).

[0128]

number

[0129] Ising variable σ 1,j+1 is the chain c[c 0 +j-1](w j+1, k j+1 , z j+1 ) is assigned. Based on this rule, the assignment unit 102 sequentially assigns the indexing variable σ 1,j for j = 2, 3,..., N.

[0130] Next, the assignment unit 102 designates the chain to which the indexing variable σ i+m,j-m (where i + m < j - m) is assigned. The type of the chain is determined by the sum of the two subscripts. In this case, for any m, the sum of the subscripts is i + j. Therefore, the type of the chain is the same for any m. When m = 1 - i, that is, for the indexing variable σ 1,i+j-1 , the type of the chain is the chain c [c 0 + i + j - 3]. The unit to which the indexing variable σ 1,i+j-1 is assigned is determined by the above rule. For other m, each time m increases by 1, the unit to which the indexing variable is assigned changes to the upper right adjacent unit within the unit sequence. The change in coordinates when moving to the upper right adjacent unit is represented by Equation (7). To show this explicitly, when the unit to which the indexing variable σ i+m,j-m is assigned is (w m , k m , z m ), the unit (w i+m+1,j-m-1 , k m+1 , z m+1 , z m+1 ) to which the indexing variable σ

[0131]

Equation

[0132] According to this rule, the assignment unit 102 can sequentially assign the indexing variable σ i+m,j-m .

[0133] The allocation unit 102 can also specify a chain to which the Ising variable τ is assigned, using the Ising variable σ assigned as described above. As described above, there are only two combinations of the relative relationship of the subscripts of the Ising variables in the plaquette assigned to one unit and the chain. Therefore, the chain to which the Ising variable τ is assigned is uniquely determined from the chains to which the Ising variable σ belonging to the same plaquette is assigned. Specifically, the Ising variable σ assigned to the chain α is i,j Using the subscripts i and j, the Ising variables τ i-1,j-1 are assigned to the same plaquette chain β. i,j-1 is assigned to chain γ of the same plaquette. Ising variables σ assigned to chain β i,j Using the subscripts i and j, the Ising variables τ i,j are assigned to the same plaquette chain α. i,j-1 is assigned to the chain δ. The assignment unit 102 performs such an assignment for each bracket assigned to the unit. Through the above process, all Ising variables τ are assigned to chains.

[0134] As described above, the allocation unit 102 0 , w 0 , k 0 , z 0 If you specify, all Ising variables will be assigned to chains on the Pegasus graph sequentially.

[0135] [Explanation of operation] Next, the operation of this embodiment will be described with reference to the drawings. Fig. 17 is a flowchart showing the flow of the operation of the allocation device 100. Fig. 18 is a flowchart showing the flow of the calculation operation of the calculation system 10 to solve the Ising problem.

[0136] The flow of operations of the allocation device 100 will be described with reference to FIG.

[0137] First, the input receiving unit 101 of the allocation device 100 receives, via an input device (not shown), the number N of binary variables (Ising variables) of an Ising problem and one Ising variable σ 0,1 is the information about the assigned node, c 0 , w 0 , k 0 , z 0 The input is accepted (step S101).

[0138] Next, the allocation unit 102 of the allocation device 100 expresses the Ising problem for the number of input Ising variables as an Ising problem in the form of equation (5) stored in advance, and allocates the Ising variables σ and τ to nodes on the Pegasus graph (step S102). At this time, only information on which variables appear in the form of a product in equation (5) is required, and the specific values ​​of the coefficients of the product in equation (5) are not required. The allocation unit 102 calculates the number of Ising variables N, c 0 , w 0 , k 0 , z 0 Depending on the value of , the allocation is performed as described above.

[0139] Next, the output unit 103 of the allocation device 100 outputs information indicating the correspondence between the binary variables and the nodes based on the allocation result of the allocation unit 102 (step S103). This output may be performed, for example, on an output device (not shown) such as a display, or may be output as an electronic file.

[0140] Next, a description will be given of the flow of calculation operations for the Ising problem by the calculation system 10. When the Ising problem is solved by the quantum annealing machine 200, the flow of operations is as shown in the flowchart of FIG.

[0141] First, the output of the allocation device 100 (the list of allocations) and the output of the calculation device 300 (the coefficients of Ising variables) are input to the input / output device 400 (step S201). Furthermore, in step S201, the user specifies the strength of the bond between the quantum bits corresponding to the edges connecting the nodes in the chain (chain strength), and inputs the value of the strength to the input / output device 400. The chain strength specified here is the same for all chains.

[0142] Next, the input / output device 400 uses the list of assignments, the coefficients of the Ising variables, and the chain strength to determine the quantum bits to be used in the quantum annealing machine 200, and calculates the strength of the coupling between the quantum bits (step S202). The quantum annealing machine 200 can easily perform calculations with the above three inputs. The coupling strength between the quantum bits calculated here includes the coupling strength corresponding to the edges in the chain. All of the coupling strengths are equal to the specified chain strength.

[0143] Next, the input / output device 400 inputs a list of quantum bits to be used and the strength of coupling between the quantum bits to the quantum annealing machine 200 (step S203).

[0144] Next, the quantum annealing machine 200 realizes the strength of coupling between the quantum bits specified by the input, for the quantum bits specified by the input (step S204).

[0145] Next, the quantum annealing machine 200 executes quantum annealing (step S205). Specifically, the state of the quantum bits in the quantum annealing machine 200 transitions from the initial state to a state that minimizes the energy of the entire quantum bits. Each quantum bit can generally take two states, but will ultimately be in one of these states.

[0146] Then, a list of the states of each quantum bit at this time is output from the quantum annealing machine 200 to the input / output device 400 (step S206).

[0147] Next, the input / output device 400 converts the list of quantum bit states into a list of values ​​of Ising variables (step S207). 1,2 = 0, σ 1,3 =2, ...

[0148] The input / output device 400 outputs this list (step S208). This output may be performed, for example, on an output device (not shown) such as a display, or may be output as an electronic file.

[0149] [Effect description] In this embodiment, the allocation device 100 allocates variables of an Ising problem represented by a cost function of the LHZ method to nodes on a Pegasus graph. As described above, according to the allocation of this embodiment, a chain with a small number of nodes is configured by devising the arrangement of the chain on the Pegasus graph. As a result, the total number of nodes used can be reduced. In addition, the allocation device 100 can realize allocation without bias in the number of nodes included in each chain. Note that in this embodiment, the number of nodes included in each chain is 2, independent of the number N of variables of the Ising problem.

[0150] For comparison, when the cost function of formula (5) is given, consider performing allocation based on the allocation method described in Non-Patent Document 1. Among the allocation methods based on Non-Patent Document 1, a method that does not bias the number of nodes included in a chain is used. In this case, the maximum number N of variables that can be assigned is 19. In this allocation, for example, when N=19, the number of nodes included in each chain is 15.

[0151] Similarly, when the cost function of Equation (5) is given, consider performing allocation based on the allocation method described in Non-Patent Document 2. FIG. 19 shows a table comparing the experimental results of the allocation based on the allocation method described in Non-Patent Document 2 and the allocation results of this embodiment. In this example, the number of variables N=30. In the allocation based on the allocation method described in Non-Patent Document 2, the allocation is different for each trial. Therefore, 100 trials of the allocation based on the allocation method described in Non-Patent Document 2 were performed. In each trial, the average and standard deviation between chains (between variables) of the number of nodes included in each chain were calculated. Then, the average and variance between chains were calculated, and the average and minimum values ​​in the 100 trials were calculated. The calculation results are shown in the table of FIG. 19. The average number of nodes included in the chain in the 100 trials was 2.2, and the minimum was 1.9. In the allocation of this embodiment, the number of nodes included in the chain is 2. The number of nodes in this embodiment is smaller than the average number of nodes in the 100 trials of the allocation described in Non-Patent Document 2. That is, the allocation of this embodiment has a smaller total number of nodes used. However, the minimum average value of the number of nodes included in the chain in the case of the allocation method described in Non-Patent Document 2 is 1.9. That is, depending on the trial, the allocation based on the allocation method described in Non-Patent Document 2 may use fewer nodes than the allocation of this embodiment. However, the average value of the standard deviation of the number of nodes included in the chain in the allocation based on the allocation method described in Non-Patent Document 2 in 100 trials was 1.5, and the minimum value was 1.0. That is, in the allocation based on the allocation method described in Non-Patent Document 2, the number of nodes included in the chain is biased in every trial. In the allocation of this embodiment, the number of nodes is 2 in all chains, so there is no bias in the number of nodes. Therefore, the allocation of this embodiment can realize an allocation without bias in the number of nodes included in the chain.

[0152] Next, an overview of the present invention will be described. Fig. 20 is a block diagram showing the main parts of an allocation device according to the present invention. The allocation device 800 includes an allocation means 801 (realized by the allocation unit 102 in the embodiment) that allocates binary variables of an Ising problem that represents a cost function of the LHZ method to nodes on a Pegasus graph according to the number of binary variables and parameters for determining the allocation of the binary variables, and an output means 802 (realized by the output unit 103 in the embodiment) that outputs information indicating the correspondence between the binary variables and the nodes based on the result of the allocation of the binary variables to the nodes, and the allocation means 801 reflects a periodic structure that represents the relationship between sets of binary variables that are products in the cost function of the Ising problem in a periodic structure between the nodes and edges on the Pegasus graph, and allocates the binary variables to the nodes.

[0153] Although the present invention has been described above with reference to the embodiments, the present invention is not limited to the above-mentioned embodiments. Various modifications that can be understood by those skilled in the art can be made to the configuration and details of the present invention within the scope of the present invention. [Explanation of symbols]

[0154] 100 Allocation Equipment 101 Input reception section 102 Allocation Section 103 Output section 150 Network Interface 151 Memory 152 processors 200 Quantum Annealing Machine 300 Computing equipment 400 I / O devices 800 Allocation Equipment 801 Allocation Means 802 Output Means

Claims

1. an allocation means for allocating binary variables of an Ising problem representing a cost function of the LHZ method to nodes on a Pegasus graph in accordance with the number of the binary variables and a parameter for determining the allocation of the binary variables; an output means for outputting information indicating a correspondence relationship between the binary variables and the nodes based on a result of the assignment of the binary variables to the nodes; Equipped with The allocation means reflects a periodic structure representing a relationship between the sets of binary variables that are products of the cost function of the Ising problem in a periodic structure between the nodes and edges on the Pegasus graph, and allocates the binary variables to the nodes. An allocation device comprising:

2. An input receiving means for receiving an input of the number of binary variables and the parameters is provided.

2. The allocation device according to claim 1.

3. A tile is made up of three units, which are the unit graphs that make up the Pegasus graph. The parameters include a value representing an arbitrary direction in which the nodes are arranged, a tile number in the direction in which the nodes are arranged, a node number within the tile, and a tile number perpendicular to the direction in which the nodes are arranged.

3. The allocation device according to claim 1 or 2.

4. The cost function is expressed by the following formula (A), and the binary variables of the Ising problem are σ and τ in the following formula (A), and J in the following formula (A) ij is the value of row i, column j of matrix J, where i and j both take the values ​​1, 2, . . . , N-1, and C in the following formula (A) is a parameter to be adjusted within the range of positive values.

4. The allocation device according to claim 3. ##EQU00011##

5. the allocation means uses, as a set of nodes, four types of chains α, β, γ, and δ, each of which is configured with two nodes, when allocating binary variables of a cost function of the Ising problem to nodes; The type of the chain is determined only by the relative positions of the nodes in the first unit and the second unit adjacent to each other on the Pegasus graph; The nodes in the first unit having a value of 0 representing an arbitrary direction in which the nodes are arranged are designated as A00, A01, A02, and A03 in ascending order of node number within the tile, The nodes having a value of 1 representing an arbitrary direction in which the nodes of the first unit are arranged are designated as A10, A11, A12, and A13 in ascending order of node number within the tile, The nodes in the second unit having a value of 0 representing an arbitrary direction in which the nodes are arranged are designated as B00, B01, B02, and B03 in ascending order of node number within the tile, When the nodes of the second unit, each of which has a value of 1 representing an arbitrary direction in which the nodes are arranged, are designated as B10, B11, B12, and B13 in ascending order of node number within the tile, The chain α is composed of the A12 and the A02, The chain β is composed of the A01 and the A11, The chain γ is composed of the A03 and the B13, The chain δ is composed of the A10 and the B00.

5. An allocation device according to claim 3 or claim 4.

6. expressing the coordinates of the unit on the Pegasus graph as a set of three parameters (w, k, z); The allocation means is When assigning binary variables of a cost function of the Ising problem to nodes, four types of chains α, β, γ, and δ, each of which is composed of two nodes, are used as a set of nodes, The remainder when an integer i is divided by an integer j is expressed as i%j, and a function c[i] is used to specify the chain α when i%4 is 0, the chain β when i%4 is 1, the chain γ when i%4 is 2, and the chain δ when i%4 is 3; The Ising variable σ 1,2 (w 0 , k 0 , z 0 ) to the unit specified by parameter c 0 and c[c 0 ], and assign the chain to the type of chain specified by chain c[c 0 ](w 0 , k 0 , z 0 ) and The allocation means allocates binary variables σ i,2 The type of the chain to which 0 +1], and the unit to which the chain belongs is determined by (w i , k i , z i )year, Dichotomous variable σ 1,j The unit to which is assigned is (w j+1 , k j+1 , z j+1 ) and The allocation means is j+1 , k j+1 , z j+1 )of, (c 0 +j-2)%4 is 0 or 2, it is determined by the following formula (B), (c 0 +j-2)%4 is 3, it is determined by the following formula (C): (c 0 +j-2)%4 is 1, it is determined by the following formula (D): The allocation means sequentially allocates the Ising variables σ for j=2, . . . , N−2 according to the above rule. 1,j Assign The Ising variable σ i+m,j-m (where i+m<j-m) is assigned to the type of chain c[c 0 +i+j-3], and the Ising variable σ 1,i+j-1 The unit to which the Ising variable is assigned is determined by the above rule, and for the other m, each time the m increases by 1, the unit to which the Ising variable is assigned changes to the unit immediately to the upper right in the unit row, and the change in coordinates when moving to the unit immediately to the upper right is expressed by the following formula (E): The allocation means is configured to allocate the Ising variable σ i+m,j-m The unit to which is assigned is (w m , k m , z m ), the Ising variable σ i+m+1,j-m-1 The unit (w m+1 , k m+1 , z m+1 ) is determined by the following formula (F): The allocation means sequentially allocates the Ising variables σ i+m,j-m Assign the following: The Ising variable σ assigned to the chain α i,j For the subscripts i and j of i-1,j-1 The Ising variable σ i,j to the chain β of the unit including the node to which the Ising variable τ i,j-1 The Ising variable σ i,j to the chain γ of the unit including the node to which The Ising variable σ assigned to the chain β i,j For the subscripts i and j of i,j The Ising variable σ i,j to the chain α of the unit including the node to which the Ising variable τ i,j-1 The Ising variable σ i,j to the chain δ of the unit to which the node to which An allocation device according to claim 3 or claim 4. ##EQU00012## ##EQU00013## ##EQU00014## (w, k, z) -> (w, 4, z-1) (when k = 0) (w, 8, z) (when k = 4) (w+1, 0, z) (when k=8) Formula (E) ##EQU00015##

7. An allocation means for dividing the multiple variables into multiple processing groups having a periodic structure according to a reference relationship in the processing procedure from information representing a processing procedure for calculating a cost function from multiple variables in an Ising problem, and for allocating the processing groups so that each group is processed by one group according to predetermined group information in which multiple components in the hardware of the quantum annealing machine are grouped according to a connection relationship between the components. An allocation device comprising:

8. A computer comprising: assigning binary variables of the Ising problem representing the cost function of the LHZ method to nodes on a Pegasus graph in accordance with the number of the binary variables and a parameter for determining the assignment of the binary variables; outputting information indicating a correspondence relationship between the binary variables and the nodes based on a result of the assignment of the binary variables to the nodes; A periodic structure representing the relationship between the sets of binary variables that are products of the cost function of the Ising problem is reflected in a periodic structure between the nodes and edges on the Pegasus graph, and the binary variables are assigned to the nodes.

23. A method of allocating

9. On the computer, an assignment process for assigning binary variables of an Ising problem representing a cost function of the LHZ method to nodes on a Pegasus graph in accordance with the number of the binary variables and a parameter for determining the assignment of the binary variables; an output process for outputting information indicating a correspondence relationship between the binary variables and the nodes based on a result of the assignment of the binary variables to the nodes; Run the command, In the assignment process, a periodic structure expressing the relationship between the sets of binary variables that are products in the cost function of the Ising problem is reflected in a periodic structure between the nodes and edges on the Pegasus graph, and the binary variables are assigned to the nodes. Allocation program for.

10. On the computer, Executing an input reception process for receiving input of the number of said binary variables and said parameters.

10. The allocation program according to claim 9.

Citation Information

Patent Citations

  • Information processing device and information processing method

    JP2020009301A

  • Quantum processing device and method

    JP6656273B2