Exercise 10.5#

Consider the 9-qubits Shor’s code with codeword as

(1)#|0L=(|000+|111)(|000+|111)(|000+|111)22|1L=(|000|111)(|000|111)(|000|111)22

We can encode an arbitrary state in the form |ψ=a|0L+b|1L.

No error occur#

If there is no phase flip error occur, we have an arbitrary state as |ψ=a|0L+b|1L. Since X|0=|1 and X|1=|0 we have

(2)#X1X2X3X4X5X6(|000+|111)(|000+|111)(|000+|111)22=(|111+|000)(|111+|000)(|000+|111)22=|0LX1X2X3X4X5X6(|000|111)(|000|1111)(|000|111)22=(|111|000)(|111|000)(|000|111)22=|1L

Then measuring X1X2X3X4X5X6 for |ψ=a|0L+b|1L, the outcome is +1, and the probability of getting 1 is

(3)#p(m123456=1)=ψ|(X1X2X3X4X5X6)X1X2X3X4X5X6|ψ=(a0L|+b1L|)(a|0L+b|1L)=1

The post-measurement state is then

(4)#X1X2X3X4X5X6|ψp(m123456=1)=a|0L+b|1L

After measuring X1X2X3X4X5X6 we perform the measurement X4X5X6X7X8X9, and we have

(5)#X4X5X6X7X8X9|0L=(|000+|111)(|111+|000)(|111+|000)22=|0LX4X5X6X7X8X9|1L=(|000|111)(|111|000)(|111|000)22=|1L

Then measuring X4X5X6X7X8X9 for |ψ=a|0L+b|1L, the outcome is +1, and the probability of getting +1 is

(6)#p(m456789=+1)=ψ|(X4X5X6X7X8X9)X4X5X6X7X8X9|ψ=(a0L|+b1L|)(a|0L+b|1L)=1

The post-measurement state is then

(7)#X4X5X6X7X8X9|ψp(m456789=+1)=a|0L+b|1L

Phase flip at first three qubits set#

If there is a phase flip error in the first three qubit, the state |0L and |1L becomes

(8)#|0L|0~L=(|000|111)(|000+|111)(|000+|111)22|1L|1~L=(|000+|111)(|000|111)(|000|111)22

and the arbitrary state becomes |ψ=a|0~L+b|1~L. Since X|0=|1 and X|1=|0 we have

(9)#X1X2X3X4X5X6(|000|111)(|000+|111)(|000+|111)22=(|111|000)(|111+|000)(|000+|111)22=|0~LX1X2X3X4X5X6(|000+|111)(|000|1111)(|000|111)22=(|111+|000)(|111|000)(|000|111)22=|1~L

Then measuring X1X2X3X4X5X6 for |ψ=a|0~L+b|1~L, the outcome is 1, and the probability of getting 1 is

(10)#p(m123456=1)=ψ|(X1X2X3X4X5X6)X1X2X3X4X5X6|ψ=(a0~L|+b1~L|)(a|0~L+b|1~L)=1

The post-measurement state is then

(11)#X1X2X3X4X5X6|ψp(m123456=1)=a|0~Lb|1~L

After measuring X1X2X3X4X5X6 we perform the measurement X4X5X6X7X8X9, and we have

(12)#X4X5X6X7X8X9|0~L=(|000|111)(|111+|000)(|111+|000)22=|0~LX4X5X6X7X8X9|1~L=(|000+|111)(|111|000)(|111|000)22=|1~L

Then measuring X4X5X6X7X8X9 for |ψ=a|0~Lb|1~L, the outcome is +1, and the probability of getting +1 is

(13)#p(m456789=+1)=ψ|(X4X5X6X7X8X9)X4X5X6X7X8X9|ψ=(a0~L|b1~L|)(a|0~Lb|1~L)=1

The post-measurement state is then

(14)#X4X5X6X7X8X9|ψp(m456789=+1)=a|0~Lb|1~L

Phase flip at second three qubits set#

If there is a phase flip error in the second three qubit, the state |0L and |1L becomes

(15)#|0L|0~L=(|000+|111)(|000|111)(|000+|111)22|1L|1~L=(|000|111)(|000+|111)(|000|111)22

and the arbitrary state becomes |ψ=a|0~L+b|1~L. Since X|0=|1 and X|1=|0 we have

