Search papers, labs, and topics across Lattice.
The paper introduces a Quantum Circuit Cache that identifies semantically equivalent quantum circuits using ZX-calculus reduction and Weisfeiler-Lehman graph hashing to avoid redundant computation in hybrid quantum-classical workflows. This content-addressable system enables constant-time lookup in distributed caches (LMDB and Redis) across different backends and workflow stages. Experiments on MareNostrum 5 and a 35-qubit QPU demonstrate significant speedups (up to 7x on a single node, 1.6x at scale, and 11.2x on hardware) by eliminating up to 91.98% of redundant subcircuit simulations in wire cutting and reducing circuit evaluations by up to 27.6% in QAOA optimization.
Stop recomputing the same quantum circuits: a semantic cache slashes redundant simulations by up to 92% and speeds up real quantum hardware by 11x.
Hybrid quantum--classical workflows often execute large ensembles of circuits that differ syntactically but implement identical operations, leading to substantial redundant computation. To address this, we introduce the Quantum Circuit Cache, a content-addressable system that detects semantic equivalence and reuses previously computed results across executions, backends, and workflow stages. Our approach combines ZX-calculus reduction with isomorphism-invariant Weisfeiler--Leman graph hashing to generate deterministic circuit identifiers, enabling constant-time lookup in distributed caches supporting both lightweight LMDB and scalable Redis deployments. The system integrates transparently into hybrid HPC workflows and remains backend-agnostic across CPU, GPU, and QPU environments. We evaluate the system on MareNostrum 5 with two representative workloads: distributed wire cutting and Differential Evolution-based QAOA optimization. For wire cutting, caching eliminates up to 91.98% of redundant subcircuit simulations, yielding speedups up to 7.0 times on a single node and maintaining advantages at scale, with Redis-based caching achieving up to 1.6 times speedups under high parallelism. Validation on a 35-qubit superconducting QPU confirms these benefits, achieving an 11.2 times speedup on real hardware. In distributed QAOA optimization, equivalence-aware caching avoids up to 27.6% of circuit evaluations and consistently reduces execution cost without altering the optimization algorithm. In both cases, reuse grows with concurrency and circuit structure, highlighting redundancy as a major systems bottleneck and demonstrating the effectiveness of our Quantum Circuit Cache.