1 Introduction

It is too costly for conventional algorithms to find exact solutions due to real-world problems’ complexity and high dimensionality. To tackle this issue, metaheuristic algorithms are proposed to provide an approximate solution with a significant cut down on computational cost. Metaheuristics are problem-independent frameworks and belong to the high-level category of algorithms that develop heuristic optimizers using a series of steps and guidelines [1].

In recent years, there has been a growing tendency to research metaheuristics [2]. The main advantage of metaheuristics is their capability to solve NP-hard problems in polynomial time. Due to the vast domain of applications and high demand for stability and accuracy, several modifications and hybridizations are applied to classical metaheuristic algorithms.

A relatively large number of metaheuristic algorithms and their modifications have been proposed, spanning from those inspired by creation-evolution to algorithms based on natural laws. This wide variety is justified by taking the No Free Lunch Theorem [3] into account. Indeed, there is no single solution to solve the problems of different disciplines. Every improvement in metaheuristic algorithms in favor of some specific problems leads to a decline in solving some other problems’ performance. So, intensive study in this field and the introduction of new methods and modifications are necessary to cover the wide range of real-world problems. One of the radical variants of metaheuristics is quantum-inspired metaheuristics, which have been generated through the combination of quantum computing principles and metaheuristic algorithms concepts.

Improvements in classical computers’ computation power do not satisfy the growing demands. Moore’s law is anticipated to fail by 2025 as the transistors’ size lower-bound is limited to the atom’s size [4]. Quantum mechanics can break through the limitations because of a property called quantum parallelism, which refers to the ability of quantum bits (qubit) to handle different processes simultaneously. For instance, utilizing only 30 qubits, it is possible to handle a billion data objects for executing parallel computing. All the data is retrievable by reading a single qubit using superposition, and entanglement [5].

The novelty and capabilities of quantum computing open a new horizon to solve optimization problems and improve the existing algorithms. Feynman [6], and Manin [7] established the quantum computing idea in the 1980s, and it has received much attention since then, especially after Shor’s ground-breaking development of a super-efficient algorithm to factorize large numbers in 1994 [8]. Lov Grover proposed another outstanding work in this field: an extremely fast algorithm to search in unstructured databases in 1996 [9]. Algorithms that utilize the quantum computing concept are potentially efficient because of a quantum mechanics property called quantum parallelism which refers to the ability of quantum bits (qubit) to handle different processes simultaneously.

This work aims to conduct a review of recent quantum-inspired metaheuristic algorithms that have been presented in recent years (2017–2022) and their applications in order to help researchers identify the current research trends of this field, the state-of-the-art technologies and applications that use this approach, the limitations, and potential gaps in this scope. The reviewed works in this survey were found in Web of Science, SienceDirect, and IEEE Xplore using keywords “quantum-inspired metaheuristic”, “quantum-inspired gentic algorithm”, and “quantum-inspired evolutionary algorithm”.

In order to categorize the quantum-inspired metaheuristics in this study, different criteria could be applied. Type of candidate solutions, type of search, and source of inspiration are the most common criteria to categorize the metaheuristic algorithms [10]. This paper uses the latter criterion, source of inspiration, to organize the algorithms. We have divided the sources of inspiration into two major categories, namely biologically-inspired and nature-based. Biologically-inspired algorithms mimic the evolutionary process of living organisms. In contrast, the source of inspiration for nature-based algorithms is nature’s laws, such as physical and chemical laws (as illustrated in Fig. 2).

In the remainder of this study, Sect. 2 introduces recent works on different types of biologically-inspired quantum metaheuristics, namely quantum-inspired genetic algorithms, quantum-inspired evolutionary algorithms, quantum-inspired swarm-based algorithms, and quantum-inspired human-based, as well as quantum-inspired nature-based algorithms. Section 3 introduces the recent conventional metaheuristics with no quantum-inspired version and can be considered for combination with quantum-mechanics concepts for even more promising performance. Research gaps are presented in Sect. 4. Finally, this study is summarized in Sect. 5.

2 Quantum-inspired metaheuristic algorithms

Quantum-inspired metaheuristics take the principles of quantum computing to elevate the performance of metaheuristics. A proper balance between exploration/global search and exploitation/local search in metaheuristic algorithms has always been a challenge, as focusing on either of them weakens the other. The main advantage of utilizing quantum computing concepts in this field is to strengthen the global search capability without deteriorating the exploitation phase of the algorithms.

