oreilly-qc / oreilly-qc.github.io

Code samples for Programming Quantum Computers, from O'Reilly Media
130 stars 59 forks source link

Missing operation in PHASE example #44

Open toshaf opened 2 years ago

toshaf commented 2 years ago

Hello!

I’m loving the book but I may have found an issue. On page 50, chapter 3 under the section on CPHASE and CZ figure 3-16 compares individual PHASE instructions’ effects to those of CPHASE. The first example of rotation of the 0x1 qubit shows the |3>, |5> and |7> states begin rotated, wouldn’t |1> also be affected?

Thanks

Tosh image

dyordan1 commented 2 years ago

I wanted to echo @toshaf's comment - just noticed the same in my copy of the book. This appears to be an emphasis error - the phase change is actually applied, but the |1> state is not highlighted the same way the others are.

machinelevel commented 2 years ago

You're both correct! Good catch. You can see the correct image in the errata page here. I've also added you to the thanks on that page. :]