TeamGraphix / graphix

measurement-based quantum computing (MBQC) compiler and simulator
https://graphix.readthedocs.io
Apache License 2.0
55 stars 20 forks source link

Fix #153: check for `IndexError` in `get_measurement_commands` #154

Closed thierry-martinez closed 1 month ago

thierry-martinez commented 1 month ago

This commit fixes #153 by catching IndexError in get_measurement_commands. A test is added to catch this bug to prevent regression.

codecov[bot] commented 1 month ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 71.84%. Comparing base (dd15e5d) to head (2c77573).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #154 +/- ## ========================================== + Coverage 71.75% 71.84% +0.08% ========================================== Files 30 30 Lines 5353 5359 +6 ========================================== + Hits 3841 3850 +9 + Misses 1512 1509 -3 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.