Alternating ZX Circuit Extraction for Hardware-Adaptive Compilation
Ludwig Schmid, Korbinian Staudacher, Robert Wille
TL;DR
The paper tackles the problem that hardware-aware quantum compilation cannot be optimal when circuit extraction and hardware routing are optimized in isolation. It introduces an alternating scheme that iteratively extracts graph-like ZX diagrams and evaluates multiple extraction paths against the target hardware routing, using feedback to steer subsequent extraction choices. The approach extends standard ZX extraction by incorporating hardware constraints and routing costs, and it demonstrates fidelity improvements on small-to-mid-scale circuits using a SWAP-based neutral-atom routing reference implementation, with open-source code for fast integration. The work presents a modular building block that can be combined with diverse extraction and routing tools across different hardware platforms, laying groundwork for further improvements in hardware-adaptive compilation.
Abstract
We present a novel quantum circuit extraction scheme that tightly integrates graph-like ZX diagrams with hardware-adaptive routing. The method utilizes the degrees of freedom during the conversion from a ZX diagram to a quantum circuit (extraction). It alternates between generating multiple extraction options and evaluating them based on hardware constraints, allowing the routing algorithm to inform and guide the extraction process. This feedback loop extends existing graph-like ZX extraction and supports modular integration of different extraction algorithms, routing strategies, and target hardware, making it a versatile building block during compilation. To perform numerical evaluations, a reference instance of the scheme is implemented with SWAP-based routing for neutral atom hardware and evaluated using various benchmark collections on small-to mid-scale circuits. The reference code is available as open-source, allowing fast integration of other extraction and/or routing tools to stimulate further research and foster improvements of the proposed scheme.
