Open minestarks opened 2 months ago
@minestarks @tcNickolas , I would like to work on this issue. Can please tell me how critical is the issue of long gate names affecting the readability of ASCII art circuits in the Q# framework?
@Pulkit1822 apologies for missing your post. It's been a while so hopefully you're still interested -- I'd say this is a fairly low-priority bug, and with no-one that I know currently working on it, it's probably a good first issue to experiment with.
When rendering circuits (see https://github.com/microsoft/qsharp/blob/main/samples/notebooks/circuits.ipynb) , if the gate label is longer than our fixed column width (e.g.
rx(3.1416)
) then the resulting ASCII art circuit looks terrible.We should make column widths vary with the gate label, so that the gates are displayed properly on the qubit wire.
See the below samples in Python.
Output: