MCPcopy Create free account
hub / github.com/NVIDIA/cuda-quantum / test_compare_with_true

Function test_compare_with_true

python/tests/kernel/test_kernel_features.py:1351–1362  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1349
1350
1351def test_compare_with_true():
1352
1353 @cudaq.kernel
1354 def test():
1355 data = cudaq.qvector(2)
1356 ancilla = cudaq.qvector(2)
1357 results = mz(ancilla)
1358 if results[0] == True:
1359 x(data[0])
1360
1361 # The test here is that this compiles.
1362 test()
1363
1364
1365def test_with_docstring():

Callers

nothing calls this directly

Calls 1

testFunction · 0.70

Tested by

no test coverage detected