Skip to content

Commit

Permalink
Add reset keyword to qasm lexer
Browse files Browse the repository at this point in the history
  • Loading branch information
rscircus committed Aug 22, 2024
1 parent b9f954f commit 920ee2f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cirq-core/cirq/contrib/qasm_import/_lexer.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ def __init__(self):
reserved = {
'qreg': 'QREG',
'creg': 'CREG',
'reset': 'RESET',
'measure': 'MEASURE',
'if': 'IF',
'->': 'ARROW',
Expand Down Expand Up @@ -91,6 +92,10 @@ def t_CREG(self, t):
r"""creg"""
return t

def t_RESET(self, t):
r"""reset"""
return t

def t_MEASURE(self, t):
r"""measure"""
return t
Expand Down

0 comments on commit 920ee2f

Please sign in to comment.