Seems to be a small typo in the mathematics for the “Returning Expection Values” challenge of Pennylane. The code is using a R_y rotation but the definition looks like it’s using the Pauli X matrix.
Hi @ambrose158, welcome to the forum!
You are completely right, great eye! ![]()
Thanks for spotting and reporting this.
I’ll fix it right now and the changes will be live tomorrow.
