This repository contains the source code required to reproduce the simulation results presented in the paper: Beam Search Decoder for Quantum LDPC Codes.
To reproduce the results, follow these 3 steps:
-
Install dependencies:
pip install -r requirements.txt
-
Build the Decoder Extension: Navigate to the
decoderdirectory and compile the C++ extension:cd decoder python3 setup.py build_ext --inplace -
Run the Simulations: Open
Beam_Search.ipynband execute the cells following the instructions provided within the notebook.
-
StimCircuit/: Stim circuits used for simulation. -
simulation_results/: Directory for storing simulation outputs. -
decoder/src_cpp/: C++ source files (main file:beam_search.hpp). -
decoder/beam_search_decoder/: Python wrappers. -
Beam_Search.ipynb: Notebook to reproduce paper results. -
simulation_functions.py: Python scripts that are used inBeam_Search.ipynb
If you use this code in your research, please cite our paper:
@article{ye2026beam,
title={Beam Search Decoder for Quantum Low-Density Parity-Check Codes},
author={Ye, Min and Wecker, Dave and Delfosse, Nicolas},
journal={PRX Quantum},
volume={7},
number={3},
pages={033002},
year={2026},
publisher={APS}
}Copyright (c) 2025 IonQ, Inc., all rights reserved
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.
This project includes code from the ldpc library (https://github.com/quantumgizmos/ldpc), originally released under the MIT License.
The files /decoder/src_cpp/gf2sparse.hpp and /decoder/src_cpp/sparse_matrix_base.hpp are MIT-licensed and retain that license.