- Open Access
SWAP-less implementation of quantum algorithms
Phys. Rev. A 113, 012443 – Published 29 January, 2026
DOI: https://doi.org/10.1103/2wzk-fnhx
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 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 and requiring 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 bilinear connectivity, which approximately halves the circuit depth.
Physics Subject Headings (PhySH)
See Also
Parity flow formalism: Tracking quantum information throughout computation
Article Text
References (51)
- W. K. Wootters and W. H. Zurek, A single quantum cannot be cloned, Nature (London) 299, 802 (1982).
- L. Henriet, L. Beguin, A. Signoles, T. Lahaye, A. Browaeys, G.-O. Reymond, and C. Jurczak, Quantum computing with neutral atoms, Quantum 4, 327 (2020).
- M. P. Harrigan, K. J. Sung, M. Neeley, K. J. Satzinger, F. Arute, K. Arya, J. Atalaya, J. C. Bardin, R. Barends, S. Boixo et al., Quantum approximate optimization of non-planar graph problems on a planar superconducting processor, Nat. Phys. 17, 332 (2021).
- B. Cheng, X.-H. Deng, X. Gu, Y. He, G. Hu, P. Huang, J. Li, B.-C. Lin, D. Lu, Y. Lu et al., Noisy intermediate-scale quantum computers, Front. Phys. 18, 21308 (2023).
- Y. Kim, A. Eddins, S. Anand, K. X. Wei, E. van den Berg, S. Rosenblatt, H. Nayfeh, Y. Wu, M. Zaletel et al., Evidence for the utility of quantum computing before fault tolerance, Nature (London) 618, 500 (2023).
- D. Bluvstein, S. J. Evered, A. A. Geim, S. H. Li, H. Zhou, T. Manovitz, S. Ebadi, M. Cain, M. Kalinowski, D. Hangleiter, J. P. Bonilla Ataides et al., Logical quantum processor based on reconfigurable atom arrays, Nature (London) 626, 58 (2023).
- B. Park and D. Ahn, Reducing cnot count in quantum Fourier transform for the linear nearest-neighbor architecture, Sci. Rep. 13, 8638 (2023).
- A. Holmes, S. Johri, G. G. Guerreschi, J. S. Clarke, and A. Y. Matsuura, Impact of qubit connectivity on quantum algorithm performance, Quantum Sci. Technol. 5, 025009 (2020).
- G. E. Crooks, Performance of the quantum approximate optimization algorithm on the maximum cut problem, arXiv:1811.08419.
- M. Dupont, B. Sundar, B. Evert, D. E. B. Neira, Z. Peng, S. Jeffrey, and M. J. Hodson, Benchmarking quantum optimization for the maximum-cut problem on a superconducting quantum computer, Phys. Rev. Appl. 23, 014045 (2025).
- D. Kielpinski, C. Monroe, and D. J. Wineland, Architecture for a large-scale ion-trap quantum computer, Nature (London) 417, 709 (2002).
- B. O'Gorman, W. J. Huggins, E. G. Rieffel, and K. B. Whaley, Generalized swap networks for near-term quantum computing, arXiv:1905.05118.
- J. Weidenfeller, L. C. Valor, J. Gacon, C. Tornow, L. Bello, S. Woerner, and D. J. Egger, Scaling of the quantum approximate optimization algorithm on superconducting qubit based hardware, Quantum 6, 870 (2022).
- B. Lekitsch, S. Weidt, A. G. Fowler, K. Mølmer, S. J. Devitt, C. Wunderlich, and W. K. Hensinger, Blueprint for a microwave trapped ion quantum computer, Sci. Adv. 3, e1601540 (2017).
- K. R. Brown, J. Kim, and C. Monroe, Co-designing a scalable quantum computer with trapped atomic ions, npj Quantum Inf. 2, 16034 (2016).
- S. A. Moses, C. H. Baldwin, M. S. Allman, R. Ancona, L. Ascarrunz, C. Barnes, J. Bartolotta, B. Bjork, P. Blanchard et al., A race-track trapped-ion quantum processor, Phys. Rev. X 13, 041052 (2023).
- J. Preskill, Quantum computing in the NISQ era and beyond, Quantum 2, 79 (2018).
- A. Botea, A. Kishimoto, and R. Marinescu, On the complexity of quantum circuit compilation, in Proceedings of the International Symposium on Combinatorial Search (AAAI, Washington, 2018), Vol. 9, pp. 138–142.
- M. Saeedi, R. Wille, and R. Drechsler, Synthesis of quantum circuits for linear nearest neighbor architectures, Quantum Inf. Process. 10, 355 (2011).
- Qiskit contributors, Qiskit: An open-source framework for quantum computing, 2023.
- S. Sivarajah, S. Dilkes, A. Cowtan, W. Simmons, A. Edgington, and R. Duncan, : A retargetable compiler for NISQ devices, Quantum Sci. Technol. 6, 014003 (2021).
- S. Martiel and T. G. d. Brugière, Architecture aware compilation of quantum circuits via lazy synthesis, Quantum 6, 729 (2022).
- W. Lechner, P. Hauke, and P. Zoller, A quantum annealing architecture with all-to-all connectivity from local interactions, Sci. Adv. 1, e1500838 (2015).
- M. Fellner, A. Messinger, K. Ender, and W. Lechner, Universal parity quantum computing, Phys. Rev. Lett. 129, 180503 (2022).
- A. Messinger, M. Fellner, and W. Lechner, Constant depth code deformations in the parity architecture, in 2023 IEEE International Conference on Quantum Computing and Engineering (QCE) (IEEE, Piscataway, NJ, 2023).
- M. A. Nielsen and I. L. Chuang, Quantum Computation and Quantum Information: 10th Anniversary Edition (Cambridge University Press, Cambridge, 2011).
- E. Farhi, J. Goldstone, and S. Gutmann, A quantum approximate optimization algorithm, arXiv:1411.4028.
- K. Ender, R. ter Hoeven, B. E. Niehoff, M. Drieb-Schön, and W. Lechner, Parity quantum optimization: Compiler, Quantum 7, 950 (2023).
- R. ter Hoeven, A. Messinger, and W. Lechner, Flexible constraint compilation in the parity architecture, Phys. Rev. A 108, 042606 (2023).
- Note that the base qubits were termed data qubits in previous literature about the parity architecture, e.g., Ref. [24].
- R. Wille, L. Burgholzer, and A. Zulehner, Mapping quantum circuits to IBM QX Architectures Using the Minimal Number of SWAP and H Operations, in Proceedings of the 56th Annual Design Automation Conference 2019, DAC '19 (ACM, New York, 2019).
- A. Kissinger and A. M. van de Griend, cnot circuit extraction for topologically-constrained quantum memories, Quantum Inf. Comput. 20, 581 (2020).
- B. Nash, V. Gheorghiu, and M. Mosca, Quantum circuit optimizations for NISQ architectures, Quantum Sci. Technol. 5, 025010 (2020).
- A. Cowtan, S. Dilkes, R. Duncan, W. Simmons, and S. Sivarajah, Phase gadget synthesis for shallow circuits, Electron. Proc. Theor. Comput. Phys. 318, 213 (2020).
- B. Klaver, K. Ludwig, A. Messinger, S. M. A. Rombouts, M. Fellner, K. Ender, and W. Lechner, companion paper, Parity flow formalism: Tracking quantum information throughout computation, Phys. Rev. Res. 8, 013095 (2026).
- A. G. Fowler, S. J. Devitt, and L. C. L. Hollenberg, Implementation of shor's algorithm on a linear nearest neighbour qubit array, Quantum Info. Comput. 4, 237 (2004).
- Y. Takahashi, N. Kunihiro, and K. Ohta, The quantum fourier transform on a linear nearest neighbor architecture, Quantum Info. Comput. 7, 383 (2007).
- D. Maslov, Linear depth stabilizer and quantum fourier transformation circuits with no auxiliary qubits in finite-neighbor quantum architectures, Phys. Rev. A 76, 052310 (2007).
- A. Bhattacharjee, C. Bandyopadhyay, R. Wille, R. Drechsler, and H. Rahaman, Improved look-ahead approaches for nearest neighbor synthesis of 1D quantum circuits, in 2019 32nd International Conference on VLSI Design and 2019 18th International Conference on Embedded Systems (VLSID) (IEEE, Piscataway, NJ, 2019), pp. 203–208.
- M. Fellner, A. Messinger, K. Ender, and W. Lechner, Applications of universal parity quantum computation, Phys. Rev. A 106, 042442 (2022).
- S. Hadfield, Z. Wang, B. O'Gorman, E. G. Rieffel, D. Venturelli, and R. Biswas, From the quantum approximate optimization algorithm to a quantum alternating operator ansatz, Algorithms 12, 34 (2019).
- K. Blekos, D. Brand, A. Ceschini, C.-H. Chou, R.-H. Li, K. Pandya, and A. Summer, A review on quantum approximate optimization algorithm and its variants, Phys. Rep. 1068, 1 (2024).
- I. D. Kivlichan, J. McClean, N. Wiebe, C. Gidney, A. Aspuru-Guzik, G. K.-L. Chan, and R. Babbush, Quantum simulation of electronic structure with linear depth and connectivity, Phys. Rev. Lett. 120, 110501 (2018).
- R. Babbush, N. Wiebe, J. McClean, J. McClain, H. Neven, and G. K.-L. Chan, Low-depth quantum simulation of materials, Phys. Rev. X 8, 011044 (2018).
- A. Hashim, R. Rines, V. Omole, R. K. Naik, J. M. Kreikebaum, D. I. Santiago, F. T. Chong, I. Siddiqi, and P. Gokhale, Optimized swap networks with equivalent circuit averaging for qaoa, Phys. Rev. Res. 4, 033028 (2022).
- Y.-J. Wang, S. Zhang, T.-P. Sun, Z.-A. Zhao, X.-F. Xu, X.-N. Zhuang, H.-Y. Liu, C. Xue, P. Duan, Y.-C. Wu, Z.-Y. Chen, and G.-P. Guo, Hardware-efficient quantum random access memory design with a native gate set on superconducting platforms, Adv Quantum Technol. 8, 2400519 (2025).
- For an even number of qubits, the last spanning line only needs to differ from the previous one in half of the qubits and its creation only requires cnot gates in two time steps. Therefore, the final numbers are independent of the parity of .
- F. Dreier, C. Fleckenstein, G. Aigner, M. Fellner, R. Stahn, M. Lanthaler, and W. Lechner, Connectivity-aware synthesis of quantum algorithms, arXiv:2501.14020.
- I. D. Smith, H. P. Nautrup, and H. J. Briegel, Parity quantum computing as -plane measurement-based quantum computing, Phys. Rev. Lett. 132, 220602 (2024).
- D. C. McKay, S. Filipp, A. Mezzacapo, E. Magesan, J. M. Chow, and J. M. Gambetta, Universal gate for fixed-frequency qubits via a tunable bus, Phys. Rev. Appl. 6, 064007 (2016).
- S. Aaronson and D. Gottesman, Improved simulation of stabilizer circuits, Phys. Rev. A 70, 052328 (2004).