question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Small inconsistency in the mpl drawer

See original GitHub issue

There is a small inconsistency how the parameters of a gate are showed in the matplotlib, with and without ‘(…)’.

qr = QuantumRegister(2, 'q')
circuit_all = QuantumCircuit(qr)
circuit_all.u3(pi, pi, pi, qr[0])
circuit_all.cu3(pi, pi, pi, qr[0], qr[1])
circuit_all.draw(output='mpl')

image

What is the expected enhancement?

If I have to choose, I would go with removing the parenthesis everywhere. But, for sure, it should be everywhere the same…

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
1ucian0commented, Jul 30, 2019

Awesome! You will find the mpl drawer code in the visualization folder. Start by running the visualization tests in the test folder. Let me know if you need any help!

1reaction
baileytinchercommented, Jul 30, 2019

Interested in trying my hand at this to learn more about how Terra was wrote, but I haven’t worked inside this project’s source before. Any recommendation on a starting point for this (if you know one, otherwise I’ll poke around until I find something).

Thank you 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Diagnosing rupture of the cranial cruciate ligament - PMC - NCBI
Definitive diagnosis of rupture of the CCL demands an assessment of stifle joint stability by means of the cranial “drawer” test, the tibial...
Read more >
qiskit.visualization.circuit_drawer
Valid choices are text , mpl , latex , latex_source . By default the text drawer is used unless the user config file...
Read more >
New Insights Into the Differentiation of Megakaryocytes From ...
Studies in TPO and c-mpl knockout mice show a global decrease in HSCs, with a particularly drastic reduction in megakaryocytes and platelets.
Read more >
REFRIGERATOR
Drawer. Freezer. Drawer. Indoor Ice Bin. Ice cubes are automatically ... Too small of a distance from adjacent items may result in lowered...
Read more >
It Is Time to Move Beyond the Linear No-Threshold Theory for ...
Low-dose throughout this report is arbitrarily defined as a dose of 100 mGy ... that the biological mechanism for carcinogenesis is inconsistent with...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found