Contrary to classical computing, which is based on simple bits which are limited to either 0 or 1 values, quantum computation’s fundamental unit of information is the qubit. Just like a classical bit, a qubit can be in either state of 0 or 1, but unlike a classical bit, it can be in any state of the superposition of this pair of values. This property of qubits makes them enable to faster executing of numerous processes. Mathematically, a qubit can be shown as follows:

$$\begin{aligned} \vert \psi \rangle = \alpha \vert 0\rangle + \beta \vert 1\rangle , \quad \alpha , \beta \in \mathbb {C} \end{aligned}$$

\(\alpha\) and \(\beta\) are called probability amplitudes, and the state of the qubit after measurement will be 0 with the probability of \(\vert \alpha \vert ^2\) and 1 with the probability of \(\vert \beta \vert ^2\). So as these values are probabilities:

$$\begin{aligned} \vert \alpha \vert ^2 + \vert \beta \vert ^2 = 1 \end{aligned}$$

An N-qubit register can hold \(2^N\) states at the same time while an N-bit register in a traditional computer can only have a single value out of \(2^N\) possible values. This property is the key to quantum parallelism which leads to exponential improvement in efficiency.

Structure of an N-qubit individual is represented as following:

$$\begin{aligned} \left[ \begin{matrix} \alpha _1 &{} \alpha _2 &{} \ldots &{} \alpha _N \\ \beta _1 &{} \beta _2 &{} \ldots &{} \beta _N \\ \end{matrix}\right] ,\qquad \forall i \in \{1,\ldots ,N \}, \quad \vert \alpha _i \vert ^2 + \vert \beta _i \vert ^2 = 1 \end{aligned}$$

Manipulation of qubits’ states can be done using quantum gates. There are several quantum gates, such as NOT gate, CNOT gate, Rotation Gate, Toffoli Gate, Fredkin Gate and Hadamard Gate. In fact, a quantum gate is a linear transformation and consequently is reversible. A quantum gate is shown by a unitary matrix U. A complex square matrix U is called unitary if its adjoint \(U^\dag\) and its inverse \(U^{-1}\) are identical. Also, the rows and the columns of U are orthonormal [11]. So:

$$\begin{aligned} UU^{\dag } = U^{\dag }U = UU^{-1} = U^{-1}U = I \end{aligned}$$

Updating the values of \(\alpha _i\) and \(\beta _i\) using the Rotation gate can be seen in the Fig. 1 and is calculated by:

$$\begin{aligned} \begin{bmatrix} \alpha '_i \\ \beta '_i \end{bmatrix} = \begin{bmatrix} \cos \theta _i &{} -\sin \theta _i \\ \sin \theta _i &{} \cos \theta _i \end{bmatrix} \begin{bmatrix} \alpha _i \\ \beta _i \end{bmatrix} \end{aligned}$$

where \(\theta _i\) is the rotation angle of the ith qubit and \(\alpha '_i\) and \(\beta '_i\) are probability amplitudes of the qubit after rotation [12].

Fig. 1
figure 1

Rotation operation for qubit

It is worth mentioning here that in the quantum-inspired metaheuristics literature, the three-dimensional model of qubits in the Bloch sphere is simplified to two-dimensional, representing the rotation angle and probability amplitudes before and after rotation. Also, the measurement of quantum bits is simulated by classical computers, considering probability amplitudes.

Like their ancestors, quantum-inspired metaheuristic algorithms’ source of inspiration is divided into two main categories: biologically-inspired and nature-based (Fig. 2). Biologically inspired metaheuristics are genetic, evolutionary, swarm, and human-based algorithms. Nature-inspired algorithms are those which have taken natural laws, like physical and chemical laws, as their source of inspiration. This section reviews recent advantages and novel applications of quantum-inspired metaheuristics in recent five years. During this period, about 60% of introduced quantum-inspired metaheuristics were inspired by evolutionary and genetic algorithms, more than 25% were swarm-based, and this percentage was only about 10 and 5% for human-based and nature-inspired algorithms, respectively (see Fig. 3).

Fig. 2
figure 2

Metaheuristics major categories

2.1 Biologically-inspired metaheuristics

2.1.1 Quantum-inspired genetic algorithms (QGAs)

