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

# Clifford-Deformed Elongated Compass Codes

Clifford-deformed elongated compass codes are a family of two-dimensional stabilizer codes obtained by combining anisotropic gauge fixing of the quantum compass model with local single-qubit Clifford transformations. In the construction studied most directly, one starts from elongated compass codes tailored to \(Z\)-biased noise and then applies Hadamards on selected qubits so that the higher-weight \(X\) stabilizers acquire XZZX- or ZXXZ-type patterns while the weight-2 \(X\) stabilizers that are crucial for detecting many \(Z\) errors are preserved. The resulting XZZX\(_\square\)- and ZXXZ\(_\square\)-deformed elongated compass codes are designed for dephasing-biased noise, exhibit thresholds that increase with bias, and display lower logical error rates; circuit-level studies further show that correlated minimum-weight perfect matching enhances thresholds for all noise biases relative to standard MWPM [2412.03808], [2605.27598].

## 1. Gauge-theoretic origin and elongated compass structure

Clifford-deformed elongated compass codes inherit their base geometry from the two-dimensional quantum compass model on an \(L\times L\) square lattice with qubits on vertices. The underlying Hamiltonian is
\[
\hat{H} = -J_X \sum_{i=0}^{L-2} \sum_{j=0}^{L-1} \hat{X}_{i,j}\hat{X}_{i+1,j}
          -J_Z \sum_{i=0}^{L-1} \sum_{j=0}^{L-2} \hat{Z}_{i,j}\hat{Z}_{i,j+1},
\]
and the associated gauge group is generated by vertical \(X\)-type and horizontal \(Z\)-type weight-2 operators. In the broader compass-code framework, this subsystem structure interpolates between Bacon–Shor and surface-code-like limits through gauge fixing; the surface code and the Bacon–Shor code represent two extremes of possible codes depending on how many gauge qubits are fixed [2412.03808], [1809.01193].

The elongated compass-code subfamily is parameterized by an integer elongation \(\ell\). Its defining feature is an asymmetric gauge-fixing pattern that increases the number of short \(X\)-type checks while aggregating \(Z\)-type gauges into longer checks. In the earlier compass-code literature this asymmetry was introduced precisely to trade locality for asymmetry and gauge degrees of freedom for stabilizer syndrome information under biased Pauli noise [1809.01193]. In the specific elongated construction used for Clifford deformation, \(\ell=2\) reproduces the standard rotated surface code, while larger \(\ell\) produces a progressively more anisotropic code in which information about \(Z\) errors is fine-grained and information about \(X\) errors is coarse-grained [2412.03808].

This gauge-theoretic origin matters because the later Clifford deformation does not discard the elongated compass-code rationale. The deformation is applied after the bias-tailored gauge fixing has already selected a stabilizer pattern that is intended to obtain more information on high-rate errors [2412.03808].

## 2. Explicit construction and local Clifford deformation

The elongated compass code \(\mathcal{C}_\ell\) is built on plaquettes labeled by coordinates \((i,j)\). The gauge-fixing rule is organized around the congruence
\[
i-j \equiv 0 \pmod{\ell}.
\]
On those plaquettes, vertical \(X\)-type gauges are fixed into weight-4 stabilizers
\[
S^{(X)}_{i,j} = X_{i,j} X_{i+1,j} X_{i,j+1} X_{i+1,j+1}.
\]
Between successive such plaquettes, horizontal \(Z\) gauges are combined into elongated \(Z\) stabilizers of weight \(2\ell\), schematically of the form
\[
S^{(Z)} \sim \prod_{m=0}^{\ell-1} Z_{i, j+m}\, Z_{i+1, j+m}.
\]
All remaining vertical weight-2 \(X\) gauges around those \(Z\) rectangles are then fixed to ensure commutativity, yielding an ordinary CSS stabilizer code [2412.03808].

