iqm.pulse.validation.validate_playlist_compatibility

iqm.pulse.validation.validate_playlist_compatibility#

iqm.pulse.validation.validate_playlist_compatibility(playlist, device_constraints)#

Validates that the given playlist is compatible with the provided AWG data.

The following requirements are validated as they are the same for all controllers.

  1. Playlist sample rate vs. Actual controller sample rate

  2. Instruction granularity with respect to the controllers granularity requirements

  3. Checks that no other than supported instructions are used.

  4. Checks that instruction length matches waveform length in IQ and RealPulse

  5. Checks that all instructions are at least the length of minimum number of samples

  6. Checks that Conditional instruction has the same duration in every child instruction

Parameters:
  • playlist (Playlist) – instructions used on each channel, as well as the channel configurations

  • device_constraints (dict[str, ChannelProperties]) – actual hardware limitations of the channels

Return type:

None