First circuit is measuring the generators of Steane error correction code to extract the error syndrome. Top six qubits are ancilla qubits used for measurement, the bottom seven are the code qubits.
The second circuit implements the correction part of decoding for a stabilizer code with length 7.
|