From 8015fc42faad1af4832fd6424c65ab785a8907dc Mon Sep 17 00:00:00 2001 From: David Yonge-Mallo Date: Fri, 8 Dec 2023 17:10:46 +0100 Subject: [PATCH] Update `Measurement` gate qasm comment and link. The previous link no longer exists. Replaced with a newer link. --- pyzx/circuit/gates.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pyzx/circuit/gates.py b/pyzx/circuit/gates.py index 4fba67c7..00c57659 100644 --- a/pyzx/circuit/gates.py +++ b/pyzx/circuit/gates.py @@ -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