English

A Resource Allocating Compiler for Lattice Surgery

Quantum Physics 2025-06-06 v1

Abstract

The emerging field of quantum resource estimation is aimed at providing estimates of the hardware requirements (`quantum resources') needed to execute a useful, fault-tolerant quantum computation. Given that quantum computers are intended to compete with supercomputers, useful quantum computations are likely to involve the use of millions of qubits and error correction clock cycles. The compilation and benchmarking of these circuits depends on placement and routing algorithms, which are infeasible to construct at scale by hand. We offer a compiler that transforms a quantum circuit into a sequence of lattice surgery operations. The compiler manages memory in terms of surface code patches and costs the space-time volume and cycle counts of the input circuits. These compiled lattice surgery objects are then recursively repurposed as gates for larger scale compilations. Our code is available on GitHub under a permissive software license and we welcome community contributions.

Keywords

Cite

@article{arxiv.2506.04620,
  title  = {A Resource Allocating Compiler for Lattice Surgery},
  author = {Alan Robertson and Haowen Gao and Yuval R. Sanders},
  journal= {arXiv preprint arXiv:2506.04620},
  year   = {2025}
}
R2 v1 2026-07-01T03:00:35.682Z