MCPcopy 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
35def 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_ghzFunction · 0.70
test_iqm_observeFunction · 0.70
test_exp_pauliFunction · 0.70
test_IQM_state_synthesisFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected