Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/NVIDIA/cuda-quantum
/ assert_close
Function
assert_close
python/tests/backends/test_IQM.py:35–36 ·
view source on GitHub ↗
(want, got, tolerance=1.0e-5)
Source
from the content-addressed store, hash-verified
33
34
35
def
assert_close(want, got, tolerance=1.0e-5) -> bool:
36
return
abs(want - got) < tolerance
37
38
39
@pytest.fixture(scope=
"session"
, autouse=True)
Callers
7
test_iqm_ghz
Function · 0.70
test_iqm_observe
Function · 0.70
test_IQM_state_preparation
Function · 0.70
test_IQM_state_preparation_builder
Function · 0.70
test_exp_pauli
Function · 0.70
test_IQM_state_synthesis
Function · 0.70
test_IQM_state_synthesis_builder
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected