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

Function test_math_module_pi_1448

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

Source from the content-addressed store, hash-verified

1831
1832
1833def test_math_module_pi_1448():
1834 import math
1835
1836 @cudaq.kernel
1837 def test_kernel() -> float:
1838 theta = math.pi
1839 return theta
1840
1841 test_kernel.compile()
1842 assert np.isclose(test_kernel(), math.pi, 1e-12)
1843
1844
1845def test_len_qvector_1449():

Callers

nothing calls this directly

Calls 2

test_kernelFunction · 0.70
compileMethod · 0.45

Tested by

no test coverage detected