Fix a code that corrects errors, for example an code with .
Locations, faults, errors. A circuit is divided into locations: each state preparation, gate, measurement and idle step of one qubit during one time step. A fault is a location that does not act as specified; in the adversarial setting a faulty location may apply any operation to the qubits it touches. An error is the resulting deviation of the state, described as an operator acting on some qubits of a block. Faults are counted in the circuit, errors in the state: one fault can create several errors because later gates spread it. A block has at most errors if its state is obtained from a code state by an operator supported on at most of its qubits.
Gadgets. A gadget is a circuit on encoded blocks, possibly with ancillas, that realises one ideal operation: a logical gate, a logical preparation, a logical measurement, or error correction (EC). A family of gadgets is fault tolerant when the following hold whenever the gadget contains faults and its input blocks contain errors in total.
- Gate. If , every output block has at most errors, and ideally decoding the output gives the same state as ideally decoding the input and applying the ideal gate.
- Error correction. If , the output is within errors of the code space, whatever the input. If in addition , ideally decoding the output gives the same state as ideally decoding the input.
- Preparation. If , the output is within errors of the ideal encoded state.
- Measurement. If , the outcome distribution is that of the ideal measurement on the ideally decoded input.
Extended rectangles. In a circuit built by replacing every location with its gadget and placing an EC gadget after every gate gadget, the extended rectangle (ex-Rec) of a gate is the gate gadget together with the EC gadgets immediately before and after it. An ex-Rec is good if it contains at most faults and bad otherwise. Consecutive ex-Recs overlap in an EC gadget, which is why faults are counted in ex-Recs and not in gadgets alone.
These conditions are the ones used by Aliferis, Gottesman and Preskill, stated there for , and in the form above in the lecture notes of Gottesman. The idea of designing every operation so that single faults stay correctable is due to Shor.