Abstract
We provide an efficient algorithm to compile quantum circuits for fault-tolerant execution. We target surface codes, which form a two-dimensional grid of logical qubits with nearest-neighbor logical operations. Embedding an input circuit’s qubits in surface codes can result in long-range two-qubit operations across the grid. We show how to prepare many long-range Bell pairs on qubits connected by edge-disjoint paths of ancillae in constant depth that can be used to perform these long-range operations. This forms one core part of our edge-disjoint path compilation (EDPC) algorithm, by easily performing many parallel long-range Clifford operations in constant depth. It also allows us to establish a connection between surface code compilation and several well-studied edge-disjoint path problems. Similar techniques allow us to perform non-Clifford single-qubit rotations far from magic state distillation factories. In this case, we can easily find the maximum set of paths by a max-flow reduction, which forms the other major part of EDPC. EDPC has the best asymptotic worst-case performance guarantees on the circuit depth for compiling parallel operations when compared to related compilation methods based on swap gates and network coding. EDPC also shows a quadratic depth improvement over sequential Pauli-based compilation for parallel rotations requiring magic resources. We implement EDPC and find significantly improved performance for circuits built from parallel controlled-not (cnot) gates, and for circuits that implement the multicontrolled gate .
19 More- Received 31 December 2021
- Accepted 16 February 2022
DOI:https://doi.org/10.1103/PRXQuantum.3.020342
Published by the American Physical Society under the terms of the Creative Commons Attribution 4.0 International license. Further distribution of this work must maintain attribution to the author(s) and the published article's title, journal citation, and DOI.
Published by the American Physical Society
Physics Subject Headings (PhySH)
Popular Summary
Computers are built from imperfect hardware that experiences rare faults that can corrupt computations if unaddressed. For quantum computers, with hardware that must store fragile quantum superposition states, faults can be many orders of magnitude more common. Luckily, there are techniques to gain sufficient fault-tolerance to perform useful quantum computations. The surface code forms the basis for a promising strategy to protect the information on a quantum computer, but it imposes constraints on the operations that can be performed. We consider how to abide by these constraints and efficiently compile an abstract circuit description of an algorithm into elementary operations on an architecture built from the surface code. This compilation algorithm reduces the resources required to implement algorithms, thus leading to more efficient quantum computing. Using elementary surface code operations, we show a constant-depth procedure for preparing long-range Bell states at the ends of edge-disjoint paths of ancillas. Our proposed edge-disjoint compilation (EDPC) algorithm uses this procedure to perform long-range Clifford operations, such as CNOT gates, and we show that the depth of implementing CNOT operations is optimal for large parallel CNOT circuits. We assume non-Clifford single qubit rotations can be performed at the boundary of the architecture, e.g., by consuming magic states produced by distillation. EDPC then implements these rotations in the bulk by reducing to long-range CNOT operations with the boundary by a simple circuit identity. We implement EDPC and show significantly improved performance in compiling parallel CNOT circuits and multi-controlled X gates.