From 76698e1ae7d56bae7921f1d79d3eaec573490c00 Mon Sep 17 00:00:00 2001 From: Craig Roy Date: Wed, 6 Mar 2024 14:05:15 +0000 Subject: [PATCH] fix: Make ZZMax a dyadic operation --- guppylang/prelude/quantum.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/guppylang/prelude/quantum.py b/guppylang/prelude/quantum.py index 26602bfd..ae6ca556 100644 --- a/guppylang/prelude/quantum.py +++ b/guppylang/prelude/quantum.py @@ -66,7 +66,7 @@ def sdg(q: Qubit) -> Qubit: ... @guppy.hugr_op(quantum, quantum_op("ZZMax")) -def zz_max(q: Qubit) -> Qubit: ... +def zz_max(q1: Qubit, q2: Qubit) -> tuple[Qubit, Qubit]: ... @guppy.hugr_op(quantum, quantum_op("Measure"))