qibocal
qibocal copied to clipboard
Protocol to sweep CZ amplitude
I added an experiment which consists in sweeping the amplitude of the CZ flux pulse to compute both CZ angle and leakage. By selecting the angle closer to $\pi$ and the leakage closer to zero it should be enough to re-calibrate a two qubit gate.
Here are a few examples: http://login.qrccluster.com:9000/Egis1uTQSYecJl1d3j26GA==/ (large sweep) http://login.qrccluster.com:9000/PWdDh9zWRwKVX6prWRAQXw== (smaller sweep)
Checklist:
- [ ] Reviewers confirm new code works as expected.
- [ ] Tests are passing.
- [ ] Coverage does not decrease.
- [ ] Documentation is updated.
- [ ] Compatibility with Qibo modules (Please edit this section if the current pull request is not compatible with the following branches).
- [ ] Qibo:
master
- [ ] Qibolab:
main
- [ ] Qibolab_platforms_qrc:
main
- [ ] Qibo:
Codecov Report
Attention: Patch coverage is 97.68786%
with 4 lines
in your changes missing coverage. Please review.
Project coverage is 97.55%. Comparing base (
6961ed1
) to head (5f21c6c
).
Files | Patch % | Lines |
---|---|---|
...ibocal/protocols/two_qubit_interaction/cz_sweep.py | 97.67% | 4 Missing :warning: |
Additional details and impacted files
@@ Coverage Diff @@
## main #823 +/- ##
==========================================
- Coverage 97.58% 97.55% -0.04%
==========================================
Files 118 119 +1
Lines 9057 9230 +173
==========================================
+ Hits 8838 9004 +166
- Misses 219 226 +7
Flag | Coverage Δ | |
---|---|---|
unittests | 97.55% <97.68%> (-0.04%) |
:arrow_down: |
Flags with carried forward coverage won't be shown. Click here to find out more.
Files | Coverage Δ | |
---|---|---|
src/qibocal/protocols/__init__.py | 100.00% <ø> (ø) |
|
...ibocal/protocols/two_qubit_interaction/__init__.py | 100.00% <100.00%> (ø) |
|
...cal/protocols/two_qubit_interaction/cz_virtualz.py | 95.27% <ø> (+1.35%) |
:arrow_up: |
...ibocal/protocols/two_qubit_interaction/cz_sweep.py | 97.67% <97.67%> (ø) |
I've updated the code (it is still quite a bit messy) but the it seems to be working properly.
http://login.qrccluster.com:9000/eV94CZPnQReFKNeyvq7Rxg==/
I'm already putting it as ready to review but I might try to simplfy the code later on.
It could be nice to generalize it for the iSWAP gate if needed