---
title: Heavy-Hex Superconducting Qubit Architecture
url: https://www.emergentmind.com/topics/heavy-hex-superconducting-qubit-architecture
type: topic
---

# Heavy-Hex Superconducting Qubit Architecture

The heavy-hex superconducting qubit architecture is a planar, low-degree connectivity scheme for solid-state quantum processors in which qubits are arranged on a graph derived from a hexagonal tiling, with degree constrained to 2 or 3 rather than the degree-4 or degree-6 connectivity typically assumed by square-lattice surface codes or triangular-lattice color codes. In current IBM quantum processors, this architecture is implemented with fixed-frequency transmons and nearest-neighbor couplings, and it has motivated a family of heavy-hex-specific quantum error-correcting constructions, including overlaid 3CX surface and Bacon–Shor codes, the dynamic compass code, and flag-assisted magic-state injection protocols [2404.15989] [2604.14296] [2412.15751].

## 1. Geometry and graph-theoretic structure

The heavy-hex lattice is constructed by starting from a regular hexagonal tiling and then placing an extra “link” qubit at the midpoint of every edge. Qubits originally on the hexagon vertices are “vertex qubits,” while the midpoint qubits are “link qubits.” In the resulting planar graph, interior vertex qubits have degree 3, boundary vertex qubits have degree 2, and all link qubits have degree 2; equivalently, the graph has maximum degree $\Delta = 3$. A $d \times d$ patch for a distance-$d$ construction contains $d^2$ vertex qubits and approximately $2d(d-1)$ link qubits [2404.15989].

A complementary description used in later work characterizes heavy-hex as a 3-valent graph obtained from the conventional hexagonal tiling by “thickening” each edge into a two-qubit link. The motivation for this graph-theoretic choice is architectural rather than purely coding-theoretic: a square-lattice surface code requires degree-4 connectivity, and a triangular-lattice color code requires degree-6 connectivity, both of which are more difficult to wire in planar superconducting technology [2604.14296].

Local adjacency can be written explicitly. For one truncated hexagon cell, with vertices $A,B,C$ and link qubits $1,2,3$, the nonzero adjacency entries are
$A_{A,1}=A_{B,1}=A_{B,2}=A_{C,2}=A_{C,3}=A_{A,3}=1$,
together with the symmetric reverse entries; all others are zero. This local pattern exemplifies the degree-2/3 constraint that distinguishes heavy-hex from a regular square grid [2404.15989].

The significance of this geometry is twofold. First, it enforces planarity and bounded valency at the hardware level. Second, it makes standard lattice-code embeddings nontrivial, since well-known fault-tolerant constructions are often formulated assuming denser nearest-neighbor connectivity.

## 2. Physical realization in superconducting transmon processors

In the heavy-hex implementations described in the cited work, the physical qubits are fixed-frequency transmons with $\omega_i/2\pi \sim 4.5$–$5.2\,\mathrm{GHz}$, anharmonicity $\alpha_i/2\pi \sim -200\,\mathrm{MHz}$ to $-300\,\mathrm{MHz}$, coherence times $T_1 \sim 50$–$100\,\mu\mathrm{s}$, and $T_2 \sim 20$–$60\,\mu\mathrm{s}$. Each coupled pair shares either a superconducting bus resonator or a direct capacitive link, yielding an effective exchange coupling $g_{ij}/2\pi \sim 10$–$20\,\mathrm{MHz}$ [2404.15989].

Keeping only computational levels in the rotating frame, one standard effective Hamiltonian is
$$
H = \sum_i \left[ \omega_i a_i^\dagger a_i - \frac{\alpha_i}{2} a_i^\dagger a_i^\dagger a_i a_i \right]
+ \sum_{\langle i,j\rangle} g_{ij}(a_i a_j^\dagger + a_i^\dagger a_j).
$$
A closely related transmon description writes the local nonlinearity as $U_i<0$ in an anharmonic-oscillator model; both formulations encode the same architecture-level facts that the qubits are transmons and the interactions are nearest-neighbor on the heavy-hex graph [2404.15989] [2412.15751].

