QSolver: A Quantum Constraint Solver
Open Access
- 12 April 2026
- conference paper
- Published by Association for Computing Machinery (ACM)
- p. 71-75
Abstract
With the growing interest in quantum programs, ensuring their correctness is a fundamental challenge. Although constraint-solving techniques can overcome some limitations of traditional testing and verification, they have not yet been sufficiently explored in the context of quantum programs. To address this gap, we present QSolver, the first quantum constraint solver. QSolver provides a structured framework for handling five types of quantum constraints and incorporates an automated assertion generation module to verify quantum states. QSolver transforms quantum programs and multi-moment constraints into symbolic representations, and utilizes an SMT solver to obtain quantum states that satisfy these constraints. To validate the correctness of the generated input states, QSolver automatically generates assertion programs corresponding to each constraint. Experimental results show that QSolver efficiently processes commonly used quantum gates and demonstrates good scalability across quantum programs of different sizes.Keywords
All Related Versions
Funding Information
- Japan Science and Technology Agency (JPMJSP2136)
- Japan Science and Technology Agency (JP23K28062)
- Japan Science and Technology Agency (JP24K02920)
- Japan Science and Technology Agency (JP24K14908)
This publication has 22 references indexed in Scilit:
- Equivalence, identity, and unitarity checking in black-box testing of quantum programsJournal of Systems and Software, 2024
- QuraTest: Integrating Quantum Specific Features in Quantum Program Testing2023
- symQV: Automated Symbolic Verification of Quantum Programs2023
- cvc5: A Versatile and Industrial-Strength SMT Solver2022
- Generating Failing Test Suites for Quantum Programs With Search2021
- Formal Verification of Quantum Algorithms Using Quantum Hoare Logic2019
- On Testing Quantum Programs2019
- dReal: An SMT Solver for Nonlinear Theories over the Reals2013
- A Logic for Formal Verification of Quantum Programs2009
- Z3: An Efficient SMT Solver2008