The first quantum-inspired genetic algorithm was introduced by Kim and Han [13]. A quantum-inspired genetic algorithm is a variation and improvement of a classical genetic algorithm that utilizes qubit chromosome representation instead of conventional models, namely binary, numerical, and symbolic. Qubit chromosome representation is superior to its classical counterpart because of its ability to represent all states’ superpositions simultaneously. Figure 4 illustrates the flowchart quantum-inspired genetic algorithm. The algorithm starts by initializing all the qubits of the qubit chromosomes with \(\frac{1}{\sqrt{2}}\), which makes the representation of linear superposition of all states equally possible. Next, binary candidate solutions are generated by observing qubit chromosomes’ states. The best solution is then selected and stored by evaluating candidate solutions. Until the satisfaction of the termination condition, candidate solutions are updated, considering quantum chromosomes. Finally, quantum chromosomes must be updated using quantum gates for the next generation use.

Fig. 3
figure 3

Distribution of quantum-inspired metaheuristics’ source of inspiration from 2017 to 2022

Fig. 4
figure 4

Flowchart of QGA [13]

Recent works using the quantum-inspired genetic approach and their application and improvements are listed in Table 1.

Table 1 Quantum-inspired genetic algorithms (QGA) applications (2016–2022)

2.1.2 Quantum-inspired evolutionary algorithms (QEAs)

Han and Kim proposed quantum-inspired evolutionary algorithms two years after the introduction of QGAs in 2002 [24]. Just like Evolutionary algorithms (EAs), QEAs are based on individual representation, fitness function, and the population dynamics such as the number of the initial population, selection, crossover, mutation operations, and so forth. QEAs utilize qubits which are defined as the smallest information units. A qubits individual consists of a string of qubits. Search diversification is performed more properly using qubit representation thanks to its probabilistic representation. The first steps of QEA lead to a diverse population as the qubit individuals are in the superposition of all possible states with equal probability. As the algorithm carries on, the convergence of individuals to a single state intensifies the search. An elegant balance between exploration and exploitation phases is achieved by this behavior of QEA. It is worth mentioning that despite being inspired by quantum computing, QEA is not actually a quantum algorithm and is just a new evolutionary algorithm for classical computers. The flowchart of quantum-inspired evolutionary is shown in Fig. 5.

Fig. 5
figure 5

Flowchart of QEA [24]

Table 2 summarizes works using the QEA idea in recent five years and improvements and modifications made on QEA.

Table 2 Quantum-inspired evolutionary algorithms (QIEAs) applications (2017–2022)

2.1.3 Quantum-inspired swarm-based algorithms

Swarm-based optimization algorithms take the behavior of swarms of animals as their source of inspiration. This approach is called swarm intelligence. The introduction of term “swarm intelligence” backs to 1989 by Beni and Wang [58]. Swarm-based algorithms that have been modified and improved by quantum computing approach in recent years are as follows:

The most swarm-based eminent algorithm is Particle Swarm Optimization (PSO) which was introduced by Kennedy and Eberhart [59]. PSO is a stochastic optimization algorithm that simulates the social behavior of birds in a flock. Krill Herd (KH) [60] which simulates of the krill individuals herding behavior, Firefly Algorithm (FA) [61] inspired by flashing characteristics of fireflies, Grey Wolf Optimizer (GWO) [62] which is inpired by hierarchical leadership and hunting of grey wolves, Ant Colony Optimization (ACO) [63] inspired by foraging behavior of some ants species, Bat Algorithm (BA) [64] which mimics the echolocation or bio-sonar characteristics of bats, Glowworm Swarm Optimization (GSO) [65] that simulates the lighting worms behavior, Monarch Butterfly Optimization (MBO) [66] which is proposed by simplifying the monarch butterflies migration, Spider Monkey Optimization (SMO) [67] that simulates the social behavior and foraging of spider monkeys, Whale Optimization Algorithm (WOA) [68] inspired by hunting method of humpback whales, Salp Swarm Algorithm (SSA) [69] which mimics the swarming behavior of salps, Satin Bowerbird Optimization (SBO) [70] inspired bt breeding behavior of satin birds, Sperm Motility Algorithm (SMA) which simulates the fertilization process [71], Squirrel Search Algorithm (SSA) [72] which mimics the flying squirrel’s foraging, and Reptile Search algorithm [73] which is inspired by hunting behavior of crocodiles.

Quantum-inspired particle swarm optimization algorithm (QPSO) was proposed by Yang et al. [74]. QPSO utilizes concepts of quantum mechanics to boost the performance of classic PSO. Figure 6 illustrates the flowchart of QPSO.

Fig. 6
figure 6

