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.
翻译:为了在量子计算过程中发现任何错误,必须进行功能验证。有利用运行时间的主张调试量子电路的有希望的渠道。然而,现有办法依靠核查工程师的专业知识来手工设计和在适当地点插入这些主张。在本文件中,我们提议根据静态分析和量子电路随机抽样,自动生成和放置量子数据。具体地说,本文件作出了两项重要贡献。我们自动发现量子电路的特殊性,如纯古典国家、超常状态和采用统计方法的缠绕国家。我们还自动放置量子数据,以尽量扩大功能覆盖范围,并尽量减少硬件间接费用。我们用量子基准,包括Shor的保理算法和Grover的搜索算法,来证明生成的误差数据的有效性。</s>