Quantum computing promises remarkable approaches for processing information, but new tools are needed to compile program representations into the physical instructions required by a quantum computer. Here we present a novel adaptation of the multi-level intermediate representation (MLIR) integrated into a quantum compiler that may be used for checking program execution. We first present how MLIR enables quantum circuit transformations for efficient execution on quantum computing devices and then give an example of compiler transformations based on so-called mirror circuits. We demonstrate that mirror circuits inserted during compilation may test hardware performance by assessing quantum circuit accuracy on several superconducting and ion trap hardware platforms. Our results validate MLIR as an efficient and effective method for collecting hardware-dependent diagnostics through automated transformations of quantum circuits.
翻译:量子计算为信息处理提供了非凡的方法,但需要新的工具将程序表达方式编集成量子计算机所要求的物理指令。这里我们介绍了对多级中间代表(MLIR)进行的新调整,将其整合成量子汇编器,可用于检查程序执行。我们首先介绍了MLIR如何为量子计算设备高效执行量子电路转换,然后举了一个基于所谓镜子电路的编集器转换实例。我们证明,在编集过程中插入的镜像电路可以通过评估多个超导和离子陷阱硬件平台的量子电路精度来测试硬件性能。我们的结果证实,MLIR是通过量子电路自动转换收集依靠硬件的诊断的高效和有效方法。