pygsti.circuits.circuitconstruction.to_circuits

Contents

pygsti.circuits.circuitconstruction.to_circuits#

to_circuits(list_of_op_label_tuples_or_strings, line_labels='auto')#

Converts a list of operation label tuples or strings to a list of Circuit objects.

Parameters:
  • list_of_op_label_tuples_or_strings (list) – List which may contain a mix of Circuit objects, tuples of gate labels, and strings in standard-text-format.

  • line_labels ("auto" or tuple, optional) – The line labels to use when creating Circuit objects from non-Circuit elements of list_of_op_label_tuples_or_strings. If “auto” then the line labels are determined automatically based on the line-labels which are present in the layer labels.

Returns:

Each item of list_of_op_label_tuples_or_strings converted to a Circuit.

Return type:

list of Circuit objects