Skip to content

Commit

Permalink
revert one test to use struct format
Browse files Browse the repository at this point in the history
Signed-off-by: Melody Ren <[email protected]>
  • Loading branch information
melody-ren committed Dec 2, 2024
1 parent 96a6003 commit 8157996
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions libs/qec/python/tests/test_decoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ def test_decoder_result_structure():

def test_decoder_result_values():
decoder = qec.get_decoder('example_byod', H)
convergence, result = decoder.decode(create_test_syndrome())
result = decoder.decode(create_test_syndrome())

assert convergence is True
assert all(isinstance(x, float) for x in result)
assert all(0 <= x <= 1 for x in result)
assert result.converged is True
assert all(isinstance(x, float) for x in result.result)
assert all(0 <= x <= 1 for x in result.result)


@pytest.mark.parametrize("matrix_shape,syndrome_size", [
Expand Down

0 comments on commit 8157996

Please sign in to comment.