Open Journal of Optimization
Vol.04 No.02(2015), Article ID:56319,9 pages
10.4236/ojop.2015.42003
Quantum-Inspired Particle Swarm Optimization Algorithm Encoded by Probability Amplitudes of Multi-Qubits
Xin Li1, Huangfu Xu2, Xuezhong Guan2
1School of Computer and Information Technology, Northeast Petroleum University, Daqing, China
2School of Electrical and Information Engineering, Northeast Petroleum University, Daqing, China
Email: lixin_dq@163.com
Copyright © 2015 by authors and Scientific Research Publishing Inc.
This work is licensed under the Creative Commons Attribution International License (CC BY).
http://creativecommons.org/licenses/by/4.0/



Received 9 February 2015; accepted 12 May 2015; published 14 May 2015
ABSTRACT
To enhance the optimization ability of particle swarm algorithm, a novel quantum-inspired particle swarm optimization algorithm is proposed. In this method, the particles are encoded by the probability amplitudes of the basic states of the multi-qubits system. The rotation angles of multi-qubits are determined based on the local optimum particle and the global optimal particle, and the multi-qubits rotation gates are employed to update the particles. At each of iteration, updating any qubit can lead to updating all probability amplitudes of the corresponding particle. The experimental results of some benchmark functions optimization show that, although its single step iteration consumes long time, the optimization ability of the proposed method is significantly higher than other similar algorithms.
Keywords:
Quantum Computing, Particle Swarm Optimization, Multi-Qubits Probability Amplitudes Encoding, Algorithm Design

1. Introduction
In 1999, Dr. Eberhart and Dr. Kennedy proposed particle Swarm Optimization (particle swarm optimization, PSO) [1] . As a new optimization tool, it is now widely used in combinatorial optimization [2] and numerical optimization [3] . In PSO’s performance improvement, some commonly used strategies are as follows: selecting the appropriate control parameters [4] ; designing reasonable update rules of the particle velocity and position [5] ; combining PSO with the other algorithms [6] ; and employing quantum computation to design the update strategy [7] . These approaches enhance the PSO performance in different degrees. Quantum computing is an emerging interdisciplinary, combining the information science and quantum mechanics, and its integration with intelligent optimization algorithms begun in the 1990s; there is quantum-behaved particle swarm optimization algorithm [8] , quantum-inspired evolutionary algorithm [9] , quantum-inspired harmony search algorithm [10] , quantum-inspired immune algorithm [11] , quantum-inspired genetic algorithm [12] , and quantum-inspired derivative differential evolution algorithm [13] . In the algorithm mentioned above, Ref. [8] applied real-based code method; the other references employed single qubit probability amplitude to code individuals. In these kinds of coding, the adjustment of a qubit can only change one gene on the individual. However, in the multi-qubits probability amplitude-based code, with application of coherence quantum states, simply adjusting a qubit can change all probability amplitudes of the ground state in multi-bit quantum superposition states, and then update all genes on the individual. In this paper, we propose a new multi-qubits probability amplitude encoding-based quantum-inspired particle swarm optimization. Standard function extreme optimization experiments show the superiority of the proposed algorithm.
2. Basic PSO Model
There is M particles in the n-dimensional space. For the
particle, its position
, velocity
, self-opti- mum position
, global optimum position
, are written as:
;
;
;
. The update strategy of particles can be described as follows.
(1)
(2)
where
,
is the inertia factor,
is itself factor,
global factor,
, 
For convenience of description, Equation (1) can be rewritten as follows.

where


To make the PSO convergence, all particles must approximation
3. Multi-Bit Quantum System and the Multi-Bit Quantum Rotation Gate
3.1. Qubits and Single Qubit Rotation Gate
What is a qubit? Just as a classical bit has a state―either 0 or 1―a qubit also has a state. Two possible states for a qubit are the state 

Notation like 



where 




In the quantum computation, the logic function can be realized by applying a series of unitary transform to the qubit states, which the effect of the unitary transform is equal to that of the logic gate. Therefore, the quantum services with the logic transformations in a certain interval are called the quantum gates, which are the basis of performing the quantum computation. A single qubit rotation gate can be defined as

Let the quantum state


that 
3.2. The Tensor Product of Matrix
Let the matrix 




where 

3.3. Multi-Bit Quantum System and the Multi-Bit Quantum Rotation Gate
In general, for an n-qubits system, there are 



