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

Function is_close

python/tests/kernel/test_kernel_float.py:17–18  ·  view source on GitHub ↗
(expected, actual)

Source from the content-addressed store, hash-verified

15
16
17def is_close(expected, actual) -> bool:
18 return np.isclose(expected, actual, atol=1e-6)
19
20
21def test_float_params():

Callers 13

test_float_paramsFunction · 0.70
test_float_captureFunction · 0.70
test_float_definitionFunction · 0.70
test_float_useFunction · 0.70
test_float64_paramsFunction · 0.70
test_float64_captureFunction · 0.70
test_float64_definitionFunction · 0.70
test_float64_useFunction · 0.70
test_float32_paramsFunction · 0.70
test_float32_captureFunction · 0.70
test_float32_definitionFunction · 0.70
test_float32_useFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected