qibocal.protocols.allxy package

Submodules

qibocal.protocols.allxy.allxy module

qibocal.protocols.allxy.allxy.allxy = Routine(acquisition=<function _acquisition>, fit=<function _fit>, report=<function _plot>, update=<function _dummy_update>, two_qubit_gates=False)

AllXY Routine object.

qibocal.protocols.allxy.allxy.allxy_sequence(platform: CalibrationPlatform, gates, qubit, sequence_delay=None, readout_delay=None, beta_param=None)[source]

qibocal.protocols.allxy.allxy_resonator_depletion_tuning module

class qibocal.protocols.allxy.allxy_resonator_depletion_tuning.AllXYResonatorParameters(delay_start: float, delay_end: float, delay_step: float, readout_delay: int = 1000, unrolling: bool = False, beta_param: float = None)[source]

Bases: Parameters

AllXYDrag runcard inputs.

delay_start: float

Initial delay parameter for resonator depletion.

delay_end: float

Final delay parameter for resonator depletion.

delay_step: float

Step delay parameter for resonator depletion.

readout_delay: int = 1000

Delay on readout.

unrolling: bool = False

If True it uses sequence unrolling to deploy multiple sequences in a single instrument call. Defaults to False.

beta_param: float = None

Beta parameter for drag pulse.

hardware_average: bool = False

By default hardware average will be performed.

nshots: int

Number of executions on hardware.

relaxation_time: float

Wait time for the qubit to decohere back to the gnd state.

class qibocal.protocols.allxy.allxy_resonator_depletion_tuning.AllXYResonatorResults[source]

Bases: Results

AllXYDrag outputs.

_to_json(path: Path, filename: str)

Helper function to dump to json.

_to_npz(path: Path, filename: str)

Helper function to use np.savez while converting keys into strings.

static load_data(path: Path, filename: str)

Load data stored in a npz file.

static load_params(path: Path, filename: str)

Load parameters stored in a json file.

property params: dict

Convert non-arrays attributes into dict.

save(path: Path)

Store results to file.

class qibocal.protocols.allxy.allxy_resonator_depletion_tuning.AllXYResonatorData(delay_param: float | None = None, data: dict[tuple[~typing.Annotated[int | str, FieldInfo(annotation=NoneType, required=True, metadata=[_PydanticGeneralMetadata(union_mode='left_to_right')])], float], ~numpy.ndarray[tuple[~typing.Any, ...], ~numpy.dtype[dtype([('prob', '<f8'), ('gate', '<U5'), ('errors', '<f8')])]]] = <factory>)[source]

Bases: Data

AllXY acquisition outputs.

_to_json(path: Path, filename: str)

Helper function to dump to json.

_to_npz(path: Path, filename: str)

Helper function to use np.savez while converting keys into strings.

delay_param: float | None = None

Delay parameter for resonator depletion.

static load_data(path: Path, filename: str)

Load data stored in a npz file.

static load_params(path: Path, filename: str)

Load parameters stored in a json file.

property pairs

Access qubit pairs ordered alphanumerically from data structure.

property params: dict

Convert non-arrays attributes into dict.

property qubits

Access qubits from data structure.

register_qubit(dtype, data_keys, data_dict)

Store output for single qubit.

Parameters:
  • data_keys (tuple) – Keys of Data.data.

  • data_dict (dict) – The keys are the fields of dtype and

  • arrays. (the values are the related)

save(path: Path)

Store data to file.

data: dict[tuple[Annotated[int | str, FieldInfo(annotation=NoneType, required=True, metadata=[_PydanticGeneralMetadata(union_mode='left_to_right')])], float], ndarray[tuple[Any, ...], dtype[dtype(['prob', '<f8', 'gate', '<U5', 'errors', '<f8'])]]]

Raw data acquired.

property delay_params

Access qubits from data structure.

qibocal.protocols.allxy.allxy_resonator_depletion_tuning._acquisition(params: AllXYResonatorParameters, platform: CalibrationPlatform, targets: list[Annotated[int | str, FieldInfo(annotation=NoneType, required=True, metadata=[_PydanticGeneralMetadata(union_mode='left_to_right')])]]) AllXYResonatorData[source]

Data acquisition for allXY experiment varying delay after a measurement pulse to characterise resonator depletion time: https://arxiv.org/pdf/1604.00916. Passive resonator depletion time: Time it takes the process by which photons inside a resonator dissipate over time without any external intervention. After a measurement is performed, photons remain in the resonator and qubits errors induced if trying to drive the qubit by leftover photons due to the coupling resonator-qubit inducing a shift in the qubit frequency. This experiment is used to characterise the resonator depletion time by waiting an increased delay time until the allXY pattern looks right.

qibocal.protocols.allxy.allxy_resonator_depletion_tuning._fit(_data: AllXYResonatorData) AllXYResonatorResults[source]

Post-processing for allXYDrag.

qibocal.protocols.allxy.allxy_resonator_depletion_tuning._plot(data: AllXYResonatorData, target: Annotated[int | str, FieldInfo(annotation=NoneType, required=True, metadata=[_PydanticGeneralMetadata(union_mode='left_to_right')])], fit: AllXYResonatorResults = None)[source]

Plotting function for allXYDrag.

qibocal.protocols.allxy.allxy_resonator_depletion_tuning.allxy_resonator_depletion_tuning = Routine(acquisition=<function _acquisition>, fit=<function _fit>, report=<function _plot>, update=<function _dummy_update>, two_qubit_gates=False)

AllXYDrag Routine object.