oreilly-qc/oreilly-qc.github.io

Missing operation in PHASE example

toshaf opened this issue · 2 comments

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

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.

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. :]