where 


Let


It is clear from the above equations that, in an n-qubits system, any one of the ground state probability amplitude is a function of n-qubits phase

In our works, the n-qubits rotation gate is employed to update the probability amplitudes. According to the principles of quantum computing, the tensor product of n single-qubit rotation gate 

where

Taking 


It is clear that

where
4. Particle Encoding Method Based on Multi-Bits Probability Amplitudes
In this paper, the particles are encoded by multi-qubits probability amplitudes. Let N denote the number of particles, 
4.1. The Number of Qubits Needed to Code
For an n-bits quantum system, there are 



4.2. The Encoding Method Based on Multi-Qubits Probability Amplitudes
First, generating randomly N n-dimensional phase vector


where

Let





5. The Update Method Based on Multi-Qubits Probability Amplitudes
In this paper, the multi-bit quantum rotation gates are employed to update particles. Let the phase vector of the
global optimal particle be

the itself optimum the phase vector be
From Equation (11), it is clear that, once 


Step 1. Set

Step 2. Set
Step 3. Determine the value of the rotation angle, where the sgn donates the symbolic function.
If

If

If

If

Step 4. Compute the rotation angles, and update all particles according to the following equation, 

Step 5. If

6. Quantum-Inspired Particle Swarm Optimization Algorithm Encoded by Probability Amplitudes of Multi-Qubits
Suppose that, N denote the number of particles, 
1) Initialize the particles swarm
According to Equation (15) to determine the number of qubits n, according to Equation (16) initialize phase of each particle, according to Equation (11) to calculate the probability amplitude of 




Initialization phase update step

2) Calculation of the objective function value
Set the j-dimensional variable range be


where

Calculate the objective function values of all particles. Let the ith particle phase be
objective function value is

tive function value be



3) Update the particle position
For each particle





4) Update the global optimal solution
Let the optimal particle phase be






5) Examine termination conditions
If



7. Comparative Experiment
In this study, the 20 standard test functions are employed to verify the optimization ability of MQPAPSO, and compare with the general particle swarm optimization (PSO) [14] , quantum delta potential-well particle swarm optimization, QDPSO [15] , shuffled frog leaping algorithm, SFLA [16] . All functions belong to minimum optimization, where D is the number of independent variables, Ω is the solution space, 

7.1. Test Function
(1)


(2)


(3)


(4)


(5)


(6)


(7)


(8)


(9)


(10)


(11)



(12)




(13)


(14)

(15)


(16)



(17)





(18)


(19)


(20)

7.2. The Experimental Scheme and Parameter Design
The dimension of all test functions is set to 







For SFLA, according to Ref. [16] , the biggest jump step is set to

where the first number denotes the number of sub-group and the second number denotes the number of frog in sub-group. For each of combination, the SFLA is independent run 30 times, and the average optimization result over 30 runs and the average time of a single iteration are recorded. In these six groups, the best optimization results and the corresponding average time of a single iteration are regarded as a comparison index.
For PSO, according to Ref. [14] , 



7.3. Comparative Experiment Results
Experiments conducted using Matlab R2009a. Taking 


For the function









For four algorithms, the ratios of the average time of a single iteration are shown in Table 4, and the ratios of the average optimization results are shown in Table 5.
From Table 1 and Table 4, for single iteration mean time, MQPAPSO is nearly 10 times longer than QDPSO, PSO, and SFLA. To make the comparison fair, we must further investigate the optimization results under the same running time. This is the fundamental reason why the iteration steps of for QDPSO, PSO, SFLA are set to 



