Gradient Not Working Because of Keyword Arguments

I pasted the code above. Please let me know if you need anything else.

I tried modifying the Pennylane code on my computer directly to match the changes in the post from below:

It still didn’t work. Let me know what I can do.