Skip to content

Commit

Permalink
Merge pull request #190 from dlyongemallo/update_measure_comment
Browse files Browse the repository at this point in the history
Update `Measurement` gate qasm comment and link.
  • Loading branch information
jvdwetering authored Dec 11, 2023
2 parents 46bb49c + 8015fc4 commit d3c1af9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pyzx/circuit/gates.py
Original file line number Diff line number Diff line change
Expand Up @@ -1174,7 +1174,10 @@ class Measurement(Gate):
result_bit: Optional[int]

quipper_name = 'measure'
# This gate has special syntax in qasm: https://qiskit.github.io/openqasm/language/insts.html
# This gate has special syntax in qasm: https://openqasm.com/language/insts.html#measurement
# PyZX supports the following subset of the syntax:
# * (OpenQASM 2) measure q[0] -> c[0]
# * (OpenQASM 3) c[0] = measure q[0]

def __init__(self, target: int, result_bit: Optional[int]) -> None:
self.target = target
Expand Down

0 comments on commit d3c1af9

Please sign in to comment.