Quartz:量子电路的超优化(扩展版)
Quartz: Superoptimization of Quantum Circuits (Extended Version)
摘要:
现有的量子编译器通过应用专家设计的电路变换来优化量子电路。这种方法需要大量的手动工作来为不同的量子设备设计和实现电路转换,这些量子设备使用不同的门集,并且可能错过难以手动找到的优化。我们提出了Quartz,一个量子电路超优化器,可以自动生成和验证任意量子门集的电路变换。对于给定的门集,Quartz通过系统地探索小电路来生成候选电路变换,并使用自动定理证明器验证发现的变换。为了优化量子电路,Quartz使用基于成本的回溯搜索,将验证的转换应用于电路。我们对三种流行的门集的评估表明,Quartz可以有效地生成和验证不同门集的转换。生成的转换包括现有优化器使用的手动设计的转换,也包括新的转换。因此,Quartz能够针对不同的门设置优化各种电路,性能优于或匹配手动调谐电路优化器的性能。
英文摘要:
Existing quantum compilers optimize quantum circuits by applying circuit transformations designed by experts. This approach requires significant manual effort to design and implement circuit transformations for different quantum devices, which use different gate sets, and can miss optimizations that are hard to find manually. We propose Quartz, a quantum circuit superoptimizer that automatically generates and verifies circuit transformations for arbitrary quantum gate sets. For a given gate set, Quartz generates candidate circuit transformations by systematically exploring small circuits and verifies the discovered transformations using an automated theorem prover. To optimize a quantum circuit, Quartz uses a cost-based backtracking search that applies the verified transformations to the circuit. Our evaluation on three popular gate sets shows that Quartz can effectively generate and verify transformations for different gate sets. The generated transformations cover manually designed transformations used by existing optimizers and also include new transformations. Quartz is therefore able to optimize a broad range of circuits for diverse gate sets, outperforming or matching the performance of hand-tuned circuit optimizers.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。