Optimizing Variational Quantum Circuits Using Metaheuristic Strategies in Reinforcement Learning
Michael Kölle, Daniel Seidl, Maximilian Zorn, Philipp Altmann, Jonas Stein, Thomas Gabor
TL;DR
This work tackles the challenge of optimizing variational quantum circuits within Quantum Reinforcement Learning (QRL) by employing gradient-free metaheuristics to overcome flat landscapes and vanishing gradients. It systematically evaluates Simulated Annealing, Particle Swarm Optimization, Ant Colony Optimization, Tabu Search, Harmony Search, and Genetic Algorithms against a GA baseline in two RL tasks—$5××5$ MiniGrid and Cart Pole—using VQCs with MPS or amplitude encoding. The results show that PSO and SA consistently deliver strong performance, with PSO offering the fastest learning and highest stability across environments, while GA demonstrates strong potential given longer runtimes; ACO, HS, and TS generally underperform or show lower robustness. These findings highlight the practical potential of gradient-free metaheuristics for efficient QRL and underscore the importance of careful algorithm selection and adaptation to the problem setting, with future work pointed toward more complex tasks, adaptive hyperparameters, and hardware experiments.
Abstract
Quantum Reinforcement Learning (QRL) offers potential advantages over classical Reinforcement Learning, such as compact state space representation and faster convergence in certain scenarios. However, practical benefits require further validation. QRL faces challenges like flat solution landscapes, where traditional gradient-based methods are inefficient, necessitating the use of gradient-free algorithms. This work explores the integration of metaheuristic algorithms -- Particle Swarm Optimization, Ant Colony Optimization, Tabu Search, Genetic Algorithm, Simulated Annealing, and Harmony Search -- into QRL. These algorithms provide flexibility and efficiency in parameter optimization. Evaluations in $5\times5$ MiniGrid Reinforcement Learning environments show that, all algorithms yield near-optimal results, with Simulated Annealing and Particle Swarm Optimization performing best. In the Cart Pole environment, Simulated Annealing, Genetic Algorithms, and Particle Swarm Optimization achieve optimal results, while the others perform slightly better than random action selection. These findings demonstrate the potential of Particle Swarm Optimization and Simulated Annealing for efficient QRL learning, emphasizing the need for careful algorithm selection and adaptation.
