This thesis investigated how quantum test inputs can be generated in a more flexible and effective manner, addressing key challenges in quantum software testing related to the probabilistic nature of quantum computation, the size of the quantum state space, and the limitations of existing input generation techniques. To overcome these challenges, a generalized framework for constructing quantum input circuits was developed, supporting multiple generation strategies ranging from purely random single-qubit operations to structured entanglement-based circuits and hybrid combinations of both. The experimental evaluation demonstrated that the combined method that integrates both entanglement and random gate operations consistently achieved the highest fault detection rates across all tested programs. This indicates that hybrid circuit structures are better suited for exploring diverse quantum states and revealing distribution-level faults than methods relying solely on random or solely on entanglement-based constructions. The results also demonstrate the feasibility of using true quantum randomness for test input generation in quantum software testing. Although the evaluated programs were too small to expose clear differences between true quantum randomness and simulated randomness, the study shows that quantum-generated randomness can be practically integrated into the testing process. This provides a foundation for future work investigating its potential advantages for larger and more complex quantum programs. Moreover, our approach significantly outperforms the state-of-the-art approach, indicating its ability to explore the quantum state space more broadly. In addition to demonstrating the effectiveness of the proposed methods, this thesis contributes a unified framework that can serve as a foundation for future benchmarking and methodological development in quantum software testing. By enabling controlled comparisons between different circuit construction principles and randomness sources, the framework helps clarify how various input characteristics influence the ability to detect faults. This contributes to a deeper understanding of how quantum inputs should be designed to maximize test coverage and reliability. Overall, the findings of this thesis highlight the importance of combining structural diversity, entanglement, and randomness when generating quantum test inputs. They also show that true quantum randomness is a viable alternative to classical pseudo-randomness, performing on the same level as simulated methods while offering a more physically grounded source of uncertainty. As quantum hardware continues to evolve, the generalized approach presented here provides a flexible and extensible basis for developing more advanced test generation techniques, including guided search, hardware-aware input generation, and multi-objective optimization. These directions represent promising opportunities for future research aimed at improving the robustness and reliability of quantum software systems.
This thesis investigated how quantum test inputs can be generated in a more flexible and effective manner, addressing key challenges in quantum software testing related to the probabilistic nature of quantum computation, the size of the quantum state space, and the limitations of existing input generation techniques. To overcome these challenges, a generalized framework for constructing quantum input circuits was developed, supporting multiple generation strategies ranging from purely random single-qubit operations to structured entanglement-based circuits and hybrid combinations of both. The experimental evaluation demonstrated that the combined method that integrates both entanglement and random gate operations consistently achieved the highest fault detection rates across all tested programs. This indicates that hybrid circuit structures are better suited for exploring diverse quantum states and revealing distribution-level faults than methods relying solely on random or solely on entanglement-based constructions. The results also demonstrate the feasibility of using true quantum randomness for test input generation in quantum software testing. Although the evaluated programs were too small to expose clear differences between true quantum randomness and simulated randomness, the study shows that quantum-generated randomness can be practically integrated into the testing process. This provides a foundation for future work investigating its potential advantages for larger and more complex quantum programs. Moreover, our approach significantly outperforms the state-of-the-art approach, indicating its ability to explore the quantum state space more broadly. In addition to demonstrating the effectiveness of the proposed methods, this thesis contributes a unified framework that can serve as a foundation for future benchmarking and methodological development in quantum software testing. By enabling controlled comparisons between different circuit construction principles and randomness sources, the framework helps clarify how various input characteristics influence the ability to detect faults. This contributes to a deeper understanding of how quantum inputs should be designed to maximize test coverage and reliability. Overall, the findings of this thesis highlight the importance of combining structural diversity, entanglement, and randomness when generating quantum test inputs. They also show that true quantum randomness is a viable alternative to classical pseudo-randomness, performing on the same level as simulated methods while offering a more physically grounded source of uncertainty. As quantum hardware continues to evolve, the generalized approach presented here provides a flexible and extensible basis for developing more advanced test generation techniques, including guided search, hardware-aware input generation, and multi-objective optimization. These directions represent promising opportunities for future research aimed at improving the robustness and reliability of quantum software systems.
With the accelerating development of quantum technologies and their growing computational potential, quantum systems are being adapted for simulations and other critical tasks across diverse domains, making the reliability of the corresponding quantum software an essential concern. Although recent efforts have started to incorporate quantum-specific properties such as magnitude, phase, and entanglement under the form of input-coverage criteria into software testing, the unique structure of the quantum state space demands for more comprehensive testing. In particular, the notion of complete state-space exploration has so far received little attention. To address this gap, we propose a framework for evaluating test circuit generators with respect to their coverage of the quantum state space. Our contribution is threefold: we develop a set of diversity scores that capture both local and global indicators of the extent to which the state space is explored; we propose a test circuit generator that produces test input states via a Brick-Circuit (BC) construction designed to approximate ideal random states using hardware-compatible gates; we compare the proposed construction with existing generators based on their ability to generate uniformly distributed random test input states. Our extended diversity scores quantify the local correlations and global spread of magnitude, phase and entanglement. Using these scores, we evaluate the expressibility, defined as the capability to span the quantum state space uniformly, and entangling capabilities of existing generators relative to the BC generator. Our results show that the hardware-compatible BC generator achieves higher expressibility and entanglement performance at shallower depths than existing circuit generators.
This research paper provides an in-depth examination of verification and testing approaches for quantum circuits, focusing on methodologies essential for ensuring the correctness, reliability and operational efficiency of quantum computing systems. Since quantum circuits function on the fundamental principles of superposition and entanglement, they present verification challenges that cannot be effectively addressed using conventional classical testing techniques. As a result, the development of specialized quantum-specific verification strategies has become critically important. The study highlights simulation-based verification as a foundational technique, wherein the outcomes of quantum circuit simulations are systematically compared with results obtained from physical quantum hardware. This process enables the identification of functional inconsistencies and supports iterative refinement of circuit designs. In addition, randomized benchmarking is examined as a key evaluation method for estimating circuit fidelity and quantifying error rates through the application of random gate sequences and performance comparisons against established benchmarks. To further improve system robustness, the research investigates fault-tolerant mechanisms, particularly quantum error correction codes, which play a vital role in minimizing the effects of noise, decoherence and hardware imperfections. The integration of advanced quantum metrology and characterization techniques is also explored, enabling precise measurement and detailed analysis of quantum system behavior. These techniques provide deeper insights into circuit performance and contribute significantly to validation processes. By combining simulation-based verification, randomized benchmarking, fault-tolerant protocols and quantum metrology, this study proposes a comprehensive and reliable framework for quantum circuit verification and testing. The findings contribute to the advancement of dependable quantum technologies and support their growing applications in areas such as cryptography, materials science and other emerging domains.
Quantum computing has the potential to revolutionize computation by leveraging phenomena such as superposition and entanglement. However, this potential is limited in practice by quantum noise, which introduces errors and uncertainty in current devices. This directly impacts the reliability of quantum software, making effective quantum software testing both essential and challenging. While existing quantum testing approaches adapt classical techniques, they largely rely on noise-free simulators and are therefore not reliably applicable to real computers, and often remain incompatible with modern quantum algorithms and error mitigation methods. This thesis addresses these limitations by investigating how quantum software testing can be made practical and reliable on real quantum computers. We identify key challenges in handling noise and in closing the gap between existing testing methodologies and recent advances in quantum computing. To enable testing under realistic conditions, we propose machine learning–based techniques, including QOIN and Q-LEAR, to reduce the impact of noise on test outcomes, allowing existing testing methods to be applied on real computers. We further introduce supporting tools such as QUIET and STGP to improve scalability and enhance noise modeling. In addition, we explore the integration of quantum components into classical testing scenarios, demonstrating applicability in hybrid systems. Extensive empirical evaluations across multiple platforms and real-world programs show significant mprovements in test reliability under noise. Furthermore, with QOPS and SB-QOPS, we propose a novel testing paradigm tailored for noisy quantum computers. Our approaches, QOPS and SB-QOPS, redefine test cases using Pauli strings, adopt expectation value–based oracles compatible with error mitigation techniques, and incorporate search-based strategies for efficient test generation. These methods support a broader class of programs, reduce dependence on complete specifications, and explicitly account for noise during testing. Large-scale studies, including experiments on real quantum hardware, demonstrate their effectiveness and scalability. Overall, this thesis advances quantum software testing by bridging the gap between theoretical methods and practical deployment on real quantum computers, enabling more reliable fault detection in the presence of quantum noise and laying a foundation for testing in the noisy quantum era.
Modern software systems are growing in scale and complexity by including elements such as cyber-physical components and autonomous functionalities. These developments create significant challenges for traditional software engineering methods, requiring new computational paradigms. Meanwhile, quantum computing is attracting increasing attention for its potential to provide substantial computational advantages by leveraging principles of quantum mechanics. While quantum computing has shown promising results in fields such as chemistry, finance, and healthcare, its application in software engineering remains limited. Inspired by the success of quantum computing in these domains, this thesis proposes hybrid quantum-classical approaches for addressing industrial and real-world software engineering challenges, with a particular focus on software testing. The thesis applies quantum optimization and quantum machine learning techniques to problems including test case optimization and test oracle generation. Experimental results show that the proposed approaches effectively solve targeted problems while improving computational efficiency. These findings demonstrate the feasibility and potential benefits of quantum computing. Additionally, the thesis outlines a broader research vision on applying quantum techniques across all phases of the software development life cycle. Overall, this thesis provides both theoretical foundations and practical insights, and paves the way for future research on quantum algorithms for software engineering. Quantum computing is rapidly developing and has shown potential to solve complex computational problems across various domains. To this end, this thesis explores its application to software engineering through hybrid quantum-classical approaches, with a particular focus on software testing challenges. Experimental results demonstrate the effectiveness and efficiency of the proposed approaches, highlighting the feasibility and potential of quantum computing in software engineering.
The recent fast development of quantum computers breaks several computation limitations that are difficult for conventional computers. Up to the present, although many approaches and tools have been proposed to test quantum programs, the fundamental features of quantum programs, i.e., magnitude, phase, and entanglement, have been largely overlooked, leading to limited fault detection capability and reduced testing effectiveness. To address this problem, we propose an automated testing framework named QURATEST, equipped with three test case generators (including two newly proposed techniques, UCNOT and IQFT in this paper, as well as one based on Random techniques) to test quantum programs. Overall, the proposed generators enable the generation of diverse test inputs by considering the quantum features of quantum programs. In the experiments, we perform an in-depth evaluation of QURATEST from three aspects: generated test case diversity, output coverage of the program under test, and fault detection capability. The results demonstrate the potential of our newly proposed techniques in that IQFT can generate the most diverse test cases regarding magnitude, phase, and entanglement, with 66% cell coverage. Comparatively, the Random approach only has 10% cell coverage. Regarding the evaluations of the output coverage, IQFT can achieve the highest output coverage in 70.2% (33 out of 47) of all quantum programs. In terms of fault detection, UCNOT outperforms the other two techniques. Specifically, the test cases generated by UCNOT have the best mutation score in 88.4% (23 out of 26) quantum programs.
In this research paper, I have thoroughly described about the topic “study on Verification and Testing Strategies for Quantum Circuits.” The research on quantum circuit verification and testing methodologies examines how to ensure the dependability and functioning of quantum computing systems, which are crucial to their transformational potential. Quantum circuits use superposition and entanglement, which need verification and testing methods. Innovative quantum circuit-specific methodologies are needed since conventional computing methods fail in quantum computing. A major research area is simulation-based verification, which compares simulated quantum circuit outputs to genuine hardware implementations. Developers may identify circuit design or implementation problems by comparing simulated and predicted results, enabling incremental improvement. Randomized benchmarking procedures may also evaluate quantum circuit integrity and error rates. These protocols quantify operational features of circuits by submitting them to randomized operations and evaluating their performance against preset benchmarks, leading attempts to enhance reliability and performance. Fault-tolerant methods, such as error correction codes, reduce quantum hardware noise and mistakes, improving quantum circuit reliability. The incorporation of error correcting techniques makes quantum circuits more resilient to environmental perturbations, making them more practical. Advanced quantum metrology and characterization methods provide accurate measurement and characterization of quantum systems, making quantum circuit testing and validation easier. These approaches help identify circuit performance improvements by correctly characterizing quantum features and behavior. This research integrates simulation-based verification, randomized benchmarking procedures, fault-tolerant approaches, and quantum metrology to ensure quantum circuit functioning and dependability. This research advances quantum technologies and realizes their transformative potential in cryptography, materials science, and other fields by explaining verification and testing strategies tailored to quantum computing systems