Table 1. The average time contrast of single iteration for the four algorithms (unit: seconds).
Table 2. The average optimization results contrast for four algorithms (D = 50).
Table 3. The average optimization results contrast for four algorithms (D = 100).
Table 4. The ratio of single iteration average time for four algorithms.
Table 5. The ratio of average optimization results for four algorithms.
amplitude coding and evolutionary mechanisms can indeed improve the optimization capability. From Table 5, in the same iteration steps, the optimization result of MQPAPSO is only one thousandth of that of QDPSO. On the other hand, in the same running time, the optimization result of MQPAPSO is only nine percent of QDPSO. Experimental results show that multi-bit probability amplitude coding method can indeed significantly improve the optimization ability of the traditional PSO algorithm and other similar algorithms.
8. Conclusion
In this paper, a quantum-inspired particle swarm optimization algorithm is presented encoded by probability amplitudes of multi-qubits. Function extreme optimization results show that under the same running time, the optimization ability of proposed algorithm has greatly superior to the traditional methods, revealing that the multi-qubits probability amplitude encoding method indeed greatly enhances the ability of traditional particle swarm optimization performance.
Funding
This work was supported by the Youth Foundation of Northeast Petroleum University (Grant No. 2013NQ119) and the National Natural Science Foundation of China (Grant No. 61170132).
References
- Kennedy, J. and Eberhart, R.C. (1995) Particle Swarms Optimization. Proceedings of IEEE International Conference on Neural Networks, New York, November/December 1995, 1942-1948. http://dx.doi.org/10.1109/icnn.1995.488968
- Guo, W.Z., Chen, G.L. and Peng, S.J. (2011) Hybrid Particle Swarm Optimization Algorithm for VLSI Circuit Partitioning. Journal of Software, 22, 833-842. http://dx.doi.org/10.3724/SP.J.1001.2011.03980
- Qin, H., Wan, Y.F., Zhang, W.Y. and Song, Y.S. (2012) Aberration Correction of Single Aspheric Lens with Particle Swarm Algorithm. Chinese Journal of Computational Physics, 29, 426-432.
- Cai, X.J., Cui, Z.H. and Zeng, J.C. (2008) Dispersed Particle Swarm Optimization. Information Processing Letters, 105, 231-235. http://dx.doi.org/10.1016/j.ipl.2007.09.001
- Liu, Y., Qin, Z. and Shi, Z.W. (2007) Center Particle Swarm Optimization. Neurocomputing, 70, 672-679. http://dx.doi.org/10.1016/j.neucom.2006.10.002
- Zhang, Y.J. and Shao, S.F. (2011) Cloud Mutation Particle Swarm Optimization Algorithm Based on Cloud Model. Pattern Recognition and Artificial Intelligence, 24, 90-96.
- Fang, W., Sun, J., Xie, Z.P. and Xu, W.B. (2010) Convergence Analysis of Quantum-Behaved Particle Swarm Optimization Algorithm and Study on Its Control Parameter. Acta Physica Sinica, 59, 3686-3694.
- Sun, J., Wu, X.J., Fang, W., Lai, C.H. and Xu, W.B. (2012) Conver Genceanalysis and Improvements of Quantum- Behaved Particle Swarm Optimization. Information Sciences, 193, 81-103. http://dx.doi.org/10.1016/j.ins.2012.01.005
- Lu, T.C. and Yu, G.R. (2013) An Adaptive Population Multi-Objective Quantum Inspired Evolutionary Algorithm for Multi-Objective 0/1 Knapsack Problems. Information Sciences, 243, 39-56. http://dx.doi.org/10.1016/j.ins.2013.04.018
- Abdesslem, L. (2013) A Hybrid Quantum Inspired Harmony Search Algorithm for 0-1 Optimization Problems. Journal of Computational and Applied Mathematics, 253, 14-25. http://dx.doi.org/10.1016/j.cam.2013.04.004
- Gao, J.Q. (2011) A Hybrid Quantum Inspired Immune Algorithmfor Multi Objective Optimization. Applied Mathematics and Computation, 217, 4754-4770. http://dx.doi.org/10.1016/j.amc.2010.11.030
- Han, K.H. and Kim, J.H. (2002) Quantum-Inspired Evolutionary Algorithm for a Class of Combinatorial Optimization. IEEE Transactions on Evolutionary Computation, 6, 580-593. http://dx.doi.org/10.1109/TEVC.2002.804320
- Liu, X.D., Li, P.C. and Yang, S.Y. (2014) Design and Implementation of Quantum-Inspired Differential Evolution Algorithm. Journal of Signal Processing, 30, 623-633.
- Eberhart, R.C. and Shi, Y. (2000) Comparing Inertia Weights and Constriction Factors in Particle Swarm Optimization. Proceedings of IEEE Congress on Evolutionary Computation, New York, 84-88.
- Li, P.C., Wang, H.Y. and Song, K.P. (2012) Research on Improvement of Quantum Potential Well-Based Particle Swarm Optimization Algorithm. Acta Physica Sinica, 61, Article ID: 060302.
- Zhao, Y.X. and Liu, L.Q. (2013) Emerging Heuristic Optimization Algorithm. Science Press, Beijing.























