Quantum, Qiskit, Quantum Mechanics, Python, Programming.
lineV.set_data(x, Vhat) return(line, lineV,) anim = animation.FuncAnimation(fig, animate, init_func=init, frames=400, interval=10, blit=True) # Note: below is the part which makes it work on Colab rc('animation', html='jshtml') anim sample output after running the code above Using Qiskit to Code