- class CarrPurcellAnalysis(dataset, sequence=None)¶
Analysis and calculation of Carr Purcell decay.
- Parameters:
- dataset
_description_
- data¶
- dataset¶
- fit(type='mono')¶
Fit the experimental CP decay
- Parameters:
- typestr, optional
Either a mono or double exponential decay model, by default “mono”
- plot(norm=True, axs=None, fig=None)¶
Plot the carr purcell decay with fit, if avaliable.
- Parameters:
- normbool, optional
Normalise the fit to a maximum of 1, by default True
- Returns:
- Figure
The figure.
- check_decay(level=0.05)¶
Checks that the data has decayed by over 5% in the entire length and less than 5% in the first 30% of the data.
- Parameters:
- levelfloat, optional
The level to check the decay, by default 0.05
- Returns:
- int
0 if both conditions are met, 1 if the decay is less than 5% in the first 30% of the data, and -1 if the decay is less than 5% in the entire length.
- find_optimal(SNR_target, target_time, target_step, averages=None)¶
Calculate the optimal inter pulse delay for a given total measurment time.
- Parameters:
- SNR_target: float,
The Signal to Noise ratio target.
- target_timefloat
The target time in hours
- target_shrtfloat
The shot repettition time of target in seconds
- target_step: float
The target step size in ns.
- averagesint, optional
The total number of shots taken, by default None. If None, the number of shots will be calculated from the dataset.
- Returns:
- float
The calculated optimal time in us