Quantum Circuit Resizing

Movahhed Sadeghi, Soheil Khadirsharbiyani, Mahmut Taylan KandemirarXiv 2023 · DOI

Abstract

Practical quantum computing currently faces a significant hardware bottleneck known as the "Qubit Gap." Most useful quantum algorithms require far more qubits than are available on contemporary Noisy Intermediate-Scale Quantum (NISQ) chips. This paper presents a compiler-based "resizing" strategy that leverages Middle Measurement (MM) and Middle Reset (MR) to recycle qubits mid-program. By serializing circuit execution, the researchers achieved an average 8.87x reduction in required qubits and a 2.1x improvement in result reliability by reducing crosstalk and connectivity-related overhead.

The Challenges of the NISQ Era

Quantum computing is currently limited by two primary factors:

  1. The Qubit Gap: There is a massive disparity between the number of logical qubits required by complex algorithms and the physical qubits available on current hardware. If an algorithm requires 20 qubits but the hardware only provides 5, traditional compilers cannot execute the program.
  2. The Connectivity Tax: Physical qubits on a chip are not all-to-all connected. Operations between distant qubits require "SWAP" gates to move quantum information. These gates are noisy and increase the risk of decoherence, where the quantum state is lost before the computation completes.

Methodology: Serializing Quantum Circuits

The proposed solution involves "resizing" circuits to fit smaller hardware by running them in serial chunks. This is made possible by two hardware features: Middle Measurement (MM) and Middle Reset (MR).

Figure 1: Equivalent circuits demonstrating how parallel operations can be serialized.

Serializable Identification and Qubit Recycling

The core of the resizing algorithm is identifying qubits that complete their operations early. By analyzing the circuit's Directed Acyclic Graph (DAG), the compiler finds qubits that can be measured and reset. Once reset, these physical qubits can be "reincarnated" to represent different logical qubits for subsequent parts of the algorithm.

The "Iteration" Approach

A key technical hurdle is the standard "shot-based" execution model, where a circuit is repeated thousands of times. Traditional hardware stalls during Middle Measurements to complete all shots, leading to decoherence in other active qubits. The authors propose an "Iteration" model—executing the entire serialized sequence once per loop—to minimize latency and preserve quantum states.

Figure 6: Transformation of a parallel 4-qubit circuit into a serialized 2-qubit circuit using middle measurements and resets.

Key Results and Insights

The resizing approach yields significant improvements in both scalability and reliability:

  • Massive Size Reduction: Circuits were shrunk by an average of 8.87x. Notably, a 19-qubit Bernstein-Vazirani circuit was successfully run on just 2 qubits.
  • Enhanced Fidelity: Serialized circuits often outperformed their parallel counterparts. By reducing the number of active qubits, the system experiences less crosstalk. Furthermore, serialization drastically reduces the need for noisy SWAP gates, leading to a 2.1x average improvement in the Probability of Success Threshold (PST).
  • Gate Efficiency: Total gate counts were reduced by approximately 49%, primarily due to the elimination of connectivity-related overhead.

Limitations and Future Outlook

While promising, circuit resizing faces a "coherence cap." If a circuit is serialized too extensively, the total execution time may exceed the coherence time of the qubits. Future work involves integrating these techniques with high-level Intermediate Representation (IR) optimizers to better handle complex dependencies. Additionally, widespread adoption will require hardware vendors to shift from traditional "shot" management to more flexible execution models that support efficient qubit reuse.

Summary updated

BibTeX
@misc{sadeghi2023quantum,
  author = {Movahhed Sadeghi and Soheil Khadirsharbiyani and Mahmut Taylan Kandemir},
  title = {{Quantum Circuit Resizing}},
  year = {2023},
  eprint = {2301.00720},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2301.00720},
}
Figure