Skip to content

Commit 0bd1f15

Browse files
committed
Fix entry in documentation
1 parent ff5568b commit 0bd1f15

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

docs/mqt_core_ir.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -293,13 +293,11 @@ qc = QuantumComputation(1, 1)
293293
294294
qc.h(0)
295295
qc.measure(0, 0)
296-
297-
classic_controlled = IfElseOperation(
296+
qc.if_else(
298297
then_operation=StandardOperation(target=0, op_type=OpType.x),
299-
else_operation=None,
298+
else_operation=StandardOperation(target=0, op_type=OpType.y),
300299
control_bit=0,
301300
)
302-
qc.append(classic_controlled)
303301
304302
print(qc)
305303
```

0 commit comments

Comments
 (0)