Two-qubit gates are implemented by cross-resonance (CR) or echoed CR pulses that realize CX or CZ with typical fidelity $\gtrsim 99.5\%$ in the device model summarized for the 2024 entangled-logical-qubit experiment. In the dynamic-compass implementation on the IBM “Heron” 156-qubit processor (revision 3, `ibm_pittsburgh`), each edge is a capacitively coupled bus resonator of approximately $700\,\mu\mathrm{m}$, mediating a high-fidelity $(\gtrsim 99.9\%)$ CZ gate; readout resonators are multiplexed in groups of six and each resonator provides $I/Q$ signals for soft readout [2404.15989] [2604.14296].

The central hardware rationale for heavy-hex is that planarity and low-degree connectivity minimize microwave-line crossings and lithographic complexity, improve fabrication yield, and reduce crosstalk between resonators. The architecture therefore exchanges denser direct connectivity for manufacturability and robustness in a planar multi-chip module [2404.15989].

## 3. Heavy-hex-tailored quantum error-correcting codes

Because the heavy-hex graph is sparse, error-correcting codes must be adapted to it rather than transplanted directly from square-lattice layouts. Three representative constructions appear in the cited literature: an overlaid 3CX surface code and Bacon–Shor code, a heavy-hex subsystem code generalized into the dynamic compass code, and flag-assisted adaptations used for magic-state injection [2404.15989] [2604.14296] [2412.15751].

| Construction | Heavy-hex realization | Quantitative note |
|---|---|---|
| 3CX surface code | Data qubits on the vertex sublattice; 4-body $X$ or $Z$ plaquettes plus 2-body boundary checks | Minimum-weight perfect-matching threshold $p_{\rm th} \approx 0.3\%$ under circuit-level noise |
| Bacon–Shor code | Data qubits on the link sublattice in an effective square grid; 2-qubit horizontal $X$ and vertical $Z$ gauge checks | Distance $= d$; pseudo-threshold $\lesssim 0.1\%$ |
| Dynamic compass code | Weight-4 $X$-checks and weight-2 $Z$-checks on a heavy-hex patch with a 4-step schedule | Threshold $p_{\rm th}\gtrsim 10^{-3}$; distance-5 experiment used 49 data qubits and 36 ancillas |

In the 3CX surface code, the $d\times d$ array of vertex qubits serves as the data layer, with ancilla qubits for each plaquette on the same vertex sublattice and a standard $X$–$Z$ interleaved schedule. In the Bacon–Shor construction, the link qubits form an effective square grid in which each heavy-square edge hosts one link qubit; the gauge checks are two-qubit $X$ parities on horizontal neighbor pairs and two-qubit $Z$ parities on vertical neighbor pairs, and these can be measured in one parallel round. Logical operators are $X_L = \bigotimes$ over any one full row of data qubits and $Z_L = \bigotimes$ over any one full column, with distance $d$ [2404.15989].

The dynamic compass code is a subsystem code tailored to heavy-hex connectivity. Its plaquettes comprise weight-4 $X$-checks, with four data qubits at the corners of a distorted rhombus spanning two hexagonal faces, and weight-2 $Z$-checks linking pairs of data qubits along single heavy edges. For the distance-$5$ implementation, a logical patch contained 49 data qubits arranged in an approximate $d\times d$ hex layout, with ancilla qubits placed on alternating edges so that every check operator could be measured using only nearest-neighbor couplings [2604.14296].

These constructions show that heavy-hex does not merely host a single adapted code. Rather, its geometry supports multiple code families with different threshold behavior, operator geometry, and circuit schedules.

## 4. Overlay coding and entangled logical qubits

