Skip to content

laboneq.workflow.tasks.compile_experiment

This module provides a task to transform a DSL experiment into a compiled experiment.

CompileExperimentOptions

Options for the compile_experiment task.

Attributes:

Name Type Description
compiler_settings dict | None

Optional settings to pass to the compiler. Default: None.

compiler_settings = workflow.option_field(None, description='Optional settings to pass to the compiler.') class-attribute instance-attribute

compile_experiment(session, experiment, options=None)

A task to compile the specified experiment for a given setup.

This task is used to prepare a LabOne Q DSL experiment for execution on a quantum processor. It will return the results of a LabOneQ Session.compile() call.

Parameters:

Name Type Description Default
session Session

A calibrated session to compile the experiment for.

required
experiment Experiment

The LabOne Q DSL experiment to compile.

required
options CompileExperimentOptions | None

The options for this task as an instance of [CompileExperimentOptions].

None

Returns:

Type Description
CompiledExperiment

CompiledExperiment The laboneq compiled experiment.