LEGO_HQEC: Automating the Analysis, Construction, and Decoding of Holographic Quantum Codes
Junyu Fan, Matthew Steinberg, Alexander Jahn, Chunjun Cao, Aritra Sarkar, Sebastian Feld
TL;DR
LEGO_HQEC addresses the challenge of studying holographic quantum codes by providing an open-source software tool that automates construction, stabilization/operator extraction, and decoding under common noise channels. It couples the quantum LEGO formalism with a modular Python implementation to enable code construction on regular hyperbolic tilings and evaluation with three decoders: erasure Gaussian-elimination, Pauli integer-optimization, and tensor-network decoding. The authors demonstrate the tool on canonical holographic codes (HaPPY and Steane) and present new numerical results for the holographic black-hole HaPPY code, establishing an erasure threshold and illustrating finite-size behavior. This framework enables systematic exploration and benchmarking of holographic code variants and supports extensions to broader tilings, seed codes, and fault-tolerant schemes.
Abstract
Quantum error correction (QEC) is a crucial prerequisite for future large-scale quantum computation. Finding and analyzing new QEC codes, along with efficient decoding and fault-tolerance protocols, is central to this effort. Holographic codes are a recent class of generalized concatenated codes derived from holographic bulk/boundary dualities. In addition to exploring the physics of such dualities, these codes possess useful QEC properties such as tunable encoding rates, distance scaling competitive with other well-studied code classes,and excellent recovery thresholds. To allow for a comprehensive analysis of holographic code constructions, we introduce LEGO_HQEC, a software package utilizing the quantum LEGO formalism. This package allows for the construction and analysis of holographic codes on regular hyperbolic tilings, computing their stabilizer generators and logical operators for a specified number of seed codes and layers. Three decoders are included: an erasure decoder based on Gaussian elimination; an integeroptimization decoder; and a tensor-network decoder. With these tools, LEGO_HQEC enables systematic studies of both previously known holographic codes and novel variants. As a demonstration, we provide new numerical results on the holographic blackhole pentagon code, establishing its threshold behavior under the erasure channel as a benchmark example.
