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

Function check

python/tests/kernel/test_kernel_complex.py:591–595  ·  view source on GitHub ↗
(c: any)

Source from the content-addressed store, hash-verified

589 return c[i]
590
591 def check(c: any):
592 for i in range(len(c)):
593 is_close(kernel(c, i).real, non_kernel(c, i).real)
594 for i in range(len(c)):
595 is_close(kernel(c, i).imag, non_kernel(c, i).imag)
596
597 check([0 + 2j])
598 check([0.70710678, 0.70710678 + 2j])

Calls 4

is_closeFunction · 0.70
kernelFunction · 0.70
non_kernelFunction · 0.70
rangeFunction · 0.50

Tested by

no test coverage detected