The Clifford-deformed variants are obtained by applying local Hadamards to selected corners of each weight-4 \(X\) plaquette. Two deformations are singled out. In the XZZX\(_\square\) deformation, Hadamards are applied to the top-right and bottom-left qubits of each weight-4 \(X\) stabilizer. Thus
\[
X_{\text{TL}} X_{\text{TR}} X_{\text{BL}} X_{\text{BR}}
\;\xrightarrow{\text{XZZX}_\square}\;
X_{\text{TL}}\, Z_{\text{TR}}\, Z_{\text{BL}}\, X_{\text{BR}}.
\]
In the ZXXZ\(_\square\) deformation, Hadamards are applied instead to the top-left and bottom-right qubits, giving
\[
X_{\text{TL}} X_{\text{TR}} X_{\text{BL}} X_{\text{BR}}
\;\xrightarrow{\text{ZXXZ}_\square}\;
Z_{\text{TL}}\, X_{\text{TR}}\, X_{\text{BL}}\, Z_{\text{BR}}.
\]
These transformations preserve the support of each stabilizer and preserve total stabilizer weight, but typically break CSS structure by producing mixed-type checks [2412.03808].

In the general framework of Clifford-deformed surface codes, such a deformation is written as
\[
U = \bigotimes_{i=1}^n C_i,\qquad C_i\in\mathrm{Cliff}_1,
\]
with transformed stabilizer group
\[
\mathcal{S}' = U \mathcal{S} U^\dagger.
\]
A local Clifford circuit of this kind leaves the code parameters \([[n,k,d]]\) unchanged, while changing the Pauli type and orientation of stabilizers and logical operators [2201.07802]. In the elongated compass setting, that invariance is exploited selectively: the deformation preserves the weight-2 \(X\) stabilizers that are crucial for detecting many \(Z\) errors, but deforms the higher-weight \(X\) stabilizers into XZZX- or ZXXZ-type patterns introducing strong geometric symmetries in the syndrome graph [2412.03808].

## 3. Noise model, effective inhomogeneity, and decoder geometry

The physical noise model is an independent single-qubit Pauli channel
\[
\mathcal{E}[\rho] = (1-p)\,\rho + p_x X\rho X + p_y Y\rho Y + p_z Z\rho Z,
\]
with total rate \(p = p_x + p_y + p_z\), bias
\[
\eta = \frac{p_z}{p_x + p_y},
\]
and the simplifying assumption \(p_x = p_y\). The depolarizing point is \(\eta=0.5\), and the regime of interest is \(Z\)-biased noise with \(\eta \gg 1\) [2412.03808].

A useful feature of local Clifford deformation is that the deformed code can be decoded on the undeformed CSS code with an effective inhomogeneous Pauli channel. If the local Clifford on qubit \(q\) is \(U_q\in\{I,H\}\), then the effective probabilities on the original code are
\[
p_{x,q} =
\begin{cases}
p_x & U_q = I,\\
p_z & U_q = H,
\end{cases}
\qquad
p_{z,q} =
\begin{cases}
p_z & U_q = I,\\
p_x & U_q = H.
\end{cases}
\]
Thus Clifford deformation is equivalent to changing the noise to be spatially inhomogeneous but still Pauli and independent [2412.03808].

Decoding is performed with minimum-weight perfect matching. In the deformed non-CSS code, syndromes are mapped back to the original CSS code under the Clifford action, and MWPM weights are assigned using the inhomogeneous error probabilities above. The deformations are then interpreted through the geometry of the matching graph. For the XZZX surface code, the low-weight graph is a set of parallel lines and the high-weight graph is a set of parallel lines oriented orthogonally. For XZZX\(_\square\) on elongated codes, the low-weight graph partitions the lattice into regions bounded by diagonal XZZX plaquettes, and within each region one sees chains of diamonds that behave similarly to repetition codes for \(Z\) errors. For ZXXZ\(_\square\), the low-weight graph forms disjoint strings, essentially decoupled repetition codes, while the high-weight graph is also partitioned rather than fully dense [2412.03808].

The underlying design principle is explicit: the Clifford deformations enhance decoder performance by introducing symmetries, while the stabilizers of compass codes can be selected to obtain more information on high-rate errors [2412.03808].

## 4. Thresholds, bias dependence, and comparison with XZZX

At no bias, CSS, XZZX\(_\square\), and ZXXZ\(_\square\) are equivalent from the decoder’s perspective. Representative thresholds at \(\eta=0.5\) are \(14.8\%\) for \(\ell=2\), \(11.7\%\) for \(\ell=3\), \(8.3\%\) for \(\ell=4\), and \(5.7\%\) for \(\ell=6\) [2412.03808].

