ErrorExperiment#
Module: exa.core.experiment.experiment
- class ErrorExperiment(label='Error experiment label', error_details='')#
Bases:
ExperimentMinimal implementation of Experiment for conveying sweep results and metadata to analyze results in case there is an error using the correct class.
- Parameters:
label (str) – Experiment label used as pretty identifier for display purposes.
error_details (str) – Error details to append to the
AnalyzeResultreturned from this class’analyze().
Attributes
Unique identifier for the experiment class.
Methods
Analyzes an experiment run and returns the result.
- name = 'error_experiment'#
Unique identifier for the experiment class. Used to differentiate between different datasets in the database.
- analyze(run_index=-1, **kwargs)#
Analyzes an experiment run and returns the result.
Based on the used analyze function (either the one returned by
get_default_analyze_function()or the argument analyze_function), it will either just apply the function to the run result specified byrun_index(full analyze function) or loop through the parallelly runnable partitions of the QPU (colours) and further the parallel groups within, building the full analyze result iteratively (group analyze function). The former and latter cases are automatically detected by inspection the signature of the provided analyze function.Note
Overriding this method is allowed for backwards compatibility, but will be restricted in the future.
- Parameters:
components – limit the analysis to these components.
run_index (int) – The run index.
analyze_function – function for performing the analysis. See
get_default_analyze_function()for more info.kwargs – Additional arguments for
analyze_function.
- Returns:
The analyze result.
- Return type:
Inheritance
