Qiskit-terra: Small inconsistency in the mpl drawer

Created on 19 Jul 2019  路  8Comments  路  Source: Qiskit/qiskit-terra

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...

bug good first issue

All 8 comments

Similarly, another inconsistency in the way to present the parameters when usepiformat is used.

circuit_all.draw(output='mpl', style={'usepiformat': True})

image

circuit_all.draw(output='mpl', style={'usepiformat': False})

image

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 :)

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!

Hi @baileytincher, just checking to see how this is going. I wanted to give this a shot, but wanted to check with you before doing so.

@aasfaw I think you can go ahead. @baileytincher seems MIA.

Hi @baileytincher, just checking to see how this is going. I wanted to give this a shot, but wanted to check with you before doing so.

I've been working on this a little, but by all means go ahead if you have an idea. I don't want to hold up the project if you can get it done sooner!

hi @1ucian0 can i have a shot with this

This issue seems closed. Do you think it was wrongly closed @ZuansiCai ?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jaygambetta picture jaygambetta  路  6Comments

ajavadia picture ajavadia  路  5Comments

ewinston picture ewinston  路  3Comments

manoelmarques picture manoelmarques  路  4Comments

indisoluble picture indisoluble  路  3Comments