Hi, I am stuck on the finite difference challenge in QHACK. Trying to index the array params gives me an error that the array is 0-dimensional (and cannot therefore be addressed by indices). But then in the method “variational circuit”, the array is indexed: params, etc. So, maybe it is not it.
In other words: Any hints how to approach the challenge?
Hi @qreg, it’s great that you’re trying the challenges! For questions about the challenges you should use the “request clarification” option on your team home page.
If your question is about PennyLane in general, then this is the place to go.
Something that may help is that the error “the array is 0-dimensional” usually means that your array is in fact a scalar so that may be why you’re running into trouble.
I hope this helps!
Got it. Thank you very much for your reply.