qibocal.protocols.dispersive_shift package

Submodules

qibocal.protocols.dispersive_shift.dispersive_shift module

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

Dispersive shift Routine object.

class qibocal.protocols.dispersive_shift.dispersive_shift.DispersiveShiftData(resonator_type: str, data: dict[tuple[~typing.Annotated[int | str, FieldInfo(annotation=NoneType, required=True, metadata=[_PydanticGeneralMetadata(union_mode='left_to_right')])], int], ~numpy.ndarray[tuple[~typing.Any, ...], ~numpy.dtype[dtype([('freq', '<f8'), ('i', '<f8'), ('q', '<f8'), ('signal', '<f8'), ('phase', '<f8')])]]] = <factory>)[source]

Bases: Data

Dispersive shift 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.

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.

resonator_type: str

Resonator type.

data: dict[tuple[Annotated[int | str, FieldInfo(annotation=NoneType, required=True, metadata=[_PydanticGeneralMetadata(union_mode='left_to_right')])], int], ndarray[tuple[Any, ...], dtype[dtype(['freq', '<f8', 'i', '<f8', 'q', '<f8', 'signal', '<f8', 'phase', '<f8'])]]]
class qibocal.protocols.dispersive_shift.dispersive_shift.DispersiveShiftParameters(freq_width: int, freq_step: int)[source]

Bases: Parameters

Dispersive shift inputs.

freq_width: int

Width [Hz] for frequency sweep relative to the readout frequency [Hz].

freq_step: int

Frequency step for sweep [Hz].

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.

qibocal.protocols.dispersive_shift.dispersive_shift_qutrit module