Hello!
I've noted misprint in "Qubit (two-level) systems" subsection of "Manipulating States and Operators" section.
I think, that after words "Now at this point one may ask how this state is different than that of a harmonic oscillator in the vacuum state truncated to two energy levels?" you need type code
vac = fock(2, 0) # but in guide in that place this: vac = basis(2, 0)
Sincerely,
Pavel Makarov.