pygsti.construction.simplify_str

pygsti.construction.simplify_str(gateStringStr)
Simplify a string representation of a gate string. The simplified
string should evaluate to the same gate label tuple as the original.
Parameters:gateStringStr (string) – the string representation of a gate string to be simplified. (e.g. “Gx{}”, “Gy^1Gx”)
Returns:the simplified string representation.
Return type:string