Past exam of the mathematics course of the University of Cambridge 2010 iii Paper 49 3 d Solution Created 2026-10-03 Updated 2026-10-14
Use phase-flip protection by Hadamard conjugation. Insert a Hadamard gate on each of the three data wires immediately after the two encoding CNOTs and before the physical error. Insert another Hadamard on each data wire immediately after the error and before syndrome detection. Leave the two syndrome ancillas and every detection, recovery and decoding gate unchanged.
The first layer changes the encoded state to , the three-qubit phase-flip repetition code. The two layers surrounding the error turn the effective error seen by the old circuit intoSince and , the four physical cases become respectively . The original coherent syndrome and recovery circuit corrects all four, as its syndrome table shows. Thus two Hadamard layers on the three data wires, straddling the error, give the required phase-flip protection. The final top wire is the original , not , because the second layer returns the data to the original coding basis before recovery and decoding.