The -qubit phase-flip repetition code is stabilized by and has codewords and . It has logical operators and , so its distance against phase flips is .
The codewords have residual logical Pauli X gate after an uncorrectable two- or three-site phase error. Precede their encoding by a logical Hadamard gate and follow decoding by its inverse. Since , the same error now acts as a logical Pauli Z gate. Explicitly the encoded coefficients are and for an input . This convention matters when translating physical phase errors into a claimed decoded phase-error channel.
The phase-flip repetition code with codewords corrects any one physical Pauli Z gate error. Its two adjacent-pair error syndromes cannot distinguish an error pattern from its three-bit complement. Minimum-weight recovery therefore leaves no residual error at weight zero or one, and leaves at weight two or three. This residual operator exchanges the codewords, so inverse encoding gives a logical Pauli X gate. For independent physical phase errors of probability , the decoded quantum channel is , where . For , .
Insert Hadamard gates on every data qubit immediately after encoding by a bit-flip repetition code and immediately before its bit-flip detection and recovery. The intervening physical error is thereby conjugated by , and turns a single Pauli Z gate error into a single bit flip for the original correction circuit. The encoded logical codewords are now and . The syndrome ancillas and the final inverse encoding stay unchanged. This protects against phase flips in the new basis; it does not simultaneously correct arbitrary bit flips in the physical basis.
For independent errors of probability , maximum-likelihood decoding of a repetition code chooses the lower-weight error compatible with the syndrome. This is majority voting, with threshold and exponentially vanishing logical-error probability below threshold.

Articles by others on the same topic (0)

There are currently no matching articles.