iqm.cpc.compiler.standard_stages.create_run_definition

iqm.cpc.compiler.standard_stages.create_run_definition#

iqm.cpc.compiler.standard_stages.create_run_definition(playlist, context, data_size_safety_switch=True, force_ragged_data=False)#

Create a pulse-level job definition.

Parameters:
  • playlist (Playlist) – Instruction schedules to be executed in the job.

  • context (dict[str, Any]) – Compiler context.

  • data_size_safety_switch (bool) – Whether to throw an error with exceedingly large return data sizes (set to False if you want to still run the job and are sure the DB and/or the stack can handle it).

  • force_ragged_data (bool) – Whether to force the return data to the sparse ragged format even if the dimensions are representable as a cartesian product.

Returns:

Pulse-level job definition, ready to be submitted to the server.

Return type:

RunDefinition