oreilly-qc/oreilly-qc.github.io

Documentation: bits in wrong order

rgobbel opened this issue · 2 comments

The "Working with qubits" cheatsheet says "For example, 0x4, 0b001 and 4 would all specify the third of three qubits ...". The binary value for 4 should be 0b100. The error is repeated in the next sentence: the three ways to select the second two of the three qubits in the example should be 0x2|0x4, 0b010|0b100, and 6, not 0x2|0x4, 0b010|0b001, and 3.

Thanks for spotting this! Indeed, the 0b forms of these binary numbers are incorrect. Fixed in commits ade4648 and c4f9958!

(I've closed this, but if you don't see the fixed version please feel free to re-open)