pygsti.io.StdInputParser.parse_gatestring¶
-
StdInputParser.
parse_gatestring
(s, lookup={})¶ Parse a gate string (string in grammar)
Parameters: - s (string) – The string to parse.
- lookup (dict, optional) – A dictionary with keys == reflbls and values == tuples of gate labels which can be used for substitutions using the S<reflbl> syntax.
Returns: Representing the gate string.
Return type: tuple of gate labels