pygsti.io.readers.read_circuit_list

pygsti.io.readers.read_circuit_list#

read_circuit_list(filename, read_raw_strings=False, line_labels='auto', num_lines=None)#

Load a circuit list from a file, formatted using the standard text-format.

Parameters:
  • filename (string) – The name of the file

  • read_raw_strings (boolean) – If True, circuits are not converted to Circuit objects.

  • line_labels (iterable, optional) – The (string valued) line labels used to initialize Circuit objects when line label information is absent from the one-line text representation contained in filename. If ‘auto’, then line labels are taken to be the list of all state-space labels present in the circuit’s layers. If there are no such labels then the special value ‘*’ is used as a single line label.

  • num_lines (int, optional) – Specify this instead of line_labels to set the latter to the integers between 0 and num_lines-1.

Return type:

list of Circuit objects