educative.io

Output shown in interactive terminal is wrong

When we click on “Run” it shows unexpected/wrong output as per the content. The plot should show “1” with 100% probability but it shows ~50% in both “0” and “1” cases.

But if we run this locally in a notebook, it works as expected i.e. it does show 100% probability.

Check the screenshot added below:


Type your question above this line.

Course: https://www.educative.io/collection/10370001/5209819897659392
Lesson: https://www.educative.io/collection/page/10370001/5209819897659392/5151632167272448

Hello @Sagar_Sonawane,

Thanks for highlighting this issue. We are fixing it. We will let you know soon once it is fixed.

Hi @Sagar_Sonawane ,
We have updated the code. Now it is working fine as expected. Please free to highlight any other issue you face in this course.

Thanks

1 Like

Hi all,

since this issue happens throughout the course, I highly suggest everyone to skip to the second last section of each chapter (the one before the usual quiz) and open the linked jupyter notebook in a different window next to the lecture notes. Then just follow along with the jupyter notebook instead of the partially wrong code blocks in the notes.
Can be quite frustrating otherwise.

Happy learning.
Cheers


Course: Hands-On Quantum Machine Learning with Python - Learn Interactively
Lesson: Multiple Results