iqm.pulse.validation.validate_channel_and_instrument_compatibility#
- iqm.pulse.validation.validate_channel_and_instrument_compatibility(channel_description, device_constraints)#
Validate that the given control channel and its contents are compatible with the instrument.
Checks the channel configuration and its contents against the controller/instrument hardware constraints.
The following requirements are validated:
Channel sampling rate vs. instrument sampling rate.
Only supported instructions are used.
ConditionalInstruction has the same duration in every outcome.
ReadoutTrigger duration is longer than the probe pulse in it.
Instruction durations match instrument granularity.
Instructions durations are at least the minimum number of samples for the instrument.
Instruction durations match waveform lengths in IQ and RealPulses.
- Parameters:
channel_description (ChannelDescription) – Channel config and its instruction table from a Playlist.
device_constraints (ChannelProperties) – Hardware limitations of the control instrument.
- Raises:
ValidationError – Not compatible.
- Return type:
None