🤖 AI Summary
This work addresses the significant width overhead in quantum circuits caused by the manual management of dirty ancilla qubits. It formally defines the ancilla borrowing problem for the first time and proves its NP-hardness, then introduces Bona, the first automated scheduler for this task. Bona employs a depth-aware heuristic strategy to safely reuse dirty ancillas, substantially reducing both ancilla requirements and circuit depth. Experimental results demonstrate that Bona reduces dirty ancilla usage by nearly 99% on average across multiple benchmarks. In applications such as parallel quantum walks, it achieves circuit widths comparable to those of clean-ancilla approaches while yielding significantly lower circuit depth.
📝 Abstract
The management of ancilla qubits has become a critical technique for reducing quantum circuit width. Dirty ancillas, which may be borrowed from any temporarily idle qubit regardless of their initial states, offer substantial flexibility for width optimization, but their use has so far required manual and error-prone handling. We formalize the dirty-qubit borrowing problem and establish a fundamental computational limit by proving its NP-hardness. To support practical optimization, we present \bona, the first scheduler for dirty-qubit borrowing, built on a novel depth-aware heuristic algorithm. We evaluate \bona~ across a variety of benchmarks, including practical quantum circuits and randomly arranged compositions of real circuit modules, and find that it reduces nearly 99\% of dirty ancillas on average with controlled depth overhead. In particular, for parallel quantum walk---an essential component of parallel Hamiltonian simulation---\bona~ matches the circuit width achieved by the clean-qubit schemes of \citeauthor{jiang2024recycling}~(\citeyear{jiang2024recycling}) and \citeauthor{quantinuum}~(\citeyear{quantinuum}), but attains significantly smaller circuit depth, providing concrete evidence that dirty ancillas offer unique optimization advantages in circuits with certain parallelism.