arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2406.19592cs.PL
收藏

基于数据流的量子中间表示程序优化

Dataflow-Based Optimization for Quantum Intermediate Representation Programs

Junjie Luo, Haoyu Zhang, Jianjun Zhao

AI总结:

本文提出基于数据流的QIR优化方法QDFO,通过预处理QIR代码并消除量子比特及数组的重复加载构造,提升LLVM优化效果,实验与案例研究验证了其有效性。

摘要:

本文提出了QDFO,一种面向Microsoft QIR的基于数据流的优化方法。QDFO包含两个主要功能:一是对QIR代码进行预处理,使LLVM优化器能够捕获更多优化机会;二是优化QIR代码,以避免量子比特和量子比特数组的重复加载与构造。我们在IBM Challenge Dataset上对工作进行了评估,结果表明我们的方法有效减少了QIR代码中的冗余操作。我们还完成了QDFO的初步实现,并对真实世界代码进行了案例研究。我们的观察性研究表明,LLVM优化器能够进一步优化经我们算法预处理后的QIR代码。实验和案例研究均证明了我们方法的有效性。

英文摘要:

This paper proposes QDFO, a dataflow-based optimization approach to Microsoft QIR. QDFO consists of two main functions: one is to preprocess the QIR code so that the LLVM optimizer can capture more optimization opportunities, and the other is to optimize the QIR code so that duplicate loading and constructing of qubits and qubit arrays can be avoided. We evaluated our work on the IBM Challenge Dataset, the results show that our method effectively reduces redundant operations in the QIR code. We also completed a preliminary implementation of QDFO and conducted a case study on the real-world code. Our observational study indicates that the LLVM optimizer can further optimize the QIR code preprocessed by our algorithm. Both the experiments and the case study demonstrate the effectiveness of our approach.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