QSolver: A Quantum Constraint Solver

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Xia, Shangzhou, Fu, Haitao, Zhao, Jianjun
Format: Preprint
Published: 2026
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866914344641495040
author Xia, Shangzhou
Fu, Haitao
Zhao, Jianjun
author_facet Xia, Shangzhou
Fu, Haitao
Zhao, Jianjun
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2602_20171
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle QSolver: A Quantum Constraint Solver
Xia, Shangzhou
Fu, Haitao
Zhao, Jianjun
Quantum Physics
Software Engineering
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.
title QSolver: A Quantum Constraint Solver
topic Quantum Physics
Software Engineering
url https://arxiv.org/abs/2602.20171