qblox_scheduler.helpers.schedule#

Schedule helper functions.

Functions#

get_pulse_uuid(→ int)

Return an unique identifier for a pulse.

get_acq_uuid(→ int)

Return an unique identifier for a acquisition protocol.

_generate_acq_info_by_uuid(→ None)

get_acq_info_by_uuid(→ dict[int, dict[str, Any]])

Return a lookup dictionary of unique identifiers of acquisition information.

_is_acquisition_binned_average(→ bool)

_is_acquisition_binned_append(→ bool)

_is_acquisition_binned_average_append(→ bool)

Module Contents#

get_pulse_uuid(pulse_info: dict[str, Any], excludes: list[str] | None = None) int[source]#

Return an unique identifier for a pulse.

Parameters:
  • pulse_info – The pulse information dictionary.

  • excludes – A list of keys to exclude.

Returns:

: The uuid hash.

get_acq_uuid(acq_info: dict[str, Any]) int[source]#

Return an unique identifier for a acquisition protocol.

Parameters:

acq_info – The acquisition information dictionary.

Returns:

: The uuid hash.

_generate_acq_info_by_uuid(operation: qblox_scheduler.operations.operation.Operation | qblox_scheduler.schedules.schedule.TimeableScheduleBase, acqid_acqinfo_dict: dict) None[source]#
get_acq_info_by_uuid(schedule: qblox_scheduler.schedules.schedule.TimeableSchedule) dict[int, dict[str, Any]][source]#

Return a lookup dictionary of unique identifiers of acquisition information.

Parameters:

schedule – The schedule.

_is_acquisition_binned_average(protocol: str, bin_mode: qblox_scheduler.enums.BinMode) bool[source]#
_is_acquisition_binned_append(protocol: str, bin_mode: qblox_scheduler.enums.BinMode) bool[source]#
_is_acquisition_binned_average_append(protocol: str, bin_mode: qblox_scheduler.enums.BinMode) bool[source]#