Note

This is the documentation for the current state of the development branch of Qiskit Experiments. The documentation or APIs here can change prior to being released.

ExperimentData.add_data

ExperimentData.add_data(data)[source]

Add experiment data.

Parameters:

data (Union[Result, List[Result], Job, List[Job], Dict, List[Dict]]) –

Experiment data to add. Several types are accepted for convenience:

  • Result: Add data from this Result object.

  • List[Result]: Add data from the Result objects.

  • Dict: Add this data.

  • List[Dict]: Add this list of data.

  • Job: (Deprecated) Add data from the job result.

  • List[Job]: (Deprecated) Add data from the job results.

Raises:

TypeError – If the input data type is invalid.

Return type:

None