Skip to content

Commit

Permalink
Fix comments & typos
Browse files Browse the repository at this point in the history
  • Loading branch information
rscircus committed Sep 14, 2024
1 parent dc4dffa commit 1332b34
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cirq-core/cirq/contrib/qasm_import/_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ def p_format(self, p):
# circuit : new_reg circuit
# | gate_op circuit
# | measurement circuit
# | reset
# | reset circuit
# | if circuit
# | empty

Expand Down Expand Up @@ -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))]
Expand Down

0 comments on commit 1332b34

Please sign in to comment.