A distinctive heavy-hex result is the simultaneous embedding of two distance-$d$ topological codes on disjoint qubit sets of the same chip: the 3CX surface code on vertices and the Bacon–Shor code on links. Because the vertex and link qubit sets are disjoint, unused qubits of one code can execute the other, so that two logical qubits are implemented “on top of each other” [2404.15989].

This overlay enables fault-tolerant entangling primitives. By choosing appropriate products of stabilizers for 3CX or gauges for Bacon–Shor, a transversal qubit-by-qubit CX maps $X_L\otimes I \rightarrow X_L\otimes X_L$ and $I\otimes Z_L \rightarrow Z_L\otimes Z_L$, thereby enacting a logical $CX_\perp$ for odd $d$. In parallel, lattice-surgery-style merge measurements of logical $X_L\otimes X_L$ or $Z_L\otimes Z_L$ are available by introducing extra ancillas between the two patches and measuring edge parities in one stabilizer round [2404.15989].

The logical-Bell-state preparation protocol proceeds in four explicit steps. First, vertex qubits are prepared in $\lvert + \rangle$ and link qubits in $\lvert 0 \rangle$, which is equivalent to preparing $d^2$ Bell pairs. Second, one round of merged check measurements completes logical-Bell preparation. Third, $T$ additional rounds of single-code stabilizer extraction are executed for error correction. Fourth, the two logical qubits are measured either by disentangling them through a second transversal $CX_\perp$ and reading out in the Bell basis, or by simultaneous lattice-surgery $X_L\otimes X_L$ and $Z_L\otimes Z_L$ checks followed by individual logical readout [2404.15989].

In circuit-level depolarizing-noise simulations, the resulting pseudo-thresholds are at $p \approx 0.2$–$0.3\%$ without post-selection, with subthreshold scaling $1-F \sim p^{\lfloor d/2+1 \rfloor}$. With additional boundary-matching post-selection, the even-$d$ scaling improves to $p^{\lceil d/2+1 \rceil}$ at modest yield loss. On the 133-qubit `ibm_torino` device, physical error rates were approximately single-qubit $\sim 0.03\%$, two-qubit $\sim 0.4\%$, and readout $\sim 1.7\%$; code distances up to $d=4$ and stabilizer rounds up to $T=5$ were run, and even at $d=4, T=5$ the logical $\lvert 0 \rangle$ survival exceeded $50\%$. For the $d=2, T=1$ logical Bell state, the reported fidelity was approximately $75\%$ without post-selection and approximately $94\%$ with post-selection, with CHSH values approximately $2.05$ and $2.63$ respectively [2404.15989].

The same work reports that the nonplanar coupling between the qubits allows simultaneous measurement of the logical $XX$, $YY$, and $ZZ$ observables, and that Bell’s inequality was violated both for the $d=2$ case with post-selection and for the $d=3$ instance using only quantum error correction. This is significant because it links an architecture-level connectivity constraint directly to a logical-level entanglement primitive.

## 5. Syndrome extraction, noise characterization, and decoder tailoring

The dynamic compass code uses a 4-step repeating syndrome-extraction schedule. In steps 1 and 3, all weight-4 $X$-checks are measured simultaneously; in steps 2 and 4, two complementary subsets of the weight-2 $Z$-checks are measured. For each $X$-check, the ancilla is prepared in $\lvert + \rangle$, CZ gates are applied to up to four data qubits using two CZs per sub-step by routing, then an $H$ gate is applied, followed by measurement in the $Z$ basis and reset. Representative timings are CZ $\simeq 88\,\mathrm{ns}$, $H + X_{\pi/2} \simeq 40\,\mathrm{ns}$, and measurement plus reset $\simeq 1.3\,\mu\mathrm{s}$. By interleaving the four sub-steps, a full $X+Z$ syndrome round requires only two sequential mid-circuit-measurement layers, which minimizes data-qubit idle times [2604.14296].

