[Paper Review] Distance-Finding Algorithms for Quantum Codes and Circuits
The paper benchmarks a wide range of distance-finding methods for classical codes, quantum codes, and quantum circuits, comparing exact and heuristic approaches, and provides an open-source Python package (codeDistance) for community use.
The distance of a classical or quantum code is a key figure of merit which reflects its capacity to detect errors. Quantum LDPC code families have considerable promise in reducing the overhead required for fault-tolerant quantum computation, but calculating their distance is challenging with existing methods. We generally assess the performance of a quantum code under circuit level error models, and for such scenarios the circuit distance is an important consideration. Calculating circuit distance is in general more difficult than finding the distance of the corresponding code as the detector error matrix of the circuit is usually much larger than the code's check matrix. In this work, we benchmark a wide range of distance-finding methods for various classical and quantum code families, as well as syndrome-extraction circuits. We consider both exact methods (such as Brouwer-Zimmermann, connected cluster, SAT and mixed integer programming) and heuristic methods which have lower run-time but can only give a bound on distance (examples include random information set, syndrome decoder algorithms, and Stim undetectable error methods). We further develop the QDistEvol algorithm and show that it performs well for the quantum LDPC codes in our benchmark. The algorithms and test data have been made available to the community in the codeDistance Python package.
Motivation & Objective
- Motivate distance as a key figure of merit for quantum error correction and its circuit-level implications.
- Benchmark and evaluate a broad range of distance-finding algorithms across classical, quantum, and circuit settings.
- Identify practical recommendations for selecting distance-finding methods by data set, code family, and error model.
- Provide an open-source toolkit to the community to facilitate distance-finding research and code evaluation.
Proposed method
- Classify distance-finding methods into exact algorithms (e.g., Brouwer–Zimmermann, MIP-SCIP, CLISAT, m4riCC, Magma) and heuristic algorithms (e.g., QDistRnd, QDistEvol, BP-OSD, Stim-based methods).
- Map quantum stabiliser codes to binary linear codes using two-block, three-block, and four-block representations to enable distance calculations.
- Frame distance finding for quantum circuits via Detector Error Models (DEMs) and Stim circuit representations, connecting circuit distance to code distance.
- Benchmark methodology across diverse data sets of classical codes, quantum codes, and syndrome-extraction circuits; report accuracy and run-time considerations.
- Discuss computational complexity (NP-complete for exact distance) and practical trade-offs between exactness and scalability.

Experimental results
Research questions
- RQ1What are the relative performance characteristics (accuracy and run-time) of exact versus heuristic distance-finding methods across classical, quantum, and circuit settings?
- RQ2How do different block representations (two-block, three-block, four-block) affect the efficiency and accuracy of distance-finding for quantum codes?
- RQ3Can heuristic methods, particularly QDistEvol, provide reliable bounds or close estimates of distance for quantum LDPC codes and circuits?
- RQ4What practical recommendations can be made for selecting distance-finding algorithms for various code families and circuit models?
- RQ5How does circuit-distance analysis relate to code-distance boundaries in the context of syndrome extraction circuits and detector error models?
Key findings
- QDistEvol demonstrates notably higher accuracy than other heuristic algorithms on the quantum LDPC code datasets benchmarked.
- Exact methods (e.g., Brouwer–Zimmermann, MIP-SCIP) and certain SAT/cluster approaches yield exact distances but with longer run-times, suitable for single-code analysis.
- Block-representation choice and implementation details (e.g., Four Russians, language implementations) significantly influence performance and scalability.
- The study provides a curated set of data sets and a reference mapping between codes and detector/observable matrices to facilitate distance-finding across contexts.
- An open-source codeDistance Python package consolidates wrappers and new implementations for community use and reproducibility.
- The work emphasizes that distance-finding complements, not replaces, full circuit-level simulations and experimental benchmarking.

Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.