Skip to content

Commit

Permalink
try to fix kwargs
Browse files Browse the repository at this point in the history
  • Loading branch information
CalMacCQ committed Dec 18, 2024
1 parent 6518628 commit f87d814
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions pytket/extensions/qiskit/qiskit_convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,13 +76,13 @@
Clbit,
ControlledGate,
Gate,
IfElseOp,
Instruction,
InstructionSet,
Measure,
Parameter,
ParameterExpression,
Reset,
IfElseOp,
)
from qiskit.circuit.library import (
CRYGate,
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit f87d814

Please sign in to comment.