projekter / yquant

Typesetting quantum circuits in a human-readable language
LaTeX Project Public License v1.3c
56 stars 5 forks source link

Mark "output" qubits #22

Closed tigerjack closed 1 year ago

tigerjack commented 1 year ago

In a few papers I am reading, a black triangle is used to mark the "output" qubits, like shown below. Is there something similar implemented in yquant? Otherwise, do you have any suggestion on how to achieve the same result? image

projekter commented 1 year ago

No, there is nothing like this implemented currently. I have not seen this kind of notation before. Do you think it is useful? To highlight certain registers, it is always possible to assign styles to the lines (colors, thickness, whatever)...

If you want to reproduce this, I can think of various ways:

projekter commented 1 year ago

Closed due to no further reaction

tigerjack commented 1 year ago

@projekter I somehow missed your reply. To answer yout question, I saw it in a few papers, and it is used to express the result of mathematical operation. Take a look at this picture for example.

By the way, thanks for your solution. From a few quick tests, it seems to work perfectly.