- Open Access
Optimizing QAOA circuit transpilation with parity twine and SWAP network encodings
Phys. Rev. Applied 26, 024012 – Published 7 August, 2026
DOI: https://doi.org/10.1103/sjqb-b1h4
Abstract
Mapping quantum approximate optimization algorithm (QAOA) circuits with nontrivial connectivity in fixed-layout quantum platforms, such as superconducting quantum processing units (QPUs), requires a transpilation process to match the circuit to the hardware layout. This step is critical for reducing error rates on noisy QPUs. Two approaches that improve the resources required for such transpilation are the SWAP network and parity twine chains (PTC), which reduce the two-qubit gate count and circuit depth needed to represent fully connected circuits. In this work, we introduce a simulated annealing-based method that further reduces the encoding overhead of PTC and SWAP networks for QAOA circuits with nonfully connected two-qubit interactions. The method is benchmarked against various transpilers, including the Qiskit SAT mapper, demonstrating that beyond specific connectivity thresholds it achieves significant reductions in both two-qubit gate count and circuit depth. For example, for a 120-qubit QAOA instance with 25% connectivity, our method achieves an 87% reduction in depth and a 29% reduction in two-qubit gates compared with the Qiskit transpiler. Finally, the practical impact of PTC encoding is validated by benchmarking QAOA on the ibm_fez and ibm_kingston devices, showing improved performance for systems of up to 20 qubits.
Physics Subject Headings (PhySH)
Article Text
References (36)
- Y. Ge, W. Wenjie, C. Yuheng, P. Kaisen, L. Xudong, Z. Zixiang, W. Yuhan, W. Ruocheng, and Y. Junchi, Quantum circuit synthesis and compilation optimization: Overview and prospects, arXiv:2407.00736.
- J. Kusyk, S. M. Saeed, and M. U. Uyar, Survey on quantum circuit compilation for noisy intermediate-scale quantum computers: Artificial intelligence to heuristics, IEEE Trans. Quantum Eng. 2, 1 (2021).
- Y. Ji, S. Brandhofer, and I. Polian, Calibration-aware transpilation for variational quantum optimization, in 2022 IEEE International Conference on Quantum Computing and Engineering (QCE) (IEEE Computer Society, Los Alamitos, CA, USA, 2022), pp. 204–214.
- Q. Fu, J. Wu, and X. Wang, Decoherence in exchange-coupled quantum spin-qubit systems: Impact of multiqubit interactions and geometric connectivity, Phys. Rev. A 109, 052628 (2024).
- R. E. Throckmorton and S. Das Sarma, Crosstalk- and charge-noise-induced multiqubit decoherence in exchange-coupled quantum dot spin qubit arrays, Phys. Rev. B 105, 245413 (2022).
- M. Y. Siraichi, V. F. d. Santos, C. Collange, and F. M. Q. Pereira, Qubit allocation, in Proceedings of the 2018 International Symposium on Code Generation and Optimization, CGO ’18 (Association for Computing Machinery, New York, NY, USA, 2018), pp. 113–125.
- V. R. Pascuzzi, A. He, C. W. Bauer, W. A. de Jong, and B. Nachman, Computationally efficient zero-noise extrapolation for quantum-gate-error mitigation, Phys. Rev. A 105, 042406 (2022).
- G. E. Crooks, Performance of the quantum approximate optimization algorithm on the maximum cut problem, arXiv:1811.08419.
- 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).
- B. O’Gorman, W. J. Huggins, E. G. Rieffel, and K. B. Whaley, Generalized swap networks for near-term quantum computing, arXiv:1905.05118.
- T. Hagge, Optimal fermionic swap networks for hubbard models, arXiv:2001.08324.
- 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).
- Y. Ji, X. Chen, I. Polian, and Y. Ban, Algorithm-oriented qubit mapping for variational quantum algorithms, Phys. Rev. Appl. 23, 034022 (2025).
- 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).
- E. Farhi, J. Goldstone, and S. Gutmann, A quantum approximate optimization algorithm, arXiv:1411.4028.
- F. Dreier, C. Fleckenstein, G. Aigner, M. Fellner, R. Stahn, M. Lanthaler, and W. Lechner, Connectivity-aware synthesis of quantum algorithms, arXiv:2501.14020.
- B. Klaver, S. Rombouts, M. Fellner, A. Messinger, K. Ender, K. Ludwig, and W. Lechner, Swap-less implementation of quantum algorithms, Phys. Rev. A 113, 012443 (2024)..
- L. Vinet and A. Zhedanov, A “missing” family of classical orthogonal polynomials, J. Phys. A: Math. Theor. 44, 085201 (2011).
- D. Coppersmith, An approximate fourier transform useful in quantum factoring, arXiv:quant-ph/0201067.
- A. Matsuo, S. Yamashita, and D. J. Egger, A sat approach to the initial mapping problem in swap gate insertion for commuting gates, IEICE Trans. Fundam. Electron. Commun. Comput. Sci. E106.A, 1424 (2023).
- Qiskit Community, QAOA best practices for quantum optimization (2025) https://github.com/qiskit-community/qopt-best-practices. accessed: 2026-04-17.
- S. Kirkpatrick, C. D. Gelatt, and M. P. Vecchi, Optimization by simulated annealing, Science 220, 671 (1983) 10.1126/science.220.4598.671.
- J. A. Montanez-Barrera and K. Michielsen, Towards a universal QAOA protocol: Evidence of a scaling advantage in solving some combinatorial optimization problems (2024) arXiv:2405.09169.
- J. A. Montanez-Barrera, K. Michielsen, and D. E. B. Neira, Evaluating the performance of quantum process units at large width and depth, arXiv:2502.06471.
- 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. Ji, K. F. Koenig, and I. Polian, Improving the performance of digitized counterdiabatic quantum optimization via algorithm-oriented qubit mapping, Phys. Rev. A 110, 032421 (2024).
- Y. Ji and I. Polian, Synergistic dynamical decoupling and circuit design for enhanced algorithm performance on near-term quantum devices, Entropy 26, 586 (2024).
- Y. Ji, K. F. Koenig, and I. Polian, Optimizing quantum algorithms on bipotent architectures, Phys. Rev. A 108, 022610 (2023).
- IBM Quantum, Qiskit: An open-source quantum SDK (2025). accessed: 2025-03-19.
- Qiskit Development Team, Qiskit transpiler API documentation (2025). accessed: 2025-05-13.
- IBM Quantum, AI-powered transpiler passes (2025). accessed: 2025-03-19.
- Quantinuum, Tket documentation, https://docs.quantinuum.com/tket/ accessed: 2025-03-19.
- P. D. Nation and M. Treinish, Suppressing quantum circuit errors due to system variability, PRX Quantum 4, 010327 (2023).
- P. D. Nation, A. A. Saki, S. Brandhofer, L. Bello, S. Garion, M. Treinish, and A. Javadi-Abhari, Benchmarking the performance of quantum computing software, Nat. Comput. Sci. 5, 427 (2025).
- D. Bertsimas and J. Tsitsiklis, Simulated annealing, Stat. Sci. 8, 10 (1993).
https://github.com/alejomonbar/QAOA-efficient-circuit-transpilation.