From 285bd2e4a6d4cedca85e6dce8bbf7fe3832e6074 Mon Sep 17 00:00:00 2001 From: Alex Rice Date: Thu, 18 Jul 2024 15:52:18 +0100 Subject: [PATCH] Fix bug in cnot gate initialiser --- xdsl/dialects/qref.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xdsl/dialects/qref.py b/xdsl/dialects/qref.py index 11c0ab7177..a5399e5ed3 100644 --- a/xdsl/dialects/qref.py +++ b/xdsl/dialects/qref.py @@ -141,7 +141,7 @@ class CNotGateOp(QRefBase): def __init__(self, in1: SSAValue, in2: SSAValue): super().__init__( operands=(in1, in2), - result_types=(qubit, qubit), + result_types=(), ) def ssa_op(self) -> qssa.CNotGateOp: