pygsti.io.write_dataset_file

pygsti.io.write_dataset_file(filename, gatestring_list, dataset, spamLabelOrder=None)

Write a text-formatted dataset file.

Parameters:
  • filename (string) – The filename to write.
  • gatestring_list (list of GateStrings) – The list of gate strings to include in the written dataset.
  • dataset (DataSet) – The data set from which counts are obtained.
  • spamLabelOrder (list, optional) – A list of the SPAM labels in dataset which specifies the column order in the output file.