qit.lmap.format_ket¶
- qit.lmap.format_ket(ind, dim, is_ket=True)¶
Ket or bra formatting.
- Parameters
ind (int) – flat index
dim (tuple[int]) – subsystem dimensions
is_ket (bool) – iff True return a ket symbol, otherwise return a bra symbol
- Returns
ket or bra symbol containing the corresponding multi-index
- Return type
str