I recently installed qutip on a new laptop. There are several tricks for getting the circuit plotting work that are unclear in the current notebook. I improved the installation guide:
Installation:
The circuit image visualization requires LaTeX and ImageMagick for display. The module automatically process the LaTeX code for plotting the circuit, generate the pdf and convert it to the png format. On Mac and Linux, ImageMagick can be easily installed with the command conda install imagemagick if you have conda installed. Otherwise, please follow the installation instructions on the ImageMagick documentation.
On windows, you need to download and install ImageMagick installer. In addition, you also need perl (for pdfcrop) and Ghostscript (additional dependency of ImageMagick for png conversion).
If you want to check whether all dependencies are installed, see if the following three commands work correctly: pdflatex, pdfcrop and magick anypdf.pdf antpdf.png, where anypdf.pdf is any pdf file you have.
I recently installed qutip on a new laptop. There are several tricks for getting the circuit plotting work that are unclear in the current notebook. I improved the installation guide:
Installation:
The circuit image visualization requires LaTeX and ImageMagick for display. The module automatically process the LaTeX code for plotting the circuit, generate the pdf and convert it to the png format. On Mac and Linux, ImageMagick can be easily installed with the command
conda install imagemagick
if you have conda installed. Otherwise, please follow the installation instructions on the ImageMagick documentation.On windows, you need to download and install ImageMagick installer. In addition, you also need perl (for pdfcrop) and Ghostscript (additional dependency of ImageMagick for png conversion).
If you want to check whether all dependencies are installed, see if the following three commands work correctly:
pdflatex
,pdfcrop
andmagick anypdf.pdf antpdf.png
, whereanypdf.pdf
is any pdf file you have.