Abstract
Quantum Machine Learning (QML) is a recent and rapidly evolving field where the theoretical framework and logic of quantum mechanics are employed to solve machine learning tasks. Various techniques with different levels of quantum-classical hybridization have been proposed. Here we focus on variational quantum circuits (VQC), which emerged as the most promising candidates for the quantum counterpart of neural networks in the noisy intermediate-scale quantum (NISQ) era. Although showing promising results, VQCs can be hard to train because of different issues, e.g., barren plateau, periodicity of the weights, or choice of architecture. This paper focuses on this last problem for finding optimal architectures of variational quantum circuits for various tasks. To address it, we propose a gradient-free algorithm inspired by natural evolution to optimize both the weights and the architecture of the VQC. In particular, we present a version of the well-known neuroevolution of augmenting topologies (NEAT) algorithm and adapt it to the case of variational quantum circuits. We refer to the proposed architecture search algorithm for VQC as QNEAT. We test the algorithm with different benchmark problems of classical fields of machine learning i.e. reinforcement learning and combinatorial optimization.
Introduction
Variational Quantum Circuits (VQCs) serve as the primary architectural paradigm for machine learning on Noisy Intermediate-Scale Quantum (NISQ) devices. Despite their potential, developing effective VQCs involves overcoming significant challenges. First, Ansatz Selection remains largely heuristic; there is no systematic way to determine the optimal arrangement of gates for a given task. Second, gradient-based training often suffers from Barren Plateaus, where the optimization landscape becomes exponentially flat, stalling convergence. Finally, Hardware Constraints necessitate "lean" architectures to minimize decoherence and gate errors.
To address these issues, we introduce QNEAT (Quantum NeuroEvolution of Augmenting Topologies), a gradient-free framework that co-evolves both the structure and parameters of quantum circuits.
Methods: The QNEAT Framework
QNEAT adapts the classical NEAT algorithm to the quantum domain. It treats quantum circuits as individuals in a population that undergoes selection, crossover, and mutation.
Genome and Innovation Tracking
The fundamental unit of QNEAT is the Genome, which encodes the circuit's topology. Each gene represents a gate (Rotation or CNOT), specifying its type, the qubit (wire) it acts upon, and its position in the circuit layers. To handle the "competing conventions" problem—where different genomes represent functionally identical circuits—QNEAT utilizes innovation numbers. These numbers track the historical origin of each gate, allowing for meaningful alignment during crossover.
Constrained Architecture and Speciation
To maintain search efficiency and NISQ compatibility, the algorithm often employs a constrained architecture. This approach restricts gate placement to structured patterns, such as "strongly entangling layers," ensuring that entangling CNOT gates follow a regular connectivity while rotation gates are evolved where most beneficial.
Furthermore, QNEAT employs speciation, grouping similar architectures into niches. This protects novel structural innovations from being discarded prematurely due to poor initial weight initialization, allowing them time to optimize within their own species.
Experiments and Results
We evaluated QNEAT on reinforcement learning (RL) and combinatorial optimization tasks.
Reinforcement Learning
In OpenAI Gym benchmarks like CartPole and FrozenLake, QNEAT agents consistently achieved high performance. For CartPole, evolved agents reached the maximum score of 500, demonstrating that evolutionary strategies can effectively train quantum controllers without gradient information.
Combinatorial Optimization (MaxCut)
QNEAT was tested on MaxCut problems across various graph topologies (Random, Ladder, Barbell, Caveman). The algorithm achieved accuracies comparable to a 4-layer QAOA but with a significantly lower gate count. By utilizing Multi-Objective Optimization (NSGA-II), QNEAT can generate a Pareto front of solutions, allowing users to balance accuracy against circuit depth—a critical trade-off for noisy hardware.
Conclusion
QNEAT provides a robust, gradient-free alternative for designing VQCs, effectively bypassing barren plateaus and automating ansatz selection. By evolving "lean" circuits that maintain high performance with fewer gates, QNEAT moves us closer to practical quantum advantage on NISQ devices. Future work will focus on scaling the algorithm to larger qubit counts and validating these evolved architectures on physical quantum processors.
Summary updated