Feroz Ahmed Mian, Owen Gwilliam, and Stefan Krastanov
Code matrices, numerical experiments, and computational records accompanying the paper.
The paper develops a Koszul-complex formulation of multivariate multicycle (MM) codes. Over finite abelian group algebras, this is a reformulation of abelian multicycle (AMC) codes at the corresponding homological degree. The repository contains explicit code instances, distance searches and certification records, and finite-instance confinement and decoding experiments.
| To inspect or reproduce | Start here |
|---|---|
| Code matrices and examples | QECCs and HDF5 loading notebook |
| Defining polynomials, moduli, and structural checks | Distance audit code and registry |
| Distance bounds, witnesses, and certification records | Distance audit guide |
| Revised Figures 4, 5, 7, and 8 | 24 October simulation archive |
| Single-shot metacheck experiments | Single-shot decoding guide |
| Historical figure data and logs | Figure provenance |
| Native dist-m4ri confinement runs | Confinement campaign |
| Additional experiment notebooks | Numerical experiments |
MM instances are constructed with
QuantumClifford.jl
and Oscar. See the
MultivariateMulticycle documentation
for the constructor and examples.
The repository includes Matrix Market (.mtx) files and HDF5 (.h5) files.
HX and HZ denote the X- and Z-type parity-check matrices; metacheck and
logical-operator matrices are included where available. The
loading notebook describes the HDF5 data.
Use the loading code associated with an experiment to preserve its matrix
orientation and qubit ordering. Stim simulations use circuits generated from
these matrices; the matrix files themselves are not Stim circuits.
For binary parity-check matrices with qubits as columns,
$$
H_X H_Z^{\mathsf{T}} = 0,
\qquad
k = n - \operatorname{rank}_{\mathbb{F}2}(H_X)
- \operatorname{rank}{\mathbb{F}_2}(H_Z).
$$
Historical filenames and plot labels are retained. A distance appearing in a
filename is not, by itself, a distance certificate. Match an instance using its
defining data or saved matrices, not only its label or its values of n and k.
Distance records distinguish three kinds of evidence:
- Search estimate: a value returned by a randomized search.
- Verified upper bound: a saved nontrivial logical operator whose weight, zero syndrome, and nonmembership in the stabilizer row space have been checked.
- Exact distance: a verified upper bound matching a lower bound established by completed connected-cluster exclusions.
For an X logical operator, check membership in ker(HZ) and nonmembership in
rowspan(HX); interchange X and Z for a Z logical operator. The overall CSS
distance is min(dX, dZ). A timeout does not exclude the weight still being
searched, and randomized trials alone do not establish exactness.
The distance audit guide explains the original sQetch searches, later dist-m4ri searches, and witness-verification commands. The following records are especially useful:
| Campaign | Evidence |
|---|---|
| Original connected-cluster campaign | Records and verification instructions |
| Three additional Table I instances | Table I certification records |
| Four larger instances with historical unverified estimates | Additional random-window runs and witnesses |
The CSV files in Distance Audit/final/ are historical summaries. They do not
include every later campaign. In particular, the unverified dagger entries for
table3_row025, table3_row027, table4_row023, and table4_row026 must be read
alongside the additional random-window records linked above. Earlier verified
upper bounds remain valid for the same matrices; use the smallest verified bound
available for each sector and check for a matching certified lower bound.
The 24 October 2026 rerun contains the phenomenological and circuit-level memory experiments for these figures. It records the circuits actually sampled, detector error models, decoder settings, software versions, raw Sinter statistics, circuit resources, and plotting inputs.
Use its run and plotting instructions
to reproduce the experiment or redraw the saved results. The earlier
Figure04/, Figure05/, and Figure07_08/ directories remain as historical
records; the linked revision campaign is the source for the updated figures.
Single-Shot Decoding contains the metacheck experiments, exported matrices, simulation and plotting scripts, raw counts, and run log. Its README describes the noise model, decoder variants, stopping rules, and statistical intervals.
Figure Provenance groups the earlier experiments by figure number, with result tables, logs, plots, and available circuit files. For example, the saved overlapping-window experiments are in Figure09 and Figure10. Figure numbers refer to the manuscript versions used when the archives were created.
Use each campaign's recorded settings and plotting convention: the experiments do not all use the same decoder, per-round normalization, or uncertainty interval. Historical records vary in completeness. A configuration in a later script or notebook does not establish the settings of an earlier run.
The native dist-m4ri campaign preserves the input matrices, executable and version information, commands, logs, and observed profiles for eight MM instances in both sectors.
These profiles report the minimum nonzero syndrome weight observed at each reported cluster weight during the search. They are not automatically certified minima over all connected supports, and a missing entry does not mean zero. The campaign README explains the search settings and stopping conditions.
Finite-instance distance, confinement, and decoding results provide different kinds of evidence. The presence of metachecks or a finite observed profile does not by itself prove complete single-shot decoding for an asymptotic family.
Start with the README for the relevant campaign and its saved inputs. Use its recorded software versions where available, preserve the original outputs, and save new runs separately. When reporting a result, identify the repository commit and the campaign directory so the matrices, settings, and outputs can be located together.
If you use these constructions or data, please cite:
@article{mian2026multivariate,
title={Multivariate Multicycle Codes for Complete Single-Shot Decoding},
author={Mian, Feroz Ahmed and Gwilliam, Owen and Krastanov, Stefan},
journal={arXiv preprint arXiv:2601.18879},
year={2026}
}See LICENSE for the repository license. Questions and corrections can be raised through GitHub issues.