Challenges
Datasets
Workspaces
Papers
Discussions
Leaderboard
Log inSign up
Challenges
Datasets
Workspaces
Papers
Discussions
Leaderboard
Blog
Job Board
Q3AS

© 2026 Aqora Quantum S.A.S.

TermsPrivacyLegal Notice

arXiv:2509.15726 · IEEE International Conference on Quantum Computing and Engineering (QCE)

Training Variational Quantum Circuits Using Particle Swarm Optimization

Marco Mordacci, Michele Amoretti

Published Aug 30, 2025• 0 citations
arXivHTMLPDF

Abstract

In this work, the Particle Swarm Optimization (PSO) algorithm has been used to train various Variational Quantum Circuits (VQCs). This approach is motivated by the fact that commonly used gradient-based optimization methods can suffer from the barren plateaus problem. PSO is a stochastic optimization technique inspired by the collective behavior of a swarm of birds. The dimension of the swarm, the number of iterations of the algorithm, and the number of trainable parameters can be set. In this study, PSO has been used to train the entire structure of VQCs, allowing it to select which quantum gates to apply, the target qubits, and the rotation angle, in case a rotation is chosen. The algorithm is restricted to choosing from four types of gates: Rx, Ry, Rz, and cNOT. The proposed optimization approach has been tested on various datasets of the MedMNIST, which is a collection of biomedical image datasets designed for image classification tasks. Performance has been compared with the results achieved by classical stochastic gradient descent applied to a predefined VQC. The results show that the PSO can achieve comparable or even better classification accuracy across multiple datasets, despite the PSO using a lower number of quantum gates than the VQC used with gradient descent optimization.

DOI
10.1109/qce65121.2025.10438

Related papers

Bio-Inspired Algorithms for Adaptive Quantum Machine Learning

Er. Raghav Agarwal

Adaptive quantum machine learning (QML) represents an exciting frontier at the intersection of quantum computing and classical bio-inspired optimization. The constraints of noisy intermediate-scale quantum (NISQ) devices—limited qubit counts, significant decoherence, and measurement uncertainties—pose formidable challenges to training parameterized quantum circuits (PQCs) using traditional gradient-based methods. To overcome these hurdles, we propose a novel Adaptive PSO–QML framework that integrates a particle swarm optimization (PSO)–inspired algorithm with dynamic hyperparameter adjustment, enabling real-time tuning of PQC parameters based on performance feedback. Unlike static optimizers, our approach continuously adapts its inertia weight and cognitive/social coefficients to balance exploration and exploitation, responding to stagnation or rapid improvement in measured fitness. We evaluate this hybrid algorithm on two benchmark classification tasks: the classical Iris dataset encoded into a 2-qubit circuit and a quantum-encoded subset of the MNIST dataset on 4 qubits. Our experiments, conducted on the Qiskit Aer simulator under realistic noise models (depolarizing, amplitude damping, and mixed), demonstrate that Adaptive PSO–QML achieves an average accuracy improvement of 12% over fixed-parameter PSO and 15% over Adam-based gradient descent, with p-values below 0.01 across paired t-tests. Statistical analysis summarized in Table 1 confirms the significance of these gains. Detailed simulation research further reveals that the adaptive mechanism not only accelerates convergence by approximately 30%—reducing total circuit evaluations—but also exhibits robust performance across varying circuit depths (1–3 entangling layers) and noise intensities. Our findings suggest that bio-inspired adaptation is a powerful tool for mitigating barren plateaus and noise effects in NISQ-era QML, paving the way for scalable quantum advantage in near-term hardware.

World Journal of Future Technologies in Computer Science and Engineering•Jun 12, 2026•0 citations

Training Variational Quantum Circuits through Genetic Algorithms

Giovanni Acampora, Angela Chiatto, Autilia Vitiello

Recently, Variational Quantum Circuits (VQCs) are attracting considerable attention among quantum algorithms thanks to their robustness to the noise characterizing the current quantum devices. In detail, VQCs involve parameterized quan-tum circuits to be trained by means of a classical optimizer that makes queries to the quantum device. VQCs play a key role in several applications including quantum classifiers where the Hilbert space is used as feature space. Currently, the most used classical optimizer to learn V QCs is the gradient descent method. However, the so-called barren plateaus issue causes gradients of cost functions to become exceedingly small as the dimension of the classification problem is increased. As consequence, gradient descent method could be not efficient in real-world classification problems. This paper proposes to apply Genetic Algorithms (GAs) to train VQCs used as quantum classifiers. As shown in the experiments, the application of GAs results in accurate solutions obtained with a reduced number of queries to quantum devices.

IEEE Congress on Evolutionary Computation (CEC)•Jul 18, 2022•17 citations

Variational algorithm of quantum neural network based on quantum particle swarm

Yumin Dong, Jianshe Xie, Wanbin Hu +2 more

