qiskit/qasm/qasmparser.py
def p_unitary_op_2(self, program):
        """
        unitary_op : id primary_list
        """
        program[0] = node.CustomUnitary([program[1], program[2]])
        self.verify_as_gate(program[1], program[2])
        self.verify_reg_list(program[2], 'qreg')
        self.verify_distinct([program[2]])
def p_unitary_op_2(self, program):
        """
        unitary_op : id primary_list
        """
        program[0] = node.CustomUnitary([program[1], program[2]])
        self.verify_as_gate(program[1], program[2])
        self.verify_reg_list(program[2], 'qreg')
        self.verify_distinct([program[2]])
def p_unitary_op_2 ( self , program ) : program [ 0 ] = node . CustomUnitary ( [ program [ 1 ] , program [ 2 ] ] ) self . verify_as_gate ( program [ 1 ] , program [ 2 ] ) self . verify_reg_list ( program [ 2 ] , 'qreg' ) self . verify_distinct ( [ program [ 2 ] ] )
unitary_op : id primary_list
unitary_op : id primary_list