chore: add power-rabi (from rebase) #28
Merged
+30
−13
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
This PR focuses solely on pre-commit (pylint/black) compliance for power Rabi calibration files.
File-by-file summary of changes (non-functional only)
calibrations/1Q_calibrations/04b_power_rabi.py"""Power Rabi calibration."""from dataclasses import asdictto the standard library import section (before third-party imports)execute_qua_programfunction (lines 185-186): Split docstring from 126 characters into two linesanalyse_datafunction (lines 224-225): Split docstring from 147 characters into two linessave_resultsfunction (line 268):"""Save the node results and state."""create_qua_programfunction (line 79):# pylint: disable=too-many-branches,too-many-statementscalibration_utils/power_rabi/__init__.py"""Power Rabi calibration utilities."""calibration_utils/power_rabi/analysis.py"""Analysis utilities for power Rabi calibration."""process_raw_dataset(line 53):"""Process raw dataset by converting IQ to V and adding amplitude/phase."""ds.nb_of_pulses.data[0] % 2 == 0tonot ds.nb_of_pulses.data[0] % 2ds.nb_of_pulses.data[0] % 2 != 0tods.nb_of_pulses.data[0] % 2dict()calls with dict literals (lines 136, 141, 150):coords=dict(qubit=fit.qubit.data)tocoords={"qubit": fit.qubit.data}__float__()tofloat()(2 occurrences)__bool__()tobool()(1 occurrence)calibration_utils/power_rabi/parameters.py"""Parameters for power Rabi calibration."""HasErrorAmplificationProtocol class (line 60):# pylint: disable=too-few-public-methodscalibration_utils/power_rabi/plotting.py"""Plotting utilities for power Rabi calibration."""