MorphQ: Metamorphic Testing of the Qiskit Quantum Computing Platform
Matteo Paltenghi, Michael Pradel
Abstract
As quantum computing is becoming increasingly popular, the underlying quantum computing platforms are growing both in ability and complexity. Unfortunately, testing these platforms is challenging due to the relatively small number of existing quantum programs and because of the oracle problem, i.e., a lack of specifications of the expected behavior of programs. This paper presents MorphQ, the first metamorphic testing approach for quantum computing platforms. Our two key contributions are (i) a program generator that creates a large and diverse set of valid (i.e., non-crashing) quantum programs, and (ii) a set of program transformations that exploit quantum-specific metamorphic relationships to alleviate the oracle problem. Evaluating the approach by testing the popular Qiskit platform shows that the approach creates over 8k program pairs within two days, many of which expose crashes. Inspecting the crashes, we find 13 bugs, nine of which have already been confirmed. MorphQ widens the slim portfolio of testing techniques of quantum computing platforms, helping to create a reliable software stack for this increasingly important field.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
5 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Quantum Concolic Testing cites Bugs in Quantum computing platforms: an empirical study
- Bugs in Quantum computing platforms: an empirical study cites QDiff: Differential Testing of Quantum Software Stacks
- Bugs in Quantum computing platforms: an empirical study cites Projection-based runtime assertions for testing and debugging Quantum programs
- UPBEAT: Test Input Checks of Q# Quantum Libraries cites QDiff: Differential Testing of Quantum Software Stacks
- UPBEAT: Test Input Checks of Q# Quantum Libraries cites Bugs in Quantum computing platforms: an empirical study
- UPBEAT: Test Input Checks of Q# Quantum Libraries cites Projection-based runtime assertions for testing and debugging Quantum programs
- Projection-based runtime assertions for testing and debugging Quantum programs cites Quantum Circuits for Dynamic Runtime Assertions in Quantum Computation
- Analyzing Quantum Programs with LintQ: A Static Analysis Framework for Qiskit cites QDiff: Differential Testing of Quantum Software Stacks
- Analyzing Quantum Programs with LintQ: A Static Analysis Framework for Qiskit cites Bugs in Quantum computing platforms: an empirical study
- Analyzing Quantum Programs with LintQ: A Static Analysis Framework for Qiskit cites Projection-based runtime assertions for testing and debugging Quantum programs
- Analyzing Quantum Programs with LintQ: A Static Analysis Framework for Qiskit cites Fuzz4All: Universal Fuzzing with Large Language Models
- Fuzz4All: Universal Fuzzing with Large Language Models cites Bugs in Quantum computing platforms: an empirical study
Cited by top-tier papers5
- Fuzz4All: Universal Fuzzing with Large Language ModelsChunqiu Steven Xia, Matteo Paltenghi, Jia Le Tian, Michael Pradel et al.ICSE 2024 · 155 citations
- Analyzing Quantum Programs with LintQ: A Static Analysis Framework for QiskitMatteo Paltenghi, Michael PradelFSE 2024 · 19 citations
- Quantum Concolic TestingShangzhou Xia, Jianjun Zhao, Fuyuan Zhang, Xiaoyu GuoISSTA 2025 · 4 citations
- UPBEAT: Test Input Checks of Q# Quantum LibrariesTianmin Hu, Guixin Ye, Zhanyong Tang, Shin Hwei Tan et al.ISSTA 2024 · 4 citations
- MetaSpace: Metamorphic Testing for Spatial Cognition in Embodied AgentsGengyang Xu, Dongwei Xiao, Yiteng Peng, Shuai WangOOPSLA 2026
Builds on5
- CutQC: using small Quantum computers for large Quantum circuit evaluationsWei Tang, Teague Tomesh, Martin Suchara, Jeffrey Larson et al.ASPLOS 2021 · 159 citations
- Projection-based runtime assertions for testing and debugging Quantum programsGushu Li, Li Zhou, Nengkun Yu, Yufei Ding et al.OOPSLA 2020 · 120 citations
- Quantum Circuits for Dynamic Runtime Assertions in Quantum ComputationJi Liu, Gregory T. Byrd, Huiyang ZhouASPLOS 2020 · 82 citations
- Bugs in Quantum computing platforms: an empirical studyMatteo Paltenghi, Michael PradelOOPSLA 2022 · 70 citations
- QDiff: Differential Testing of Quantum Software StacksJiyuan Wang, Qian Zhang, Guoqing Harry Xu, Miryung KimASE 2021 · 48 citations
Related papers
- IterTestQ: Assembly-Level, Cross-Platform Testing of Quantum Computing PlatformsMatteo Paltenghi, Michael PradelISSTA 2026
- MR-Coupler: Automated Metamorphic Test Generation via Functional Coupling AnalysisCongying Xu, Hengcheng Zhu, Songqiang Chen, Jiarong Wu et al.FSE 2026 · 1 citation
- Abstraction-Aware Inference of Metamorphic RelationsAgustín Nolasco, Facundo Molina, Renzo Degiovanni, Alessandra Gorla et al.FSE 2024 · 4 citations
- Natural Test Generation for Precise Testing of Question Answering SoftwareQingchao Shen, Junjie Chen, Jie M. Zhang, Haoyu Wang et al.ASE 2022 · 27 citations
- Shaking Up Quantum Simulators with Fuzzing and RigourVasileios Klimis, Avner Bensoussan, Elena Chachkarova, Karine Even-Mendoza et al.OOPSLA 2025 · 3 citations
