1. Introduction
As industries such as e-commerce and logistics continue to expand, the importance of efficient path planning algorithms has become increasingly evident. Among the various problems in this field, the Traveling Salesman Problem (TSP) stands out due to its complexity and practical relevance. Traditionally, the ant colony optimization (ACO) method has been widely adopted for such tasks, drawing inspiration from the foraging behavior of ants to find optimal paths through probabilistic and pheromone-based techniques. However, despite its popularity, ACO suffers from limitations like slow convergence speeds and a tendency to get stuck in local optima, which can severely hinder its effectiveness in more complex or larger scale applications [1].
Current Research Status: To overcome the shortcomings of traditional ACO, advancements in quantum computing have paved the way for a more robust solution through the development of the Quantum Ant Colony Optimization (QACO). This novel approach integrates quantum mechanics with ACO, particularly employing quantum rotation gates and quantum bit (qubit) representations to enhance pheromone updating processes. This integration not only accelerates convergence but also provides a broader exploration capability, thereby increasing the likelihood of reaching the global optimum. Recent studies, such as those by Li Yueguang et al. and M. Garcia de Andoin, have demonstrated the potential of QACO in solving not only the TSP but also other complex combinatorial optimization problems with more efficiency than its classical counterpart [2-4].
Research Content of This Paper: This paper delves into the foundational principles of quantum computing and explores its integration with the traditional ACO framework to address the TSP more effectively. Through theoretical analysis and empirical examples, the paper evaluates the performance enhancements that QACO offers over traditional ACO. It highlights the dynamic pheromone update process enabled by quantum mechanisms, which significantly mitigates issues of premature convergence and improves the quality of the solutions found. Furthermore, the practical applications of QACO in fields like e-commerce and logistics are discussed, illustrating its potential to revolutionize path planning tasks in various industries. By providing a comprehensive review and analysis of QACO, this study contributes to ongoing efforts to optimize complex problem-solving techniques in operational research and computer science.
2. Relevant theories
2.1. Traditional ant colony algorithms
Ant Colony Optimization (ACO) is a nature-inspired metaheuristic frequently used to address various optimization challenges [5].
Figure 1. ACO schematic diagram (Photo credit: Original).
As illustrated in Figure 1, Ants start from the starting point. When they encounter obstacles, they will try to find a relatively short path to cross the obstacles and leave pheromones. Since the path below is relatively short, more ants will choose the path below, and thus leave more pheromones on this path. Subsequent ants are more inclined to select the path below [6].
Ants start from the starting point and choose the next city based on a probability formula as follows formula (1) [7]:
\( P_{ij}^{k}=\frac{{({τ_{ij}})^{α}}{({η_{ij}})^{β}}}{\sum _{l∈{j^{k}}}{({τ_{il}})^{α}}{({η_{il}})^{β}}} \) (1)
Where:
\( {τ_{ij}} \) represents the pheromone concentration between city 𝑖 and city 𝑗.
\( {η_{ij}} \) is the heuristic function, which indicates the attractiveness of the path from 𝑖 to 𝑗 and is often inversely proportional to the distance:
\( {η_{ij}}=\frac{1}{{d_{ij}}} \) (2)
Parameters α and 𝛽 determine the significance of pheromones and the heuristic function, respectively.
After all ants have completed one round of path construction, Pheromones on each path are updated according to this formula: (3) [8]:
\( {τ_{ij}}←(1-ρ){τ_{ij}}+\sum _{k=1}^{m}∆τ_{ij}^{k} \) (3)
Where:
\( ρ \) represents the pheromone evaporation rate.
\( ∆τ_{ij}^{k} \) is the pheromone increment added by ant k on the path from city iii to city j, defined as:
\( ∆τ_{ij}^{k}=\frac{Q}{{L_{k}}} \) (4)
\( Q \) is a constant, and \( {L_{k}} \) represents the length of the path completed by ant k.
2.2. The traveling salesman problem
The Traveling Salesman Problem (TSP) is an NP-hard problem, commonly used as a benchmark to analyze the performance of metaheuristic algorithms [9]. It is a classic problem in operations research and computer science. It involves a salesman who must iterate over a given number of cities, visiting each city exactly once before returning to the starting point. The goal is to determine the shortest possible route that minimizes the total distance or cost of the trip [10].
2.3. Quantum ant colony algorithm
QACO is an innovative optimization algorithm that combines traditional ACO with quantum computing. The core of QACO is to introduce quantum rotation gates in quantum computing into the ACO, use quantum bit encoding to generate quantum pheromones, and update pheromones through quantum rotation gates [11]. The algorithm flow of QACO is shown in the figure 2 [12]:
Figure 2. Implementation process of QACO (Photo credit: Original).
3. System analysis and applications
3.1. Mathematical model
3.1.1. Qubit encoding. Compared to traditional bits which represent only two states 0 and 1, qubits consist of two possible states |0⟩and |1⟩. A qubit |ψ⟩ can be represented as:
\( ||ψ⟩=α|0⟩+β|1⟩ \) (5)
α and β are the probability amplitudes of the quantum state |ψ⟩, respectively, and α and β are complex numbers that satisfy formula (6) [13]:
\( {α^{2}}+{β^{2}}=1 \) (6)
3.1.2. Quantum rotation gate. Different from the method of updating pheromones through formula mentioned above, quantum ant colonies update quantum pheromones through quantum revolving gates.
The method is as follows:
\( [\frac{{α_{t+1}}}{{β_{t+1}}}]=[\frac{cos{θ -sin{θ}}}{sin{θ cos{θ}}}][\frac{{α_{t}}}{{β_{t}}}] \) (7)
Where:
\( {α_{t}} \) and \( {β_{t}} \) are the quantum state coefficients for path (i, j) in iteration t.
\( θ \) is the rotation angle that adjusts the pheromone update, directing the search towards the optimal solution.
The quantum rotation gate allows for dynamic adjustment of the pheromone concentration.
The principle diagram of the quantum revolving door is shown in Figure 3:
Figure 3. Principle diagram of quantum rotation gate (Photo credit: Original).
As shown in Figure3, the ant currently searching is the kth ant, the solution that needs to be rotated is |ψk⟩, there are two rotation directions can be selected. One rotation direction approaches the optimal solution |ψbest⟩, while the other moves away from it. But the ideal situation is that all solutions approach the optimal solution, This enhances the speed of finding the optimal solution. Therefore, the choice of rotation angle \( θ \) is very important [14].
The rotation angle is selected according to formula (8):
\( {θ_{ij=}}∆{θ_{ij}}×sgn(x) \) (8)
\( x =({α_{ij}}×{β_{ij)}}({L^{k}}-{L^{best}})({R^{k}}[i,j]-{R^{best}}[i,j] \) (9)
In formula (9), \( x \) represents the magnitude of the rotation angle. sgn (x) is a sign function that determines the direction of the rotation angle. x is the independent variable of the symbolic function. \( {L^{k}} \) and \( {L^{best}} \) represent the path length explored by current ant and the optimal path length searched by all ants, respectively. \( {R^{k}}[i,j] \) and \( {R^{best}}[i,j] \) are the path length searched by current ant and the optimal path matrix (i, j)’s value that searched by all ants, respectively. The rotation angles used in different situations are different and need to be selected according to the actual situation.
3.2. Algorithm efficiency evaluation
To assess the effectiveness of the QACO, and its efficiency advantage over the traditional ACO, Li Xiang et al. designed a simulation experiment in the python 3.7 environment and compared the results. The experimental parameters are established as outlined in Table 1 [15]:
Table 1. Experimental parameter settings.
parameter | Ant colony size | Number of nodes | Pheromone Inducing Factor α | Expectation Heuristic Factor β | Pheromone volatility factor ρ | Maximum number of iterations |
200 | 50 | 1.0 | 0.5 | 0.5 | 1000 |
After taking the average value of multiple experiments, compared it with the classic ant colony algorithm. The comparison results are established as outlined in Table 2:
Table 2. Comparison experiment results.
Algorithm | Known optimal solution | Average evolutionary generations | Optimal solution | Worst solution | Average value | |
ACO | 3823 | 74.1 | 3825 | 3826 | 3825.1 | |
QACO | 3823 | 44.9 | 3824 | 3910 | 3859.6 |
Table 2 shows that the QACO is significantly better than the classical ACO in global optimization and convergence speed.
3.3. Applications of QACO
Owing to its superior performance and faster convergence compared to traditional ACO, the quantum ant colony algorithm is widely applied to various optimization problems. For example, using QACO algorithms to optimize distributed database models and reduce the expense of query connections in distributed databases [16]. Using QACO algorithms to solve the two-stage permutation flow shop problem with batch processing machines to improve the work efficiency of large-scale operations in practical work [17]. The QACO can also be used in the field of wireless sensor networks to find low-latency paths between source nodes and target nodes and improve network utilization [18]. In addition, QACO have also been widely used in traffic path planning, supply chain management, intelligent manufacturing and other fields.
4. Challenges
Although QACO has been widely used in addressing optimization problems and practical applications, it still has the following limitations that need to be addressed [19]:
The efficiency of pheromone coding is not high, and the quantum gate rotation strategy is not adaptable enough.
The core logic of the QACO is to introduce the concepts of quantum coding and quantum revolving door into the traditional ant colony algorithm to improve its performance. However, the QACO itself is still just an improved ACO, and the inherent defects of the ACO itself still exist.
Although the quantum ant colony algorithm shows good results in simple optimization problems, if the quantum bits are converted into classical bits through simple projection measurement and transformation of the solution space, the algorithm will not be able to show its superiority in solving multi-parameter optimization and high-precision calculation problems.
At present, the basic mathematical research on quantum computing is still incomplete, especially in the aspects of parameter design and convergence analysis, which requires more attention from scholars.
5. Conclusion
This study has introduced and evaluated the Quantum Ant Colony Optimization (QACO) algorithm as an advanced solution to the Traveling Salesman Problem (TSP), a longstanding and complex issue in operations research and computer science. By integrating quantum computing elements, specifically quantum rotation gates and qubits, into the traditional Ant Colony Optimization (ACO) framework, the QACO demonstrates significantly enhanced efficiency and convergence speeds. Through a detailed analysis involving empirical examples, the paper highlighted the improved dynamic pheromone update process enabled by the quantum mechanisms. This process effectively addresses the shortcomings of slow convergence and frequent entrapment in local optima that are often observed in the traditional ACO approach. The quantum-enhanced algorithm not only streamlines the computation process but also expands the possibilities for more complex problem solving in various industrial applications. Looking forward, the potential of QACO in broader applications suggests a rich area for future research. The current study’s success invites further exploration into other combinatorial and high-dimensional optimization problems where QACO's capabilities could be similarly beneficial. Future studies should aim to refine the quantum pheromone update mechanisms to ensure even greater efficiency and applicability across diverse scenarios. Additionally, considering the rapid advancements in quantum computing technology, ongoing research will also need to focus on integrating these developments to continually enhance the QACO framework. Investigating the adaptation of QACO to other challenging domains such as network design, logistics optimization, and artificial intelligence could provide valuable insights and contribute significantly to the fields of quantum computing and optimization algorithms.
References
[1]. Wu, L., Huang, X., Cui, J., Liu, C., & Xiao, W. (2023). Modified adaptive ant colony optimization algorithm and its application for solving path planning of mobile robot. Expert Systems with Applications, 215, 119410.
[2]. Li, Y., Zhao, J., & Zhang, Y. (2009). An improved quantum ant colony algorithm for solving TSP. Computer Engineering and Design, 16, 3843-3845+3874.
[3]. de Andoin, M. G., & Echanobe, J. (2022). Implementable hybrid quantum ant colony optimization algorithm. Quantum Machine Intelligence.
[4]. Chen, Z., Zheng, X., Zhou, S., Liu, C., & Chen, H. (2019). Quantum-inspired ant colony optimization algorithm for a two-stage permutation flow shop with batch processing machines. International Journal of Production Research, 58(19), 5945–5963.
[5]. Skinderowicz, R. (2022). Improving Ant Colony Optimization efficiency for solving large TSP instances. Applied Soft Computing (prepublish), 108653.
[6]. Shi, K., Huang, L., Jiang, D., Sun, Y., Tong, X., Xie, Y., & Fang, Z. (2022). Path planning optimization of intelligent vehicle based on improved genetic and ant colony hybrid algorithm. Frontiers in Bioengineering and Biotechnology, 10, 905983.
[7]. Zhu, X., Zhang, Y., Zhao, Z., & Zuo, J. (2019, July). Radio frequency sensing based environmental monitoring technology. In Fourth International Workshop on Pattern Recognition (Vol. 11198, pp. 187-191). SPIE.
[8]. Zhang, Y., Xu, H., Zhu, X. et al. Detection and Quantization Technique of Optical Distributed Acoustic Coupling Based on φ-OTDR. J. Shanghai Jiaotong Univ. (Sci.) 25, 208–213 (2020).
[9]. Zhang, Y., Zhao, H., Zhu, X., Zhao, Z., & Zuo, J. (2019, October). Strain Measurement Quantization Technology based on DAS System. In 2019 IEEE 3rd Advanced Information Management, Communicates, Electronic and Automation Control Conference (IMCEC) (pp. 214-218). IEEE.
[10]. Toaza, B., & Esztergár-Kiss, D. (2023). A review of metaheuristic algorithms for solving TSP-based scheduling optimization problems. Applied Soft Computing, 110908.
[11]. Trust, T., Nyamugure, P., Kumar, S., & Munapo, E. (2023). A labelling method for the Travelling Salesman Problem. Applied Sciences, 11.
[12]. Bi, Z., Yu, X., Wang, B., Huang, W., Zhang, D., & Dong, Z. (2024). Fast fault location technology for distribution network based on quantum ant colony algorithm. Journal of Shanghai Jiaotong University, 58(5), 693.
[13]. Mei, P., Ding, G., Jin, Q., Zhang, F., & Chen, Y. C. (2021). Reconstruction and optimization of complex network community structure under deep learning and quantum ant colony optimization algorithm. Intelligent Automation & Soft Computing, 27(1).
[14]. Zhu, X., Zhao, Z., Wei, X., Wang, X., & Zuo, J. (2021, February). Action recognition method based on wavelet transform and neural network in wireless network. In Proceedings of the 2021 5th International Conference on Digital Signal Processing (pp. 60-65).
[15]. Wang, R., Zhu, J., Wang, S., Wang, T., Huang, J., & Zhu, X. (2024). Multi-modal emotion recognition using tensor decomposition fusion and self-supervised multi-tasking. International Journal of Multimedia Information Retrieval, 13(4), 39.
[16]. Mohsin, S. A., Younes, A., & Darwish, S. M. (2021). Dynamic cost ant colony algorithm to optimize query for distributed database based on quantum-inspired approach. Symmetry, 13(1), 70.
[17]. Chen, Z., Zheng, X., Zhou, S., Liu, C., & Chen, H. (2019). Quantum-inspired ant colony optimisation algorithm for a two-stage permutation flow shop with batch processing machines. International Journal of Production Research, 58(19), 5945–5963.
[18]. Li, F., Liu, M., & Xu, G. (2019). A quantum ant colony multi-objective routing algorithm in WSN and its application in a manufacturing environment. Sensors, 19(15), 3334.
[19]. An, J., Liu, X., He, M., & Song, H. (2022). Overview of quantum group intelligence optimization algorithms. Computer Engineering and Applications, 07, 31-42.
Cite this article
Li,Y. (2024). Quantum Ant Colony Algorithm for Solving the Traveling Salesman Problem: A Theoretical and Practical Analysis. Applied and Computational Engineering,110,175-181.
Data availability
The datasets used and/or analyzed during the current study will be available from the authors upon reasonable request.
Disclaimer/Publisher's Note
The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of EWA Publishing and/or the editor(s). EWA Publishing and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.
About volume
Volume title: Proceedings of CONF-MLA 2024 Workshop: Securing the Future: Empowering Cyber Defense with Machine Learning and Deep Learning
© 2024 by the author(s). Licensee EWA Publishing, Oxford, UK. This article is an open access article distributed under the terms and
conditions of the Creative Commons Attribution (CC BY) license. Authors who
publish this series agree to the following terms:
1. Authors retain copyright and grant the series right of first publication with the work simultaneously licensed under a Creative Commons
Attribution License that allows others to share the work with an acknowledgment of the work's authorship and initial publication in this
series.
2. Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the series's published
version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgment of its initial
publication in this series.
3. Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) prior to and
during the submission process, as it can lead to productive exchanges, as well as earlier and greater citation of published work (See
Open access policy for details).
References
[1]. Wu, L., Huang, X., Cui, J., Liu, C., & Xiao, W. (2023). Modified adaptive ant colony optimization algorithm and its application for solving path planning of mobile robot. Expert Systems with Applications, 215, 119410.
[2]. Li, Y., Zhao, J., & Zhang, Y. (2009). An improved quantum ant colony algorithm for solving TSP. Computer Engineering and Design, 16, 3843-3845+3874.
[3]. de Andoin, M. G., & Echanobe, J. (2022). Implementable hybrid quantum ant colony optimization algorithm. Quantum Machine Intelligence.
[4]. Chen, Z., Zheng, X., Zhou, S., Liu, C., & Chen, H. (2019). Quantum-inspired ant colony optimization algorithm for a two-stage permutation flow shop with batch processing machines. International Journal of Production Research, 58(19), 5945–5963.
[5]. Skinderowicz, R. (2022). Improving Ant Colony Optimization efficiency for solving large TSP instances. Applied Soft Computing (prepublish), 108653.
[6]. Shi, K., Huang, L., Jiang, D., Sun, Y., Tong, X., Xie, Y., & Fang, Z. (2022). Path planning optimization of intelligent vehicle based on improved genetic and ant colony hybrid algorithm. Frontiers in Bioengineering and Biotechnology, 10, 905983.
[7]. Zhu, X., Zhang, Y., Zhao, Z., & Zuo, J. (2019, July). Radio frequency sensing based environmental monitoring technology. In Fourth International Workshop on Pattern Recognition (Vol. 11198, pp. 187-191). SPIE.
[8]. Zhang, Y., Xu, H., Zhu, X. et al. Detection and Quantization Technique of Optical Distributed Acoustic Coupling Based on φ-OTDR. J. Shanghai Jiaotong Univ. (Sci.) 25, 208–213 (2020).
[9]. Zhang, Y., Zhao, H., Zhu, X., Zhao, Z., & Zuo, J. (2019, October). Strain Measurement Quantization Technology based on DAS System. In 2019 IEEE 3rd Advanced Information Management, Communicates, Electronic and Automation Control Conference (IMCEC) (pp. 214-218). IEEE.
[10]. Toaza, B., & Esztergár-Kiss, D. (2023). A review of metaheuristic algorithms for solving TSP-based scheduling optimization problems. Applied Soft Computing, 110908.
[11]. Trust, T., Nyamugure, P., Kumar, S., & Munapo, E. (2023). A labelling method for the Travelling Salesman Problem. Applied Sciences, 11.
[12]. Bi, Z., Yu, X., Wang, B., Huang, W., Zhang, D., & Dong, Z. (2024). Fast fault location technology for distribution network based on quantum ant colony algorithm. Journal of Shanghai Jiaotong University, 58(5), 693.
[13]. Mei, P., Ding, G., Jin, Q., Zhang, F., & Chen, Y. C. (2021). Reconstruction and optimization of complex network community structure under deep learning and quantum ant colony optimization algorithm. Intelligent Automation & Soft Computing, 27(1).
[14]. Zhu, X., Zhao, Z., Wei, X., Wang, X., & Zuo, J. (2021, February). Action recognition method based on wavelet transform and neural network in wireless network. In Proceedings of the 2021 5th International Conference on Digital Signal Processing (pp. 60-65).
[15]. Wang, R., Zhu, J., Wang, S., Wang, T., Huang, J., & Zhu, X. (2024). Multi-modal emotion recognition using tensor decomposition fusion and self-supervised multi-tasking. International Journal of Multimedia Information Retrieval, 13(4), 39.
[16]. Mohsin, S. A., Younes, A., & Darwish, S. M. (2021). Dynamic cost ant colony algorithm to optimize query for distributed database based on quantum-inspired approach. Symmetry, 13(1), 70.
[17]. Chen, Z., Zheng, X., Zhou, S., Liu, C., & Chen, H. (2019). Quantum-inspired ant colony optimisation algorithm for a two-stage permutation flow shop with batch processing machines. International Journal of Production Research, 58(19), 5945–5963.
[18]. Li, F., Liu, M., & Xu, G. (2019). A quantum ant colony multi-objective routing algorithm in WSN and its application in a manufacturing environment. Sensors, 19(15), 3334.
[19]. An, J., Liu, X., He, M., & Song, H. (2022). Overview of quantum group intelligence optimization algorithms. Computer Engineering and Applications, 07, 31-42.