def fixcommand(c):
    forbidden_characters = ['-']
    c = c.lower()
    for char in forbidden_characters:
        c = c.replace(char, '')
    if c == 'def':
        return 'qdef'
    return c
Fix Qasm command names.
dataset/ETHPy150Open sympy/sympy/sympy/physics/quantum/qasm.py/fixcommand