The article proposes a method for solving a system of equations based on a quantum Grover search algorithm. Finding a solution to a system of equations is a computationally complex process and can be considered as an algorithmic primitive for solving various problems. The computational complexity of finding a solution to a system of equations has led to attempts to implement this problem using quantum computing. So, the concept of Quantum Linear System Problem (QLSP) is well known - the solution of systems of linear equations using a quantum computer. The method proposed in the article is considered within the framework of solving a system of algebraic equations. A feature of this method is a modification of the Grover algorithm, which consists in placing the condition of each equation in a separate Grover iteration, which differs from the usual use of Grover iterations - repeats of the oracle and the diffusion operator, in which the oracle does not change. Thus, the construction of its own oracle function of the Grover algorithm for each equation of the system is implemented within the framework of the implementation of the general scheme. A feature of the proposed method is the approximation of the problem of solving a system of equations to a problem resembling the pRSCIiple of training generative-adversarial neural networks (GAN) using Grover’s algorithm, since Grover’s algorithm allows analyzing all possible values of variables. Thanks to the use of the modified Grover algorithm, the proposed method is not limited by the mandatory condition that the number of equations is equal to the number of unknowns, since solutions to incomplete systems of equations can be found within the limits imposed by the size of the allocated quantum registers. A quantum circuit optimization method is also proposed, which consists in implementing some calculations directly in the body of the Grover algorithm. The claimed efficiency of the proposed method is O(2n/m). The method proposed in the article allows us to obtain a quantum primitive for solving a wide range of practical problems.
Read full abstract