The heavy-hex coupler pattern itself constrains the schedule: simultaneous measurement of all $Z$-checks in a single layer is forbidden because some checks would collide. This device-specific restriction is a direct instance of how graph structure shapes fault-tolerant control flow [2604.14296].

For uniform circuit-level noise, the reported threshold is
$$
p_{\rm th}\gtrsim 10^{-3},
$$
with phenomenological logical-error scaling
$$
p_L \sim A\left(\frac{p}{p_{\rm th}}\right)^{\frac{d+1}{2}},
$$
where $p$ is the physical error rate. A central heavy-hex advantage here is that limited degree constrains error propagation: any single fault during a CZ can feed into at most two syndrome detectors, producing an “edge-like” error compatible with efficient minimum-weight matching. The three-valent nodes also reduce idle-qubit dephasing because fewer cross-couplings run adjacent to any resonator [2604.14296].

Noise mitigation in this setting is explicitly device-aware. Averaged Circuit Eigenvalue Sampling (ACES) is used to learn a layer- and gate-specific Pauli channel for every CZ, idling period, reset, and mid-circuit measurement in the 4-step schedule; ACES requires approximately 30 minutes of QPU time to build a scalable, high-fidelity noise model. Supplying ACES data to a matching decoder such as BeliefMatching reduces logical error rates by approximately $30\%$ in the $X$ basis and approximately $9\%$ in the $Z$ basis relative to naive calibration-snapshot models. Soft decoding then uses each readout resonator’s $I/Q$ point to fit a 3-component Gaussian mixture model for $\lvert 0\rangle$, $\lvert 1\rangle$, and leakage $\lvert 2\rangle$, and updates the shot-specific flip probability according to
$$
\epsilon_{\rm shot}=\frac{\min(p_0,p_1)}{p_0+p_1}.
$$
Measurements with $p_2 > p_{\rm cutoff}$, typically $p_{\rm cutoff}=0.5$, are flagged as leaked and excluded by post-selection; rejecting $\lesssim 4\%$ of shots yields an additional $\simeq 11$–$16\%$ drop in logical error rate. The complete noise-informed pipeline yields up to $38.3\%$ improvement in the logical error rate for the distance-5 experiment [2604.14296].

## 6. Flag qubits, biased noise, and magic-state injection

A separate line of heavy-hex adaptation concerns magic-state injection. Because no heavy-hex vertex has degree 4, a weight-4 stabilizer cannot be coupled directly to one syndrome qubit. The stated heavy-hex solution is to interpose flag qubits so that data-to-syndrome interactions become data $\rightarrow$ flag and flag $\rightarrow$ syndrome chains in symmetric order. Flag qubits are measured immediately after the stabilizer cycle, and their readout is used in Chamberland–Reichardt-style flag-fault-tolerant decoding so that no weight-2 errors can masquerade as no-error in a distance-$d$ code [2412.15751].

The same work models the hardware with a biased Pauli channel, motivated by the statement that real superconducting qubits typically have $T_1 \gg T_2$, leading to $Z$-biased decoherence. For a single-qubit gate with total error probability $p_{\rm single}$ and bias parameter $\eta$,
$$
P_X=P_Y=\frac{p_{\rm single}}{2(\eta+1)}, \qquad
P_Z=\frac{\eta\, p_{\rm single}}{\eta+1}.
$$
For two-qubit noise with total probability $p_{\rm double}$, the error weights are redistributed to favor $Z$-type faults, and higher $\eta \equiv p_Z/p_X$ reduces logical $X$ errors preferentially; the text notes that codes like XZZX can exploit this bias [2412.15751].