For CSS elongated compass codes without Clifford deformation, each elongation has an optimal bias \(\eta_\ell^*\) at which the threshold is maximal. The values reported are
\[
\eta^*_2 = 0.5,\quad
\eta^*_3 = 1.67,\quad
\eta^*_4 = 3.0,\quad
\eta^*_5 = 4.26,\quad
\eta^*_6 = 5.89,
\]
with corresponding CSS thresholds \(17.5\%\) for \(\ell=3\), \(19.5\%\) for \(\ell=4\), \(21.0\%\) for \(\ell=5\), and \(22.6\%\) for \(\ell=6\) [2412.03808].

The Clifford-deformed families behave differently. Thresholds for both XZZX\(_\square\) and ZXXZ\(_\square\) increase monotonically with bias for all \(\ell\). Representative values are summarized below.

| Family | Selected \(\eta\) | Threshold |
|---|---:|---:|
| \(\ell=2\) XZZX surface code | \(10,25,50,100\) | \(27.0\%, 32.0\%, 35.9\%, 38.2\%\) |
| \(\ell=4\) XZZX\(_\square\) | \(10,25,50,100\) | \(17.5\%, 21.2\%, 23.3\%, 24.9\%\) |
| \(\ell=4\) ZXXZ\(_\square\) | \(10,25,50,100\) | \(18.9\%, 34.5\%, 37.9\%, 40.0\%\) |

These numbers exhibit the main comparative phenomenon. For \(\ell=2\), XZZX\(_\square\) and ZXXZ\(_\square\) coincide with the standard XZZX surface code. For \(\ell\ge 3\), they define distinct elongated families. ZXXZ\(_\square\) grows much more rapidly with bias than XZZX\(_\square\), and for \(\ell=4,5,6\) its thresholds near \(\eta=25\)–\(100\) are about \(40\%\) [2412.03808].

Logical-error-rate data follow the same pattern. At fixed \(p\) below threshold, logical error rates decrease exponentially with distance. For \(\ell=4\), distance \(19\), the normalized logical error rate \(p_L\) shows that at low bias the CSS compass code performs best, but for \(10 \lesssim \eta \lesssim 100\) both XZZX\(_\square\) and ZXXZ\(_\square\) outperform CSS, and ZXXZ\(_\square\) has the lowest logical error rates. The 2024 study states explicitly that one of the Clifford deformations explored yields QEC codes with better thresholds and logical error rates than those of the XZZX surface code at moderate biases [2412.03808].

A common misconception is to treat XZZX-like deformation as uniformly optimal once bias is present. The reported data do not support that conclusion. In the elongated compass setting, deformation type and elongation both matter: XZZX\(_\square\) and ZXXZ\(_\square\) have distinct syndrome-graph geometries and distinct threshold trajectories [2412.03808].

## 5. Circuit-level behavior and correlated decoding

A subsequent circuit-level study considers Clifford-deformed elongated compass codes under a hybrid biased-depolarizing model. In this model, CZ gates are followed by a biased two-qubit Pauli channel in which the pure-dephasing errors \(\{IZ, ZI, ZZ\}\) occur with probability
\[
P(IZ)=P(ZI)=P(ZZ)=\frac{\eta p}{3(1+\eta)},
\]
while the remaining two-qubit errors occur with probability \(\frac{p}{12(1+\eta)}\). By contrast, CNOT and \(H\) are treated as bias-breaking gates and are followed by depolarizing noise; idling qubits undergo the asymmetric single-qubit Pauli channel, and measurements fail with probability \(p\) [2605.27598].

The decoding comparison is between standard MWPM and correlated MWPM. At code capacity, the CSS correlated decoder exploits the conditional probabilities
\[
P(\mathcal{E}_2 = X \mid \mathcal{E}_1 = Z) = \frac{1}{1 + 2\eta},
\qquad
P(\mathcal{E}_2 = Z \mid \mathcal{E}_1 = X) = \frac{1}{2},
\]
and updates second-pass matching weights to
\[
w_e = \log\left(\frac{1-p_c}{p_c}\right).
\]
At circuit level, PyMatching’s correlated mode performs an analogous two-pass procedure on a detector error model, using conditional probabilities reconstructed from hyperedge decompositions such as
\[
p_c = P(E_2 \mid E_1) = \frac{P(E_1 \cap E_2)}{P(E_1)}.
\]
These formulas encode not only \(X/Z/Y\) correlations but also the structured space-time correlations introduced by the syndrome-extraction circuits [2605.27598].

