↓ 3 callersFunction_group_to_indexConvert a tuple of exponents to a flat integer index via mixed-radix. Example: group_shape=(2,2,4), exponents=(1,0,3) → 1*8 + 0*4 + 3 = 11.
skills/qec-construct/scripts/kernel/tricycle_code.py:12
↓ 3 callersFunction_index_to_groupConvert a flat integer index back to a tuple of exponents. Example: group_shape=(2,2,4), idx=11 → (1,0,3).
skills/qec-construct/scripts/kernel/tricycle_code.py:23