qiboteam / qibocal

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

Add average option to spectroscopy experiments #832

Closed andrea-pasquale closed 1 month ago

andrea-pasquale commented 2 months ago

Closes #815. Now it would be possible to run spectroscopies experiments with the possibility to run in AveragingMode.SINGLESHOT or AveragingMode.CYCLIC: Here is a runcard with an example:

actions:
- id: resonator_spectroscopy hardware average
  operation: resonator_spectroscopy
  parameters:
    hardware_average: true
    freq_step: 100000
    freq_width: 5000000
    nshots: 1024
    power_level: low
    relaxation_time: 5000

http://login.qrccluster.com:9000/8uH-o4LqQSah8HK7sB7NLQ==/ Here is a runcard with error bars:

actions:
- id: resonator_spectroscopy high power single shot
  operation: resonator_spectroscopy
  parameters:
    hardware_average: false
    freq_step: 100000
    freq_width: 5000000
    nshots: 1024
    power_level: low
    relaxation_time: 5000

http://login.qrccluster.com:9000/ghqpTrAFTNqmxJJovJgOLQ==/

Checklist:

codecov[bot] commented 2 months ago

Codecov Report

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

Project coverage is 97.28%. Comparing base (4c23ced) to head (685e337). Report is 14 commits behind head on main.

Additional details and impacted files [![Impacted file tree graph](https://app.codecov.io/gh/qiboteam/qibocal/pull/832/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/832?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=qiboteam) ```diff @@ Coverage Diff @@ ## main #832 +/- ## ========================================== - Coverage 97.33% 97.28% -0.06% ========================================== Files 107 107 Lines 7915 7943 +28 ========================================== + Hits 7704 7727 +23 - Misses 211 216 +5 ``` | [Flag](https://app.codecov.io/gh/qiboteam/qibocal/pull/832/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/832/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=qiboteam) | `97.28% <100.00%> (-0.06%)` | :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/832?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/operation.py](https://app.codecov.io/gh/qiboteam/qibocal/pull/832?src=pr&el=tree&filepath=src%2Fqibocal%2Fauto%2Foperation.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=qiboteam#diff-c3JjL3FpYm9jYWwvYXV0by9vcGVyYXRpb24ucHk=) | `98.42% <100.00%> (+0.08%)` | :arrow_up: | | [src/qibocal/protocols/dispersive\_shift.py](https://app.codecov.io/gh/qiboteam/qibocal/pull/832?src=pr&el=tree&filepath=src%2Fqibocal%2Fprotocols%2Fdispersive_shift.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=qiboteam#diff-c3JjL3FpYm9jYWwvcHJvdG9jb2xzL2Rpc3BlcnNpdmVfc2hpZnQucHk=) | `100.00% <100.00%> (ø)` | | | [src/qibocal/protocols/dispersive\_shift\_qutrit.py](https://app.codecov.io/gh/qiboteam/qibocal/pull/832?src=pr&el=tree&filepath=src%2Fqibocal%2Fprotocols%2Fdispersive_shift_qutrit.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=qiboteam#diff-c3JjL3FpYm9jYWwvcHJvdG9jb2xzL2Rpc3BlcnNpdmVfc2hpZnRfcXV0cml0LnB5) | `100.00% <100.00%> (ø)` | | | [src/qibocal/protocols/qubit\_spectroscopy.py](https://app.codecov.io/gh/qiboteam/qibocal/pull/832?src=pr&el=tree&filepath=src%2Fqibocal%2Fprotocols%2Fqubit_spectroscopy.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=qiboteam#diff-c3JjL3FpYm9jYWwvcHJvdG9jb2xzL3F1Yml0X3NwZWN0cm9zY29weS5weQ==) | `100.00% <100.00%> (ø)` | | | [src/qibocal/protocols/qubit\_spectroscopy\_ef.py](https://app.codecov.io/gh/qiboteam/qibocal/pull/832?src=pr&el=tree&filepath=src%2Fqibocal%2Fprotocols%2Fqubit_spectroscopy_ef.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=qiboteam#diff-c3JjL3FpYm9jYWwvcHJvdG9jb2xzL3F1Yml0X3NwZWN0cm9zY29weV9lZi5weQ==) | `98.52% <100.00%> (+0.04%)` | :arrow_up: | | [src/qibocal/protocols/resonator\_spectroscopy.py](https://app.codecov.io/gh/qiboteam/qibocal/pull/832?src=pr&el=tree&filepath=src%2Fqibocal%2Fprotocols%2Fresonator_spectroscopy.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=qiboteam#diff-c3JjL3FpYm9jYWwvcHJvdG9jb2xzL3Jlc29uYXRvcl9zcGVjdHJvc2NvcHkucHk=) | `98.36% <100.00%> (+0.01%)` | :arrow_up: | | [src/qibocal/protocols/utils.py](https://app.codecov.io/gh/qiboteam/qibocal/pull/832?src=pr&el=tree&filepath=src%2Fqibocal%2Fprotocols%2Futils.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=qiboteam#diff-c3JjL3FpYm9jYWwvcHJvdG9jb2xzL3V0aWxzLnB5) | `98.04% <100.00%> (-1.13%)` | :arrow_down: | ... and [1 file with indirect coverage changes](https://app.codecov.io/gh/qiboteam/qibocal/pull/832/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=qiboteam)