oreilly-qc / oreilly-qc.github.io

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

Example 2-3 phase should be -90 instead of 90 #28

Closed checky2010 closed 4 years ago

checky2010 commented 4 years ago

I think that in example 2-3 (in the book), the phase should be -90, like in the simulator, instead of 90.

And therefore, Figure 2-16 and 2-18 are wrong as well.

machinelevel commented 4 years ago

Hi Jonas, you're right, and thanks for pointing this out. I've updated the Errata page.

Jim Blinn famously advised "Always make sure you have an even number of sign errors". Accomplished, there are 2. :]