qiskit/qasm/qasmparser.py
def p_gate_op_4(self, program):
        """
        gate_op : id '(' exp_list ')' id_list ';'
        """
        program[0] = node.CustomUnitary([program[1], program[3], program[5]])
        self.verify_as_gate(program[1], program[5], arglist=program[3])
        self.verify_bit_list(program[5])
        self.verify_exp_list(program[3])
        self.verify_distinct([program[5]])
def p_gate_op_4(self, program):
        """
        gate_op : id '(' exp_list ')' id_list ';'
        """
        program[0] = node.CustomUnitary([program[1], program[3], program[5]])
        self.verify_as_gate(program[1], program[5], arglist=program[3])
        self.verify_bit_list(program[5])
        self.verify_exp_list(program[3])
        self.verify_distinct([program[5]])
def p_gate_op_4 ( self , program ) : program [ 0 ] = node . CustomUnitary ( [ program [ 1 ] , program [ 3 ] , program [ 5 ] ] ) self . verify_as_gate ( program [ 1 ] , program [ 5 ] , arglist = program [ 3 ] ) self . verify_bit_list ( program [ 5 ] ) self . verify_exp_list ( program [ 3 ] ) self . verify_distinct ( [ program [ 5 ] ] )
gate_op : id '(' exp_list ')' id_list ';'
gate_op : id ( exp_list ) id_list ;