SWAP-less Implementation of Quantum Algorithms
Berend Klaver, Stefan Rombouts, Michael Fellner, Anette Messinger, Kilian Ender, Katharina Ludwig, Wolfgang Lechner
TL;DR
This work introduces a parity-label tracking formalism that allows implementing quantum algorithms on devices with limited connectivity without qubit overhead, SWAPs, or shuttling. By leveraging an extended LHZ parity code and both spatial and temporal encodings, the authors derive resource-optimal circuits for the QFT and QAOA on linear architectures, achieving a total two-qubit gate count of $n^2-1$ and a depth of $5n-3$ for the QFT, and substantial depth reductions for QAOA with linear chains and ladder layouts. The approach yields SWAP-free implementations that outperform prior best-known linear-chain methods and offer a clear path to balancing qubit count against circuit depth via ladder configurations. Overall, parity-based compilation provides a scalable, hardware-aware strategy for near-term quantum computing on NISQ devices, with potential extensions to higher-order spin models and broader Clifford-driven circuits.
Abstract
We present a formalism based on tracking the flow of parity quantum information to implement algorithms on devices with limited connectivity without qubit overhead, SWAP operations or shuttling. Instead, we leverage the fact that entangling gates not only manipulate quantum states but can also be exploited to transport quantum information. We demonstrate the effectiveness of this method by applying it to the quantum Fourier transform (QFT) and the Quantum Approximate Optimization Algorithm (QAOA) with $n$ qubits. This improves upon all state-of-the-art implementations of the QFT on a linear nearest-neighbor architecture, resulting in a total circuit depth of ${5n-3}$ and requiring ${n^2-1}$ CNOT gates. For the QAOA, our method outperforms SWAP networks, which are currently the most efficient implementation of the QAOA on a linear architecture. We further demonstrate the potential to balance qubit count against circuit depth by implementing the QAOA on twice the number of qubits using bi-linear connectivity, which approximately halves the circuit depth.
