(want, got, tolerance=1.e-4)
| 18 | # certain tolerance. If we make numpy a cudaq dependency, |
| 19 | # this may be replaced in the future with `np.allclose`. |
| 20 | def assert_close(want, got, tolerance=1.e-4) -> bool: |
| 21 | return abs(want - got) < tolerance |
| 22 | |
| 23 | |
| 24 | # Define a custom gradient strategy that can be used on arbitrary |
no outgoing calls
no test coverage detected