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.data¶
- ExperimentData.data(index=None)[source]¶
Return the experiment data at the specified index.
- Parameters:
index (
Union
[int
,slice
,str
,None
]) –Index of the data to be returned. Several types are accepted for convenience:
None: Return all experiment data.
int: Specific index of the data.
slice: A list slice of data indexes.
str: ID of the job that produced the data.
- Return type:
Union
[Dict
,List
[Dict
]]- Returns:
Experiment data.
- Raises:
TypeError – If the input index has an invalid type.