CompilationTask

class CompilationTask(input, workflow)[source]

Bases: object

A complete description of a quantum compilation task.

The CompilationTask class describes a compilation workflow completely. These can be submitted to a BQSKit compiler to be efficiently executed.

__init__(input, workflow)[source]

Construct a CompilationTask.

Parameters:
  • input (Circuit) – The input circuit to be compiled.

  • workflow (WorkflowLike) – The configured workflow to be performed on the circuit.

Attributes

data

The task's data for use in BQSKit passes.

done

True when the task is complete.

request_data

If true, run() will additionally return the PassData.

logging_level

A general filter on all logging messages in the system.

max_logging_depth

No logging for tasks with more than max_logging_depth parents.

Methods

run()

Execute the task.