NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

A Compilation Framework for Quantum Circuits with Mid-Circuit Measurement Error Awareness

Ming Zhong, Zhemin Zhang, Xiangyu Ren, Chenghong Zhu, Siyuan Niu, Zhiding LiangarXiv 2025 · DOI

Introduction: The Reliability Gap in Qubit Reuse

To execute complex algorithms on Noisy Intermediate-Scale Quantum (NISQ) devices, researchers increasingly rely on Mid-Circuit Measurement (MCM). MCM allows for qubit reuse, effectively enabling a physical chip to simulate a much larger logical processor. However, MCM operations are significantly noisier than standard gates, introducing measurement-induced crosstalk, decoherence, and reset infidelities.

A critical observation driving this research is the extreme heterogeneity of MCM errors across a single device. As shown in Figure 2, MCM error rates on a 127-qubit IBM Eagle processor can vary by orders of magnitude, ranging from a negligible 0.05% to a prohibitive 42.58%. Standard compilers like Qiskit often ignore this variance, leading to sub-optimal mappings that place critical measurements on high-error physical qubits.

MCM error variability across IBM Eagle and Heron processors, highlighting the "Heterogeneity Gap."

The MERA Framework

To address these reliability issues, we present MERA (MCM-Error-Aware compiler), a framework designed to optimize dynamic circuits by accounting for hardware-specific noise profiles. MERA operates in four distinct stages:

  1. Lightweight Profiling: MERA employs a hardware-agnostic sequence to map the MCM error rate of every qubit. These profiles were found to remain stable for over 24 hours, minimizing calibration overhead.
  2. Error-Aware Layout: The compiler selects physical qubits based on a cost function that balances connectivity with specific MCM error rates, using normalization to avoid over-optimizing for marginal differences.
  3. Hierarchical Routing: During gate routing, MERA prioritizes paths that keep MCM-intensive logical qubits on high-fidelity physical locations, even if it requires a slightly higher number of SWAP gates.
  4. Context-Aware Scheduling: By utilizing "As-Late-As-Possible" (ALAP) scheduling and Context-Aware Dynamic Decoupling (CADD), MERA shields idling qubits from the noise generated during long MCM windows.

Evaluation and Results

MERA was evaluated using 27 benchmark circuits, including qubit-reuse implementations of the Bernstein-Vazirani (BV) algorithm (see Figure 3) and various Repeat-Until-Success (RUS) circuits. Testing on real-world IBM Eagle and Heron processors demonstrated significant performance gains.

A qubit-reuse circuit for the Bernstein-Vazirani (BV) algorithm, one of the primary benchmarks for MERA.

Compared to Qiskit’s highest optimization level (O3), MERA improved circuit fidelity by 24.94% to 52.00%. When applied as a post-processor for other specialized compilers like QR-Map, MERA provided an average fidelity boost of 29.26%, with peak improvements reaching 122.58%. Notably, these gains were achieved with zero overhead in terms of circuit depth or gate count.

Conclusion

MERA demonstrates that hardware-aware compilation is essential for the reliable execution of dynamic circuits. By bridging the "heterogeneity gap" in MCM errors, MERA allows programmers to leverage qubit reuse more effectively, pushing the boundaries of what is possible on current NISQ hardware. Future work will focus on integrating multi-state reset models and hardware-level readout mitigation into the compilation flow.

Summary updated

BibTeX
@misc{zhong2025compilation,
  author = {Ming Zhong and Zhemin Zhang and Xiangyu Ren and Chenghong Zhu and Siyuan Niu and Zhiding Liang},
  title = {{A Compilation Framework for Quantum Circuits with Mid-Circuit Measurement Error Awareness}},
  year = {2025},
  eprint = {2511.10921},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2511.10921},
}
Figure