qiboteam / qibocal

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

Qubit power spectroscopy experiment #856

Closed rodolfocarobene closed 1 month ago

rodolfocarobene commented 1 month ago

Hi! I'm trying to add some new experiment, at the moment I do not have available qubits. Are there qubits at TII that I could use?

Anyway, this PR implements a qubit spectroscopy where also the amplitude of the pulse is changed. We performed the experiment with qibolab some weeks ago, finding the following plot: immagine

For the moment I did not try to add any fitting procedure (nothing comes to my mind).

For now I've tested it with:

platform: dummy
targets: [0, 1, 2]

actions:
  - id: boh
    operation: qubit_power_spectroscopy
    parameters:
      freq_width: 1_000_000
      freq_step: 10_000
      min_amp_factor: 0
      max_amp_factor: 1
      step_amp_factor: 0.05
      duration: 100
      amplitude: 0.5

Checklist:

codecov[bot] commented 1 month ago

Codecov Report

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

Project coverage is 97.25%. Comparing base (3ee8864) to head (d30a953).

Additional details and impacted files [![Impacted file tree graph](https://app.codecov.io/gh/qiboteam/qibocal/pull/856/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/856?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=qiboteam) ```diff @@ Coverage Diff @@ ## main #856 +/- ## ======================================= Coverage 97.25% 97.25% ======================================= Files 109 110 +1 Lines 8044 8120 +76 ======================================= + Hits 7823 7897 +74 - Misses 221 223 +2 ``` | [Flag](https://app.codecov.io/gh/qiboteam/qibocal/pull/856/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/856/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=qiboteam) | `97.25% <100.00%> (+<0.01%)` | :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/856?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/856?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%> (ø)` | | | [src/qibocal/protocols/qubit\_power\_spectroscopy.py](https://app.codecov.io/gh/qiboteam/qibocal/pull/856?src=pr&el=tree&filepath=src%2Fqibocal%2Fprotocols%2Fqubit_power_spectroscopy.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=qiboteam#diff-c3JjL3FpYm9jYWwvcHJvdG9jb2xzL3F1Yml0X3Bvd2VyX3NwZWN0cm9zY29weS5weQ==) | `100.00% <100.00%> (ø)` | | ... and [1 file with indirect coverage changes](https://app.codecov.io/gh/qiboteam/qibocal/pull/856/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 1 month ago

Thanks @rodolfocarobene for opening the PR. I will have a look.

Are there qubits at TII that I could use? Qubit 0 and 2 in qw5q_platinum are available (3 needs recalibration) in this branch.

rodolfocarobene commented 1 month ago

Thanks for the review! I will try some tests in the next days :-)

andrea-pasquale commented 1 month ago

Here are some results on TII chips: http://login.qrccluster.com:9000/cvKBqpy7RueE0vqH1KlJtA==/ The scan is quite short so I was able to see only the first transition.

EDIT: wider scan http://login.qrccluster.com:9000/DN--X7stT5ibukPBoDlI5w==/

rodolfocarobene commented 1 month ago

Sorry @andrea-pasquale , could you send a picture of one of the scan? For some reason I cannot connect to the cluster right now

andrea-pasquale commented 1 month ago

image

rodolfocarobene commented 1 month ago

Thank you! It seems to be working fine, but maybe I would remove the normalization part (in the plotting). In this way it should be possible also to compare the depth of the different deeps

rodolfocarobene commented 1 month ago

I can confirm this works as expected!

immagine