iqm.cpc.core.run_result.construct_run_result#
- iqm.cpc.core.run_result.construct_run_result(run_definition, sweep_results, timeline, post_processes=None)#
Convert
sweep_resultsinto a dataset and wrap it in a RunResult.- Parameters:
run_definition (RunDefinition) – Definition of the run whose result should be constructed.
sweep_results (dict[str, list[ndarray]]) – Raw sweep results of the run.
timeline (Iterable[TimelineEntry]) – Job timestamps.
post_processes (list[Callable[[RunResult], RunResult]] | None) – Post-processing passes to apply to dataset of the run result. Defaults to returning the run result without changes.
- Returns:
Run result which contains the post-processed dataset.
- Return type: