Skip to content

laboneq.workflow.tasks.compile_experiment

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

compile_experiment(session, experiment, compiler_settings=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
compiler_settings dict | None

Optional settings to pass to the compiler.

None

Returns:

Type Description
CompiledExperiment

CompiledExperiment The laboneq compiled experiment.