Skip to content

Commit

Permalink
Add OpenWASM as a weakdependency (#9)
Browse files Browse the repository at this point in the history
* Add OpenWASM as a weakdependency

* rewrite cx as CX

---------

Co-authored-by: Liam <[email protected]>
  • Loading branch information
contra-bit and contra-bit authored Feb 10, 2024
1 parent d04827c commit b49c605
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 9 deletions.
7 changes: 6 additions & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,19 @@ Expronicon = "6b7a57c9-7cc1-4fdf-b7f5-e857abae3636"
MLStyle = "d8e11817-5142-5d16-987a-aa16d5891078"
YaoLocations = "66df03fb-d475-48f7-b449-3d9064bf085b"

[weakdeps]
OpenQASM = "a8821629-a4c0-4df7-9e00-12969ff383a7"

[extensions]
YaoHIRExt = ["OpenQASM"]

[compat]
Expronicon = "0.10"
MLStyle = "0.4"
YaoLocations = "0.1"
julia = "1.9"

[extras]
OpenQASM = "a8821629-a4c0-4df7-9e00-12969ff383a7"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

[targets]
Expand Down
16 changes: 8 additions & 8 deletions test/qasm.jl
Original file line number Diff line number Diff line change
Expand Up @@ -53,18 +53,18 @@ using OpenQASM
h q[2];
x q[2];
h q[2];
cx q[1],q[2];
CX q[1],q[2];
tdg q[2];
cx q[0],q[2];
CX q[0],q[2];
t q[2];
cx q[1],q[2];
CX q[1],q[2];
t q[1];
tdg q[2];
cx q[0],q[2];
cx q[0],q[1];
CX q[0],q[2];
CX q[0],q[1];
t q[0];
tdg q[1];
cx q[0],q[1];
CX q[0],q[1];
h q[0];
h q[1];
t q[2];
Expand Down Expand Up @@ -135,9 +135,9 @@ end
x q[0];
x q[1];
h q[2];
cx q[0],q[2];
CX q[0],q[2];
x q[0];
cx q[1],q[2];
CX q[1],q[2];
h q[0];
x q[1];
h q[1];
Expand Down

0 comments on commit b49c605

Please sign in to comment.