Lattice. Take a hexagonal lattice on a torus with hexagonal plaquettes, so vertices and edges, and place one qubit on each vertex. Colour the plaquettes so that adjacent plaquettes differ (the torus must be chosen compatible with such a colouring). Give each edge the colour of the two plaquettes that its endpoints lead to: an edge of colour joins two plaquettes of colour and borders the two plaquettes of the other colours. Every vertex then has exactly one incident edge of each colour, and there are edges of each colour.
Checks. Each edge also has a type , or , chosen so that the three edges at every vertex have different types (for example by direction, as in Kitaev's honeycomb model). The check on is with given by its type. Two checks commute when they share no vertex and anticommute when they share one, so checks of the same colour commute.
Schedule. In round measure all checks of colour .
Plaquette operators. For a plaquette let , the product of the six checks on its boundary. At each vertex of two boundary checks meet with different Paulis, whose product is proportional to the third, so is, up to a phase, a weight-six Pauli operator. It commutes with every check. The boundary of a plaquette of colour alternates between edges of the two other colours.
As a subsystem code. Hastings and Haah count that the group generated by all checks has rank (the product of all checks is proportional to the identity), its centre has rank (plaquettes, with one relation, together with products of checks along two non-contractible loops), and so the subsystem code has gauge qubits and no logical qubits. The measurement order is what creates the logical qubits: with the schedule above the instantaneous stabilizer groups encode two logical qubits on the torus, with distance proportional to the linear size of the lattice. The products of checks along non-contractible loops become the inner logical operators.