Flowchart of QPSO [59]

Quantum-inspired swarm-based metaheuristic algorithms were introduced in the last five years, and their applications are listed in Table 3.

Table 3 Quantum-inspired swarm-based algorithms applications (2017–2022)

2.1.4 Quantum-inspired human-based algorithms

Human-based heuristics are inspired by human behavior. Harmony search (HS) [94] and Tabu Search (TS) [95, 96] are among the most famous human-based metaheuristic algorithms. Harmony search mimics the improvisations of musicians in pursuit of more satisfying harmony. Tabu Search relies on two key elements: classifying particular moves in search space as forbidden or ’tabu’ and ’strategic forgetting’, allowing individuals to temporarily break loose from constraints. Some novel quantum-inspired algorithms developed recently concerning these concepts, which are listed in Table 4.

Table 4 Quantum-inspired human-based algorithms (2017–2022)

2.2 Nature-based metaheuristics

Nature has always been an infinite source of inspiration for humankind. Metaheuristics are no exception. Several nature-based metaheuristics are based on natural phenomena and laws of physics and chemistry. Quantum-inspired versions of Gravitational Search Algorithm (GSA) [101] that is based on the law of gravity, Colliding Bodies Optimization (CBO) [102] which imitates the collision between objects, and Charged System Search (CSS) [103] which is based on Coulomb law from electrostatics and Newtonian laws from mechanics have been proposed recently. In 2019 Multi-scale Quantum Harmonic Oscillator Algorithm (MQHOA) was originally introduced as a quantum-inspired algorithm [104]. Quantum versions of nature-inspired metaheuristic algorithms between 2017 and 2022 are summarized in Table 5.

Table 5 Quantum-inspired nature-based algorithms (2017–2022)

2.3 Numerical optimization comparison

As the recent proposed quantum-inspired metaheuristic algorithms are applied to different applications, it is impossible to compare their effectiveness fairly. In addition, the algorithms that are proposed for the same applications may differ in the methods and datasets they use.

However, numerical optimization is a relatively more common application among the proposed quantum-inspired metaheuristics. So, we conduct a comparison between some of the algorithms. The algorithms is this comparison are Entanglement-Enhanced Quantum-inspired Tabu Search Algorithm (Entanglement-QTS) [98], Multi-scale Quantum Harmonic Oscillator Algorithm (MQHOA) [104], Multiscale Quantum Harmonic Oscillator Algorithm With Multi-Harmonic Oscillators (MHO-MQHOA) [110], Quantum Salp Swarm Algorithm (QSSA) [89], Half Significant Bit QEA (HSBQEA) [25], Stepwise Real QEA [25], enhanced Quantum behaved Particle Swarm Optimization (e-QPSO) [77], Quantum-Inspired Acromyrmex Evolutionary Algorithm (QIAEA), and Quantum Enhanced Colliding Bodies Optimization (QECBO) [108]. Six well-known benchmark functions are selected for this comparison. The benchmark functions consist of two unimodal functions, namely the Sphere function and Rosenbrock function, and four multimodal functions, Schewel function, Rastrigin function, Ackley function, and Griewank, and the reported results have been compared.

It is worth mentioning that unimodal benchmark functions are mainly used to examine the exploitation power of the algorithms, while multimodal benchmark functions are suitable to evaluate the exploration abilities.

The reported results are taken from the original papers and are collected in Table 6. Although the experiments have been conducted on different dimensions using different maximum fitness function evaluations, the number of evaluations is somehow proportionate to the number of dimensions so that the results can be roughly compared together. From the results, it can be concluded that all the algorithms successfully solved the unimodal test functions except the HSBQEA. The Schwefel function was the most challenging in the multimodal functions, and QSSA, HSBQEA, and e-QPSO algorithms could not converge into the global minimum. However, it is not a significant drawback since several well-known metaheuristics fail to avoid the tricky local optima of the Schwefel benchmark function’s search space. The error result for the Rastrigin, Ackley, and Griewank functions was acceptable for all algorithms and was at least near zero.

Table 6 Error results of quantum-inspired metaheuristic algorithms applied on benchmark functions

3 Recent metaheuristics without quantum version

This section introduces some novel conventional metaheuristics and their applications. To our best knowledge, these algorithms have not been combined with quantum mechanics notions yet. So, quantum-inspired versions of these approaches can be developed in future.

