def KwargTemplateDouble(par, wires, a=True): if a: T(wires=wires[0]) CRX(par, wires=wires)
def KwargTemplate(par, wires, a=True): if a: T(wires=wires) RY(par, wires=wires)
def ConstantTemplateDouble(wires): T(wires=wires[0]) CNOT(wires=wires)
def ConstantTemplate(wires): T(wires=wires) S(wires=wires)