Cr sequences - #994
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## cross_resonance #994 +/- ##
===================================================
- Coverage 97.53% 96.39% -1.15%
===================================================
Files 123 129 +6
Lines 9703 10072 +369
===================================================
+ Hits 9464 9709 +245
- Misses 239 363 +124
Flags with carried forward coverage won't be shown. Click here to find out more.
|
|
Results in #987 (comment) |
There was a problem hiding this comment.
Thanks @jevillegasdatTII. Before merging to main, could you update the protocol section of the Qibocal documentation (https://qibo.science/qibocal/stable/protocols/index.html) with a description of these routines, following the same style? You can check here https://github.com/qiboteam/qibocal/tree/main/doc/source/protocols for some examples.
| @dataclass | ||
| class CrossResonanceChevronParameters(Parameters): | ||
| """ResonatorSpectroscopy runcard inputs.""" | ||
| """cross resonance chevron runcard inputs.""" |
There was a problem hiding this comment.
Start the docstrings with the capital letter
| 0(I): | ||
| Q_C: Pulse(omega_T, t) - MZ | ||
| Q_T: wait - MZ | ||
| 1(X): | ||
| Q_C: RX - Pulse(omega_T, t) - MZ | ||
| Q_T: - wait - MZ |
There was a problem hiding this comment.
I suggest explaining the pulse sequence in a sentence, because it could create possible rendering issues and some symbols are not defined.
| @dataclass | ||
| class CrossResonanceSeqData(Data): | ||
| """Data structure for Cross Resonance Gate Calibration using Sequences. | ||
| targets: [target, control] |
There was a problem hiding this comment.
| targets: [target, control] |
| from qibolab.pulses import Pulse, Rectangular, PulseType, Gaussian | ||
| from qibolab.native import NativePulse |
There was a problem hiding this comment.
Move these lines on top
| phi = results[qubit].phase | ||
| data.register_qubit( | ||
| CrossResonanceType, | ||
| (qubit, target, control, tgt_setup, ctr_setup), |
There was a problem hiding this comment.
Why do you need to store qubit?
| from qibolab.platform import Platform | ||
| from qibolab.qubits import QubitId, QubitPairId | ||
|
|
||
| def cr_pulse_sequence(platform: Platform, pair: QubitPairId, setup: tuple, duration:int=0, amplitude:int = None): |
There was a problem hiding this comment.
This function is not used, but (I didn't check carefully) it could be used in cross_resonance and the signal one to avoid code duplication.
for more information, see https://pre-commit.ci
Merge branch 'pi_half' of github.com:qiboteam/qibocal into pi_half
We changed the default runcard option to False (by default will calibrate pi pulse)
Merge branch 'pi_half' of github.com:qiboteam/qibocal into pi_half
Bumps [jinja2](https://github.com/pallets/jinja) from 3.1.4 to 3.1.5. - [Release notes](https://github.com/pallets/jinja/releases) - [Changelog](https://github.com/pallets/jinja/blob/main/CHANGES.rst) - [Commits](pallets/jinja@3.1.4...3.1.5) --- updated-dependencies: - dependency-name: jinja2 dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com>
chore(deps): bump jinja2 from 3.1.4 to 3.1.5
Propagate #1077 to 0.2
Update to qibolab 0.2
…to cr_sequences
…ccept to select in which bases to measure and the setup of the target qubit.
|
@jevillegasdatTII is this PR still necessary? Seems to be quite outdated with respect to main. Also keep in mind that for CR there are already several protocols tested by @Luca-Ben-Herrmann in #860. I suggest to close it and keep the branch in case we want something compatible with 0.1 just for debugging. |
Checklist:
master0.1mainClosed previous pull request #987 and make this one with a change in the sequenced routine.