def get_index(target, labels):
    nq = len(labels)
    return flip_index(labels.index(target), nq)
Get qubit labels from the rest of the line,and return indices
dataset/ETHPy150Open sympy/sympy/sympy/physics/quantum/qasm.py/get_index