Skip to content

Commit

Permalink
Correct an example in the spec
Browse files Browse the repository at this point in the history
  • Loading branch information
qartik committed Oct 17, 2023
1 parent c2ffe38 commit 80f4f3e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions phir_spec_qasm.md
Original file line number Diff line number Diff line change
Expand Up @@ -716,8 +716,8 @@ Here is an equivalent version of the program using PHIR.
"true_branch": [
{
"cop": "=",
"args": ["c"],
"returns": [7]
"args": [7],
"returns": ["c"]
},
{
"qop": "X",
Expand Down
2 changes: 1 addition & 1 deletion tests/example.json
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@
"block": "if",
"condition": {"cop": ">", "args": ["a", 2]},
"true_branch": [
{"cop": "=", "args": ["c"], "returns": [7]},
{"cop": "=", "args": [7], "returns": ["c"]},
{"qop": "X", "args": [["w", 0]]},
{"qop": "H", "args": [["w", 1]]},
{"qop": "CX", "args": [[["w", 1], ["w", 2]]]},
Expand Down

0 comments on commit 80f4f3e

Please sign in to comment.