Skip to content

Commit

Permalink
Edit gate name
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshi-qc authored Jul 23, 2024
1 parent 4981625 commit a18e81e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/qiskit_convert_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -829,7 +829,7 @@ def test_multicontrolled_gate_conversion() -> None:
assert my_tkc.n_gates_of_type(OpType.CnRy) == 2
my_new_qc = tk_to_qiskit(my_tkc)
qiskit_ops = my_new_qc.count_ops()
assert qiskit_ops["c3y"] and qiskit_ops["c3z"] and qiskit_ops["c3ry"] == 2
assert qiskit_ops["c3y"] and qiskit_ops["mcz"] and qiskit_ops["c3ry"] == 2
tcirc = qiskit_to_tk(my_new_qc)
unitary_after = tcirc.get_unitary()
assert compare_unitaries(unitary_before, unitary_after)
Expand Down Expand Up @@ -1024,7 +1024,7 @@ def test_ccz_conversion() -> None:
assert tkc_ccz.n_gates_of_type(OpType.CnZ) == tkc_ccz.n_gates == 2
# bidirectional CnZ conversion already supported
qc_ccz2 = tk_to_qiskit(tkc_ccz)
assert qc_ccz2.count_ops()["ccz"] == 2
assert qc_ccz2.count_ops()["mcz"] == 2
tkc_ccz2 = qiskit_to_tk(qc_ccz2)
assert compare_unitaries(tkc_ccz.get_unitary(), tkc_ccz2.get_unitary())

Expand Down

0 comments on commit a18e81e

Please sign in to comment.