Enabling Full-Stack Quantum Computing with Changeable Error-Corrected Qubits

An‐Bang Wu, Keyi Yin, Andrew W. Cross, Ang Li, Yufei DingarXiv 2023 · DOI

Abstract

Executing quantum applications with quantum error correction (QEC) faces the gate non-universality problem imposed by the Eastin-Knill theorem. As one resource-time-efficient solution, code switching changes the encoding of logical qubits to implement universal logical gates. Unfortunately, it is still unclear how to perform full-stack fault-tolerant quantum computing (FTQC) based on the changeable logical qubit. Specifically, three critical problems remain unsolved: a) how to implement the dynamic logical qubit on hardware; b) how to determine the appropriate timing for logical qubit varying; c) how to improve the overall system performance for programs of different features. To overcome those design problems, we propose CECQ, to explore the large design space for FTQC based on changeable logical qubits. Experiments on various quantum programs demonstrate the effectiveness of CECQ.

Introduction

Quantum computers are inherently susceptible to noise, necessitating the use of Quantum Error Correction (QEC) to group physical qubits into high-fidelity "logical" qubits. However, the Eastin-Knill theorem presents a fundamental challenge: no single QEC code can implement a universal set of gates transversally. To circumvent this, researchers utilize "code switching," where a logical qubit dynamically changes its internal encoding—for instance, switching from a Steane code to a Reed-Muller (RM) code—to perform specific operations like the T-gate.

Despite its theoretical promise, implementing code switching in a full-stack system has remained elusive. Challenges include mapping these fluid structures onto physical hardware and developing compilers capable of managing the significant overhead associated with switching.

The CECQ Framework

CECQ is a full-stack framework designed to bridge the gap between abstract QEC theory and physical implementation. It operates through two primary pillars: architectural layout optimization and context-aware compilation.

1. Architectural Layout Optimization

CECQ introduces a multi-step strategy to map logical qubits onto physical hardware grids. The layout prioritizes reliability by optimizing for three key factors in descending order: error detection (the most frequent operation), logical CX gates (inter-qubit communication), and finally, the specific paths required for code switching. This hierarchy ensures that the infrastructure for switching does not compromise the baseline fidelity of the error correction process.

Mapping logical qubits onto a physical grid with optimized paths for CX gates and code switching.

2. AwareCS Compiler

The framework includes the AwareCS compiler, which utilizes a "Blocking and Refining" algorithm to manage the timing of code switches. Rather than switching for every non-transversal gate, the compiler identifies groups of gates that can be executed together in a specific code mode. By reordering gates, it minimizes the time spent in more error-prone states (like RM) and only triggers a switch when the fidelity gain outweighs the operational cost.

Fault-tolerant code switching process from Steane code to Reed-Muller code.

Evaluation and Results

The CECQ framework was evaluated using Qasmbench, covering elementary functions (e.g., Ripple-Carry Adders) and complex applications (e.g., Grover’s algorithm and UCCSD chemistry simulations).

Key findings include:

  • Layout Efficiency: The optimized layout reduced program error rates by an average of 99.3% and space-time overhead by 43.9% compared to baseline layouts.
  • Compiler Performance: The AwareCS compiler reduced code switching operations by 62.5% and space-time overhead by 43.8% compared to code-agnostic approaches.
  • System Fidelity: In practical benchmarks like the Ripple-Carry Adder, the framework maintained a success probability (fidelity) of over 98% under simulated noise conditions.

Conclusion

CECQ demonstrates that code switching is a viable path toward universal fault-tolerant quantum computing when supported by a co-designed hardware-software stack. By treating code switches as high-cost context switches and optimizing physical layouts for the most frequent operations, CECQ significantly reduces the overhead of non-transversal gates. Future work will look to extend this framework to more complex 2D and 3D color codes and explore its application in dynamic hardware topologies.

Summary updated

BibTeX
@misc{wu2023enabling,
  author = {An‐Bang Wu and Keyi Yin and Andrew W. Cross and Ang Li and Yufei Ding},
  title = {{Enabling Full-Stack Quantum Computing with Changeable Error-Corrected Qubits}},
  year = {2023},
  eprint = {2305.07072},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2305.07072},
}
Figure