qutip / qutip-notebooks

A collection of IPython notebooks using QuTiP: examples, tutorials, development test, etc.
BSD 3-Clause "New" or "Revised" License
235 stars 236 forks source link

Add more installation guide for circuit plotting #123

Closed BoxiLi closed 3 years ago

BoxiLi commented 3 years ago

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.

review-notebook-app[bot] commented 3 years ago

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB