qiboteam / qibolab

Quantum hardware module and drivers for Qibo.
https://qibo.science
Apache License 2.0
40 stars 10 forks source link

QM driver for 0.2 #874

Open stavros11 opened 2 months ago

stavros11 commented 2 months ago

Updates QM driver to work with the current changes in the 0.2 branch. I got rid of QMPulse and QMSequence since qibolab objects are now simple enough to be used directly. This is not the final version, further changes will be required after the channel refactoring as pulse.qubit and pulse.channel will be dropped.

With the current state it works for the single shot classification routine: http://login.qrccluster.com:9000/3AJ4OvU_QQaTSJdbxk6uwg== (requires https://github.com/qiboteam/qibolab_platforms_qrc/pull/132 and https://github.com/qiboteam/qibocal/pull/809)

TODO:

codecov[bot] commented 2 months ago

Codecov Report

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

Project coverage is 49.10%. Comparing base (f829e8f) to head (a50962f).

:exclamation: Current head a50962f differs from pull request most recent head 7116fd2. Consider uploading reports for the commit 7116fd2 to get more accurate results

Files Patch % Lines
src/qibolab/instruments/qm/config.py 5.17% 55 Missing :warning:
src/qibolab/instruments/qm/controller.py 23.52% 26 Missing :warning:
src/qibolab/instruments/qm/acquisition.py 48.88% 23 Missing :warning:
src/qibolab/instruments/qm/program.py 39.47% 23 Missing :warning:
src/qibolab/instruments/qm/sweepers.py 39.13% 14 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## 0.2 #874 +/- ## ========================================== + Coverage 48.75% 49.10% +0.35% ========================================== Files 61 61 Lines 5532 5380 -152 ========================================== - Hits 2697 2642 -55 + Misses 2835 2738 -97 ``` | [Flag](https://app.codecov.io/gh/qiboteam/qibolab/pull/874/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/qibolab/pull/874/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=qiboteam) | `49.10% <28.78%> (+0.35%)` | :arrow_up: | 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.

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