From f87d814a2a5a78fcbbe88ef08a5cc8dfb18c9be1 Mon Sep 17 00:00:00 2001 From: CalMacCQ <93673602+CalMacCQ@users.noreply.github.com> Date: Wed, 18 Dec 2024 00:32:19 +0000 Subject: [PATCH] try to fix kwargs --- pytket/extensions/qiskit/qiskit_convert.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/pytket/extensions/qiskit/qiskit_convert.py b/pytket/extensions/qiskit/qiskit_convert.py index 16188c3f..64bf42c1 100644 --- a/pytket/extensions/qiskit/qiskit_convert.py +++ b/pytket/extensions/qiskit/qiskit_convert.py @@ -76,13 +76,13 @@ Clbit, ControlledGate, Gate, + IfElseOp, Instruction, InstructionSet, Measure, Parameter, ParameterExpression, Reset, - IfElseOp, ) from qiskit.circuit.library import ( CRYGate, @@ -510,17 +510,17 @@ def build_if_else_circuit( circ_builder = CircuitBuilder(qregs, cregs) circ = circ_builder.circuit() circ.add_circbox( - if_box, - qubits, - bits, - if_else_op.condition[1], + circbox=if_box, + args=qubits, + condition_bits=bits, + condition_value=if_else_op.condition[1], ) circ.add_circbox( - else_box, - qubits, - bits, + circbox=else_box, + args=qubits, + condition_bits=bits, # TODO negate condition properly - 1 - if_else_op.condition[1], + condition_value=0, ) return circ