Skip to content

Commit

Permalink
[remove] targX which can be replaced by swap(0), fixes #16
Browse files Browse the repository at this point in the history
  • Loading branch information
Mc-Zen committed Jan 15, 2025
1 parent a74f230 commit aa37f3c
Show file tree
Hide file tree
Showing 5 changed files with 5,903 additions and 2,198 deletions.
2 changes: 1 addition & 1 deletion docs/guide/gallery.typ
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
[Wire bundle], quantum-circuit(1, nwire(5), 1), raw("nwire(5)"),
[Controlled \  #smallcaps("z")-gate], quantum-circuit(1, ctrl(1), 1, [\ ], 1, ctrl(0), 1), [#raw("ctrl(1)") \ + \ #raw("ctrl(0)")],
[Controlled \  #smallcaps("x")-gate], quantum-circuit(1, ctrl(1), 1, [\ ], 1, targ(), 1), [#raw("ctrl(1)") \ + \ #raw("targ()")],
[Swap \  gate], quantum-circuit(1, swap(1), 1, [\ ], 1, targX(), 1), [#raw("swap(1)") \ + \ #raw("targX()")],
[Swap \  gate], quantum-circuit(1, swap(1), 1, [\ ], 1, swap(0), 1), [#raw("swap(1)") \ + \ #raw("swap(0)")],
[Controlled \ Hadamard], quantum-circuit(1, mqgate($H$, target: 1), 1, [\ ], 1, ctrl(0), 1), [#raw("mqgate($H$,target:1)") \ + \ #raw("ctrl(0)")],
[Plain\ vertical\ wire], quantum-circuit(1, ctrl(1, show-dot: false), 1, [\ ], 3), raw("ctrl(1, show-dot: false)"),
[Meter to \ classical], quantum-circuit(1, meter(target: 1), 1, [\ ], setwire(2), 1, ctrl(0), 1), [#raw("meter(target: 1)") \ + \ #raw("ctrl(0)")],
Expand Down
Loading

0 comments on commit aa37f3c

Please sign in to comment.