Skip to content
Conference Open access

Formal Verification of Quantum Ancilla Safety

Aug 2026 · International Conference on Computer Aided Verification · pp. 326-348 · 1 citation · 31 references
Computer Science Physics

TL;DR

This work proposes an end-to-end verification-and-repair framework that rigorously addresses both clean and dirty ancilla safety and designs lightweight repair routines that append local single-qubit rotations to eliminate a broad class of local ancilla faults.

Abstract

Ensuring ancilla safety is a critical correctness requirement for quantum compilation, since ancilla qubits are routinely introduced to implement complex operations with fewer gates and reduced depth. However, formally verifying this property is computationally hard due to state-space explosion in the number of qubits, particularly for dirty ancillae, which carry unknown initial states and must be restored after use. We propose an end-to-end verification-and-repair framework that rigorously addresses both clean and dirty ancilla safety. Our core contribution is a two-step reduction strategy: we first prove that verifying an $m$-qubit dirty ancilla register decomposes into $2m$ independent clean ancilla safety checks; subsequently, we reduce each clean ancilla safety instance to an algebraic commutativity check against Pauli-$Z$ and Pauli-$X$ operators. This approach yields an efficient and naturally parallel verifier and enables actionable diagnosis by classifying violations into logic errors and phase errors. Leveraging this diagnosis, we further design lightweight repair routines that append local single-qubit rotations to eliminate a broad class of local ancilla faults. We implement the full pipeline in a prototype tool using a dual-backend architecture combining decision diagrams and weighted model counting, and validate it on diverse circuits ranging from arithmetic benchmarks to Grover's algorithm. Our experiments demonstrate scalability to thousands of qubits and show that the proposed repairs effectively improve ancilla safety while preserving circuit functionality.

Read PDF

Similar papers

Preprint Aug 2026

Quantum Uncomputation of Clean and Dirty Ancilla Qubits

This work introduces two complementary synthesis-oriented existence-checking methods: a rewrite-based normalization algorithm (RwUn) and a template-based reasoning system (TpUn) that guarantees uncomputation through structured Store-Use patterns.

Chenke Liu, Li Zhou, Bo-Ning Meng · 0 citations
Preprint Aug 2026

Bona: Automatic Management of Dirty Ancilla Borrowing in Quantum Circuits

Bona is presented, the first scheduler for dirty-qubit borrowing, built on a novel depth-aware heuristic algorithm, and it reduces nearly 99% of dirty ancillas on average with controlled depth overhead, providing concrete evidence that dirty ancillas offer unique optimization advantages in circuits with certain paralle...

Xiao-Quan Xu, Chen-Ke Liu, Bo-Ning Meng et al. · 1 citation
#machine learning Preprint Jul 2026

QEncodeBench: Can Large Language Models Encode Classical Problems into Verified Quantum Oracles?

QEncodeBench tasks large language models with encoding classical constraint problems as phase oracles and scores the generated circuits with an adversarially self-validated verifier that decides full solution-set equivalence up to a global phase, with ancillas restored and resource budgets enforced.

Xu-Jun Che, Han-Han Wu, Yu-Chen Yuan et al. · 1 citation
Preprint Aug 2026

Sound and Efficient Certification of High-Quality Qubit Operations: Theory and Experiment

Can a high-quality quantum gate be certified when uncharacterized state-preparation and measurement errors are dominant? Can this be achieved with low experimental overhead? Here, we introduce a sound black-box certification protocol for a single-qubit gate based on a small set of fixed, deterministic sequences. From t...

Nikolai Miklin, Jan Nöller, J. Martínez et al. · 0 citations
Preprint Sep 2026

Constant sized support state distillation with qubit recycling

In order to circumvent that no universal set of gates can be achieved on a given quantum error-correcting codes, additional gates can be performed through magic state injection. This however requires to have access to high fidelity magic state, which can be obtained by the distillation of low quality states to fewer hi...

Victor Barizien · 0 citations
Preprint Jul 2026

Qubit Loss Inference with Stabilizer Codes without Leakage Detection Units

Under a non-entangling model for gates involving a lost qubit, a sufficient condition for loss detectability in general stabilizer codes is derived and a greedy heuristic algorithm is used to formulate the exact loss-inference problem using the observed set of non-deterministic checks together with its maximum-likeliho...

Shin Nishio, Takeaki Uno, Fumiyoshi Kobayashi et al. · 2 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.