def flip_index(i, n):
    return n-i-1
Equivalent of calling the matrix directly, e.g. self[arg].
dataset/ETHPy150Open sympy/sympy/sympy/physics/quantum/qasm.py/flip_index--crossover with--dataset/ETHPy150Open jimmycallin/pydsm/pydsm/indexmatrix.py/IndexMatrix.get_value