- Open Access
Equivalence checking of quantum circuits via intermediary matrix product operator
Phys. Rev. Research 7, 023261 – Published 13 June, 2025
DOI: https://doi.org/10.1103/3q71-y8cf
Abstract
As quantum computing advances, the complexity of quantum circuits is rapidly increasing, driving the need for robust methods to aid in their design. Equivalence checking plays a vital role in identifying errors that may arise during compilation and optimization of these circuits and is a critical step in quantum circuit verification. In this work, we introduce a method based on matrix product operators (MPOs) for determining the equivalence of quantum circuits. Our approach contracts tensorized quantum gates from two circuits into an intermediary MPO, exploiting their reversibility to determine their equivalence or nonequivalence. Our results show that this method offers significant scalability improvements over existing methods, with polynomial scaling in circuit width and depth for the practical use cases we explore. We expect that this work to set a standard for scalable equivalence checking of quantum circuits and will become a crucial tool for the validation of increasingly complex quantum systems.
Physics Subject Headings (PhySH)
Article Text
References (47)
- M. Paltenghi and M. Pradel, Bugs in quantum computing platforms: An empirical study, Proceedings ACM Programming Languages 6, 1 (2022).
- O. Di Matteo, On the need for effective tools for debugging quantum programs, in International Workshop on Quantum Software Engineering (ACM, New York, 2024), pp. 17–20.
- Advanced Formal Verification, edited by R. Drechsler (Springer US, Boston, MA, 2004).
- D. Janzing, P. Wocjan, and T. Beth, "Non-identity-check” is QMA-complete, Int. J. Quantum Inf. 03, 463 (2005).
- B. Pirvu, V. Murg, J. I. Cirac, and F. Verstraete, Matrix product operator representations, New J. Phys. 12, 025012 (2010).
- C. Hubig, I. P. McCulloch, and U. Schollwock, Generic construction of efficient matrix product operators, Phys. Rev. B 95, 035129 (2017).
- D. E. Parker, X. Cao, and M. P. Zaletel, Local matrix product operators: Canonical form, compression, & control theory, Phys. Rev. B 102, 035147 (2020).
- G. Vidal, Efficient classical simulation of slightly entangled quantum computations, Phys. Rev. Lett. 91, 147902 (2003).
- J. C. Bridgeman and C. T. Chubb, Hand-waving and interpretive dance: An introductory course on tensor networks, J. Phys. A: Math. Theor. 50, 223001 (2017).
- S. Paeckel, T. Köhler, A. Swoboda, S. R. Manmana, U. Schollwöck, and C. Hubig, Time-evolution methods for matrix-product states, Ann. Phys. 411, 167998 (2019).
- U. Schollwöck, The density-matrix renormalization group in the age of matrix product states, Ann. Phys. 326, 96 (2011).
- R. Orus, A practical introduction to tensor networks: Matrix product states and projected entangled pair states, Ann. Phys. 349, 117 (2014).
- P. Zanardi, C. Zalka, and L. Faoro, Entangling power of quantum evolutions, Phys. Rev. A 62, 030301(R) (2000).
- C. Jonay, D. A. Huse, and A. Nahum, Coarse-grained dynamics of operator and state entanglement, arXiv:1803.00089.
- J. van de Wetering, ZX-calculus for the working quantum computer scientist, arXiv:2012.13966.
- A. Cowtan, W. Simmons, and R. Duncan, A generic compilation strategy for the unitary coupled cluster ansatz, arXiv:2007.10515.
- R. Duncan, A. Kissinger, S. Perdrix, and J. van de Wetering, Graph-theoretic simplification of quantum circuits with the ZX-calculus, Quantum 4, 279 (2020).
- A. Kissinger and J. van de Wetering, Reducing T-count with the ZX-calculus, Phys. Rev. A 102, 022406 (2020).
- T. Peham, L. Burgholzer, and R. Wille, Equivalence checking of quantum circuits with the ZX-calculus, IEEE J. Emerging Sel. Top. Circuits Syst. 12, 662 (2022).
- M. Backens, The ZX-calculus is complete for stabilizer quantum mechanics, New J. Phys. 16, 093021 (2014).
- C. S. de Witt and V. Zamdzhiev, The ZX-calculus is incomplete for quantum mechanics, Electron. Proc. Theor. Comput. Sci. 172, 285 (2014).
- A. Zulehner and R. Wille, Advanced simulation of quantum computations, IEEE Trans. Comput.-Aided Design Integr. Circuits Syst. 38, 848 (2019).
- R. Wille, S. Hillmich, and L. Burgholzer, Tools for quantum computing based on decision diagrams, ACM Transactions Quantum Computing 3, 1 (2022).
- R. Wille, S. Hillmich, and L. Burgholzer, Decision diagrams for quantum computing, in Design Automation of Quantum Computers (Springer International Publishing, Cham, 2023), pp. 1–23.
- S.-I. Minato, Zero-suppressed BDDs for set manipulation in combinatorial problems, in Design Automation Conference (IEEE, 1993), pp. 272–277.
- L. Burgholzer and R. Wille, Advanced equivalence checking for quantum circuits, IEEE Trans. Comput.-Aided Design Integr. Circuits Syst. 40, 1810 (2021).
- A. Sander, I.-A. Florea, L. Burgholzer, and R. Wille, Stripping quantum decision diagrams of their identity, in International Conference on Quantum Software (IEEE Computer Society Press, Shenzhen, China, 2024), pp. 168–174.
- X. Hong, M. Ying, Y. Feng, X. Zhou, and S. Li, Approximate equivalence checking of noisy quantum circuits, in Design Automation Conference (IEEE Press, San Francisco, 2021), pp. 637–642.
- X. Hong, Y. Feng, S. Li, and M. Ying, Equivalence checking of dynamic quantum circuits, in International Conference on Computer-Aided Design (IEEE, San Diego, CA, 2022), pp. 1–8.
- X. Hong, W.-J. Huang, W.-C. Chien, Y. Feng, M.-H. Hsieh, S. Li, and M. Ying, Equivalence checking of parameterised quantum circuits, arXiv:2404.18456.
- J. Gray and S. Kourtis, Hyper-optimized tensor network contraction, Quantum 5, 410 (2021).
- C. Huang, F. Zhang, M. Newman, J. Cai, X. Gao, Z. Tian, J. Wu, H. Xu, H. Yu, B. Yuan et al., Classical simulation of quantum supremacy circuits, arXiv:2005.06787.
- F. Pan and P. Zhang, Simulation of quantum circuits using the big-batch tensor network method, Phys. Rev. Lett. 128, 030501 (2022).
- M. Frías-Pérez and M. C. Bañuls, Light cone tensor network and time evolution, Phys. Rev. B 106, 115117 (2022).
- A. Anand, L. B. Kristensen, F. Frohnert, S. Sim, and A. Aspuru-Guzik, Information flow in parameterized quantum circuits, Quantum Sci. Technol. 9, 035025 (2024).
- O. Shehab, I. H. Kim, N. H. Nguyen, K. Landsman, C. H. Alderete, D. Zhu, C. Monroe, and N. M. Linke, Noise reduction using past causal cones in variational quantum algorithms, arXiv:1906.00476.
- S.-J. Ran, E. Tirrito, C. Peng, X. Chen, L. Tagliacozzo, G. Su, and M. Lewenstein, Tensor Network Contractions: Methods and Applications to Quantum Many-Body Systems (Springer International Publishing, Cham, 2020).
- C. R. Harris, K. J. Millman, S. J. van der Walt, R. Gommers, P. Virtanen, D. Cournapeau, E. Wieser, J. Taylor, S. Berg, N. J. Smith, R. Kern, M. Picus, S. Hoyer, M. H. van Kerkwijk, M. Brett, A. Haldane, J. F. del Río, M. Wiebe, P. Peterson, and P. Gérard-Marchant, Array programming with NumPy, Nature (London) 585, 357 (2020).
- D. G. A. Smith and J. Gray, opt_einsum - a Python package for optimizing contraction order for einsum-like expressions, J. Open Source Software 3, 753 (2018).
- R. Wille, L. Berent, T. Forster, J. Kunasaikaran, K. Mato, T. Peham, N. Quetschlich, D. Rovara, A. Sander, L. Schmid, D. Schonberger, Y. Stade, and L. Burgholzer, The MQT handbook: A summary of design automation tools and software for quantum computing, in International Conference on Quantum Software (IEEE, Shenzhen, China, 2024), pp. 1–8.
- A. Sander, Yaqs: Yet another quantum simulator, https://github.com/cda-tum/mqt-yaqs.
- A. Javadi-Abhari, M. Treinish, K. Krsulich, C. J. Wood, J. Lishman, J. Gacon, S. Martiel, P. D. Nation, L. S. Bishop, A. W. Cross, B. R. Johnson, and J. M. Gambetta, Quantum computing with qiskit, arXiv:2405.08810.
- S. Sim, P. D. Johnson, and A. Aspuru-Guzik, Expressibility and entangling capability of parameterized quantum circuits for hybrid quantum-classical algorithms, Adv. Quantum Technol. 2, 1900070 (2019).
- C. Huang, F. Zhang, M. Newman, X. Ni, D. Ding, J. Cai, X. Gao, T. Wang, F. Wu, G. Zhang, H.-S. Ku, Z. Tian, J. Wu, H. Xu, H. Yu, B. Yuan, M. Szegedy, Y. Shi, H.-H. Zhao, and C. Deng, Efficient parallelization of tensor network contraction for simulating quantum computation, Nat. Comput. Sci. 1, 578 (2021).
- D. I. Lyakh, T. Nguyen, D. Claudino, E. Dumitrescu, and A. J. McCaskey, Exatn: Scalable GPU-accelerated high-performance processing of general tensor networks at exascale, Frontiers Appl. Math. Statistics 8, 838601 (2022).
- H. Bayraktar, A. Charara, D. Clark, S. Cohen, T. Costa, Y.-L. L. Fang, Y. Gao, J. Guan, J. Gunnels, A. Haidar, A. Hehn, M. Hohnerbach, M. Jones, T. Lubowe, D. Lyakh, S. Morino, P. Springer, S. Stanwyck, I. Terentyev, and S. Varadhan, cuQuantum SDK: A high-performance library for accelerating quantum science, in International Conference on Quantum Computing and Engineering (IEEE, Bellevue, WA, 2023), pp. 1050–1061.
- L. Vanderstraeten, J. Haegeman, and F. Verstraete, Tangent-space methods for uniform matrix product states, SciPost Phys. Lecture Notes 7 (2019).