QuantumCircuit.draw() does not draw circuit in terminal
See original GitHub issueInformation
- Qiskit Terra version: master
- Python version:
- Operating system:
What is the current behavior?
Currently returns a <qiskit.visualization.text.TextDrawing>
. However, it should print to the terminal because it is an explicit command to draw the circuit.
Steps to reproduce the problem
What is the expected behavior?
Suggested solutions
Issue Analytics
- State:
- Created 4 years ago
- Comments:10 (2 by maintainers)
Top Results From Across the Web
qiskit.circuit.QuantumCircuit.draw
This is useful when the drawing does not fit in the console. If None (default), it will try to guess the console width...
Read more >Can't draw figures with Qiskit in Visual Studio
I want to draw quantum circuits, but it only shows their sizes with text instead of figures. The output on the interactive window...
Read more >Qiskit TwoLocal does not print Quantum Circuit - Stack Overflow
from qiskit.circuit.library import TwoLocal ry = TwoLocal(8, "ry", "cz", reps=2, entanglement="full").decompose() ry.draw('mpl').
Read more >matplotlib-based quantum circuit drawer - | notebook.community
5 intoduces matplotlib_circuit_drawer , which is a drop-in replacement of latex_circuit_drawer . If LaTeX is installed, circuit_drawer draws circuits by ...
Read more >Running Qiskit in (Dark) Jupyter - From First Principles
To test the qiskit visualization we can now try to draw this circuit using the draw() method: Fig 7 – Drawing our first...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Try: print(qc.draw(output=‘text’))
In this way, no problem!
https://user-images.githubusercontent.com/30768399/109589604-a48d7700-7b1b-11eb-9ab0-0a8857ffb543.jpeg