Skip to content

MPL circuit drawer returning qubit[register] names for input #11038

@nonhermitian

Description

@nonhermitian

Environment

  • Qiskit Terra version: main
  • Python version:
  • Operating system:

Circuit drawings seem to include the full Qubit[register] label rather than just egq0, which makes the drawings a bit messy looking

qc = EfficientSU2(6, entanglement='circular')
x0 = np.random.random(size=qc.num_parameters)
qc.assign_parameters(x0, inplace=True)
trans_circ = transpile(qc, backend,
                       basis_gates=['rz', 'sx', 'cx'],
                       optimization_level=3)
trans_circ.draw('mpl', idle_wires=False, fold=-1)
Screenshot 2023-10-18 at 11 35 21

What is happening?

see above

How can we reproduce the issue?

see above

What should happen?

The drawer should return simple labels for the input qubits

Any suggestions?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingmod: visualizationqiskit.visualization

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions