---
title: Clifford-Deformed Compass Codes
url: https://www.emergentmind.com/topics/clifford-deformed-compass-codes
type: topic
---

# Clifford-Deformed Compass Codes

Clifford-deformed compass codes are quantum error-correcting codes obtained by combining two design freedoms in the square-lattice compass-code family: gauge fixing of the 2D quantum compass subsystem code, and local single-qubit Clifford conjugations of the resulting stabilizers. In the formulation studied by Campos and Brown, the central use case is biased noise dominated by dephasing, where elongated compass codes can be tailored further by applying patterned Hadamards so that the deformed stabilizers acquire mixed \(X/Z\) support while retaining the same locality and support size. The resulting codes exhibit improved decoder symmetries, thresholds that increase with bias, and lower logical error rates; one of the reported deformations outperforms the XZZX surface code at moderate bias [2412.03808].

## 1. Compass-code origin and gauge fixing

Compass codes arise from the 2D quantum compass subsystem code on an \(L \times L\) square lattice. In the convention used for the elongated-compass construction, the gauge generators are two-body \(XX\) operators on horizontal edges and two-body \(ZZ\) operators on vertical edges,
\[
G_X(i,j)=X_{i,j}X_{i+1,j}, \qquad
G_Z(i,j)=Z_{i,j}Z_{i,j+1}.
\]
Different choices of which gauge operators are fixed convert this subsystem structure into different stabilizer codes, including Bacon–Shor codes, surface codes, and elongated compass codes [2412.03808].

The elongated family is specified by an elongation parameter \(\ell\). The construction fixes \(X\)-gauges on every \(\ell\)th diagonal of plaquettes, \(i-j \equiv 0 \pmod \ell\), producing weight-4 \(X\)-stabilizers on those plaquettes. Between these diagonals, products of \(Z\)-gauges are fixed to form elongated \(Z\)-stabilizers, and the remaining horizontal \(X\)-gauges are then fixed to complete the stabilizer group. The unfixed gauge products become logical degrees of freedom. In the square-lattice description used for circuit-level studies, one can choose
\[
X_L=\prod_{k=1}^d X_{k,1}, \qquad
Z_L=\prod_{k=1}^d Z_{1,k},
\]
with code distance \(d\) [2605.27598].

The significance of this gauge-fixing viewpoint is architectural rather than merely taxonomic. The family inherits a common local gauge origin, but different gauge-fixing choices redistribute syndrome information between \(X\)- and \(Z\)-type checks. In the biased-noise setting emphasized in the literature, elongation is used to obtain more information on the higher-rate error channel, namely dephasing-dominated \(Z\) faults [2412.03808].

## 2. Clifford deformation as local Pauli-axis rotation

A Clifford deformation applies single-qubit Clifford unitaries \(U_q\) independently to the data qubits. If a stabilizer is \(S=\bigotimes_q P_q\), then conjugation by \(U=\bigotimes_q U_q\) yields
\[
U S U^\dagger=\bigotimes_q (U_q P_q U_q^\dagger),
\]
which is again a Pauli operator with the same weight and support. In the elongated-compass constructions studied to date, the only nontrivial single-qubit Clifford required is the Hadamard \(H\), which swaps \(X \leftrightarrow Z\) [2412.03808].

On each fixed weight-4 \(X\)-plaquette, a patterned choice of Hadamards on opposite corners converts the undeformed \(XXXX\) stabilizer into a mixed-basis plaquette. One diagonal choice produces an \(XZZX\)-type plaquette, while the other produces a \(ZXXZ\)-type plaquette. In the notation of the 2024 work, applying \(H\) on the upper-right and lower-left corners maps
\[
S^X_{i,j} \to S^X_{i,j}(\square)=X_{i,j}\,Z_{i+1,j}\,Z_{i+1,j+1}\,X_{i,j+1},
\]
and the complementary diagonal defines the \(ZXXZ\!\square\) deformation [2412.03808]. In the circuit-level formulation, the \(ZXXZ\!\square\) pattern is described equivalently as applying Hadamards on the top-left and bottom-right qubits of each fixed cell so that
\[
XXXX \longrightarrow ZXXZ,
\]
without changing support; when \(\ell=2\), this exactly recovers the XZZX deformation of the rotated surface code [2605.27598].

This local-Clifford mechanism should be distinguished from code deformation in the older topological-computation sense. Earlier work on subsystem color codes used “code deformation” to mean changing which local gauge and face operators are enforced in order to move twists, braid defects, or split and merge patches [1006.5260]. By contrast, in Clifford-deformed compass codes the code family is altered by static local conjugation of Pauli axes before decoding is considered. The two notions are related by shared subsystem and compass-model ancestry, but they are operationally distinct.

