qiboteam / qibocal

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

Adding `qq update` command #905

Open andrea-pasquale opened 1 week ago

andrea-pasquale commented 1 week ago

Addition of a qq update program to generate the updated platform from CLI after the qibocal execution. Closes #833.

Checklist:

alecandido commented 2 days ago

@andrea-pasquale I'm sorry for the tuple business. As soon as I will finish #909 I have other few simpler improvements in mind, including a consistent migration to Pydantic. Whenever that will be completed, tuples will be available again, since the serialization will come out of the box.

Unfortunately, I will have to balance those with #869 (but if I will be good enough with #909, a first version of that should be pretty simple to achieve).

andrea-pasquale commented 2 days ago

@andrea-pasquale I'm sorry for the tuple business. As soon as I will finish #909 I have other few simpler improvements in mind, including a consistent migration to Pydantic. Whenever that will be completed, tuples will be available again, since the serialization will come out of the box.

Unfortunately, I will have to balance those with #869 (but if I will be good enough with #909, a first version of that should be pretty simple to achieve).

No problem @alecandido. Now I believe that it should be fixed. I will try to take care of tests now. In which order do you recommend that we merge this alongside #909 and #869?

alecandido commented 2 days ago

In which order do you recommend that we merge this alongside #909 and #869?

Do not bother about #909 and #869: whenever you're ready, we review and merge. If it comes before the others, I will rebase myself ( ╥ ᴗ ╥)

codecov[bot] commented 2 days ago

Codecov Report

Attention: Patch coverage is 98.87640% with 1 line in your changes missing coverage. Please review.

Project coverage is 97.45%. Comparing base (4b8d407) to head (9da5af8). Report is 2 commits behind head on main.

Additional details and impacted files [![Impacted file tree graph](https://app.codecov.io/gh/qiboteam/qibocal/pull/905/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/905?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=qiboteam) ```diff @@ Coverage Diff @@ ## main #905 +/- ## ========================================== - Coverage 97.47% 97.45% -0.03% ========================================== Files 116 117 +1 Lines 8882 8902 +20 ========================================== + Hits 8658 8675 +17 - Misses 224 227 +3 ``` | [Flag](https://app.codecov.io/gh/qiboteam/qibocal/pull/905/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/905/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=qiboteam) | `97.45% <98.87%> (-0.03%)` | :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/905?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=qiboteam) | Coverage Δ | | |---|---|---| | [src/qibocal/auto/execute.py](https://app.codecov.io/gh/qiboteam/qibocal/pull/905?src=pr&el=tree&filepath=src%2Fqibocal%2Fauto%2Fexecute.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=qiboteam#diff-c3JjL3FpYm9jYWwvYXV0by9leGVjdXRlLnB5) | `100.00% <100.00%> (ø)` | | | [src/qibocal/cli/\_base.py](https://app.codecov.io/gh/qiboteam/qibocal/pull/905?src=pr&el=tree&filepath=src%2Fqibocal%2Fcli%2F_base.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=qiboteam#diff-c3JjL3FpYm9jYWwvY2xpL19iYXNlLnB5) | `91.93% <100.00%> (+0.70%)` | :arrow_up: | | [src/qibocal/cli/autocalibration.py](https://app.codecov.io/gh/qiboteam/qibocal/pull/905?src=pr&el=tree&filepath=src%2Fqibocal%2Fcli%2Fautocalibration.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=qiboteam#diff-c3JjL3FpYm9jYWwvY2xpL2F1dG9jYWxpYnJhdGlvbi5weQ==) | `100.00% <100.00%> (ø)` | | | [src/qibocal/cli/fit.py](https://app.codecov.io/gh/qiboteam/qibocal/pull/905?src=pr&el=tree&filepath=src%2Fqibocal%2Fcli%2Ffit.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=qiboteam#diff-c3JjL3FpYm9jYWwvY2xpL2ZpdC5weQ==) | `100.00% <100.00%> (ø)` | | | [...rc/qibocal/protocols/coherence/spin\_echo\_signal.py](https://app.codecov.io/gh/qiboteam/qibocal/pull/905?src=pr&el=tree&filepath=src%2Fqibocal%2Fprotocols%2Fcoherence%2Fspin_echo_signal.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=qiboteam#diff-c3JjL3FpYm9jYWwvcHJvdG9jb2xzL2NvaGVyZW5jZS9zcGluX2VjaG9fc2lnbmFsLnB5) | `100.00% <100.00%> (ø)` | | | [src/qibocal/protocols/coherence/t1.py](https://app.codecov.io/gh/qiboteam/qibocal/pull/905?src=pr&el=tree&filepath=src%2Fqibocal%2Fprotocols%2Fcoherence%2Ft1.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=qiboteam#diff-c3JjL3FpYm9jYWwvcHJvdG9jb2xzL2NvaGVyZW5jZS90MS5weQ==) | `100.00% <100.00%> (ø)` | | | [src/qibocal/protocols/coherence/t1\_signal.py](https://app.codecov.io/gh/qiboteam/qibocal/pull/905?src=pr&el=tree&filepath=src%2Fqibocal%2Fprotocols%2Fcoherence%2Ft1_signal.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=qiboteam#diff-c3JjL3FpYm9jYWwvcHJvdG9jb2xzL2NvaGVyZW5jZS90MV9zaWduYWwucHk=) | `100.00% <100.00%> (ø)` | | | [src/qibocal/protocols/coherence/t2\_signal.py](https://app.codecov.io/gh/qiboteam/qibocal/pull/905?src=pr&el=tree&filepath=src%2Fqibocal%2Fprotocols%2Fcoherence%2Ft2_signal.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=qiboteam#diff-c3JjL3FpYm9jYWwvcHJvdG9jb2xzL2NvaGVyZW5jZS90Ml9zaWduYWwucHk=) | `100.00% <100.00%> (ø)` | | | [src/qibocal/protocols/coherence/utils.py](https://app.codecov.io/gh/qiboteam/qibocal/pull/905?src=pr&el=tree&filepath=src%2Fqibocal%2Fprotocols%2Fcoherence%2Futils.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=qiboteam#diff-c3JjL3FpYm9jYWwvcHJvdG9jb2xzL2NvaGVyZW5jZS91dGlscy5weQ==) | `95.38% <100.00%> (ø)` | | | [src/qibocal/protocols/flipping.py](https://app.codecov.io/gh/qiboteam/qibocal/pull/905?src=pr&el=tree&filepath=src%2Fqibocal%2Fprotocols%2Fflipping.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=qiboteam#diff-c3JjL3FpYm9jYWwvcHJvdG9jb2xzL2ZsaXBwaW5nLnB5) | `98.05% <100.00%> (-0.02%)` | :arrow_down: | | ... and [15 more](https://app.codecov.io/gh/qiboteam/qibocal/pull/905?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=qiboteam) | | ... and [3 files with indirect coverage changes](https://app.codecov.io/gh/qiboteam/qibocal/pull/905/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=qiboteam)
andrea-pasquale commented 2 days ago

Now it should be ready to review. There are a lot of file changes just for the tuple issue