Skip to content

Reduce leading space inside drawn BoxOp #14506

@aeddins-ibm

Description

@aeddins-ibm

What should we add?

In the spirit of #2788, it would be nice to reduce the leading space currently present inside boxes when drawing a circuit with matplotlib. It seems this could make some circuit drawings significantly shorter.

qc = QuantumCircuit(2)
with qc.box():
    qc.h([0,1])
qc.draw('mpl')
with qc.box():
    qc.x([0,1])
qc.draw('mpl')

Image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions