Making animation functions useful

merging plot functions and animation functions

First, I integrated the plot functions and animation functions. Two weeks ago, I introduced them to you all. Actually, the code for them was almost identical to that of plot_functions. The reason for this was that we couldn’t call and use plot_functions within animation functions for the sake of speed and ease of use. However, repeatedly using the same code makes maintenance difficult. Therefore, in the current implementation, the behavior of functions changes depending on whether they receive a Qobj or a list of Qobjs. For instance, it goes like this:

matrix_histogram

However, there’s a feedback that this makes users to hard to find the animation feature. I plan to recreate the animation functions, and by calling the plot functions internally, even though plot functions will create an animation, the user can use plot functions when they want to make a plot and the other one for animations. This has the advantage of being more intuitive for the user.

writing a tutorial notebook

Currently, I am creating a tutorial notebook. There are two reasons for this: Firstly, Jupyter notebook is not compatible with videos. You can easily view animations created by matplotlib using the %matplotlib notebook command. However, some users can’t use this command. From my tests, people using Linux or Google colab cannot view videos in this way. We intend to introduce a method in the tutorial notebook that allows such users to easily view videos. Secondly, handling the axes object is challenging. If you wanted to add a title after creating a video, you would need to proceed with a code like the following:

For those unfamiliar with matplotlib, this is too complicated. By creating a tutorial notebook, I want to help users maximize the potential of QuTiP.