qat.middleend.default module

class DefaultMiddleend(model, target_data=None)

Bases: CustomMiddleend

The standard middle end used for antic pipelines.

Implements a number of passes, including validation and sanitisation of IR, and optimizations. Also implements a number of lowering passes, e.g., lowering repeats to more explicit control flow instructions.

Parameters:
  • model (PhysicalHardwareModel) – The hardware model that holds calibrated information on the qubits on the QPU.

  • clock_cycle – The period for a single sequencer clock cycle.

static build_pass_pipeline(model, target_data=None)

Builds the default middle end pass pipeline.

Parameters:

model (PhysicalHardwareModel) – The hardware model that holds calibrated information on the qubits on the QPU.

Return type:

PassManager

Returns:

A PassManager containing a sequence of passes.

PydDefaultMiddleend

alias of DefaultMiddleend