The principal circuit-level finding is unambiguous: correlated decoding enhances thresholds for all noise biases relative to standard MWPM under circuit-level noise. The same work further concludes that correlated decoding leads to a higher relative gain in thresholds compared to standard MWPM when applied to codes with asymmetric stabilizers under biased noise [2605.27598]. For CSS elongated compass codes, the maximum relative gain reported is about \(35\%\) for the \(\ell=6\) code at \(\eta=0.5\). For the ZXXZ\(_\square\) family, the relative gain increases systematically with \(\ell\) for all \(\eta\), which directly ties decoder advantage to stabilizer asymmetry [2605.27598].

This circuit-level analysis also tempers code-capacity conclusions. Standard MWPM thresholds for CSS elongated compass codes continue to increase with \(\eta\), but for ZXXZ\(_\square\) with \(\ell>2\) the advantage seen at code capacity is largely suppressed by the non bias-preserving \(H\) and CNOT gates required in the syndrome circuits. Correlated decoding partially compensates for this effect, but does not remove the hardware-level dependence on gate set and extraction schedule [2605.27598].

## 6. Broader theoretical context and open directions

Clifford-deformed elongated compass codes sit at the intersection of two larger research programs. The first is the study of local Clifford deformations as a general design knob for bias-tailored stabilizer codes. In the surface-code setting, applying site-dependent single-qubit Cliffords produces Clifford-deformed surface codes whose \([[n,k,d]]\) parameters are unchanged but whose stabilizer Pauli content, effective distance under biased noise, and threshold behavior can differ dramatically. Random and translation-invariant Clifford-deformed surface-code families exhibit phase-diagram structure under \(Z\)-biased noise, including regions with \(50\%\) threshold at infinite bias [2201.07802].

The second program is the gauge-fixing view of compass codes. Two-dimensional compass codes were introduced as a broad class of local codes obtained from Bacon–Shor by gauge fixing, with explicit elongated constructions that improve thresholds against asymmetric noise. In that framework, the elongation parameter \(\ell\) controls an effective asymmetrization of Kitaev’s toric code in the bulk with extended \(2\ell\)-body plaquette operators, and the code family remains local while trading stabilizer weight against directional syndrome information [1809.01193].

More recent zero-rate LDPC theory provides a broader explanation for why Clifford-deformed codes can approach \(50\%\) threshold under pure dephasing. If the number of biased logical operators grows slowly enough or if there exists a basis of logical operators whose overlap satisfies suitable scaling conditions, then the code-capacity threshold of the Clifford-deformed variant under i.i.d. pure dephasing noise approaches \(50\%\). This framework explicitly explains previously known examples such as XY surface code, XZZX surface code, color code, and some 3D Clifford-deformed codes, and it suggests that elongated compass-code constructions belong to a larger class of bias-tailored deformations of zero-rate LDPC codes [2605.15348].

A related but distinct line studies explicit local Clifford layers on geometric CSS codes. Recent work on “Quantum Logic Codes” gives a depth-1 transversal logical \(\overline{S}\) on rotated surface codes and a depth-1 intra-block logical \(\overline{\mathrm{CZ}}\) on the 2D toric code, framing these as Clifford deformations of planar and toric geometries. This suggests a broader program in which geometric codes, including compass-like layouts, are engineered to support more logical Clifford structure through local Clifford patterns and symmetry constraints [2606.13521].

Several open issues remain. Circuit-level performance depends strongly on whether the hardware natively preserves dephasing bias during syndrome extraction. The 2026 circuit-level study identifies non bias-preserving \(H\) and CNOT gates as a central limitation for Clifford-deformed elongated compass codes [2605.27598]. A plausible implication is that fully bias-preserving extraction schedules, or hardware platforms with native CZ-like interactions, may be decisive for realizing the full advantage indicated by code-capacity thresholds. Another active direction is decoder design: the current evidence indicates that code design and correlation-aware decoding must be co-optimized, rather than treated as separate layers of the architecture [2605.27598].

In that sense, Clifford-deformed elongated compass codes are best understood not as a single code, but as a bias-tailored design paradigm: start from a compass-code gauge fixing that favors the dominant error channel, apply local Clifford deformations that reorganize the syndrome graph into decoder-friendly structures, and then match the resulting asymmetry with a decoder that can exploit the induced correlations [2412.03808], [2605.27598].

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