The magic-state injection protocol is an “inject then extend” procedure. In Stage I, a physical
$$
\lvert M\rangle = \frac{\lvert 0\rangle + e^{i\pi/4}\lvert 1\rangle}{\sqrt 2}
$$
is placed on one corner data qubit of a distance-$d_1=3$ patch; the rest of the first row or column is initialized in $\lvert 0\rangle$ or $\lvert +\rangle$ to match logical $Z_L$ and $X_L$, using one of four region-division strategies: down-triangle, right-triangle, down-square, or right-square. Two rounds of stabilizer plus flag measurement are then performed, and shots are post-selected on all syndrome bits and all flags equal to zero. In Stage II, additional data qubits are initialized around the $d_1$ patch to reach $d_2>3$, $d_2$ rounds of full stabilizer extraction are run on the enlarged patch, and minimum-weight perfect matching is used for correction; all data qubits are then measured in the $X$ or $Z$ basis to estimate logical fidelity [2412.15751].

The reported resource count for a $d_2=9$ example is approximately $d_2^2 \approx 81$ data qubits, syndrome qubits roughly equal to data in a heavy-hex patch at about $2\times d_2^2/3$, and a flag-qubit overhead of 10–20\%. The logical infidelity is defined as
$$
E_{\rm total}=1-(1-E_X)(1-E_Z),
$$
with injection fidelity $F=1-E_{\rm total}$. Under the paper’s numerics, heavy-hex with flags gives $F\approx 0.998$ at $p_{\rm double}=10^{-3}$ and $\eta=100$, versus lattice $F\approx 0.995$ under the same physical error. The optimized heavy-hex recipe combines a ZXXZ-type XZZX code, down-triangle initialization, and the two-stage extension strategy; at $\eta=100$ and $p_{\rm double}=5\times 10^{-3}$, the ZXXZ heavy-hex construction yields $E_{\rm total}\approx 4\times 10^{-4}$ versus $7\times 10^{-4}$ for XZZX type and approximately $10^{-3}$ for the standard surface code, while the two-stage strategy gives an approximately $5\times$ improvement in success-verdict rate at fixed overall fidelity [2412.15751].

## 7. Architectural trade-offs, recurring misconceptions, and research significance

The heavy-hex architecture is defined by a clear engineering trade-off. Its advantages are a high-yield, manufacturable planar architecture with very low crosstalk between qubits, degree-3 connectivity sufficient to host both a surface-code-like construction and a Bacon–Shor code, and support for transversal logical $CX_\perp$ together with lattice surgery for logical-Bell preparation, measurement, and entanglement verification. Its limitations are equally explicit: sparse connectivity forces many next-nearest-neighbor gates, including the cited example of a next-nearest-neighbor CX synthesized from four physical CXs, which increases circuit depth; the resulting thresholds are relatively low, around $0.2$–$0.3\%$ in the overlay-Bell protocols; and the Bacon–Shor component has only a pseudo-threshold and benefits only modestly from increased $d$ [2404.15989].

A recurrent misconception is that degree-3 heavy-hex connectivity is simply too sparse for practical topological fault tolerance. The reported results do not support that simplification. Heavy-hex has been used to realize a surface code and a Bacon–Shor code on the same 133-qubit processor, to run code distances up to $d=4$ with five rounds of stabilizer measurements, to implement a distance-5 dynamic compass code with 49 data qubits and 36 ancillas on a 156-qubit Heron processor, and to support a flag-assisted magic-state injection workflow explicitly optimized for biased superconducting noise [2404.15989] [2604.14296] [2412.15751].

At the same time, the architecture does not erase the cost of reduced connectivity. Sparse graphs must be compensated by tailored check geometries, specialized schedules, code overlays, flag subcircuits, and decoder customization. This suggests that heavy-hex is best understood not as a generic substrate for transplanting square-lattice methods, but as a hardware-specific regime in which fabrication robustness and planar simplicity are leveraged through bespoke QEC design. Within the cited results, that regime already supports logical entanglement with Bell-inequality violation, a true threshold in the dynamic compass setting, and optimized state-injection strategies under biased noise [2404.15989] [2604.14296] [2412.15751].

Source: https://www.emergentmind.com/topics/heavy-hex-superconducting-qubit-architecture