Optimization device, optimization method, and program
The conversion of multivariate quadratic polynomials using pseudo-variables addresses the challenge of handling first-order terms in quantum computers, enabling efficient solution finding for combinatorial optimization problems.
Patent Information
- Application Number
- JP2023533023
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2021-07-09
- Publication Date
- 2024-09-18
- Estimated Expiration
- 2041-07-09
AI Technical Summary
Quantum computers specialized for combinatorial optimization problems struggle to handle quadratic polynomials with first-order terms, leading to difficulties in obtaining solutions for objective functions expressed in Ising Hamiltonian format, especially when variables take positive or negative values.
A technique to convert multivariate quadratic polynomials involving variables with positive or negative values into an equivalent format suitable for quantum computers by multiplying first-order terms with pseudo-variables, allowing quantum computers to minimize these polynomials by generating and adjusting pseudo-multivariate equations.
This conversion enables quantum computers to efficiently find solutions to multivariate quadratic polynomials, even when first-order terms are present, by transforming the polynomials into an equivalent form without first-order terms, thus facilitating the solution process.
Smart Images

Figure 0007552909000018 
Figure 0007552909000015 
Figure 0007552909000023
Abstract
Description
[Technical field]
[0001] The present invention relates to a function transformation technique, and more particularly to a function transformation technique for solving combinatorial optimization problems using a quantum computer. [Background technology]
[0002] It is said that it is difficult for the currently widely used von Neumann computers to efficiently solve combinatorial optimization problems. Therefore, in recent years, research and development has been progressing on quantum computers specialized for calculating combinatorial optimization problems (hereinafter referred to as "quantum computers specialized for combinatorial optimization problems"), such as quantum annealing machines and Ising machines, which are computers that can solve combinatorial optimization problems more efficiently than von Neumann computers.
[0003] These new computers can quickly calculate a solution to a target combinatorial optimization problem by inputting an objective function that expresses the problem as an Ising Hamiltonian (the Hamiltonian of the Ising model) (see, for example, Non-Patent Document 1, etc.).
[0004] In addition, objective functions expressed using QUBO (Quadratic Unconstrained Binary Optimization) are sometimes used as the input format for these new computers, and there is also technology that automatically converts between objective functions expressed using QUBO and those expressed using the Ising Hamiltonian.
[0005] Here, a QUBO is a multivariate quadratic polynomial in variables that take on 0 or 1 (0-1 variables), and an Ising Hamiltonian is a multivariate quadratic polynomial in variables that take on +1 or -1 (spin). [Prior art documents] [Non-patent literature]
[0006] [Non-Patent Document 1] “Solving Problems with D-Wave Solvers”, [online], D-Wave Systems Inc., D-Wave System Documentation, [Retrieved June 24, 2021], Internet<https: / / docs.dwavesys.com / docs / latest / c_gs_3.html#ising-model> Summary of the Invention [Problem to be solved by the invention]
[0007] When solving combinatorial optimization problems using a quantum computer specialized for combinatorial optimization problems, it is necessary to express the problem as an objective function in Ising Hamiltonian format and calculate a solution that minimizes this objective function. However, some quantum computers specialized for combinatorial optimization problems cannot handle quadratic polynomials in Ising Hamiltonian format that have first-order terms (magnetic field terms), and some have adjustments related to the magnetic field terms that are independent of the second-order terms. In such cases, it is not possible to obtain a solution for the objective function expressed in an Ising Hamiltonian that includes a magnetic field term, or the adjustments required to obtain a solution become more difficult.
[0008] This type of problem is common not only when finding a solution that minimizes an objective function expressed in the form of an Ising Hamiltonian, but also when finding a solution that minimizes a multivariate quadratic polynomial with respect to variables that take positive or negative values.
[0009] The present invention has been made in consideration of the above points, and has an object to provide a technology for converting a multivariate quadratic polynomial for variables that take positive or negative values into an equivalent form that is easy to calculate with a quantum computer specialized for combinatorial optimization problems, and finding a solution that minimizes the multivariate quadratic polynomial. [Means for solving the problem]
[0010] In a first aspect, an optimization device generates a pseudo-multivariable quadratic polynomial by multiplying each first-order term of a multivariable quadratic polynomial for variables that take positive or negative values by a pseudo-variable that takes a value of +1 or -1, obtains a combination of a tentative solution, which is the value of the variables, and a pseudo-constant, which is the value of the pseudo-variable, that minimizes the pseudo-multivariable quadratic polynomial, and when the pseudo-constant is +1, outputs the tentative solution as a solution of the variables that minimizes the multivariable quadratic polynomial, and when the pseudo-constant is -1, outputs a value with the sign of the tentative solution reversed as the solution of the variables that minimizes the multivariable quadratic polynomial.
[0011] In a second aspect, an optimization device generates a pseudo-multivariate expression including at least a pseudo multivariate quadratic polynomial obtained by replacing the coefficients of each first-order term of a multivariate quadratic polynomial for variables that take positive or negative values with each first-order polynomial for one or more pseudo variables that take values of +1 or -1, obtains a combination of a tentative solution that is the value of the variables and a pseudo constant that is the value of the pseudo variable that minimizes the pseudo multivariate expression, and outputs the tentative solution as a solution of the variables that minimizes the multivariate quadratic polynomial when the pseudo constant is +1, and outputs a value obtained by inverting the sign of the tentative solution as a solution of the variables that minimizes the multivariate quadratic polynomial when the pseudo constant is -1. However, when all of the pseudo variables are +1, the first-order term of the pseudo multivariate quadratic polynomial is equal to the first-order term of the multivariate quadratic polynomial. Effect of the Invention
[0012] This makes it possible to convert a multivariate quadratic polynomial for variables that can take positive or negative values into an equivalent form that is easy to calculate using a quantum computer specialized for combinatorial optimization problems, and to find a solution that minimizes the multivariate quadratic polynomial. [Brief description of the drawings]
[0013] [Figure 1] FIG. 1 is a block diagram illustrating the functional configuration of an optimization system according to an embodiment. [Diagram 2] FIG. 2 is a diagram for explaining the optimization method according to the embodiment. [Diagram 3]FIG. 3 is a flow diagram for explaining the optimization method according to the embodiment. [Figure 4] FIG. 4 is a diagram for explaining the optimization method according to the embodiment. [Diagram 5] FIG. 5 is a diagram for explaining the optimization method according to the embodiment. [Figure 6] FIG. 6 is a diagram for explaining the optimization method according to the embodiment. [Figure 7] FIG. 7 is a diagram for explaining the optimization method according to the embodiment. [Figure 8] FIG. 8 is a diagram illustrating the relationship between the number of pseudo variables and the rate of appearance of the optimal solution. [Figure 9] FIG. 9 is a block diagram illustrating the hardware configuration of the optimization device. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0014] Hereinafter, an embodiment of the present invention will be described with reference to the drawings. [First embodiment] First, the first embodiment will be described. [composition] As illustrated in FIG. 1, the optimization system 1 of this embodiment includes an optimization device 11 and a quantum computer 12. The optimization device 11 is a device configured by causing a classical computer (hereinafter simply referred to as a "computer") such as a von Neumann type computer to execute a predetermined program. The optimization device 11 includes a pseudo multivariate expression generating unit 111, an inverse conversion processing unit 112, a control unit 113, and a storage unit 114. Although not described below, the optimization device 11 executes each process under the control of the control unit 113, and data input to the optimization device 11 and data obtained by each unit are stored in the storage unit 114 and are read out and used as necessary. The quantum computer 12 is a quantum computer specialized for combinatorial optimization problems, such as a quantum annealing machine or an Ising machine.
[0015] <Processing> As illustrated in FIG. 2, the optimization device 11 of the present embodiment converts a multivariate quadratic polynomial (e.g., Hamiltonian of an Ising model with a magnetic field term) related to variables that take positive or negative values into a pseudo multivariate quadratic polynomial (e.g., Hamiltonian of an Ising model without a magnetic field term) obtained by multiplying each of the first-order terms of the multivariate quadratic polynomial by a pseudo variable that takes a value of +1 or -1, and outputs the converted multivariate quadratic polynomial to the quantum computer 12. The quantum computer 12 calculates (quantum calculation) a pseudo multivariate quadratic polynomial solution (e.g., a solution that minimizes the Hamiltonian of an Ising model without a magnetic field term) that is a combination of a provisional solution that is the value of the variable and a pseudo constant that is the value of the pseudo variable, which minimizes the input pseudo multivariate quadratic polynomial, and returns the solution to the optimization device 11. As a result, the optimization device 11 obtains a pseudo multivariate quadratic polynomial solution that is a combination of a provisional solution and a pseudo constant. The optimization device 11 inversely transforms the combination of the obtained tentative solution and the pseudo-constant, and obtains and outputs a multivariable quadratic polynomial solution (for example, a solution that minimizes the Hamiltonian of an Ising model with a magnetic field term) that is a solution to the original multivariable quadratic polynomial. That is, when the pseudo-constant is +1, the optimization device 11 outputs the tentative solution as a solution of the variables that minimizes the multivariable quadratic polynomial, and when the pseudo-constant is -1, the optimization device 11 outputs a value obtained by reversing (flipping) the positive and negative signs of the tentative solution as a solution of the variables that minimizes the multivariable quadratic polynomial. This will be described in detail below.
[0016] <Step S11> As illustrated in FIG. 3, a multivariable quadratic polynomial E relating to variables that take positive or negative values is input to a pseudo multivariable equation generating unit 111 of the optimization device 11. The optimization device 11 aims to obtain variable values (solutions) that ultimately minimize the multivariable quadratic polynomial E. An example of such a multivariable quadratic polynomial E is an objective function, and for example, the multivariable quadratic polynomial E is an objective function for solving a combinatorial optimization problem. An example of the multivariable quadratic polynomial E is an objective function expressed by the Hamiltonian of an Ising model for solving a desired combinatorial optimization problem with a quantum computer specialized for combinatorial optimization problems.
[0017] The multivariate quadratic polynomial E is expressed, for example, as the following equation (1).
number
[0018] <Step S12> The pseudo multivariate equation generating unit 111 inputs a pseudo variable s , which takes a value of +1 or −1, to each of the first-order terms of the multivariate quadratic polynomial E related to the input variables that take positive or negative values. unit (pseudo-constant spin) to generate and output a pseudo multivariate quadratic polynomial F. For example, the pseudo variable s unitWhen is 1, the pseudo multivariate quadratic polynomial F is equal to the multivariate quadratic polynomial E. The pseudo multivariate quadratic polynomial F is expressed, for example, as the following equation (2).
number
[0019] <Step S13> The pseudo multivariate equation generator 111 outputs such a pseudo multivariate quadratic polynomial F to the quantum computer 12. The quantum computer 12 outputs a tentative solution S, which is the value of the variables that minimizes the input pseudo multivariate quadratic polynomial F, and a pseudo constant S, which is the value of the pseudo variable. unit Combination with (S,S unit For example, a quantum computer calculates and outputs the s i and s j The provisional solution S and the pseudo-variable s unit A pseudo-constant S with values ∈{+1,-1} unit Combination with (S,S unit For example, if i = 0, ..., N-1 and j = i + 1, ..., N-1, we obtain (S, S unit )=(s0,...,s N-1 ,S unit ) The provisional solution S and the pseudo-constant S unit Combination with (S,S unit) is input to the inverse transformation processing unit 112, which in turn converts the combination (S, S unit ) is obtained.
[0020] <Step S14> The inverse transformation processing unit 112 calculates the inverse transformation coefficient S by multiplying the input tentative solution S by the pseudo-constant s unit Combination with (S,S unit ) to obtain and output a solution X for the variables that minimizes the original multivariate quadratic polynomial E. This inverse transformation is done using a pseudo-constant S unit That is, the inverse conversion processing unit 112 changes the interpretation of the provisional solution S as a solution depending on the pseudo constant S unit is +1, the inverse transformation processing unit 112 outputs the tentative solution S as the solution X=S of the variables that minimizes the multivariate quadratic polynomial. unit If the pseudo-constant S is -1, the tentative solution S is inverted and output as the solution X=-S of the variables that minimizes the multivariate quadratic polynomial. For example, as shown in FIG. 5, unit s unit =+1 and the tentative solution S is (s0,s1,s2)=(-1,+1,+1) (a), the inverse transformation processing unit 112 outputs the tentative solution S=(s0,s1,s2)=(-1,+1,+1) as the solution X=S=(-1,+1,+1) of variables that minimizes the multivariable quadratic polynomial E (b). On the other hand, when the pseudo-constant S unit s unit =-1 and the tentative solution S is (s0, s1, s2) = (+1, -1, -1) (a), the inverse transformation processing unit 112 outputs the value -S = (-s0, -s1, -s2) = (-1, +1, +1), which is the inverse of the sign of the tentative solution S = (s0, s1, s2) = (+1, -1, -1), as the solution X = -S = (-1, +1, +1) of variables that minimizes the multivariable quadratic polynomial E (b).
[0021] 《Why does step S14 obtain a solution X for variables that minimizes the multivariate quadratic polynomial E?》 Here, the reason why the solution X of the variables that minimizes the multivariable quadratic polynomial E is obtained in step S14 will be explained. As described above, the multivariable quadratic polynomial E is a multivariable quadratic polynomial for variables that take positive or negative values (see, for example, equation (1)). Also, the pseudo multivariable quadratic polynomial F is obtained by multiplying each of the first-order terms of the multivariable quadratic polynomial E by a pseudo variable that takes a value of +1 or -1.
[0022] First, the pseudo-constant S unit s unit = +1, the pseudo-multivariate quadratic polynomial F is equal to the multivariate quadratic polynomial E (F = E), so the pseudo-constant S unit s unit A tentative solution S that minimizes the pseudo multivariate quadratic polynomial F when =+1 is the solution X=S in variables that minimizes the multivariate quadratic polynomial E.
[0023] On the other hand, the pseudo-constant S unit s unit =-1, minimize the pseudo multivariate quadratic polynomial F(S,S unit The first-order term F1 of the pseudo multivariate quadratic polynomial F into which )=(S,-1) is substituted is denoted as F1(S,-1), and the second-order term F2 is denoted as F2(S). In this case, the pseudo multivariate quadratic polynomial F is minimized to F1(S,-1)+F2(S) when the tentative solution is S.
[0024] Pseudo constant S unit s unit =-1, the first-order term E1 of the multivariate quadratic polynomial E with its sign inverted is the same as the first-order term F1 of the pseudo-multivariate quadratic polynomial F. Therefore, the pseudo-constant S unit s unit =-1, -E1(S) obtained by reversing the sign of the first-order term E1(S) of the multivariable quadratic polynomial E into which the tentative solution S has been substituted is the same as F1(S,-1) (-E1(S)=F1(S,-1)). Furthermore, when the sign of the variable S in the first-order term E1(S) is reversed, the sign of the first-order term E1(S) is reversed, and the following equation (3) is satisfied. E1(-S)=F1(S,-1) (3) Also, the pseudo-constant S unit sunit Even when =-1, the quadratic term E2 of the multivariable quadratic polynomial E is the same as the quadratic term F2 of the pseudo multivariable quadratic polynomial F, so the quadratic term E2(S) of the multivariable quadratic polynomial E into which the tentative solution S has been substituted is equal to F2(S) (E2(S)=F2(S)). Furthermore, even if the sign of the variable S in the quadratic term E2(S) is reversed, the value of the quadratic term E2(S) does not change, so the following equation (4) is satisfied. E2(-S)=F2(S) (4) From equations (3) and (4), the pseudo-constant S unit s unit =-1, the multivariate quadratic polynomial E is minimized to E1(-S)+E2(-S) when the sign of the tentative solution S is inverted to -S. That is, the pseudo-constant S unit s unit =-1, -S, which is the tentative solution S with its sign inverted, becomes the solution that minimizes the multivariate quadratic polynomial E.
[0025] <Features of this embodiment> As described above, the optimization device 11 of this embodiment converts a multivariable quadratic polynomial E (e.g., Hamiltonian of an Ising model with a magnetic field term) relating to variables that take positive or negative values into a pseudo multivariable quadratic polynomial F (e.g., Hamiltonian of an Ising model without a magnetic field term) obtained by multiplying each of the first-order terms of the multivariable quadratic polynomial by a pseudo variable that takes a value of +1 or -1, and outputs the converted polynomial to the quantum computer 12. The quantum computer 12 calculates a tentative solution S, which is the value of the variables, and a pseudo constant S, which is the value of the pseudo variable, that minimizes the input pseudo multivariable quadratic polynomial F. unit Combination with (S,S unit ) and returns it to the optimization device 11. Since the pseudo multivariate quadratic polynomial F does not include a first-order term (e.g., a magnetic field term), even a quantum computer 12 (e.g., a quantum annealing machine or an Ising machine) that cannot handle polynomials with first-order terms can calculate (S, S unit ), and furthermore, (S,S unit ) there is no need to adjust the variables in the first-order terms to obtain
[0026] Furthermore, the optimization device 11 uses a pseudo-constant Sunit s unit If E = +1, output the provisional solution S as the solution in variables that minimizes the multivariate quadratic polynomial E, and output the pseudo-constant S unit s unit =-1, the value -S obtained by reversing (flipping) the sign of the tentative solution S is output as the solution for the variables that minimizes the multivariable quadratic polynomial E. In this way, in this embodiment, the multivariable quadratic polynomial E is converted into a pseudo multivariable quadratic polynomial F, which is an equivalent format that does not have first-order terms, and a solution that minimizes the multivariable quadratic polynomial E can be found.
[0027] By combining this method with conventional technology that automatically converts between objective functions expressed in QUBO and objective functions expressed in Ising Hamiltonians, the method of this embodiment can also be used to minimize any objective function expressed in QUBO.
[0028] [Second embodiment] Next, a second embodiment will be described. When finding a solution that minimizes a multivariable quadratic polynomial, it may be necessary to adjust the magnitude of the coefficients of the multivariable quadratic polynomial. For example, when an objective function that expresses a combinatorial optimization problem as an Ising Hamiltonian is input to a quantum computer specialized in calculating optimization problems, and a solution that minimizes the objective function is calculated, it may be necessary to adjust the coefficient range of the objective function. In contrast, in the second embodiment, a pseudo multivariable quadratic polynomial is used in which the coefficients of each of the first-order terms of the multivariable quadratic polynomial are replaced with first-order polynomials related to a single or multiple pseudo variables that take the value of +1 or -1. By replacing the coefficients of the first-order terms of the multivariable quadratic polynomial with first-order polynomials related to multiple pseudo variables, it is possible to distribute the coefficients of the first-order terms of the multivariable quadratic polynomial to multiple second-order terms, and this makes it possible to adjust the magnitude of the coefficients. In this case, it is desirable that the positive and negative signs of all the pseudo variables are the same. Therefore, it is desirable to add a sign unification equation that is minimized when the positive and negative signs of all the pseudo variables are the same to the pseudo multivariable quadratic polynomial. The following description will focus on the differences from the first embodiment, and will briefly explain matters that have already been described.
[0029] [composition] As illustrated in FIG. 1, the optimization system 2 of this embodiment includes an optimization device 21 and a quantum computer 12. The optimization device 21 is, for example, a device configured by causing a computer to execute a predetermined program. The optimization device 21 includes a pseudo multivariate equation generating unit 211, an inverse transformation processing unit 212, a control unit 113, and a storage unit 114. Although not described below, the optimization device 21 executes each process under the control of the control unit 113, and data input to the optimization device 21 and data obtained by each unit are stored in the storage unit 114 and are read out and used as necessary.
[0030] <Step S11> 3, a multivariate quadratic polynomial E is input to the pseudo multivariate equation generating unit 111 of the optimization device 11. The multivariate quadratic polynomial E is the same as that described in the first embodiment.
[0031] <Step S22> The pseudo multivariate equation generating unit 211 uses a multivariate quadratic polynomial E related to variables that take positive or negative values to generate and output a pseudo multivariate equation F that at least partially includes the pseudo multivariate quadratic polynomial F'. Here, the pseudo multivariate quadratic polynomial F' is generated by using the coefficients M i , one or more pseudovariables s that take on values of +1 or -1. unit(i,k) (pseudo-constant spin), where the pseudo-variable s unit(i,k) is +1, the first-order term of the pseudo multivariable quadratic polynomial F' is equal to the first-order term of the multivariable quadratic polynomial E. The pseudo multivariable quadratic polynomial F' is expressed, for example, as in the following equation (5).
number
[0032] M i =Σ k∈K(i) m i,k If so, how can we i ·s unit(i,k) Coefficient m of i,k However, the coefficient m may be set so that the range of coefficient values (the magnitude of variation of the coefficients) of the pseudo multivariate quadratic polynomial F' is smaller than the range of coefficient values (the magnitude of variation of the coefficients) of the original multivariate quadratic polynomial E. i,k It is desirable to determine the coefficients m as follows. This is because a polynomial with a small coefficient variation is more suitable for calculations in the quantum computer 12. For example, the coefficients m i,k may be defined.
number
number
number
[0033] The pseudo multivariate quadratic polynomial F' in this embodiment is i ,s j and multiple pseudo variables s unit(i,k) The pseudo-multivariate expression F of this embodiment is a quadratic polynomial for all pseudo-variables s unit(i,k) The sign unification formula U is included as a part of the equation that is smallest when the positive and negative signs of the two pseudo variables s are the same. The sign unification formula U can be any kind of formula. For example, unit(i,k1), s unit(i,k2) Product of s unit(i,k1)· s unit(i,k2) and a real constant W greater than or equal to 0 k1,k2 Let the sign-unified equation U be the equation obtained by reversing the sign of the product of and (equation (6)).
number
[0034] For example, the pseudo multivariate equation generation unit 211 outputs a linear sum of the pseudo multivariate quadratic polynomial F' and the code unification equation U as the pseudo multivariate equation F. For example, the pseudo multivariate equation generation unit 211 obtains and outputs the pseudo multivariate equation F of the following equation (8). F=F'+U (8) For example, as illustrated in FIG. 6, in the case of E=s0s1-2s1s2+3s2s0+4s0-6s1 (a), the pseudo multivariate equation generating unit 211 changes the coefficient "4" of the first-order term "4s0" of this E to "(1s unit(0,0) +3s unit(0,1) )" and the coefficient "-6" of the first-order term "-6s1" is replaced with "-(1s unit(1,0) +2s unit(1,1) +3s unit(1,2) )" and generate a pseudo multivariate formula F of formula (10) by adding the code unification formula U of formula (9) below. For example, unit(0,k) ands unit(1,k) (where k=0,1) may be the same pseudo variable.
number
number
[0035] <Step S23> The pseudo multivariate equation generator 111 outputs such a pseudo multivariate equation F to the quantum computer 12. The quantum computer 12 generates a tentative solution S, which is the value of the variables that minimizes the input pseudo multivariate equation F, and each pseudo variable s unit(i,k)A pseudo-constant S with values for i ∈ V and k ∈ K(i). unit Combination with (S,S unit For example, a quantum computer can calculate and output the s i and s j The provisional solution S, which is the value of unit(i,k) A pseudo-constant S with values ∈{+1,-1} for i∈V and k∈K(i) unit Combination with (S,S unit For example, if i = 0, ..., N-1, j = i + 1, ..., N-1, and k = 0, ..., N'(i)-1, then (S, S unit )=(s0,...,s N-1 ,s unit(0,0) ,...,s unit(0,N'(0)-1) ,...,s unit(N-1,0) ,...,s unit(N-1,N'(N-1)-1) ) The tentative solution S and the pseudo-constant s unit Combination with (S,S unit ) is input to the inverse transformation processing unit 212, which in turn converts the combination (S, S unit ) is obtained.
[0036] <Step S24> The inverse transformation processing unit 212 calculates the inverse transformation coefficient S by dividing the input tentative solution S by the pseudo-constant s unit Combination with (S,S unit ) to obtain and output a solution for the variables that minimizes the original multivariate quadratic polynomial E. Essentially, the inverse transform processor 212 performs an inverse transform on the pseudo-constant S unit If is +1, output the provisional solution S as the solution of variables X=S that minimizes the multivariate quadratic polynomial, and output the pseudo-constant S unit is -1, the sign of the tentative solution S is inverted and the solution X=-S is output as the solution to minimize the multivariate quadratic polynomial.
[0037] However, the pseudo constant S unit is a function that minimizes the pseudomultivariate quadratic polynomial F. unit(i,k)∈{+1,-1}, where i∈V and k∈K(i). By the effect of the code unification formula U mentioned above, all pseudo-constants S unit It is expected that the signs of all pseudo-constants S unit The signs of may not be the same.
[0038] All pseudo-constants S unit If the positive and negative signs of the pseudo constants S unit (Any pseudo-variable s unit(i,k) ∈{+1,-1}) is +1, X=S, and is -1, X=-S. For example, in the pseudo-multivariate formula F of formula (10), as shown in FIG. unit s unit0 =s unit(0,0) =s unit(1,0) =+1,s unit1 =s unit(0,1) =s unit(1,1) =+1,s unit1 =s unit(1,2) =+1 and the tentative solution S is (s0,s1,s2)=(-1,+1,+1) (a), the inverse transformation processing unit 212 outputs the tentative solution S=(s0,s1,s2)=(-1,+1,+1) as the solution X=S=(-1,+1,+1) of variables that minimizes the multivariable quadratic polynomial E (b). On the other hand, if the pseudo-constant S unit s unit0 =s unit(0,0) =s unit(1,0) =-1,s unit1 =s unit(0,1) =s unit(1,1) =-1,s unit1 =s unit(1,2) =-1 and the tentative solution S is (s0, s1, s2) = (+1, -1, -1) (a), the inverse transformation processing unit 212 outputs the value -S = (-s0, -s1, -s2) = (-1, +1, +1), which is the inverse of the sign of the tentative solution S = (s0, s1, s2) = (+1, -1, -1), as the solution X = -S = (-1, +1, +1) of variables that minimizes the multivariable quadratic polynomial E (b).
[0039] On the other hand, for all pseudo-constants S unitIf the positive and negative signs of are not the same, the inverse conversion processing unit 212 performs, for example, any one of the following processes in examples 1 to 3. (Example 1) The inverse transformation processing unit 212 outputs information to the effect that a solution X of variables that minimizes the multivariate quadratic polynomial E cannot be obtained. (Example 2) The inverse transformation processing unit 212 selects either S or −S in an appropriate manner, and outputs the selected S or −S as a solution X of variables that minimizes the multivariate quadratic polynomial E. For example, the inverse transformation processing unit 212 selects a pseudo-constant S that is +1. unit A pseudo-constant S with a value of -1 unit If the number of solutions is greater than or equal to the number of solutions, the tentative solution S is output as the solution of variables X=S that minimizes the multivariate quadratic polynomial E. If not, the tentative solution S is output as the solution of variables X=-S that minimizes the multivariate quadratic polynomial E. For example, if the pseudo-constant S unit s unit0 =s unit(0,0) =s unit(1,0) =+1,s unit1 =s unit(0,1) =s unit(1,1) =+1,s unit1 =s unit(1,2) =-1 and the tentative solution S is (s0, s1, s2)=(-1, +1, +1), the inverse transformation processing unit 212 outputs the tentative solution S=(s0, s1, s2)=(-1, +1, +1) as the solution X=S=(-1, +1, +1) of variables that minimizes the multivariable quadratic polynomial E. (Example 3) The inverse transformation processing unit 212 outputs both the tentative solution S and the value -S obtained by inverting the sign of the tentative solution as a solution X=S, -S of variables that minimizes the multivariate quadratic polynomial E. For example, unit s unit0 =s unit(0,0) =s unit(1,0) =+1,s unit1 =s unit(0,1) =s unit(1,1) =+1,s unit1 =s unit(1,2)=-1 and the tentative solution S is (s0,s1,s2)=(-1,+1,+1), the inverse transformation processing unit 212 outputs the tentative solutions S=(s0,s1,s2)=(-1,+1,+1) and -S=(-s0,-s1,-s2)=(1,-1,-1) as the variable solutions X=S=(-1,+1,+1),X=-S=(-s0,-s1,-s2) that minimize the multivariable quadratic polynomial E. An evaluation unit (not shown) may then evaluate the two obtained solutions X=S,-S and select and output one of the solutions. For example, the evaluation unit may compare a value E(S) obtained by substituting X=S into a multivariate quadratic polynomial E with a value E(-S) obtained by substituting X=-S into a multivariate quadratic polynomial E, and select and output X=S if E(S)≦E(-S), and select and output X=-S otherwise. Furthermore, the evaluation unit may select and output two solutions X=S, -S when E(S)=E(-S).
[0040] <Features of this embodiment> As described above, the optimization device 21 of the present embodiment calculates the coefficients M of each of the first-order terms of a multivariate quadratic polynomial E (for example, a Hamiltonian of an Ising model with a magnetic field term) related to variables that take positive or negative values. i , one or more pseudovariables s that take on values of +1 or -1. unit(i,k) A pseudo multivariate quadratic polynomial F' is generated and output to the quantum computer 12. Since the pseudo multivariate quadratic polynomial F does not include a first-order term (e.g., a magnetic field term), (S, S unit ) is obtained. Furthermore, if the pseudo-multivariate expression F does not include a first-order term, even a quantum computer 12 (such as a quantum annealing machine or an Ising machine) that cannot handle polynomials with first-order terms can adjust the variables of the first-order terms to obtain (S, S unit ), and furthermore, (S,S unit ) is no longer necessary. In addition, the coefficients M of each of the first-order terms of the multivariate quadratic polynomial E are i multiple pseudo variables s unit(i,k)By replacing it with a first-order polynomial with respect to, the range of the coefficients can be adjusted, and the processing efficiency and processing accuracy of the quantum computer 12 can be improved.
[0041] The pseudo-multivariate formula F is further divided into all pseudo-variables s unit(i,k) If the pseudo-constant S contains a sign unification formula U that is the smallest when the positive and negative signs of are the same, then unit In particular, if U is a quadratic polynomial and the pseudo multivariate expression F is a linear sum of the pseudo multivariate quadratic polynomial F' and the sign unification expression U (for example, F=F'+U), the pseudo multivariate expression F does not contain a first-order term. In this case, even if the quantum computer 12 cannot handle polynomials with first-order terms, (S, S unit ), and furthermore, (S,S unit ) there is no need to adjust the variables in the first-order terms to obtain
[0042] The optimizer 21 optimizes all pseudo-constants S unit If the signs of are the same, then the pseudo-constant S unit s unit If E = +1, output the provisional solution S as the solution in variables that minimizes the multivariate quadratic polynomial E, and output the pseudo-constant S unit s unit =-1, the value -S obtained by inverting (flipping) the sign of the tentative solution S is output as the solution for the variables that minimizes the multivariable quadratic polynomial E. This makes it possible to find a solution that minimizes the multivariable quadratic polynomial E.
[0043] All pseudo-constants S unit Even if the positive and negative signs of are not the same, the optimization device 21 can perform any of the processes in Examples 1 to 3 described above, thereby resulting in either that a solution that minimizes the multivariate quadratic polynomial E cannot be obtained or that a reasonable solution can be obtained.
[0044] By combining this method with conventional technology that automatically converts between objective functions expressed in QUBO and objective functions expressed in Ising Hamiltonians, the method of this embodiment can also be used to minimize any objective function expressed in QUBO.
[0045] [Modification 1 of the second embodiment] Pseudo variable s unit(i,k) (pseudo-constant spin), the number of pseudo-variables s unit(i,k) Coefficient m of i,k The rate of occurrence of the optimal solution obtained by the quantum computer 12 may change depending on the size (variation) of the pseudo variable s unit(i,k) The probability of finding the optimal solution may change depending on the number of s. Therefore, in order to increase the probability of finding the optimal solution, we set the pseudo variable s unit(i,k) The number of pseudo-variables s unit(i,k) Coefficient m of i,k It is desirable to be able to set at least a part of the magnitude of the code unification equation U. For example, a pseudo variable s unit(i,k) The number of pseudo-variables s unit(i,k) Coefficient m of i,k and parameters for specifying at least a part of the code unification equation U may be automatically set. For example, a model for setting optimal parameters corresponding to an input multivariate quadratic polynomial E may be generated by machine learning using a previously prepared pair of a multivariate quadratic polynomial E and an optimal solution, and a pair of parameters corresponding to the pair, and parameters corresponding to the multivariate quadratic polynomial E may be automatically set using the model.
[0046] [Modification 2 of the second embodiment] In the second embodiment, the code unification equation U may be omitted, and the pseudo multivariate quadratic polynomial F' may be used as the pseudo multivariate equation F as it is (F=F').
[0047] [Hardware configuration] The optimization devices 11 and 21 in each embodiment are devices configured by a general-purpose or dedicated computer having a processor (hardware processor) such as a CPU (central processing unit) and a memory such as a RAM (random-access memory) and a ROM (read-only memory) executing a predetermined program. That is, the optimization devices 11 and 21 in each embodiment have, for example, a processing circuit configured to implement each unit that each of them has. This computer may have one processor and memory, or may have multiple processors and memories. This program may be installed in the computer, or may be recorded in a ROM or the like in advance. In addition, some or all of the processing units may be configured using electronic circuits that realize processing functions independently, rather than electronic circuits that realize functional configurations by reading programs like a CPU. In addition, an electronic circuit that configures one device may include multiple CPUs.
[0048] FIG. 9 is a block diagram illustrating the hardware configuration of the optimization device 11, 21 in each embodiment. As illustrated in FIG. 9, the optimization device 11, 21 in this example has a CPU (Central Processing Unit) 10a, an input unit 10b, an output unit 10c, a RAM (Random Access Memory) 10d, a ROM (Read Only Memory) 10e, an auxiliary storage device 10f, and a bus 10g. The CPU 10a in this example has a control unit 10aa, a calculation unit 10ab, and a register 10ac, and executes various calculation processes according to various programs loaded into the register 10ac. The input unit 10b is an input terminal to which data is input, a keyboard, a mouse, a touch panel, etc. The output unit 10c is an output terminal to which data is output, a display, a LAN card controlled by the CPU 10a that has loaded a predetermined program, etc. The RAM 10d is a static random access memory (SRAM), a dynamic random access memory (DRAM), or the like, and has a program area 10da in which a predetermined program is stored, and a data area 10db in which various data is stored. The auxiliary storage device 10f is, for example, a hard disk, a magneto-optical disc (MO), a semiconductor memory, or the like, and has a program area 10fa in which a predetermined program is stored, and a data area 10fb in which various data is stored. The bus 10g connects the CPU 10a, the input unit 10b, the output unit 10c, the RAM 10d, the ROM 10e, and the auxiliary storage device 10f so that information can be exchanged. The CPU 10a writes the program stored in the program area 10fa of the auxiliary storage device 10f to the program area 10da of the RAM 10d according to the loaded OS (Operating System) program. Similarly, the CPU 10a writes various data stored in the data area 10fb of the auxiliary storage device 10f to the data area 10db of the RAM 10d. The addresses on the RAM 10d where these programs and data are written are stored in the register 10ac of the CPU 10a.The control unit 10aa of the CPU 10a sequentially reads out these addresses stored in the register 10ac, reads out programs and data from the areas on the RAM 10d indicated by the read addresses, causes the calculation unit 10ab to sequentially execute the calculations indicated by the programs, and stores the results of the calculations in the register 10ac. With this configuration, the functional configuration of the optimization devices 11 and 21 is realized.
[0049] The above-mentioned program can be recorded in a computer-readable recording medium. An example of a computer-readable recording medium is a non-transitory recording medium. Examples of such a recording medium include a magnetic recording device, an optical disk, a magneto-optical recording medium, a semiconductor memory, and the like.
[0050] The distribution of this program is performed, for example, by selling, transferring, lending, etc., a portable recording medium such as a DVD or CD-ROM on which the program is recorded. Furthermore, the program may be stored in a storage device of a server computer, and the program may be distributed by transferring the program from the server computer to another computer via a network. As described above, a computer that executes such a program, for example, first temporarily stores in its own storage device the program recorded in the portable recording medium or the program transferred from the server computer. Then, when executing the process, the computer reads the program stored in its own storage device and executes the process according to the read program. As another execution form of the program, the computer may directly read the program from the portable recording medium and execute the process according to the program, and further, each time the program is transferred from the server computer to the computer, the computer may execute the process according to the received program. Furthermore, the server computer may not transfer the program to the computer, and the above-mentioned process may be executed by a so-called ASP (Application Service Provider) type service that realizes the processing function only by issuing an execution instruction and obtaining the result. In addition, the program in this embodiment includes information used for processing by an electronic computer and equivalent to a program (such as data that is not a direct instruction to a computer but has the nature of defining computer processing).
[0051] In each embodiment, the present device is configured by executing a predetermined program on a computer, but at least a part of the processing contents may be realized by hardware.
[0052] The present invention is not limited to the above-described embodiment. For example, the above-described various processes may be executed not only in chronological order as described, but also in parallel or individually depending on the processing capacity of the device that executes the processes or as necessary. Needless to say, other modifications are possible without departing from the spirit of the present invention. [Explanation of symbols]
[0053] 11,21 Optimization device 111,211 Pseudo multivariate equation generator 112,212 Inverse conversion processing section 12 Quantum Computers
Claims
1. a pseudo multivariate polynomial generating unit for generating a pseudo multivariate quadratic polynomial obtained by multiplying each of the first-order terms of a multivariate quadratic polynomial for a variable having a positive or negative value by a pseudo variable having a value of +1 or -1; Obtaining a combination of a provisional solution, which is a value of the variables, and a pseudo-constant, which is a value of the pseudo-variables, that minimizes the pseudo-multivariate quadratic polynomial; if the pseudo-constant is +1, outputting the interim solution as a solution in the variables that minimizes the multivariate quadratic polynomial; If the pseudo-constant is −1, a value obtained by inverting the sign of the tentative solution is output as a solution of the variables that minimizes the multivariate quadratic polynomial. An inverse transformation processing unit; An optimization device having the above configuration.
2. 2. The optimization device of claim 1, V and Y are subsets of integers, i ∈ V, j ∈ Y, and M i and J. ij are real coefficients, and s i and s j is the variable, and s unit is the pseudo variable, The multivariate quadratic polynomial is [0010] and The pseudo multivariate quadratic polynomial is ##EQU00011## This is an optimization device.
3. a pseudo multivariate equation generating unit for generating a pseudo multivariate equation including at least a part of a pseudo multivariate quadratic polynomial obtained by replacing each coefficient of a first-order term of a multivariate quadratic polynomial for variables taking positive or negative values with each of first-order polynomials for one or more pseudo variables taking values of +1 or -1; Obtaining a combination of a provisional solution, which is the value of the variables, and a pseudo-constant, which is the value of the pseudo-variables, that minimizes the pseudo-multivariate equation; if the pseudo-constant is +1, outputting the interim solution as a solution in the variables that minimizes the multivariate quadratic polynomial; If the pseudo-constant is −1, a value obtained by inverting the sign of the tentative solution is output as a solution of the variables that minimizes the multivariate quadratic polynomial. An inverse transformation processing unit; having The optimization apparatus, wherein when all of said pseudo variables are +1, the first order terms of said pseudo multivariate quadratic polynomial are equal to the first order terms of said multivariate quadratic polynomial.
4. 4. The optimization device of claim 3, the pseudo multivariate quadratic polynomial is a quadratic polynomial in the variables and a plurality of the pseudo variables; An optimization device, wherein the pseudo multivariate equation includes, as a part thereof, a sign-unified equation that is minimized when all of the pseudo variables have the same positive and negative signs.
5. The optimization device according to claim 3 or 4, The range of values of the coefficients of the pseudo multivariate quadratic polynomial is smaller than the range of values of the coefficients of the multivariate quadratic polynomial.
6. The optimization device according to any one of claims 3 to 5, an inverse transformation processing unit that, if the positive and negative signs of all the pseudo-constants are not the same, (I) outputs information indicating that a solution to the variables that minimizes the multivariable quadratic polynomial cannot be obtained, or (II) if the number of the pseudo-constants that are +1 is greater than the number of the pseudo-constants that are -1, outputs the tentative solution as the solution to the variables that minimizes the multivariable quadratic polynomial, and if not, outputs a value with the positive and negative signs of the tentative solution as the solution to the variables that minimizes the multivariable quadratic polynomial, or (III) outputs both the tentative solution and the value with the positive and negative signs of the tentative solution as the solution to the variables that minimizes the multivariable quadratic polynomial.
7. The optimization device according to any one of claims 3 to 6, V, Y, and K(i) are subsets of integers, i∈V, j∈Y, and k∈K(i), and M i ,m i,k and J. ij are real coefficients, and M i =Σ k∈K(i) m i,k and s i and s j is the variable, and s unit(i,k) is the pseudo variable, The multivariate quadratic polynomial is ##EQU00012## and The pseudo multivariate quadratic polynomial is ##EQU00013## This is an optimization device.
8. 8. The optimization device according to claim 1 , the multivariate quadratic polynomial is an objective function expressed in the Hamiltonian of an Ising model for solving a combinatorial optimization problem by a combinatorial optimization problem-specific quantum computer, The variable may take on values of +1 or -1.
9. An optimization method executed by an optimization device having a pseudo multivariate equation generating unit and an inverse transformation processing unit, a pseudo multivariable equation generating step in which the pseudo multivariable equation generating unit generates a pseudo multivariable quadratic polynomial obtained by multiplying each first-order term of a multivariable quadratic polynomial related to variables taking positive or negative values by a pseudo variable taking a value of +1 or -1; The inverse transformation processing unit: Obtaining a combination of a provisional solution, which is a value of the variables, and a pseudo-constant, which is a value of the pseudo-variables, that minimizes the pseudo-multivariate quadratic polynomial; if the pseudo-constant is +1, outputting the interim solution as a solution in the variables that minimizes the multivariate quadratic polynomial; If the pseudo-constant is −1, a value obtained by inverting the sign of the tentative solution is output as a solution of the variables that minimizes the multivariate quadratic polynomial. an inverse transformation processing step; The optimization method has the following structure:
10. An optimization method executed by an optimization device having a pseudo multivariate equation generating unit and an inverse transformation processing unit, a pseudo multivariable equation generating step in which the pseudo multivariable equation generating unit generates a pseudo multivariable equation including at least a part of a pseudo multivariable quadratic polynomial obtained by replacing each coefficient of a first-order term of a multivariable quadratic polynomial for variables taking positive or negative values with each of first-order polynomials for one or more pseudo variables taking values of +1 or -1; The inverse transformation processing unit Obtaining a combination of a provisional solution, which is the value of the variables, and a pseudo-constant, which is the value of the pseudo-variables, that minimizes the pseudo-multivariate equation; if the pseudo-constant is +1, outputting the interim solution as a solution in the variables that minimizes the multivariate quadratic polynomial; If the pseudo-constant is −1, a value obtained by inverting the sign of the tentative solution is output as a solution of the variables that minimizes the multivariate quadratic polynomial. an inverse transformation step; having A method of optimization, wherein when all of said pseudo variables are +1, the first order terms of said pseudo multivariate quadratic polynomial are equal to the first order terms of said multivariate quadratic polynomial.
11. A program for causing a computer to function as the optimization device according to any one of claims 1 to 8.
Citation Information
Patent Citations
Information processing device and information processing system
JP2020166802A
Heuristic methods of converting higher order to quadratic polynomials in binary spaces
JP2021005363A
Combination optimization problem processing device, combination optimization problem processing method, and program
JP2021047780A
Automatic generation of ising hamiltonians for solving optimization problems in quantum computing
US20200302306A1
