Mc-Zen / quill

Effortlessly create quantum circuit diagrams in Typst.
https://typst.app/universe/package/quill
MIT License
40 stars 2 forks source link

Gallery contains false information #5

Closed EricQ01 closed 5 months ago

EricQ01 commented 5 months ago

The gallery shows the typst instruction of the multi-qubit unitary gate as mqgate($U$, 3). It should be mqgate($U$, n : 3). The code below does not compile.

#import "@preview/quill:0.2.1": *

#quantum-circuit(
    lstick($|0〉$), mqgate($U$, 4), [\ ], 
    lstick($|0〉$), 1, [\ ],
    lstick($|0〉$), 1, [\ ],
    lstick($|0〉$), 1, [\ ],
)
Mc-Zen commented 5 months ago

Oh, that's right, thanks for reporting!