Adaptive quantum ansatz circuit design and optimization
摘要
To address the challenges of poor adaptability in variational quantum algorithm ansatz templates and high noise sensitivity in deep structures on NISQ devices, an adaptive ansatz construction and optimization method is proposed. This approach dynamically adjusts circuit structures and optimizes performance according to varying datasets and task requirements. A full binary tree is used to represent the predefined ansatz structure, and a simulated annealing algorithm guides the qubit merging path to facilitate construction. By integrating hierarchical ansatz training with multi-objective particle swarm optimization, the method simultaneously optimizes expressibility, entanglement capability, and circuit depth. This ensures circuit depth compression while balancing these performance metrics, enabling task-oriented ansatz design and circuit optimization. On three binary classification tasks from the Iris dataset, the method achieved average accuracies of 98.3%, 96.7%, and 96.7% under 8-qubit conditions, outperforming random qubit selection. For three-class classification tasks on MNIST and CIFAR-10, average accuracy improved by 5.5% and 1.4%, respectively, under 12-qubit conditions. Furthermore, multi-objective particle swarm optimization reduced circuit depth by approximately 18.5% under 12-qubit conditions.