Result

class qililab.result.Result

Bases: FactoryElement, ABC

Class used to hold the results of a single execution.

Methods

acquisitions()

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_dataframe()

to_dict()

Attributes

array

Returns the results in a numpy array format.

name

Name of the result.

data_dataframe_indices

Set of indices that are used in the data DataFrame.

name

Name of the result.

data_dataframe_indices

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

abstractmethod to_dict()
Returns:

Dictionary containing all the class information.

Return type:

dict

to_dataframe()
Returns:

dataframe containing all the results.

Return type:

DataFrame

abstract property array

Returns the results in a numpy array format.

Returns:

Numpy array containing the results.

Return type:

np.ndarray