1
$\begingroup$

Trying to run the below code block in a jupyter notebook in Windows 10:

from qiskit import QuantumCircuit
import pdflatex
qc = QuantumCircuit(2)
qc.cx(0,1)
qc.draw('latex')

I have installed pdflatex. Line import pdflatex can be executed. But line qc.draw() raises MissingOptionalLibraryError: "The 'pdflatex' library is required to use 'LaTeX circuit drawing'.

pip install pdflatex

$\endgroup$
1
  • 4
    $\begingroup$ I’m voting to close this question because it is not about quantum computing. $\endgroup$ Commented Sep 22, 2023 at 8:01

0

Browse other questions tagged or ask your own question.