## 3. Biased noise, decoding-graph structure, and threshold behavior

The noise model used in the code-capacity analysis is an asymmetric Pauli channel with independent single-qubit errors,
\[
p = p_x + p_y + p_z, \qquad p_x = p_y, \qquad
\eta \equiv \frac{p_z}{p_x + p_y}.
\]
Here \(\eta\) is the dephasing bias. Depolarizing noise corresponds to \(\eta=0.5\), while trapped-ion and cat-qubit experiments are described as reporting \(\eta \gtrsim 10\)–\(100\) [2412.03808].

Thresholds are not given in closed form; they are extracted numerically by finite-size scaling of the logical error rate near threshold. The 2024 study writes
\[
P_L(p,L) \simeq A\,[(p-p_{th})L^{1/\nu}] + \cdots
\]
and determines \(p_{th}(\eta)\) from the crossings and fits [2412.03808]. The central empirical observation is that the deformed elongated compass codes exhibit thresholds that increase with bias and logical error rates that decrease relative to undeformed CSS variants.

The decoder improvement is tied to a structural property of the deformed matching graph. For the \(XZZX\!\square\)-deformed code, the low-weight edges associated with the more likely dephasing faults form quasi-1D strips or isolated diamonds. High-weight edges associated with less likely \(X\) faults connect these regions only weakly. The paper describes this as a “domain-wall” symmetry that confines dephasing defects to small regions, simplifies matching, and raises thresholds under biased noise [2412.03808].

The threshold data reflect this reorganization. For \(\ell=4\), the reported thresholds at \(\eta \approx 3.0\) are \(8.3\%\) for the CSS code, \(13.0\%\) for the \(XZZX\!\square\) deformation, and \(12.4\%\) for the \(ZXXZ\!\square\) deformation. At larger biases the gain becomes more pronounced: at \(\eta=25\), the values are \(17.0\%\), \(21.2\%\), and \(34.5\%\); at \(\eta=50\), \(16.8\%\), \(23.3\%\), and \(37.9\%\); and at \(\eta=100\), \(16.8\%\), \(24.9\%\), and \(40.0\%\), again in the order CSS, \(XZZX\!\square\), \(ZXXZ\!\square\) [2412.03808]. These figures show that the deformation is not merely a basis relabeling from the decoder’s perspective; it changes the syndrome geometry relevant to biased matching.

## 4. Relation to the XZZX surface code and logical-error comparisons

The \(\ell=2\) member of the deformed elongated family coincides with the rotated-surface-code XZZX construction. This makes the elongated deformations a direct generalization rather than a separate code family. The comparison emphasized in the original study is therefore a controlled comparison between \(\ell>2\) Clifford-deformed elongated compass codes and the standard XZZX surface code realized at \(\ell=2\) [2412.03808].

At moderate bias, the \(ZXXZ\!\square\)-deformed \(\ell=4\) code exceeds the XZZX surface code both in threshold and, in part of parameter space, in logical error rate. The paper reports that at \(\eta \approx 25\)–\(100\), the \(ZXXZ\!\square\)-deformed \(\ell=4\) code achieves thresholds from approximately \(34.5\%\) to \(40.0\%\), while the XZZX surface code plateaus in the same regime at approximately \(32\%\) to \(38\%\) [2412.03808]. This establishes that elongation and deformation can be complementary rather than redundant.

The logical-error comparison is presented through the ratio
\[
P_L(\text{CSS or deformed}, \ell=4)/P_L(\text{XZZX}, \ell=2)
\]
for physical error rates \(p=5\%\) and \(10\%\). Above bias \(\eta \gtrsim 10\), the \(ZXXZ\!\square\) code is reported to achieve the lowest logical error rate, and in some cases \(P_L(ZXXZ\!\square) < P_L(XZZX)\), corresponding to a ratio below one [2412.03808]. A common misconception is that XZZX exhausts the advantage obtainable from local Clifford tailoring under biased dephasing. The elongated-compass results show that further gauge-fixing freedom can produce additional gains.

## 5. Circuit-level noise and correlated decoding

Subsequent work studied the same Clifford-deformed elongated compass codes under circuit-level noise rather than code-capacity noise. The circuit model uses a Hybrid Biased-Depolarizing (HBD) channel: bias-preserving \(CZ\) gates receive a two-qubit Pauli channel with
\[
P(IZ)=P(ZI)=P(ZZ)=\frac{\eta p}{3(1+\eta)},
\qquad
P(\text{any other two-Pauli})=\frac{p}{12(1+\eta)},
\]
while \(CNOT\) and single-qubit \(H\) gates are assigned a fully depolarizing channel of strength \(p\). Idling, state preparation, and measurement use a single-qubit asymmetric channel with
\[
p_x=\frac{p}{2(1+\eta)}, \qquad p_z=\frac{\eta p}{1+\eta},
\]
and measurement errors occur with probability \(p\) [2605.27598].

