Skip to content

Commit 1bf9b22

Browse files
committed
Add another test
1 parent 289a996 commit 1bf9b22

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

test/qasm2/emit/test_qasm2_emit.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,3 +275,17 @@ def valid_if():
275275

276276
target = qasm2.emit.QASM2()
277277
target.emit(valid_if)
278+
279+
@qasm2.extended
280+
def nested_kernel():
281+
q = qasm2.qreg(1)
282+
c = qasm2.creg(1)
283+
qasm2.measure(q, c)
284+
285+
if c[0] == 0:
286+
valid_if()
287+
288+
return q
289+
290+
target = qasm2.emit.QASM2()
291+
target.emit(nested_kernel)

0 commit comments

Comments
 (0)