Skip to main content

compile_with

Function compile_with 

Source
pub fn compile_with(
    def: &Definition,
    descriptors: &[BackendDescriptor],
    calibrations: &[CalibrationArtifact],
    execution: &ExecutionPolicy,
) -> Result<Compiled, Refusal>
Expand description

Compile with a runtime execution policy (spec 003, 3.2.3). The policy is validated after every step is bound and embedded in the plan, so it is part of the PlanId.