Typos in PF.4 Gradients and Optimization

Hi all, thanks for working on the codebook, I’ve been using it a bunch and it’s a great tool for learning the ins and outs of PennyLane. I spotted a couple minor typos in PF.4 Gradients and Optimization.

Firstly, the first mention of qml.BasicEntanglerLayers actually has a typo so it says qml.BasicEntaglerLayers (missing the 2nd “n”). It might also be worth explicitly calling out that its “BasicEntanglerLayers” but “StronglyEntanglingLayers”. This confused me for a bit at first when I accidentally swapped the ends of the words (no typo in the text for this one, just might be good to call out to the user so they don’t get confused if they change Basic->Strongly in code and suddenly have confusion on why the op doesn’t exist).

Next, in the first section of the text it says “Solve Codercise PT.4.1a”, but the codercise is actually called “PF.4.1”.

Moreover, the full line says " Solve Codercise PT.4.1a to become familiar with this template!" but the solution doesn’t involve using this template, it requires you to manually use the operations yourself.

In the docstring for the function in PF.4.2, the argument is named “weights” but in the function its actually named “params”.

In the final section on the theory side, it says “this routine return the parameters…” but “return” should probably be “returns”.

In the instructions for codercise PF.4.5b, the first line has the word “and” twice in a row. It also says " a number of steps do optimize a cost function", but “do” should probably be “to”.

Thanks, and great work again making such helpful tutorials for PennyLane!

Hi @jzaia !
Thanks for your valuable input. I have incorporated it into the codebook.
I’ll keep an eye for future suggestions :face_with_monocle:

1 Like