One of the most prominent examples is the Arithmetic Optimization Algorithm (AOA) [113], which utilizes arithmetic operators to solve arithmetic problems. The Aquila Optimizer (AO) [114] is a state-of-the-art nature-inspired metaheuristic inspired by Aquila’s hunting behaviour. Equilibrium Optimizer (EO) [115] is a physics-based optimization algorithm inspired by a volume mass balance equation. Social Engineering Optimizer (SEO) [116] is inspired by human social behavior. Red Deer Algorithm (RDA) [117] mimics the Scottish red deer’s mating behavior. Other examples of nature-inspired metaheuristics are Keshtel Algorithm [118] (KA), African Vultures Optimizer (AVO) [119], and Harris Hawks Optimizer (HHO) [120].

Table 7 gives the metaheuristics without quantum-inspired versions till now and some of their recent applications.

Table 7 Recent applications of some conventional metaheuristics with no quantum-inspired version

4 Research gaps

Searching through several recent quantum-inspired metaheuristics, we came across some areas that have not been covered thoroughly. The literature is full of innovative and elegant contributions in terms of combining quantum mechanics notions with conventional metaheuristic algorithms. However, the literature suffers from several gaps.

First, most of these algorithms perform a simulation of quantum bits and quantum gates manipulating their states. The emergence of real quantum computers and the implementation of quantum-inspired metaheuristics on them is a significant issue to be considered. One solution is to use a hybrid approach, using quantum circuits to implement quantum population and the quantum gates and utilizing conventional computers for fitness function evaluation. However, we cannot take advantage of the super-fast quantum computation, and we only profit from the true probabilistic nature of qubits which might not significantly outperform the simulated qubits in classical computers. In this manner, we will still struggle with the massive amount of time needed to run the metaheuristic algorithms since classical computers are in charge of fitness function evaluations. In addition, this approach only works for binary-coded algorithms, and the issue for real-coded algorithms is much more complicated. So, there is a considerable demand for translating quantum-inspired metaheuristics to real quantum computers.

Second, optimizing the current algorithm’s parameters has gotten inadequate attention. For instance, in a quantum-inspired genetic algorithm, the number of the qubits in chromosomes, the state of being static or dynamic of chromosomes’ length, and the impact of the size and direction of rotation gates are potential subjects for further research.

Third, comparing and using the current quantum-inspired optimization algorithms on new applications is tedious because there is no programming library with comprehensive implementation of quantum-inspired optimization algorithms like the libraries implemented for conventional metaheuristics (see [146]).

5 Conclusions

This review covers quantum-inspired metaheuristics proposed between 2017 and 2022 and organizes these algorithms concerning their source of inspiration. The algorithms’ modifications, innovations, and contributions are also introduced in tabular format for readability and quick reference.

The dominant sources of inspiration for quantum-inspired metaheuristics are evolutionary and genetic algorithms. The swarm-based inspired algorithms are the following most widely-used techniques. The quantum-inspired metaheuristic concept has been adapted to some classical problems such as time scheduling travelling salesperson, and 0-1 knapsack as well as numerous applications, namely image segmentation, RNA prediction, cloud computing, flight control, network community detection, network design, network routing, view selection, fuzzy controller design, multi-agent systems, airport gate allocation, and structural design. There has been a vast interest in the field of quantum-inspired metaheuristics recently. Quantum computing elevates metaheuristics’ performance by its characteristics, such as parallelism and qubit probabilistic representation, which are in favour of efficiency and accuracy, respectively. However, quantum-inspired metaheuristic algorithms adapt quantum mechanics concepts and are mostly executed on classical computers. Therefore, quantum qubits must be simulated on classical bits, and practically it leads to inefficiency. State-of-the-art quantum computers still have a limited number of qubits. So, it is impossible to execute most of these algorithms on real quantum computers for the time being. However, concerning the pace of improvements in quantum hardware, the development of powerful quantum computers does not seem unachievable in the early future. Finally, although there have been remarkable works considering quantum-inspired metaheuristics, the literature lacks a comprehensive comparison between the algorithms in terms of performance and time complexity.

The potential future works consist of further studies on metaheuristic algorithms to be implemented solely on real quantum computers or at least to harness the quantum computing capabilities in favour of performance improvement. Real-coded quantum-inspired algorithms also need more attention, as binary-coded algorithms require extra computations to convert binary and decimal representations for fitness function evaluation in numerical optimization problems. Moreover, the proposal of the quantum-inspired version of the conventional metaheuristics presented in Sect. 3 can be considered for future studies.