Skip to content

Commit

Permalink
Merge pull request #49 from snuffkin/fix/typo_gate_name
Browse files Browse the repository at this point in the history
Fix typos on OepnQASM gate name
  • Loading branch information
kwkbtr authored Mar 29, 2023
2 parents a960c06 + 3a2c1fd commit 2fdd5b8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/openqasm/quri_parts/openqasm/circuit/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@
gate_names.Z: "z",
gate_names.H: "h",
gate_names.S: "s",
gate_names.Sdag: "sdag",
gate_names.Sdag: "sdg",
gate_names.T: "t",
gate_names.Tdag: "tdag",
gate_names.Tdag: "tdg",
}

_single_qubit_rotation_gate_stdgates_symbol: Mapping["SingleQubitGateNameType", str] = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def test_s_gate(self) -> None:

def test_sdag_gate(self) -> None:
g = gates.Sdag(123)
qasm_expected = "sdag q[123];"
qasm_expected = "sdg q[123];"
assert convert_gate_to_qasm_line(g) == qasm_expected

def test_t_gate(self) -> None:
Expand All @@ -52,7 +52,7 @@ def test_t_gate(self) -> None:

def test_tdag_gate(self) -> None:
g = gates.Tdag(123)
qasm_expected = "tdag q[123];"
qasm_expected = "tdg q[123];"
assert convert_gate_to_qasm_line(g) == qasm_expected

def test_rx_gate(self) -> None:
Expand Down

1 comment on commit 2fdd5b8

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.