Quantum hybrid algorithm for solving SAT problem
Introduction
Quantum computing consists of developing algorithms inspired by the properties of quantum physics such as superposition and entanglement. This new generation of algorithms is capable of solving most difficult problems for classical supercomputers with great efficiency. Among these difficult problems, there are combinatorial optimization problems.
Combinatorial optimization problems, especially the satisfiability (SAT) problem, find their applications in several areas of life such as social networks (Jabbour et al., 2020), the design of computer systems (Nam et al., 2018, Bryant and Heule, 2021, He et al., 2018, Khurshid and Marinov, 2004, Tucker et al., 2007), planning (Gasquet et al., 2018, Froleyks et al., 2021, Erós et al., 2021), pedigree consistency checking (Konovalenko, 2019), generation of test pattern used for digital systems (Stava, 2021), design debugging and diagnosis (Gaber et al., 2020), integrated circuit design (McGeer et al., 1991), identification of functional dependencies in boolean functions (Dixit and Kolaitis, 2019), diabetes detection and bioinformatic (Kasihmuddin et al., 2018, Luo et al., 2022), just to name a few.
Solving combinatorial problems requires a factorial time, which remains a challenge on classical computers, even for small real-life input sizes, due to the search space of solutions, which in general is very large. Most of the existing classical algorithms are known to have factorial complexity, and therefore they are inefficient. This limitation has fostered the development of several quantum algorithms for combinatorial optimization problems.
One of the largely used algorithms that has been the basis of several others is Grover’s algorithm. It allows us to find a good solution with a complexity of against classically, with the total number of elements or potential solutions. Several Grover-based quantum algorithms have been developed to solve combinatorial problems, including the -SAT problem (Yang et al., 2009, Cheng and Tao, 2007, Leporati and Felloni, 2007, Zhang et al., 2020, Campos et al., 2021, Fernandes and Dutra, 2019). But most of these algorithms based on Grover start with a uniform superposition of all the potential solutions or elements and work on the principle of amplification, which consists of augmenting the amplitude of the good solution compared to the others.
The fact that there is equiprobability or a uniform superposition requires many iterations before finding the good solution, and the quantum state thus obtained by superposition must follow a law of unitarity of the norm. However, the computation time can be reduced by searching for the right search space of the solution. In fact, a good technique for solving combinatorial problems is the preliminary study of parameters that can reduce the search space. Such a reduction of the search space can disturb the uniformity of the initial superposition, and consequently speed up the computation. Thus, the objective of this work is to decrease the computation time of algorithms for combinatorial optimization problems by introducing a disturbance of the initial uniform superposition. By applying the same technique, a data parallelism approach in Grover’s algorithm is described.
The remainder of this paper is organized as follows. Section 2 presents the basics of quantum computing. Section 3 summarizes the related work and our contributions. Section 4 presents the SAT problem and in Section 5 introduces a factor that can influence the solution of the SAT problem. Section 6 presents the Grover algorithm and Section 7 presents the proposed algorithm and studies its complexity. The Section 8 is dedicated to the results and discussions, and finally Section 9 concludes the article and provides future research directions.
Section snippets
Quantum computation
The smallest unit of information in quantum computing is called the qubit. To represent the behavior of quantum phenomena, Dirac introduced an adapted notation (Munoz and Delgado, 2016) to describe the states of quantum systems and the transformations that act on them. This notation is called the bra/ket notation. The bit in classical computation takes two possible values, and . In contrast, in quantum computing (QC), the quantum bit takes the value (Dirac notation) for and for
Related works
The SAT problem has been widely discussed in the scientific literature. It is a combinatorial problem of great theoretical and practical interest. Like all combinatorial problems, finding a solution is a time-consuming operation, which increases factorially with the size of inputs. It is one of the first problems to be recognized as NP-Complete (Cook, 1971). Because of its practical interest, several methods have been proposed for its resolution, both classical and quantum based.
A -SAT problem
SAT problem
Let be binary variables that take the value or . And let , , and be the logical operator, the logical connector, and the logical connector, respectively.
Definition 1
A literal is a variable or its negation . A clause is a disjunction of literals , with each variable , where , which can be represented or replaced by its opposite or may not exist.
Definition 2
A SAT problem or a Boolean satisfiability problem is defined by a formula consisting of conjunctions of a
Study of the influence factor of the SAT solution
In this section, we first study a factor that affects the position of the solution of the SAT problem to reduce the search space. We are looking for a way to decrease or divide the search space that will guide the decrease in the amplitude of the potential bad solutions and the increase in the amplitude of the potential good ones.
The following observations are made:
- •Case 1: All variables are positive. For an SAT problem where all variables are positive, that is, without , a solution is the
Grover algorithm
The Grover algorithm is a search algorithm that allows you to find one or more elements, for example , that meet a given criterion in an unsorted list of elements.
A typical example is the search in a database, or a telephone directory, of the name that corresponds to a given telephone number.
By exploiting quantum properties, the Grover algorithm uses a quantum oracle to achieve its goals. This oracle efficiently checks whether an element respects a given search criterion or not (see Fig. 1).
Proposed algorithm
In this section, we present the generalized principle of the quantum approach adapted to the solution of combinatorial problems.
In the following we consider that the given combinatorial problem has at least one good solution, namely , among possible solutions .
The Grover algorithm (see Section 6) for finding the correct solution starts by making a uniform superposition, as shown in Fig. 5. The search space is materialized by or simply
Results and discussions
To test the performance of the proposed algorithm, it is implemented concurrently with the original Grover algorithm. The tests are performed on the 32 qubits IMB QASM quantum simulator and the results are obtained after 1024 shots on an Intel© Pentium© CPU 2020M @ 2.40 GHz 2, memory 4 GiB, with a Linux Mint 20.1 Cinnamon as operating system.
Tests are performed on SAT problems with 4 variables. The limitation in terms of variables is due to the QASM simulator that can support up to only 5
Conclusion
This work introduced an efficient algorithm for solving combinatorial problems based on quantum properties such as superposition of states. Combinatorial problems are problems that have a very large search space for the solution. The proposed algorithm uses a technique of reduction or subdivision of the search space in order to reduce the number of computations. This is done by introducing a uniform amplitude perturbation that aims to reduce or cancel the amplitudes of some solutions while
CRediT authorship contribution statement
Charles Moudina Varmantchaonala: Conceptualization, Methodology, Software, Writing – original draft. Jean Louis Kedieng Ebongue Fendji: Conceptualization, Methodology, Validation, Writing – review & editing, Supervision. Jean Pierre Tchapet Njafa: Methodology, Validation, Writing – review & editing. Marcellin Atemkeng: Validation, Writing – review & editing.
Declaration of Competing Interest
The authors declare that they have no known competing financial interests or personal relationships that could have appeared to influence the work reported in this paper.
Acknowledgment
We thank Pr. Serge Guy NANA ENGO for his helpful discussions and remarks.
References (61)
- et al.
Quantum stochastic optimization
Stochastic Process. Appl.
(1989) - et al.
Quantum cooperative search algorithm for 3-SAT
J. Comput. System Sci.
(2007) - et al.
Probabilistic analysis of the Davis Putnam procedure for solving the satisfiability problem
Discrete Appl. Math.
(1983) - et al.
SAT competition 2020
Artificial Intelligence
(2021) - et al.
Three “quantum” algorithms to solve 3-SAT
Theoret. Comput. Sci.
(2007) - et al.
Probabilistic analysis of a generalization of the unit-clause literal selection heuristics for the k satisfiability problem
Inform. Sci.
(1990) - et al.
Exponential bounds for DPLL below the satisfiability threshold
- et al.
Optimization by quantum annealing: Lessons from hard satisfiability problems
Phys. Rev. E
(2005) - et al.
Grover’s quantum search algorithm for an arbitrary initial amplitude distribution
Phys. Rev. A
(1999) - et al.
The algorithmic phase transition of random k-sat for low degree polynomials
Cited by (5)
A step gravitational search algorithm for function optimization and STTM’s synchronous feature selection-parameter optimization
2025, Artificial Intelligence ReviewHybrid classical and quantum-inspired features framework for MAX-3-SAT difficulty classification using machine learning
2025, Journal of SupercomputingGrover-QAOA for 3-SAT: quadratic speedup, fair-sampling, and parameter clustering
2025, Quantum Science and TechnologyApplied Satisfiability: Cryptography, Scheduling, and Coalitional Games
2025, Applied Satisfiability: Cryptography, Scheduling, and Coalitional GamesA Parallel and Distributed Quantum SAT Solver Based on Entanglement and Teleportation
2024, Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics)
© 2023 Elsevier Ltd. All rights reserved.