qat.pipelines.purr.sweep.passes module

class FrequencyAssignSanitisation

Bases: TransformPass

Sanitises device assignments that changes the frequency of a channel, by replacing it with a FrequencySet instruction.

If this is done for targets that can support frequency assignment as an IR instruction, (i.e. has support for FrequencySet), then this pass can be used to avoid mutating the hardware model, which can be unsafe when used within pipelines.

run(ir, *args, **kwargs)