Tricycle Codes: Classical & Quantum
- Tricycle codes are coding constructions featuring a three-part cyclic invariant structure, realized in both classical Z2 triple cyclic codes and quantum CSS qLDPC designs.
- In the classical setting, they are modeled as Z2[x]-submodules with blockwise cyclic shifts, clear generator sequences, and duality relations that ensure separability and error-bound properties.
- In the quantum arena, tricycle codes extend bicycle constructions into three-factor products, enabling transversal CCZ gates, single-shot decoding, and efficient fault-tolerant operations.
Searching arXiv for papers on tricycle codes, including both classical triple cyclic codes and recent quantum qLDPC tricycle code work. “Tricycle codes” is used in two distinct coding-theoretic senses in the arXiv literature. In classical algebraic coding theory, the term appears as a synonym for triple cyclic codes over , namely binary linear codes of block length whose coordinates are partitioned into three parts and are invariant under cyclic shifts within those parts (Mostafanasab, 2015, Srinivasulu, 2016). In recent quantum error-correction literature, “tricycle codes” denotes several families of CSS quantum LDPC codes that extend bicycle-type constructions to three homological dimensions or three-factor algebraic products, with applications to transversal , magic-state generation, and single-shot decoding (Menon et al., 14 Aug 2025, Jacob et al., 11 Aug 2025). The common thread is a three-part algebraic structure, but the underlying objects, parameters, and intended applications differ substantially.
1. Classical triple cyclic codes over
A triple cyclic code of length over is a binary linear code of length such that the set of coordinates can be partitioned into three parts and any cyclic shift of the coordinates of the parts leaves invariant the code (Mostafanasab, 2015). Equivalently, for a codeword
the blockwise cyclic shift
is again in the code (Mostafanasab, 2015). The closely related paper “Z2-Triple cyclic codes and their duals” defines a -triple cyclic code of block length 0 as a binary code of length 1 such that the code is partitioned into three parts of lengths 2 and 3 such that each of the three parts is invariant under the cyclic shifts of the coordinates (Srinivasulu, 2016).
These codes are modeled as 4-submodules of
5
with external multiplication
6
for 7 (Mostafanasab, 2015). This polynomial-module representation is the basic algebraic device for expressing generators, block projections, and duality. The terminology “tricycle code” in this classical setting therefore refers to a three-block cyclic invariance condition rather than to any quantum or homological construction.
2. Generator structure, minimal generating sets, and separability
For triple cyclic codes over 8, one structural description is
9
with 0, 1, and 2 (Mostafanasab, 2015). A closely related form given for 3-triple cyclic codes is
4
where 5, 6, and 7 (Srinivasulu, 2016). Both descriptions express the code as a finitely generated 8-submodule, and both encode inter-block coupling through nonzero off-diagonal polynomial components.
A minimal generating set over 9 is obtained by taking appropriate shifts of the module generators. In the formulation of (Mostafanasab, 2015),
0
1
2
and
3
The same source states that
4
The notion of separability isolates the case in which the three blocks decouple. A triple cyclic code is called separable if
5
where 6 are individual cyclic codes for each block (Mostafanasab, 2015). This is equivalent to the conditions 7 and 8, in which case the generator 9 can be replaced by 0 (Mostafanasab, 2015). The companion discussion in (Srinivasulu, 2016) states that a triple cyclic code is the direct sum of three cyclic codes if all 1, whereas nonzero interconnection polynomials induce dependencies between the blocks. This suggests that separability is the decisive algebraic distinction between purely blockwise cyclic structure and genuinely coupled three-block codes.
3. Projections, distance bounds, and duality in the classical setting
The block projections of a triple cyclic code are themselves cyclic codes. Specifically,
2
with sizes determined by the degrees of these generator polynomials (Mostafanasab, 2015). The same source gives the minimum-distance inequality
3
and states that equality holds if the code is separable.
Duality preserves the triple cyclic structure. The dual 4 of a triple cyclic code is again a triple cyclic code of the same block structure (Mostafanasab, 2015). A bilinear form is introduced on 5: 6 where 7 and 8 denotes reciprocal polynomial (Mostafanasab, 2015). Then
9
Explicit relations between code generators and dual generators are also given. For example,
0
and
1
where
2
(Mostafanasab, 2015). The paper (Srinivasulu, 2016) likewise states that dual generators are derived from parity-check polynomials, in analogy with the dual of an ordinary cyclic code. In the classical literature, then, “tricycle” primarily denotes a structured generalization of cyclic and double cyclic codes, organized by module-theoretic generators, reciprocal polynomials, and gcd relations.
4. Quantum tricycle codes as finite-blocklength qLDPC constructions
In quantum error correction, “tricycle codes” refers to CSS quantum LDPC codes obtained by extending bicycle-type constructions to three homological dimensions or to three-factor balanced products. “Magic tricycles: efficient magic state generation with finite block-length quantum LDPC codes” introduces tricycle codes as a class of finite block-length quantum LDPC codes generalizing bicycle codes to three homological dimensions (Menon et al., 14 Aug 2025). In that work, the codes are defined using three group-algebra elements 3 from a group algebra 4, with parity-check matrices
5
6
acting on 7 qubits grouped into three blocks or sectors (Menon et al., 14 Aug 2025).
A related but distinct family is the trivariate tricycle (TT) code family, introduced as CSS codes based on a length-3 chain complex and defined from three trivariate polynomials (Jacob et al., 11 Aug 2025). In that formulation,
8
and the CSS check matrices are
9
with meta-checks
0
(Jacob et al., 11 Aug 2025). The 3D toric code belongs to this construction via the choice 1, 2, 3 (Jacob et al., 11 Aug 2025).
The more general perspective of “Multivariate Multicycle Codes for Complete Single-Shot Decoding” places tricycle or TT codes at 4 within a Koszul-complex framework. Over
5
the length-3 Koszul complex yields explicit boundary maps
6
with TT codes supporting only 7-metachecks, hence only partial single-shot decoding (Mian et al., 26 Jan 2026). A plausible implication is that current quantum usage reserves “tricycle” for three-factor CSS/qLDPC constructions, while different papers emphasize either balanced-product language, chain-complex language, or group-algebra language.
5. Fault-tolerant gates, single-shot features, and decoding
A major motivation for quantum tricycle codes is the coexistence of LDPC structure with logical non-Clifford gates. The finite-blocklength tricycle codes of (Menon et al., 14 Aug 2025) support constant-depth physical circuits that implement logical 8 gates between three code blocks. For the standard 9 codes, a depth-18 circuit is always possible, and by imposing further constraints, depths as low as 0 are attainable at some cost in code rate and/or distance (Menon et al., 14 Aug 2025). The same paper states that tricycle codes are single-shot in the 1 basis, with meta-checks
2
enabling single-shot state preparation and error correction in constant depth (Menon et al., 14 Aug 2025).
The TT-code paper presents a different but related set of fault-tolerant features. It states that TT codes combine partial single-shot decodability, a large set of transversal Clifford gates and automorphisms within and between code blocks, and, for several sub-constructions, constant-depth implementations of a non-Clifford 3 gate (Jacob et al., 11 Aug 2025). All TT codes possess several transversal 4 gates that can partially address logical qubits between two code blocks, and shift automorphisms induced by monomial translations can implement Clifford gates within a code block (Jacob et al., 11 Aug 2025). For codes where 5 are all weight-2, or more generally for polynomials admitting a cup-product structure, a depth-2 circuit of physical 6 gates on triples of qubits within each cube can implement logical 7 gates between code blocks (Jacob et al., 11 Aug 2025).
The paper “Transversal dimension jump for product qLDPC codes” uses “bivariate tricycle codes” for small 3D qLDPC examples embedded in a broader lifted-product framework (Li et al., 8 Oct 2025). It identifies explicit 3D–2D code pairs, including the 8–9 pair, where the 3D tricycle codes admit depth-2 0, weight-6 stabilizers, and pseudo-thresholds 1 (Li et al., 8 Oct 2025). That work also describes a code-switching protocol between a 3D tricycle code and a 2D component code using one-way transversal CNOTs and teleportation logic (Li et al., 8 Oct 2025). In this line of research, tricycle codes are not merely storage codes; they are positioned as ingredients in universal fault-tolerant computation.
6. Concrete code instances, layouts, thresholds, and generalizations
Several explicit quantum code families and parameter points appear in the recent literature. The finite-blocklength tricycle paper reports examples such as 2, 3, 4, and 5, states a circuit-noise threshold of 6 with a Belief-Propagation + Ordered-Statistics Decoder (BPOSD), and gives an optimal CNOT-depth-7 syndrome measurement schedule for the standard instances (Menon et al., 14 Aug 2025). The TT-code paper reports circuit-level thresholds of 8 in the 9 error channel and 0 in the 1 error channel with single-shot decoding, and states that numerical searches found candidates with improved parameters relative to the 3D toric code, using up to 2 fewer data qubits as equivalent 3DTC encodings (Jacob et al., 11 Aug 2025). It also gives examples such as 3, 4, and 5 (Jacob et al., 11 Aug 2025).
The resource-oriented paper on transversal dimension jump emphasizes a small bivariate tricycle code 6 as an example with depth-2 7 and highly efficient magic-state preparation: a single round of stabilizer measurements followed by depth-2 8 and postselection produces states with error 9 and success probability 00 (Li et al., 8 Oct 2025). By contrast, “Magic tricycles” emphasizes deterministic low-overhead distillation without requiring post-selection, using single-shot state preparation and error correction (Menon et al., 14 Aug 2025). These are different protocols in different constructions, not interchangeable statements about a single universal tricycle family.
A neighboring line of work, “Multivariate Bicycle Codes,” focuses on trivariate bicycle (TB) codes rather than tricycle codes, but it is closely adjacent conceptually because it also exploits a three-variable algebraic structure in QLDPC design (Voss et al., 2024). TB-QLDPC codes are introduced as an extension of multivariate bicycle constructions and include explicit weight-5 examples with bi-planar structure, toric layouts, and syndrome circuits of depth 01 (Voss et al., 2024). The paper reports that one example can encode 02 logical qubits with distance 03 into 04 physical qubits using weight-5 check measurements of circuit depth 05, whereas a comparable surface code requires 06 physical qubits (Voss et al., 2024). This does not make TB codes identical to tricycle codes, but it suggests a broader three-variable design trend in finite-length qLDPC research.
The generalization beyond tricycle codes is made explicit in “Multivariate Multicycle Codes for Complete Single-Shot Decoding,” which states that multivariate multicycle (MM) codes unify and generalize bivariate bicycle codes, multivariate bicycle codes, abelian two-block group algebra codes, generalized bicycle codes, trivariate tricycle codes, and 07-dimensional toric codes (Mian et al., 26 Jan 2026). In that framework, tricycle codes correspond to length-08 chain complexes, while MM codes with 09 possess both 10- and 11-metachecks and therefore complete single-shot decoding (Mian et al., 26 Jan 2026). This places tricycle codes in a larger algebraic hierarchy: they are sufficiently structured to support partial single-shot decoding and logical non-Clifford gates, but not the full metacheck symmetry available in longer multicycle constructions.