SubSwapGate.decode_qudit_level_string
- static SubSwapGate.decode_qudit_level_string(string)[source]
Decode the qudit level string into two pairs of integers.
- Parameters:
string (
str
) – The qudit level string to decode. See theSubSwapGate
documentation for more info on the format.- Returns:
- Return type:
tuple[tuple[int, int], tuple[int, int]]
- Raises:
ValueError – See
SubSwapGate
documentation for more info.