ArXiv TLDR

Randomized and Diverse Input State Generation for Quantum Program Testing

🐦 Tweet
2605.03957

Maryse Ernzer, Seung Yeob Shin, Fabrizio Pastore, Domenico Bianculli

cs.SE

TLDR

This paper introduces a framework and a new Brick-Circuit generator for creating diverse quantum input states to improve quantum program testing.

Key contributions

  • Develops diversity scores to quantify local and global exploration of the quantum state space.
  • Proposes a hardware-compatible Brick-Circuit (BC) generator for approximating ideal random quantum input states.
  • Shows BC generator achieves higher expressibility and entanglement at shallower depths than existing methods.

Why it matters

Ensuring the reliability of quantum software is critical as quantum technologies advance. This paper addresses the gap in comprehensive quantum state-space exploration by providing a framework and a new hardware-compatible generator that creates more diverse and effective test inputs, significantly improving quantum program testing.

Original Abstract

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.

📬 Weekly AI Paper Digest

Get the top 10 AI/ML arXiv papers from the week — summarized, scored, and delivered to your inbox every Monday.