qat.experimental.dialect.pulse.ir.schedule module

Pulse operation visitor for the generic schedule ledger.

class PulseScheduleVisitor(tracker, sample_time_ps=1000, time_unit='s', signal_unit='DAC/ADC range', signal_limits=(-1.0, 1.0))

Bases: object

Translate statically scheduled Pulse operations into ledger updates.

Pulse IR and waveform evaluation use integer picoseconds. Schedule tracker records use the configurable time_unit.

visit(operation)
Return type:

None

build_pulse_schedule(module, *, sample_time_ps=1000, time_unit='s')

Walk a Pulse module and record one execution of its entry-block schedule.

A canonical top-level static scf.for shot loop is visualised once without modifying the input IR. Other region-bearing operations and nested control flow are rejected.

Parameters:
  • module (ModuleOp) – Pulse module containing the executable entry block.

  • sample_time_ps (int) – Sample period for analytical and continuous waveforms in picoseconds.

  • time_unit (str) – Unit used for schedule tracker durations.

Return type:

ScheduleTracker

Returns:

The populated schedule tracker.