Result
- class qililab.result.Result
Bases:
FactoryElement,ABCClass used to hold the results of a single execution.
Methods
Return acquisition values.
counts()(Only for Qblox) Returns a Counts object containing the counts of each state.
samples()(Only for Qblox) Returns an array containing the measured samples.
to_dict()Attributes
Returns the results in a numpy array format.
Name of the result.
Set of indices that are used in the data DataFrame.
- counts()
(Only for Qblox) Returns a Counts object containing the counts of each state.
- Returns:
Counts object containing the counts of each state.
- Return type:
Counts
- Raises:
NotImplementedError – this method is not implemented for n measurements on the same qubit
- samples()
(Only for Qblox) Returns an array containing the measured samples.
The shape of the returned array is
(# sequencers, # bins).- Returns:
An array containing the measured samples (0 or 1).
- Return type:
np.ndarray
- Raises:
NotImplementedError – this method is not implemented for n measurements on the same qubit
- acquisitions()
Return acquisition values.
- Returns:
I, Q, amplitude and phase.
- Return type:
pd.DataFrame