iqm.cpc.compiler.compilation_stage.resolve_circuit_function_and_stages#
- iqm.cpc.compiler.compilation_stage.resolve_circuit_function_and_stages(stages, input)#
Insert the circuit generation as the first stage in the provided
stages.- Parameters:
stages (list[CompilationStage]) – The stages into which the circuit should be inserted.
input (Any) – The circuit generation function or a static circuit object. If a static circuit object is inputted, it will be wrapped into a trivial circuit generation function.
- Returns:
The compilation stages such that the first stage is now the circuit generation.
- Return type: