D.2 Installing the libraries
Although both Anaconda and Google Colab come with a lot of data science and visualization libraries already installed by default, they do not yet include any of the quantum computing libraries that we use in this book.
However, getting them set up and running is a breeze with pip , a package manager that comes bundled with Python—you don’t need to install Anaconda or access Google Colab to use it. In order to install a new library with pip, you just need to run the following instruction on your terminal:
pip install name - of - library
If you are using a Jupyter notebook to run your code, you can use exactly that same instruction, but you need to write it in a cell of its own, with no additional code. If you need to install several different libraries and you do not want to create a different cell for each pip instruction, then you can put them all together in the same cell but you need to use the escape symbol !
. So, for instance, you can...