Overview
An ordinary stabilizer code is a fixed set of commuting checks that are measured over and over; the logical qubits live in their joint eigenspace. A Floquet code drops the requirement that the checks commute. It is a schedule: a short list of rounds, each measuring a set of commuting, usually very low-weight Pauli operators, repeated periodically. Checks of consecutive rounds anticommute, so each round partly undoes what the previous one established, and there is no single code space. Instead, after every round the state is stabilized by a well-defined group, the instantaneous stabilizer group, and with a well-chosen schedule this group always leaves the same number of logical qubits untouched while the measurement record contains enough redundancy to detect errors.
The founding example is the honeycomb code of Hastings and Haah. Every measurement acts on just two qubits, yet the code protects two logical qubits on a torus with distance growing with the lattice. Viewed as a static subsystem code its checks encode nothing: the logical qubits are created by the order of the measurements. The attraction is practical. Hardware that measures two-qubit parities natively, such as proposed Majorana-based qubits, can run the code without entangling gates, and in that setting circuit-level simulations give it a high threshold (Gidney et al.; Paetznick et al.).
Intuition
Measure the parity of two qubits, then the parity , then again. The second measurement scrambles the first outcome, so the third outcome is random: individual check values carry no memory. Products can. Around a hexagon of the honeycomb lattice, the product of the three checks measured in one round and the three measured in the next is a weight-six operator that commutes with every check. Once inferred, its value is reproduced every time the same pair of rounds comes around, and a change signals an error. These repeated products are the detectors of the code.
The logical information survives because every measurement anticommutes with some operator in the current stabilizer group: by the update rule its outcome is then a fair coin that reveals nothing about the encoded state. The price is that a logical operator of one round is not a logical operator of the next. It must be multiplied by checks of the new round, and the observed signs are carried along in software. In the honeycomb code this bookkeeping has a topological meaning: each round swaps the roles of the two kinds of string operators of the embedded toric code.
Prerequisites
The stabilizer formalism and its measurement rule (stabilizer formalism lesson), the toric code and its string operators (topological codes), and the notion of gauge group and bare logical operators of a subsystem code.
Mathematical Definitions
Let be sets of Hermitian -qubit Pauli operators, the checks, such that the operators within each set commute pairwise. A measurement schedule of period measures, in round , every check of . Checks of different rounds need not commute.
Starting from a state with stabilizer group (usually the trivial group, for the maximally mixed state), the instantaneous stabilizer group (ISG) is the stabilizer group of the state after round , obtained from by the update rule for Pauli measurements applied to the checks of round , with signs fixed by the outcomes. Each defines an ordinary stabilizer code on qubits with logical qubits.
The schedule is a Floquet code (a code with dynamically generated logical qubits, in the terminology of Hastings and Haah) when, for all beyond some initial transient:
- has the same number of logical qubits for every ;
- the measurements of round reveal nothing about the encoded state: no element of the group generated by and the checks of round is a nontrivial logical operator of , that is, an operator that commutes with all of without lying in ;
- the outcomes contain detectors: products of outcomes, possibly from different rounds, whose value is fixed in the absence of errors. They play the role of the syndrome.
A logical operator of has to be carried to one of by multiplying it with elements of and checks of round , and the measured signs enter the Pauli frame. Logical operators that commute with every check are called inner; those that must be updated every round are called outer (Hastings and Haah). Whether a schedule preserves logical information depends on the order of the rounds and not only on the set of checks.
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.
Use the lattice, plaquette colouring and edge colouring of the honeycomb code, with one qubit per vertex. For an edge of colour let and . The CSS honeycomb code measures, in rounds and then periodically,
Consecutive rounds use different colours and different Pauli types, so each round's checks anticommute with some checks of the previous round. If round measured -checks of colour and round measures -checks of colour , the products of the three colour- -checks around each plaquette of the third colour commute with the new checks and survive; each equals the weight-six operator on that plaquette (and symmetrically with and exchanged). After an initial transient the instantaneous stabilizer group consists of the checks just measured and plaquette operators of both types, and is a toric code up to local operations; the schedule has period 6 and the embedded code cycles with it.
The construction is due to Davydova, Tantivasadakarn and Balasubramanian, who show that the protocol conserves logical information and has a threshold, and stress that, unlike for the honeycomb code, the checks do not form a parent subsystem code. Kesselring et al. independently obtained a CSS Floquet code, the Floquet color code, by viewing Floquet schedules as sequences of anyon condensations in the color code.
Theorems
Let be stabilized by and let be a Hermitian Pauli operator. Write for the elements of that commute with , and for the projectors onto the two outcomes .
- Deterministic outcome. If , the outcome is with certainty and the state is unchanged.
- Commuting, undetermined. If commutes with every element of and , the outcome occurs with probability and the post-measurement state is stabilized by .
- Anticommuting. If anticommutes with some , then is a subgroup of index 2 in , each outcome occurs with probability exactly whatever is, and the post-measurement state is stabilized by , a group of the same order as .
In every case the new stabilizer group is , with the outcome. Consequently, if mutually commuting Pauli operators are measured one after another with outcomes , the final state is stabilized by
independently of the order. This is the bookkeeping rule of the stabilizer formalism introduced by Gottesman (see also section 10.5.8 of Nielsen and Chuang); it is the rule used by Hastings and Haah to define instantaneous stabilizer groups.
- is an abelian subgroup of the -qubit Pauli group with , and every element of is Hermitian.
- The state satisfies for every (it is supported in the joint eigenspace).
- The measured operators are Hermitian Pauli operators, measured projectively and without error.
Proof · Proof of the stabilizer update rule for Pauli measurements
Since is Hermitian, implies for every . Two Pauli operators either commute or anticommute, and .
Case 1. If then , and because .
Case 2. If commutes with all of , then commutes with every , so satisfies , and . Since commutes with and (otherwise outcome has probability zero by case 1), the group is abelian and does not contain .
Case 3. Let anticommute with . The map , , is a homomorphism, onto because , with kernel ; so has index 2 and . The outcome probabilities are , and
using , anticommutation, cyclicity and . Hence and each outcome has probability . For , , so with ; and as before. Every element of commutes with (as is abelian) while does not, so and has elements and does not contain .
In cases 1 and 2, and is or , so the uniform statement holds.
Sequences. Suppose commute pairwise and let . Induction hypothesis: after measurements the state is stabilized by . Apply the single-measurement rule to . An element of , with , commutes with if and only if does, because each commutes with . So the commuting part of is , and adding gives . The final group is symmetric in the , so it does not depend on the order. This is the argument of Gottesman, written out in full.
Write for the checks of colour and for the plaquette operators of plaquettes of colour , colours taken mod 3. Up to signs, the instantaneous stabilizer groups of the honeycomb code are
The plaquette operators of colour are inferred in round as the product of the outcomes of rounds and on the boundary of the plaquette. For the listed generators of satisfy exactly two independent relations,
so has rank on qubits and fixes a four-dimensional subspace: two logical qubits after every round. This is the analysis of section 1.3 of Hastings and Haah. They show further that the ISG never contains a product of checks along a non-contractible loop (these products are the inner logical operators), and that each becomes a toric code on a hexagonal superlattice after a depth-one circuit of two-qubit gates that disentangles one qubit per measured check.
- The honeycomb code on a torus with plaquettes, three-coloured as in the code record, large enough that every plaquette boundary is a cycle of six distinct edges.
- Noiseless measurements, starting from the maximally mixed state (trivial ISG); signs of stabilizers are ignored.
Proof · Proof of the instantaneous stabilizer groups of the honeycomb code
Signs and phases are ignored throughout; "" between groups means equality up to signs of the generators.
Step 1: two colours form hexagons. Fix colours and let be the third. Each vertex lies on exactly one plaquette of colour , and its two boundary edges there have colours and (they lie on a plaquette of colour , so they are not of colour , and the colours at a vertex are distinct). Hence the edges of colours and form the disjoint union of the boundaries of the colour- plaquettes, each a 6-cycle alternating between and . For such a plaquette write for the product of its three colour- checks; then .
Step 2: a commutant. Let be a set of colour- edges. A colour- check , , anticommutes with the colour- check at and with the one at and commutes with all others. So commutes with if and only if contains both or neither of the colour- edges at the ends of . Going around each hexagon of step 1, the product commutes with all colour- checks if and only if, on every colour- plaquette, contains all three or none of its colour- edges. Hence the elements of that commute with form the group .
Step 3: induction. By the update rule, measuring the commuting checks on a state with ISG gives with the elements of commuting with all of . Plaquette operators commute with every check, so for with any set of plaquette operators, by step 2. Since and , the result is
Starting from , measuring gives (case 2 of the rule for each check). Then gives , gives , gives , and for the step maps to of the stated form. The new plaquette operators of colour in round (with , ) equal , so their values are products of outcomes of rounds and .
Step 4: relations. Identify a product of checks with the set of edges it uses (mod 2). At a vertex, the product of the checks on a set of incident edges is proportional to only if that set is empty or all three edges, since the three have different Paulis. As the lattice is connected, a product of checks is only for the empty set or the set of all edges. Now take a set of plaquettes and a set of colour- edges and suppose . The edge set is , where is the set of edges bordering exactly one plaquette of .
- If , no edge of colour or lies in . An edge of colour borders plaquettes of colours and , one of colour borders colours and ; so every colour- plaquette is in exactly when all its six neighbours are. Any two adjacent plaquettes of colours and share an edge, and the colour- plaquette at either endpoint of that edge borders both of them, so this constraint graph is connected and is empty or everything. = everything gives , : the relation .
- If is all edges, every edge of colour or lies in , so each colour- plaquette differs in membership from all its neighbours: is the set of colour- plaquettes or its complement. For the former, is exactly the edges of colours and is all colour- edges, the second relation; the complement gives the product of the two relations.
So the relation group is generated by the two relations stated, which are independent (the first involves no checks, the second does), and the rank is . The argument follows section 1.3 of Hastings and Haah, with the commutant and the relation count written out. That the remaining two logical qubits are protected, with the non-contractible check loops acting as nontrivial inner logical operators, is shown there and is not reproved here.
Dynamics of the logical operators
For the instantaneous stabilizer group is, after disentangling one qubit per measured check, a toric code on a hexagonal superlattice, and its logical operators are the electric and magnetic string operators of that toric code (Hastings and Haah). Products of checks along non-contractible loops commute with every check and are inner logical operators; their eigenvalues are untouched by the schedule. The remaining outer logical operators must be updated each round. Hastings and Haah show that one round maps an electric string of to a magnetic string of and vice versa. Because the period, 3, is odd, after one period every outer operator returns multiplied by a parallel inner operator, and the logical dynamics has period 6 even though the measurement sequence has period 3. Aasen, Wang and Hastings develop this into a general picture in which a Floquet schedule implements an automorphism of the anyons of the instantaneous code.
Worked Examples
One hexagon, two rounds
Take a plaquette of colour 2 with vertices in cyclic order and boundary edges alternating colours 0 and 1. Choose the edge types so that the three edges at each vertex differ:
| edge | ||||||
|---|---|---|---|---|---|---|
| colour | 0 | 1 | 0 | 1 | 0 | 1 |
| check |
The colour-0 product is and the colour-1 product is . Multiplying qubit by qubit, , , , , , , and the phases cancel:
commutes with every colour-1 check: meets it on qubits 2 and 3, where it anticommutes twice. So measuring round 1 leaves the value of intact, and the plaquette value is the product of the six outcomes. If round 0 gives on the colour-0 edges and round 1 gives on the colour-1 edges, then , and . The same plaquette is inferred again from rounds 3 and 4; in the absence of errors the product will again be , and the comparison of the two values is one detector.
Counting on a 6 by 6 torus
A three-colourable torus with plaquettes has qubits and edges, 36 of each colour. For the ISG has listed generators with two relations, so rank 70 and logical qubits. Each round infers the 12 plaquettes of one colour, so each round contributes 12 detectors, one per plaquette of that colour, comparing with the value inferred three rounds earlier. Viewed as a subsystem code the same lattice has gauge group of rank and stabilizer group of rank , hence gauge qubits; leaves no logical qubit.
Why the order matters
Hastings and Haah note that measuring the checks by Pauli type (-edges, then -edges, then -edges) instead of by colour puts the non-contractible loop operators into the ISG, which measures the logical qubits and destroys them (Hastings and Haah). The set of checks is the same; only the schedule differs.
Applications
Planar codes. A memory on a chip needs boundaries. Planar honeycomb codes using only pairwise checks were constructed by Haah and Hastings, and planar Floquet codes from a different construction by Vuillot, whose boundaries leave the distance constant, so that construction is not fault-tolerant. Gidney, Newman and McEwen benchmarked the planar honeycomb code under circuit noise and estimated that a logical qubit with error rate at a physical error rate of needs about 7000 physical qubits with entangling gates, or about 900 with native two-qubit parity measurements.
Native pair measurements. In the comparison of Gidney et al., the honeycomb memory compiled into controlled-NOT circuits has a threshold of 0.2–0.3%, below the 0.5–0.7% of the surface code in the same model; with native two-body measurements its threshold is between 1.5% and 2.0% of the error rate of the measurement. The design lesson is that Floquet codes suit hardware whose primitive is a pair measurement, the motivating case being Majorana-based qubits studied by Paetznick et al..
CSS Floquet codes. The CSS honeycomb code uses only and checks, which lets and errors be decoded separately (Davydova, Tantivasadakarn and Balasubramanian; Kesselring et al.).
Limitations and Common Pitfalls
- The checks are not the stabilizers. A single check outcome is random once the next round is measured. Decoding uses detectors built from products of outcomes over several rounds, and a detector error model must be derived from the schedule.
- Logical operators move. Reading out or acting on a logical qubit requires the outer logical operator of the current round, with the sign accumulated from all earlier outcomes. Forgetting the sign updates gives the wrong logical result.
- The subsystem-code view is misleading. The honeycomb checks have the Kitaev honeycomb model as a parent subsystem code with no logical qubits. Counting logical qubits from the gauge group gives zero; the ISG gives two.
- Thresholds depend on what is native. The honeycomb code is worse than the surface code when every check is compiled from controlled-NOT gates. Quote the gate model with any threshold.
- The initial rounds are special. Starting from the maximally mixed state, the full ISG is reached only after the first four rounds; detectors in that window must be defined separately.
Related Research
The honeycomb checks are the terms of Kitaev's honeycomb model, whose anyon theory is discussed under topological order and anyons. Floquet codes are decoded by matching on detector graphs, as for the surface code (quantum decoders). The lesson on Floquet codes computes the honeycomb ISG round by round and discusses schedules that fail.