Most models of quantum neural networks are optimized based on gradient descent, and like classical neural networks, gradient descent suffers from the barren plateau phenomenon, which reduces the effectiveness of optimization. Therefore, this paper establishes a new QNN model, the optimization process adopts efficient quantum particle swarm optimization, and tentatively adds a quantum activation circuit to our QNN model. Our model will inherit the superposition property of quantum and the random search property of quantum particle swarm. Simulation experiments on some classification data show that the model proposed in this paper has higher classification performance than the gradient descent-based QNN.

Journal of Applied Physics•Sep 12, 2022•3 citations

Enhancing the Trainability of Variational Quantum Circuits with Regularization Strategies

Jun Zhuang, Jack Cunningham, Chaowen Guan

In the era of noisy intermediate-scale quantum (NISQ), variational quantum circuits (VQCs) have been widely applied in various domains, demonstrating the potential advantages of quantum circuits over classical models. Similar to classic models, VQCs can be optimized by various gradient-based methods. However, the optimization may get stuck in barren plateaus initially or trapped in saddle points during training. These gradient-related issues can severely impact the trainability of VQCs. In this work, we propose a strategy that regularizes model parameters with prior knowledge of the training data and Gaussian noise diffusion. We conduct ablation studies to verify the effectiveness of our strategy across four public datasets and demonstrate that our method can improve the trainability of VQCs against the above-mentioned gradient issues.

arXiv:2405.01606•IEEE International Conference on Quantum Computing and Engineering (QCE)•Aug 30, 2025•1 citation

Particle swarm optimization for a variational quantum eigensolver

Hao Mei, Jianyu Zhao, Qing-Song Li +5 more

In the field of finding ground and excited states, where quantum computation holds significant promise, using a variational quantum eigensolver (VQE) is a typical approach. However, the success of this approach is vulnerable to two factors: classical optimization for the ansätz parameters and noise from quantum devices. To address these challenges, we adopted particle swarm optimization (PSO) based on swarm intelligence for VQE and presented its performance. Furthermore, a modified PSO, gradient-based adaptive quantum-behaved particle swarm optimization (GAQPSO), is proposed. This algorithm adaptively upgrades parameters based on gradients or shared information within the swarm, enhancing optimization capability and noise resistance. We tested this algorithm using VQE simulations on several molecular systems with different geometries and found that, when using random initial values, GAQPSO achieves accurate results even in the presence of noise, whereas traditional PSO, QPSO, COBYLA, and gradient-based algorithms (GD and L-BFGS-B) fail. The GAQPSO algorithm presents a novel approach to optimizing VQE, demonstrating superior performance in parameter optimization and noise resilience compared to traditional optimization algorithms. This effectively advances the process of achieving a quantum advantage for quantum computing in quantum chemistry problems.

Physical Chemistry Chemical Physics•Jan 1, 2024•3 citations

Particle Swarm Optimization for Quantum Circuit Synthesis: Performance Analysis and Insights

Mirza Hizriyan Nubli Hidayat, Tan Chye Cheah

This paper discusses how particle swarm optimization (PSO) can be used to generate quantum circuits to solve an instance of the MaxOne problem. It then analyzes previous studies on evolutionary algorithms for circuit synthesis. With a brief introduction to PSO, including its parameters and algorithm flow, the paper focuses on a method of quantum circuit encoding and representation as PSO parameters. The fitness evaluation used in this paper is the MaxOne problem. The paper presents experimental results that compare different learning abilities and inertia weight variations in the PSO algorithm. A comparison is further made between the PSO algorithm and a genetic algorithm for quantum circuit synthesis. The results suggest PSO converges more quickly to the optimal solution.

