pulse_compensation_library ========================== .. py:module:: quantify_scheduler.operations.pulse_compensation_library .. autoapi-nested-parse:: Pulse compensation operations for use with the quantify_scheduler. Module Contents --------------- Classes ~~~~~~~ .. autoapisummary:: quantify_scheduler.operations.pulse_compensation_library.PulseCompensation Attributes ~~~~~~~~~~ .. autoapisummary:: quantify_scheduler.operations.pulse_compensation_library.Port .. py:data:: Port Port on the hardware; this is an alias to str. .. py:class:: PulseCompensation(body: quantify_scheduler.operations.operation.Operation | quantify_scheduler.schedules.schedule.Schedule, max_compensation_amp: dict[Port, float], time_grid: float, sampling_rate: float) Bases: :py:obj:`quantify_scheduler.operations.operation.Operation` Apply pulse compensation to an operation or schedule. Inserts a pulse at the end of the operation or schedule set in ``body`` for each port. The compensation pulses are calculated so that the integral of all pulses (including the compensation pulses) are zero for each port. Moreover, the compensating pulses are square pulses, and start just after the last pulse on each port individually, and their maximum amplitude is the one specified in the ``max_compensation_amp``. Their duration is divisible by ``duration_grid``. The clock is assumed to be the baseband clock; any other clock is not allowed. :param body: Operation to be pulse-compensated :param max_compensation_amp: Dictionary for each port the maximum allowed amplitude for the compensation pulse. :param time_grid: Grid time of the duration of the compensation pulse. :param sampling_rate: Sampling rate for pulse integration calculation. .. py:property:: body :type: quantify_scheduler.operations.operation.Operation | quantify_scheduler.schedules.schedule.Schedule Body of a pulse compensation. .. py:property:: max_compensation_amp :type: dict[Port, float] For each port the maximum allowed amplitude for the compensation pulse. .. py:property:: time_grid :type: float Grid time of the duration of the compensation pulse. .. py:property:: sampling_rate :type: float Sampling rate for pulse integration calculation.