8
$\begingroup$

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?

$\endgroup$
4
  • 1
    $\begingroup$ Maybe the title should be "Visualization of Quantum Circuits when using IBM Qiskit". $\endgroup$
    – rrtucci
    Commented May 31, 2018 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
    Commented May 31, 2018 at 23:15
  • $\begingroup$ Related: stackoverflow.com/questions/48732603/… $\endgroup$ Commented Jun 5, 2018 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$ Commented Jun 25, 2018 at 6:00

1 Answer 1

2
$\begingroup$

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.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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