Syndrome extraction is performed with a single ancilla per stabilizer. For an \(X\)-stabilizer of weight \(k\), the circuit is
\[
H_s \to \prod_{i \in \mathrm{supp}} \mathrm{CNOT}_{s \to i} \to H_s \to M_s,
\]
whereas \(Z\)-stabilizers use \(\mathrm{CNOT}_{i \to s}\). In the Clifford-deformed case, some of these \(CNOT\) gates become \(CZ\) gates because of the Hadamard conjugations. Simulations are carried out in Stim, and the resulting detector error models are decoded with MWPM or with PyMatching’s correlated decoder [2605.27598].

The decoder comparison is central. Standard MWPM uses graph weights
\[
w_{ij}=\log\!\bigl(\tfrac{1-p_{ij}}{p_{ij}}\bigr),
\]
where \(p_{ij}\) is the probability attached to an edge in the matching graph. The correlated decoder performs a first matching pass, then updates edge weights using conditional probabilities inherited from shared hyperedges in the detector error model, and performs a second pass. Under circuit-level noise, correlated decoding improves thresholds for all biases studied [2605.27598].

Representative thresholds make the effect explicit. For the CSS elongated code with \(\ell=6\), the threshold rises from \(0.98\%\) to \(1.32\%\) at \(\eta=0.5\), from \(1.10\%\) to \(1.40\%\) at \(\eta=10\), from \(1.18\%\) to \(1.43\%\) at \(\eta=100\), and from \(1.20\%\) to \(1.45\%\) at \(\eta=1000\) when moving from standard MWPM to correlated decoding. For the \(ZXXZ\!\square\)-deformed code with \(\ell=6\), the corresponding improvements are \(1.05\%\to1.12\%\), \(1.09\%\to1.18\%\), \(1.10\%\to1.20\%\), and \(1.11\%\to1.21\%\) [2605.27598]. The same study reports that CSS thresholds continue to rise with bias, whereas the \(ZXXZ\!\square\) thresholds saturate at high \(\eta\) because the syndrome circuits mix bias-preserving \(CZ\) operations with depolarizing \(CNOT\) and \(H\) operations. A plausible implication is that the asymptotic code-capacity advantages of Clifford deformation depend sensitively on how faithfully the hardware and extraction circuits preserve the physical bias.

## 6. Broader theoretical setting and later generalizations

Later work places Clifford-deformed compass-like constructions inside a broader theory of Clifford-deformed zero-rate LDPC codes under pure dephasing. In that framework, if every nontrivial pure-\(Z\) logical has weight at least \(K n^\alpha\) and the number of pure-\(Z\) logicals grows sub-exponentially in \(n^\alpha\), then for any \(p_Z < 1/2\) the decoding failure probability vanishes asymptotically. An alternative sufficient condition uses a basis of logical operators whose supports are disjoint or satisfy controlled overlap conditions. The result is a \(50\%\) infinite-bias code-capacity threshold [2605.15348].

This framework is presented as explaining previously known \(50\%\) biased-noise thresholds for the XY surface code, XZZX surface code, deformed color codes, and some 3D Clifford-deformed codes. It is also extended to tile codes, which are described there as zero-rate LDPC “tile (compass) codes.” Random and translationally invariant Clifford deformations of those codes exhibit regions with estimated threshold \(p_{th} \approx 0.5\) under pure \(Z\) noise, and circuit-level performance is analyzed in terms of a residual bias
\[
\eta_{\mathrm{eff}}=\bar p_Z/(\bar p_X+\bar p_Y)
\]
after a full syndrome-extraction cycle [2605.15348].

For Clifford-deformed compass codes proper, these later results are best read as theoretical context rather than a direct rederivation of the elongated-compass numerics. They suggest that the high-bias performance of local-Clifford deformations is governed by the geometry of the surviving pure-\(Z\) logical sector and by the extent to which syndrome extraction preserves the intended anisotropy. In that sense, the 2024 elongated-compass constructions occupy an intermediate position between the XZZX surface code and more general Clifford-deformed LDPC families: they retain a transparent gauge-fixing origin, admit explicit circuit constructions and decoder analyses, and exemplify how local Pauli-axis rotations can be co-designed with subsystem structure and biased-noise decoding [2412.03808].

Source: https://www.emergentmind.com/topics/clifford-deformed-compass-codes