Skip to content

Commit

Permalink
Update src/qibo/_openqasm.py
Browse files Browse the repository at this point in the history
Co-authored-by: Renato Mello <[email protected]>
  • Loading branch information
BrunoLiegiBastonLiegi and renatomello authored Feb 23, 2024
1 parent 5e3f025 commit 63f348f
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/qibo/_openqasm.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,14 @@ def get_gates(self, qubits, args):
def _qibo_gate_name(gate):
if gate == "cx":
return "CNOT"
elif gate == "id":

if gate == "id":
return "I"
elif gate == "ccx":

if gate == "ccx":
return "TOFFOLI"
else:
return gate.upper()

return gate.upper()


class QASMParser:
Expand Down

0 comments on commit 63f348f

Please sign in to comment.