pygsti.io.writers.convert_circuits_to_strings#
- convert_circuits_to_strings(obj)#
Converts a list or dictionary potentially containing Circuit objects to a JSON-able one with circuit strings.
- Parameters:
obj (list or tuple or dict) – The object to convert.
- Returns:
A JSON-able object containing circuit string representations in place of Circuit objects.
- Return type:
object