I have followed the installation steps, regarding QISKit working environment. For circuit visualization, I've installed latex as in addition to poppler to convert from PDF to images. Afterwards, I followed the example given here.

I wrote the code and after running, the program run but I didn't get the circuit visualization. I don't know what is the problem, even I have not received any error messages.

So any ideas?

  • 1
    $\begingroup$ Maybe the title should be "Visualization of Quantum Circuits when using IBM Qiskit". $\endgroup$ – rrtucci May 31 '18 at 3:29
  • 2
    $\begingroup$ Welcome to Quantum Computing SE! Is it possible to show us a minimal example of the code that displays (or in this case, doesn't display) the problem that you're having with drawing/displaying the circuit? $\endgroup$ – Mithrandir24601 May 31 '18 at 23:15
  • $\begingroup$ Related: stackoverflow.com/questions/48732603/… $\endgroup$ – Alexander Pozdneev Jun 5 '18 at 8:52
  • $\begingroup$ What is the approximate size of your quantum circuit? How many gates do you try to plot? Does the example you linked works on your setup? $\endgroup$ – Nelimee Jun 25 '18 at 6:00

You can find detailed instructions about what you need to install for your particular OS here. This visualization uses Latex, so you need to have a latex compiler installed.

Also make sure you have the latest version of Qiskit, as a Windows visualization bug was recently fixed. You can upgrade by doing: pip install -U qiskit

Within the next couple weeks, Qiskit will have another visualization method that runs purely in Python, hence no other software installations required.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.