Closed af-rotundo closed 3 years ago
Using the following Qiskit version (the one from the IBM Quantum Lab):
{'qiskit-terra': '0.18.1', 'qiskit-aer': '0.8.2', 'qiskit-ignis': '0.6.0', 'qiskit-ibmq-provider': '0.16.0', 'qiskit-aqua': '0.9.4', 'qiskit': '0.29.0', 'qiskit-nature': '0.1.5', 'qiskit-finance': '0.2.0', 'qiskit-optimization': '0.2.1', 'qiskit-machine-learning': '0.2.0'}
I'm able to get the drawing you're having trouble with:
It probably has something to do with you using 0.17.1.
The problem was indeed the outdated package, thanks.
Information
What is the current behavior?
I'm trying to draw the following simple circuit with LaTex
However, the output is empty when I pass the option
output='latex'
.The problem is only present with the
Initialize
gate. Also, the problem is not present for different numbers of quantum/classical registers, e.g. the circuit is drawn correctly if one quantum register is removed.Steps to reproduce the problem
Run the following code in JupyterLab
What is the expected behavior?
For example if we remove one quantum register, the circuit is rendered correctly. Try
Suggested solutions