pygsti.make_bootstrap_dataset

pygsti.make_bootstrap_dataset(inputDataSet, generationMethod, inputGateSet=None, seed=None, spamLabels=None)

Creates a DataSet used for generating bootstrapped error bars.

Parameters:
  • inputDataSet (DataSet) – The data set to use for generating the “bootstrapped” data set.
  • generationMethod ({ ‘nonparametric’, ‘parametric’ }) – The type of dataset to generate. ‘parametric’ generates a DataSet with the same gate strings and sample counts as inputDataSet but using the probabilities in inputGateSet (which must be provided). ‘nonparametric’ generates a DataSet with the same gate strings and sample counts as inputDataSet using the count frequencies of inputDataSet as probabilities.
  • inputGateSet (GateSet, optional) – The gate set used to compute the probabilities for gate strings when generationMethod is set to ‘parametric’. If ‘nonparametric’ is selected, this argument must be set to None (the default).
  • seed (int, optional) – A seed value for numpy’s random number generator.
  • spamLabels (list, optional) – The list of SPAM labels to include in the output dataset. If None are specified, defaults to the spam labels of inputDataSet.
Returns:

Return type:

DataSet