Typos in PF.2 Quantum Operations

Hi PennyLane Codebook team! I’ve been loving these tutorials, they’ve been very helpful in teaching me PennyLane syntax and such since I come from using other libraries. I found a couple small grammatical errors in PF.2 Quantum Operations. These are both nitpicks, so not at all urgent. Actually, the module itself is labeled PT.2 instead of PF.2, however the other 3 are labeled PF.1, PF.3, and PF.4, so this might also be a typo?

The following sections (emphasis mine) have small grammatical issues:

Remember that the prepared state must be normalized. If it isn’t, qml.StatePrep which can do it for you if you set the option normalize=True. Let’s check out the output of the circuit above.

The word “which” shouldn’t appear in the above sentence.

Note that, unlike qml.ctrl, qml.ControlledQubitUnitary does not acts as a wrapper.

In this sentence, “acts” should say “act”.

EDIT: Actually, caught one more in PT.2.2, the note says

The single_qubit_gates circuit depends on the parameters theta for the RX gate and phi for the RY gate.

however there is no RY gate, and the parameter phi is for the RZ gate. The docstring in the function has a similar typo.

Thanks again for making the codebook, the knowledge has been super valuable!

Hi! thanks for spotting these and letting us know.
We have fixed them and you will be able to see the updated version in the next few days.
Let us know if you find more.

1 Like