(16)#X1X2X3X4X5X6(|000+|111)(|000|111)(|000+|111)22=(|111+|000)(|111|000)(|000+|111)22=|0~LX1X2X3X4X5X6(|000|111)(|000+|111)(|000|111)22=(|111|000)(|111+|000)(|000|111)22=|1~L

Then measuring X1X2X3X4X5X6 for |ψ=a|0~L+b|1~L, the outcome is 1, and the probability of getting 1 is

(17)#p(m123456=1)=ψ|(X1X2X3X4X5X6)X1X2X3X4X5X6|ψ=(a0~L|+b1~L|)(a|0~L+b|1~L)=1

The post-measurement state is then

(18)#X1X2X3X4X5X6|ψp(m123456=1)=a|0~Lb|1~L

After measuring X1X2X3X4X5X6 we perform the measurement X4X5X6X7X8X9, and we have

X4X5X6X7X8X9|0~L=(|000+|111)(|111|000)(|111+|000)22=|0~LX4X5X6X7X8X9|1~L=(|000|111)(|111+|000)(|111|000)22=|1~L

Then measuring X4X5X6X7X8X9 for |ψ=a|0~Lb|1~L, the outcome is 1, and the probability of getting 1 is

(19)#p(m456789=1)=ψ|(X4X5X6X7X8X9)X4X5X6X7X8X9|ψ=(a0~L|b1~L|)(a|0~Lb|1~L)=1

The post-measurement state is then

(20)#X4X5X6X7X8X9|ψp(m456789=1)=a|0~L+b|1~L

Phase flip at third three qubit set#

If there is a phase flip error in the second three qubit, the state |0L and |1L becomes

(21)#|0L|0~L=(|000+|111)(|000+|111)(|000|111)22|1L|1~L=(|000|111)(|000|111)(|000+|111)22

and the arbitrary state becomes |ψ=a|0~L+b|1~L. Since X|0=|1 and X|1=|0 we have

(22)#X1X2X3X4X5X6(|000+|111)(|000+|111)(|000|111)22=(|111+|000)(|111+|000)(|000|111)22=|0~LX1X2X3X4X5X6(|000|111)(|000|111)(|000+|111)22=(|111|000)(|111|000)(|000+|111)22=|1~L

Then measuring X1X2X3X4X5X6 for |ψ=a|0~L+b|1~L, the outcome is +1, and the probability of getting +1 is

(23)#p(m123456=+1)=ψ|(X1X2X3X4X5X6)X1X2X3X4X5X6|ψ=(a0~L|+b1~L|)(a|0~L+b|1~L)=1

The post-measurement state is then

(24)#X1X2X3X4X5X6|ψp(m123456=+1)=a|0~L+b|1~L

After measuring X1X2X3X4X5X6 we perform the measurement X4X5X6X7X8X9, and we have

(25)#X4X5X6X7X8X9|0~L=(|000+|111)(|111+|000)(|111|000)22=|0~LX4X5X6X7X8X9|1~L=(|000|111)(|111|000)(|111+|000)22=|1~L

Then measuring X4X5X6X7X8X9 for |ψ=a|0~L+b|1~L, the outcome is 1, and the probability of getting 1 is

(26)#p(m456789=1)=ψ|(X4X5X6X7X8X9)X4X5X6X7X8X9|ψ=(a0~L|+b1~L|)(a|0~L+b|1~L)=1

The post-measurement state is then

(27)#X4X5X6X7X8X9|ψp(m456789=1)=a|0~Lb|1~L

From above calculation we know that,

  • If there is no error, we measure +1 for X1X2X3X4X5X6 and +1 for X4X5X6X7X8X9

  • If there is a phase flip error at the first three qubit set, we measure 1 for X1X2X3X4X5X6 and +1 for X4X5X6X7X8X9

  • If there is a phase flip error at the second three qubit set, we measure 1 for X1X2X3X4X5X6 and 1 for X4X5X6X7X8X9

  • If there is a phase flip error at the third three qubit set, we measure +1 for X1X2X3X4X5X6 and 1 for X4X5X6X7X8X9

From above summary, we can easily see that, the syndrome measurement for detecting phase flip errors in the Shor code corresponds to measuring X1X2X3X4X5X6 and X4X5X6X7X8X9