SubSwapGate.calculate_level_swap_expr

static SubSwapGate.calculate_level_swap_expr(radix, level1, level2)[source]

Build the QGL expression for a qudit level swap.

Return type:

UnitaryExpression