Mid-circuit measurement (MCM) provides the capability for qubit reuse and dynamic control in quantum processors, enabling more resource-efficient algorithms and supporting error-correction procedures. However, MCM introduces several sources of error, including measurement-induced crosstalk, idling-qubit decoherence, and reset infidelity, and these errors exhibit pronounced qubit-dependent variability within a single device. Since existing compilers such as the Qiskit-compiler and QR-Map (the state-of-art qubit reuse compiler) do not account for this variability, circuits with frequent MCM operations often experience substantial fidelity loss. In thie paper, we propose MERA, a compilation framework that performs MCM-error-aware layout, routing, and scheduling. MERA leverages lightweight profiling to obtain a stable per-qubit MCM error distribution, which it uses to guide error-aware qubit mapping and SWAP insertions. To further mitigate MCM-related decoherence and crosstalk, MERA augments as-late-as-possible scheduling with context-aware dynamic decoupling. Evaluated on 27 benchmark circuits, MERA achieves 24.94% -- 52.00% fidelity improvement over the Qiskit compiler (optimization level 3) without introducing additional overhead. On QR-Map-generated circuits, it improves fidelity by 29.26% on average and up to 122.58% in the best case, demonstrating its effectiveness for dynamic circuits dominated by MCM operations.
翻译:中途测量(MCM)为量子处理器提供了量子比特复用和动态控制的能力,使得算法资源利用更高效,并支持纠错过程。然而,MCM引入了多种误差源,包括测量引起的串扰、空闲量子比特退相干和重置不保真度,这些误差在单个设备内表现出显著的量子比特依赖性差异。由于现有编译器(如Qiskit编译器和最先进的量子比特复用编译器QR-Map)未考虑这种差异性,频繁进行MCM操作的电路常遭受显著的保真度损失。本文提出MERA,一种执行MCM误差感知布局、路由和调度的编译框架。MERA利用轻量级性能分析获取稳定的每量子比特MCM误差分布,并以此指导误差感知的量子比特映射和SWAP门插入。为进一步缓解MCM相关的退相干和串扰,MERA在尽可能延迟调度的基础上,结合上下文感知的动态解耦技术。在27个基准电路上的评估表明,MERA相比Qiskit编译器(优化级别3)实现了24.94%至52.00%的保真度提升,且未引入额外开销。对于QR-Map生成的电路,其保真度平均提升29.26%,最佳情况下可达122.58%,证明了该框架在以MCM操作为主的动态电路中的有效性。