Pith. sign in

quAssert: Automatic Generation of Quantum Assertions

1 Pith paper cite this work. Polarity classification is still indexing.

1 Pith paper citing it
abstract

Functional validation is necessary to detect any errors during quantum computation. There are promising avenues to debug quantum circuits using runtime assertions. However, the existing approaches rely on the expertise of the verification engineers to manually design and insert the assertions in suitable locations. In this paper, we propose automated generation and placement of quantum assertions based on static analysis and random sampling of quantum circuits. Specifically, this paper makes two important contributions. We automatically uncover special properties of a quantum circuit, such as purely classical states, superposition states, and entangled states using statistical methods. We also perform automated placement of quantum assertions to maximize the functional coverage as well as minimize the hardware overhead. We demonstrate the effectiveness of the generated assertions in error detection using a suite of quantum benchmarks, including Shor's factoring algorithm and Grover's search algorithm.

citation-role summary

background 1

citation-polarity summary

fields

cs.SE 1

years

2025 1

verdicts

CONDITIONAL 1

roles

background 1

polarities

unclear 1

representative citing papers

On the Feasibility of Quantum Unit Testing

cs.SE · 2025-07-23 · conditional · novelty 5.0

A large empirical study finds that the Inverse test, which reverses the expected circuit and checks for the all-zero state, detects quantum circuit mutations with fewer shots than statistical or Swap tests.

citing papers explorer

Showing 1 of 1 citing paper.

  • On the Feasibility of Quantum Unit Testing cs.SE · 2025-07-23 · conditional · none · ref 26 · internal anchor

    A large empirical study finds that the Inverse test, which reverses the expected circuit and checks for the all-zero state, detects quantum circuit mutations with fewer shots than statistical or Swap tests.