Skip to content

Commit

Permalink
[add] tests for midstick
Browse files Browse the repository at this point in the history
  • Loading branch information
Mc-Zen committed Sep 14, 2024
1 parent 6f5a887 commit e310656
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 0 deletions.
Binary file added tests/decorations/midstick/ref/1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added tests/decorations/midstick/ref/2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added tests/decorations/midstick/ref/3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 19 additions & 0 deletions tests/decorations/midstick/test.typ
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#set page(width: auto, height: auto, margin: 0pt)
#import "/src/quill.typ": *

#quantum-circuit(
1, $H$, midstick($ρ$), $X$
)

#pagebreak()

#quantum-circuit(
1, $H$, midstick($ρ$, fill: blue, label: ("label")), $X$
)

#pagebreak()
#quantum-circuit(
baseline: .6fr,
1, ctrl(1), targ(), ctrl(1), midstick("=", n: 2), swap(1), 1, [\ ],
1, targ(), ctrl(-1), targ(), 1, swap(0), 1,
)

0 comments on commit e310656

Please sign in to comment.