def _create_dag_op(self, name, params, qargs):
if name == "<STR_LIT>":<EOL><INDENT>op_class = U0Gate<EOL><DEDENT>elif name == "<STR_LIT>":<EOL><INDENT>op_class = U1Gate<EOL><DEDENT>elif name == "<STR_LIT>":<EOL><INDENT>op_class = U2Gate<EOL><DEDENT>elif name == "<STR_LIT>":<EOL><INDENT>op_class = U3Gate<EOL><DEDENT>elif name == "<STR_LIT:x>":<EOL><INDENT>op_class = XGate<EOL><DEDENT>elif name == "<STR_LIT:y>":<EOL><INDENT>op_class = YGate<EOL><DEDENT>elif name == "<STR_LIT:z>":<EOL><INDENT>op_class = ZGate<EOL><DEDENT>elif name == "<STR_LIT:t>":<EOL><INDENT>op_class = TGate<EOL><DEDENT>elif name == "<STR_LIT>":<EOL><INDENT>op_class = TdgGate<EOL><DEDENT>elif name == "<STR_LIT:s>":<EOL><INDENT>op_class = SGate<EOL><DEDENT>elif name == "<STR_LIT>":<EOL><INDENT>op_class = SdgGate<EOL><DEDENT>elif name == "<STR_LIT>":<EOL><INDENT>op_class = SwapGate<EOL><DEDENT>elif name == "<STR_LIT>":<EOL><INDENT>op_class = RXGate<EOL><DEDENT>elif name == "<STR_LIT>":<EOL><INDENT>op_class = RYGate<EOL><DEDENT>elif name == "<STR_LIT>":<EOL><INDENT>op_class = RZGate<EOL><DEDENT>elif name == "<STR_LIT>":<EOL><INDENT>op_class = RZZGate<EOL><DEDENT>elif name == "<STR_LIT:id>":<EOL><INDENT>op_class = IdGate<EOL><DEDENT>elif name == "<STR_LIT:h>":<EOL><INDENT>op_class = HGate<EOL><DEDENT>elif name == "<STR_LIT>":<EOL><INDENT>op_class = CnotGate<EOL><DEDENT>elif name == "<STR_LIT>":<EOL><INDENT>op_class = CyGate<EOL><DEDENT>elif name == "<STR_LIT>":<EOL><INDENT>op_class = CzGate<EOL><DEDENT>elif name == "<STR_LIT>":<EOL><INDENT>op_class = CHGate<EOL><DEDENT>elif name == "<STR_LIT>":<EOL><INDENT>op_class = CrzGate<EOL><DEDENT>elif name == "<STR_LIT>":<EOL><INDENT>op_class = Cu1Gate<EOL><DEDENT>elif name == "<STR_LIT>":<EOL><INDENT>op_class = Cu3Gate<EOL><DEDENT>elif name == "<STR_LIT>":<EOL><INDENT>op_class = ToffoliGate<EOL><DEDENT>elif name == "<STR_LIT>":<EOL><INDENT>op_class = FredkinGate<EOL><DEDENT>else:<EOL><INDENT>raise QiskitError("<STR_LIT>" % name)<EOL><DEDENT>op = op_class(*params)<EOL>self.dag.apply_operation_back(op, qargs, [], condition=self.condition)<EOL>
Create a DAG node out of a parsed AST op node.

Args:
    name (str): operation name to apply to the dag.
    params (list): op parameters
    qargs (list(QuantumRegister, int)): qubits to attach to

Raises:
    QiskitError: if encountering a non-basis opaque gate