arXiv:2507.02898•Jun 22, 2025•0 citations
In this work, the Particle Swarm Optimization (PSO) algorithm has been used to train various Variational Quantum Circuits (VQCs). This approach is motivated by the fact that commonly used gradient-based optimization methods can suffer from the barren plateaus problem. PSO is a stochastic optimization technique inspired by the collective behavior of a swarm of birds. The dimension of the swarm, the number of iterations of the algorithm, and the number of trainable parameters can be set. In this study, PSO has been used to train the entire structure of VQCs, allowing it to select which quantum gates to apply, the target qubits, and the rotation angle, in case a rotation is chosen. The algorithm is restricted to choosing from four types of gates: Rx, Ry, Rz, and cNOT. The proposed optimization approach has been tested on various datasets of the MedMNIST, which is a collection of biomedical image datasets designed for image classification tasks. Performance has been compared with the results achieved by classical stochastic gradient descent applied to a predefined VQC. The results show that the PSO can achieve comparable or even better classification accuracy across multiple datasets, despite the PSO using a lower number of quantum gates than the VQC used with gradient descent optimization.
Adaptive quantum machine learning (QML) represents an exciting frontier at the intersection of quantum computing and classical bio-inspired optimization. The constraints of noisy intermediate-scale quantum (NISQ) devices—limited qubit counts, significant decoherence, and measurement uncertainties—pose formidable challenges to training parameterized quantum circuits (PQCs) using traditional gradient-based methods. To overcome these hurdles, we propose a novel Adaptive PSO–QML framework that integrates a particle swarm optimization (PSO)–inspired algorithm with dynamic hyperparameter adjustment, enabling real-time tuning of PQC parameters based on performance feedback. Unlike static optimizers, our approach continuously adapts its inertia weight and cognitive/social coefficients to balance exploration and exploitation, responding to stagnation or rapid improvement in measured fitness. We evaluate this hybrid algorithm on two benchmark classification tasks: the classical Iris dataset encoded into a 2-qubit circuit and a quantum-encoded subset of the MNIST dataset on 4 qubits. Our experiments, conducted on the Qiskit Aer simulator under realistic noise models (depolarizing, amplitude damping, and mixed), demonstrate that Adaptive PSO–QML achieves an average accuracy improvement of 12% over fixed-parameter PSO and 15% over Adam-based gradient descent, with p-values below 0.01 across paired t-tests. Statistical analysis summarized in Table 1 confirms the significance of these gains. Detailed simulation research further reveals that the adaptive mechanism not only accelerates convergence by approximately 30%—reducing total circuit evaluations—but also exhibits robust performance across varying circuit depths (1–3 entangling layers) and noise intensities. Our findings suggest that bio-inspired adaptation is a powerful tool for mitigating barren plateaus and noise effects in NISQ-era QML, paving the way for scalable quantum advantage in near-term hardware.
Recently, Variational Quantum Circuits (VQCs) are attracting considerable attention among quantum algorithms thanks to their robustness to the noise characterizing the current quantum devices. In detail, VQCs involve parameterized quan-tum circuits to be trained by means of a classical optimizer that makes queries to the quantum device. VQCs play a key role in several applications including quantum classifiers where the Hilbert space is used as feature space. Currently, the most used classical optimizer to learn V QCs is the gradient descent method. However, the so-called barren plateaus issue causes gradients of cost functions to become exceedingly small as the dimension of the classification problem is increased. As consequence, gradient descent method could be not efficient in real-world classification problems. This paper proposes to apply Genetic Algorithms (GAs) to train VQCs used as quantum classifiers. As shown in the experiments, the application of GAs results in accurate solutions obtained with a reduced number of queries to quantum devices.
Most models of quantum neural networks are optimized based on gradient descent, and like classical neural networks, gradient descent suffers from the barren plateau phenomenon, which reduces the effectiveness of optimization. Therefore, this paper establishes a new QNN model, the optimization process adopts efficient quantum particle swarm optimization, and tentatively adds a quantum activation circuit to our QNN model. Our model will inherit the superposition property of quantum and the random search property of quantum particle swarm. Simulation experiments on some classification data show that the model proposed in this paper has higher classification performance than the gradient descent-based QNN.
In the era of noisy intermediate-scale quantum (NISQ), variational quantum circuits (VQCs) have been widely applied in various domains, demonstrating the potential advantages of quantum circuits over classical models. Similar to classic models, VQCs can be optimized by various gradient-based methods. However, the optimization may get stuck in barren plateaus initially or trapped in saddle points during training. These gradient-related issues can severely impact the trainability of VQCs. In this work, we propose a strategy that regularizes model parameters with prior knowledge of the training data and Gaussian noise diffusion. We conduct ablation studies to verify the effectiveness of our strategy across four public datasets and demonstrate that our method can improve the trainability of VQCs against the above-mentioned gradient issues.
In the field of finding ground and excited states, where quantum computation holds significant promise, using a variational quantum eigensolver (VQE) is a typical approach. However, the success of this approach is vulnerable to two factors: classical optimization for the ansätz parameters and noise from quantum devices. To address these challenges, we adopted particle swarm optimization (PSO) based on swarm intelligence for VQE and presented its performance. Furthermore, a modified PSO, gradient-based adaptive quantum-behaved particle swarm optimization (GAQPSO), is proposed. This algorithm adaptively upgrades parameters based on gradients or shared information within the swarm, enhancing optimization capability and noise resistance. We tested this algorithm using VQE simulations on several molecular systems with different geometries and found that, when using random initial values, GAQPSO achieves accurate results even in the presence of noise, whereas traditional PSO, QPSO, COBYLA, and gradient-based algorithms (GD and L-BFGS-B) fail. The GAQPSO algorithm presents a novel approach to optimizing VQE, demonstrating superior performance in parameter optimization and noise resilience compared to traditional optimization algorithms. This effectively advances the process of achieving a quantum advantage for quantum computing in quantum chemistry problems.
This paper discusses how particle swarm optimization (PSO) can be used to generate quantum circuits to solve an instance of the MaxOne problem. It then analyzes previous studies on evolutionary algorithms for circuit synthesis. With a brief introduction to PSO, including its parameters and algorithm flow, the paper focuses on a method of quantum circuit encoding and representation as PSO parameters. The fitness evaluation used in this paper is the MaxOne problem. The paper presents experimental results that compare different learning abilities and inertia weight variations in the PSO algorithm. A comparison is further made between the PSO algorithm and a genetic algorithm for quantum circuit synthesis. The results suggest PSO converges more quickly to the optimal solution.