pyquil icon indicating copy to clipboard operation
pyquil copied to clipboard

latex display: unclear which qubits control which gates when multiple controlled gates rendered in same column

Open adamglos92 opened this issue 5 years ago • 1 comments

Pre-Report Checklist

  • [x] I am running the latest versions of pyQuil and the Forest SDK
  • [x] I checked to make sure that this bug has not already been reported

The display function produce incorrect output, it is easy to confuse them with Toffoli gates,

from pyquil import Program
from pyquil.gates import X
from pyquil.latex import display

p  = Program()
p += X(2).controlled(0)
p += X(3).controlled(1)
display(p)

indeks

adamglos92 avatar Mar 12 '20 12:03 adamglos92

This is good feedback @adamglos92, thanks for reporting it.

appleby avatar Mar 12 '20 18:03 appleby