qiboteam / qibocal

Quantum calibration, characterization and validation module for Qibo.
https://qibo.science
Apache License 2.0
30 stars 7 forks source link

Correct bug in CHSH #873

Closed andrea-pasquale closed 4 months ago

andrea-pasquale commented 4 months ago

Fix a KeyError that was appearing from time to time when running CHSH on GitHub.

Checklist:

codecov[bot] commented 4 months ago

Codecov Report

Attention: Patch coverage is 55.55556% with 4 lines in your changes are missing coverage. Please review.

Project coverage is 97.28%. Comparing base (7493aed) to head (1f22615).

Additional details and impacted files [![Impacted file tree graph](https://app.codecov.io/gh/qiboteam/qibocal/pull/873/graphs/tree.svg?width=650&height=150&src=pr&token=3EA9ZUNKUY&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=qiboteam)](https://app.codecov.io/gh/qiboteam/qibocal/pull/873?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=qiboteam) ```diff @@ Coverage Diff @@ ## main #873 +/- ## ========================================== - Coverage 97.36% 97.28% -0.09% ========================================== Files 111 111 Lines 8273 8280 +7 ========================================== Hits 8055 8055 - Misses 218 225 +7 ``` | [Flag](https://app.codecov.io/gh/qiboteam/qibocal/pull/873/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=qiboteam) | Coverage Δ | | |---|---|---| | [unittests](https://app.codecov.io/gh/qiboteam/qibocal/pull/873/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=qiboteam) | `97.28% <55.55%> (-0.09%)` | :arrow_down: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=qiboteam#carryforward-flags-in-the-pull-request-comment) to find out more. | [Files](https://app.codecov.io/gh/qiboteam/qibocal/pull/873?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=qiboteam) | Coverage Δ | | |---|---|---| | [...l/protocols/two\_qubit\_interaction/chsh/protocol.py](https://app.codecov.io/gh/qiboteam/qibocal/pull/873?src=pr&el=tree&filepath=src%2Fqibocal%2Fprotocols%2Ftwo_qubit_interaction%2Fchsh%2Fprotocol.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=qiboteam#diff-c3JjL3FpYm9jYWwvcHJvdG9jb2xzL3R3b19xdWJpdF9pbnRlcmFjdGlvbi9jaHNoL3Byb3RvY29sLnB5) | `97.05% <55.55%> (-2.33%)` | :arrow_down: | ... and [1 file with indirect coverage changes](https://app.codecov.io/gh/qiboteam/qibocal/pull/873/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=qiboteam)