Skip to main content
. 2021 Dec 28;24(1):58. doi: 10.3390/e24010058
Algorithm 1 Multi-objective Quantum-inspired PSO
1: Set input data, A(t) := Ø; t := 0
2: Initialize quantum register Q(t) with M qubits by the set of Hadamard gates
3: while (not termination condition) do
4:   create P(t) by observing the state of Q(t)
5:   determine new positions and velocities of particles followed by create B(t)
6:   find Fonseca-Fleming ranks for an extended archive C(t) = A(t)∪B(t)∪P(t)
7:   calculate crowding distances, fitness and then sort particles in C(t)
8:   form A(t) of Pareto-optimal solutions from the sorted set C(t)
9:   a tournament selection of an angle rotation matrix Mθ based on rating R(Mθ)
10:   mutate the selected matrix Mθ with the rate pm
11:   modify Q(t) using the rotation gates
12:   t := t + 1
13: end while