Quantum Circuits for Dynamic Runtime Assertions in Quantum Computation
Ji Liu, Gregory T. Byrd, Huiyang Zhou
Abstract
In this paper, we propose quantum circuits for runtime assertions, which can be used for both software debugging and error detection. Runtime assertion is challenging in quantum computing for two key reasons. First, a quantum bit (qubit) cannot be copied, which is known as the non-cloning theorem. Second, when a qubit is measured, its superposition state collapses into a classical state, losing the inherent parallel information. In this paper, we overcome these challenges with runtime computation through ancilla qubits, which are used to indirectly collect the information of the qubits of interest. We design quantum circuits to assert classical states, entanglement, and superposition states. Our experimental results show that they are effective in debugging as well as improving the success rate for various quantum algorithms on IBM Q quantum computers.
• Hardware → Quantum technologies.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext 5f57033d-14ed-475a-b8b8-2fe0de6e7ce6Cited by top-tier papers12
- QuantumNAS: Noise-Adaptive Search for Robust Quantum CircuitsHanrui Wang, Yongshan Ding, Jiaqi Gu, Yujun Lin et al.HPCA 2022 · 199 citations
- Projection-based runtime assertions for testing and debugging Quantum programsGushu Li, Li Zhou, Nengkun Yu, Yufei Ding et al.OOPSLA 2020 · 120 citations
- Qraft: reverse your Quantum circuit and know the correct program outputTirthak Patel, Devesh TiwariASPLOS 2021 · 44 citations
- MorphQ: Metamorphic Testing of the Qiskit Quantum Computing PlatformMatteo Paltenghi, Michael PradelICSE 2023 · 44 citations
- Not All SWAPs Have the Same Cost: A Case for Optimization-Aware Qubit RoutingJi Liu, Peiyi Li, Huiyang ZhouHPCA 2022 · 30 citations
Related papers
- Systematic Approaches for Precise and Approximate Quantum State Runtime AssertionJi Liu, Huiyang ZhouHPCA 2021 · 31 citations
- Quantum abstract interpretationNengkun Yu, Jens PalsbergPLDI 2021 · 69 citations
- CaQR: A Compiler-Assisted Approach for Qubit Reuse through Dynamic CircuitFei Hua, Yuwei Jin, Yan-Hao Chen, Suhas Vittal et al.ASPLOS 2023 · 27 citations
- MorphQPV: Exploiting Isomorphism in Quantum Programs to Facilitate Confident VerificationSiwei Tan, Debin Xiang, Liqiang Lu, Junlin Lu et al.ASPLOS 2024 · 5 citations
- Scalable Equivalence Checking and Verification of Shallow Quantum CircuitsNengkun Yu, Xuan Du Trinh, Thomas RepsOOPSLA 2025
