Compiler.submit
- Compiler.submit(circuit, workflow, request_data=False, logging_level=None, max_logging_depth=-1, data=None)[source]
Submit a compilation job to the Compiler.
- Parameters:
circuit (
Circuit) – The input circuit to be compiled.workflow (
Workflow|Iterable[BasePass] |BasePass) – The compilation job submitted is defined by executing this workflow on the input circuit.request_data (
bool) – If true, the task result will contain the associated pass data accumulated during compilation. Defaults to False.logging_level (
int|None) – Specify the python logging level to be used during compilation. Defaults to None, which will use current logging configuration.max_logging_depth (
int) – Compilation jobs will create subtasks which may also create subtasks. Tasks that have max_logging_depth ancestors or more will stop logging. Defaults to -1, which disables the feature, allowing all tasks equal opportunity to log.
- Returns:
- The ID of the generated task in the system. This
ID can be used to check the status of, cancel, and request the result of the task.
- Return type:
UUID