Skip to content

Making Repeated Variational Circuit Optimization Efficient on GPUs

Runzhe Zhang, Jiaqi Liu, Anbang Wu, Pu Pang, Shixuan Sun, Yu Feng, Quan Chen, Jingwen Leng, Minyi Guo

cs.DC

Abstract

Repeated numerical optimization is a defining workload for classical simulation of parameterized quantum circuits. Although successive training steps change gate parameters, they usually preserve circuit connectivity and reuse a small set of gate-layer patterns. We use this regularity to accelerate gradient evaluation on GPUs. Our framework combines execution primitives for common circuit layers with adjoint differentiation, coordinating state evolution and derivative computation to reduce launch overhead, intermediate storage, and state-vector traffic. Because effective schedules depend on circuit size, gate structure, and device resources, our framework retains several execution choices instead of committing to a single schedule. Structural and hardware constraints narrow these choices, after which measurements on representative layers guide plan selection. The selected plans are reused while circuit structure remains fixed, spreading the selection cost over repeated training iterations. This approach targets the computation required by optimization rather than forward simulation alone, while retaining the numerical semantics of state-vector differentiation. Experiments across multiple circuit families and GPU platforms compare our framework with the native GPU adjoint implementation in PennyLane Lightning. The results demonstrate substantially lower gradient evaluation times over the evaluated workloads, together with the numerical accuracy checks reported in the evaluation.

Create a lesson

Metadata

Comments
15 pages