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

Function is_close_array

python/tests/kernel/test_run_kernel.py:28–33  ·  view source on GitHub ↗
(actual, expected)

Source from the content-addressed store, hash-verified

26
27
28def is_close_array(actual, expected):
29 assert len(actual) == len(expected)
30 res = True
31 for a, e in zip(actual, expected):
32 res = res and np.isclose(e, a, atol=1e-6)
33 return res
34
35
36@pytest.fixture(autouse=True)

Callers 4

test_return_list_floatFunction · 0.70
test_return_list_float32Function · 0.70
test_return_list_float64Function · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected