iqm.cpc.core.parallel_utils.generate_full_tgf

iqm.cpc.core.parallel_utils.generate_full_tgf#

iqm.cpc.core.parallel_utils.generate_full_tgf(group_circuit_function, sub_sig=None)#

Generate a full circuit generation function from a group-wise circuit generation function.

In the returned function, group_circuit_function is applied to every parallel group (circuit locus) within every parallelly runnable partition of the QPU (e.g. a color group). The resulting TimeBoxes are then combined into a single composite TimeBox, one per partition, such that the TimeBox for each circuit locus is scheduled with ALAP logic.

Parameters:
  • group_circuit_function (SubTGF) – The group-wise sub circuit function that acts on a single parallelly runnable group.

  • sub_sig (Any) – Optionally override the signature of the group_circuit_function with this signature (used for backwards compatibility features).

Returns:

The full circuit generation function.

Return type:

FullTGF