qiboteam / qibocal

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

Cross resonance protocols #860

Open andrea-pasquale opened 1 month ago

andrea-pasquale commented 1 month ago

Closes #821

Runcard example:


 - id: cross resonance
    operation: cross_resonance # duration sweeper
    targets: [[0,2]]
    parameters:
      pulse_duration_start: 10
      pulse_duration_end: 20000
      pulse_duration_step: 1000
      pulse_amplitude: -0.5

  - id: cross resonance chevron
    operation: cross_resonance_chevron # amplitude and duration sweeper
    targets: [[0,2]]
    parameters:
      pulse_duration_start: 10
      pulse_duration_end: 5000
      pulse_duration_step: 500
      amplitude_min_factor: -1
      amplitude_max_factor: 1
      amplitude_step_factor: 0.1
      pulse_amplitude: 0.5

Currently the protocol is working with samples (I can provide another option with voltages if needed0

codecov[bot] commented 1 month ago

Codecov Report

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

Project coverage is 97.30%. Comparing base (805d5a7) to head (7a7c18e). Report is 48 commits behind head on main.

Additional details and impacted files [![Impacted file tree graph](https://app.codecov.io/gh/qiboteam/qibocal/pull/860/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/860?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=qiboteam) ```diff @@ Coverage Diff @@ ## main #860 +/- ## ========================================== + Coverage 97.27% 97.30% +0.02% ========================================== Files 109 112 +3 Lines 8042 8194 +152 ========================================== + Hits 7823 7973 +150 - Misses 219 221 +2 ``` | [Flag](https://app.codecov.io/gh/qiboteam/qibocal/pull/860/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/860/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=qiboteam) | `97.30% <100.00%> (+0.02%)` | :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. | [Files](https://app.codecov.io/gh/qiboteam/qibocal/pull/860?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/protocols/\_\_init\_\_.py](https://app.codecov.io/gh/qiboteam/qibocal/pull/860?src=pr&el=tree&filepath=src%2Fqibocal%2Fprotocols%2F__init__.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=qiboteam#diff-c3JjL3FpYm9jYWwvcHJvdG9jb2xzL19faW5pdF9fLnB5) | `100.00% <100.00%> (ø)` | | | [...ibocal/protocols/two\_qubit\_interaction/\_\_init\_\_.py](https://app.codecov.io/gh/qiboteam/qibocal/pull/860?src=pr&el=tree&filepath=src%2Fqibocal%2Fprotocols%2Ftwo_qubit_interaction%2F__init__.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=qiboteam#diff-c3JjL3FpYm9jYWwvcHJvdG9jb2xzL3R3b19xdWJpdF9pbnRlcmFjdGlvbi9fX2luaXRfXy5weQ==) | `100.00% <100.00%> (ø)` | | | [.../two\_qubit\_interaction/cross\_resonance/\_\_init\_\_.py](https://app.codecov.io/gh/qiboteam/qibocal/pull/860?src=pr&el=tree&filepath=src%2Fqibocal%2Fprotocols%2Ftwo_qubit_interaction%2Fcross_resonance%2F__init__.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=qiboteam#diff-c3JjL3FpYm9jYWwvcHJvdG9jb2xzL3R3b19xdWJpdF9pbnRlcmFjdGlvbi9jcm9zc19yZXNvbmFuY2UvX19pbml0X18ucHk=) | `100.00% <100.00%> (ø)` | | | [...s/two\_qubit\_interaction/cross\_resonance/chevron.py](https://app.codecov.io/gh/qiboteam/qibocal/pull/860?src=pr&el=tree&filepath=src%2Fqibocal%2Fprotocols%2Ftwo_qubit_interaction%2Fcross_resonance%2Fchevron.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=qiboteam#diff-c3JjL3FpYm9jYWwvcHJvdG9jb2xzL3R3b19xdWJpdF9pbnRlcmFjdGlvbi9jcm9zc19yZXNvbmFuY2UvY2hldnJvbi5weQ==) | `100.00% <100.00%> (ø)` | | | [...bit\_interaction/cross\_resonance/cross\_resonance.py](https://app.codecov.io/gh/qiboteam/qibocal/pull/860?src=pr&el=tree&filepath=src%2Fqibocal%2Fprotocols%2Ftwo_qubit_interaction%2Fcross_resonance%2Fcross_resonance.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=qiboteam#diff-c3JjL3FpYm9jYWwvcHJvdG9jb2xzL3R3b19xdWJpdF9pbnRlcmFjdGlvbi9jcm9zc19yZXNvbmFuY2UvY3Jvc3NfcmVzb25hbmNlLnB5) | `100.00% <100.00%> (ø)` | | ... and [1 file with indirect coverage changes](https://app.codecov.io/gh/qiboteam/qibocal/pull/860/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=qiboteam)