diff --git a/cirq-core/cirq/contrib/qasm_import/_parser.py b/cirq-core/cirq/contrib/qasm_import/_parser.py index 1d9e86060476..f2b30423c2d4 100644 --- a/cirq-core/cirq/contrib/qasm_import/_parser.py +++ b/cirq-core/cirq/contrib/qasm_import/_parser.py @@ -293,7 +293,7 @@ def p_format(self, p): # circuit : new_reg circuit # | gate_op circuit # | measurement circuit - # | reset + # | reset circuit # | if circuit # | empty @@ -505,7 +505,7 @@ def p_measurement(self, p): # reset : RESET qarg def p_reset(self, p): - """reset : RESET qarg ';'""" + """reset : RESET qreg ';'""" qreg = p[2] p[0] = [ops.ResetChannel().on(qreg[i]) for i in range(len(qreg))]