Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Testing] Investigate type conversion in test_compare_run_to_sample #456

Open
dominikandreasseitz opened this issue Jun 11, 2024 · 0 comments
Labels
testing Everything related to tests

Comments

@dominikandreasseitz
Copy link
Collaborator

https://github.com/pasqal-io/qadence/blob/main/tests/backends/test_backends.py#L296 occasionally fails with:

FAILED tests/backends/test_backends.py::test_compare_run_to_sample[pyqtorch] - AssertionError: assert nan < (0.075 + 1e-07)
 +  where nan = js_divergence(Counter({'0': 1000}), Counter({'0': 1.0, '1': 5e-324}))
Falsifying example: test_compare_run_to_sample(
    backend='pyqtorch',
    circuit=ChainBlock(0)
    └── RY(0) [params: ['A*(W + y)']],
)
@dominikandreasseitz dominikandreasseitz changed the title Investigate type conversion in test_compare_sample_to_run Investigate type conversion in test_compare_run_to_sample Jun 11, 2024
@Roland-djee Roland-djee changed the title Investigate type conversion in test_compare_run_to_sample [Testing] Investigate type conversion in test_compare_run_to_sample Jul 22, 2024
@Roland-djee Roland-djee added the testing Everything related to tests label Jul 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
testing Everything related to tests
Projects
None yet
Development

No branches or pull requests

2 participants