pulse_compensation_library#

Pulse compensation operations for use with the quantify_scheduler.

Module Contents#

Classes#

PulseCompensation

Apply pulse compensation to an operation or schedule.

Attributes#

Port

Port on the hardware; this is an alias to str.

Port[source]#

Port on the hardware; this is an alias to str.

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)[source]#

Bases: 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.

Parameters:
  • body – Operation to be pulse-compensated

  • max_compensation_amp – Dictionary for each port the maximum allowed amplitude for the compensation pulse.

  • time_grid – Grid time of the duration of the compensation pulse.

  • sampling_rate – Sampling rate for pulse integration calculation.

property body: quantify_scheduler.operations.operation.Operation | quantify_scheduler.schedules.schedule.Schedule[source]#

Body of a pulse compensation.

property max_compensation_amp: dict[Port, float][source]#

For each port the maximum allowed amplitude for the compensation pulse.

property time_grid: float[source]#

Grid time of the duration of the compensation pulse.

property sampling_rate: float[source]#

Sampling rate for pulse integration calculation.