30.12.2012 Views

t b a b a

t b a b a

t b a b a

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

gr.cnot(10+6,2)<br />

gr.cnot(10+6,5)<br />

gr.cnot(10+6,6)<br />

gr.cnot(11+6,0)<br />

gr.cnot(11+6,2)<br />

gr.cnot(11+6,4)<br />

gr.cnot(11+6,6)<br />

# X syndrome<br />

gr.cphase(12+6,3)<br />

gr.cphase(12+6,4)<br />

gr.cphase(12+6,5)<br />

gr.cphase(12+6,6)<br />

gr.cphase(13+6,1)<br />

gr.cphase(13+6,2)<br />

gr.cphase(13+6,5)<br />

gr.cphase(13+6,6)<br />

gr.cphase(14+6,0)<br />

gr.cphase(14+6,2)<br />

gr.cphase(14+6,4)<br />

gr.cphase(14+6,6)<br />

# Measure and output the syndrome<br />

for i in range(9+6,15+6):<br />

gr.hadamard(i)<br />

print gr.measure(i)<br />

print<br />

105

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!