qiskit/qasm/qasmparser.py
def p_unitary_op_1(self, program):
        """
        unitary_op : CX primary ',' primary
        """
        program[0] = node.Cnot([program[2], program[4]])
        self.verify_reg(program[2], 'qreg')
        self.verify_reg(program[4], 'qreg')
        self.verify_distinct([program[2], program[4]])
def p_unitary_op_1(self, program):
        """
        unitary_op : CX primary ',' primary
        """
        program[0] = node.Cnot([program[2], program[4]])
        self.verify_reg(program[2], 'qreg')
        self.verify_reg(program[4], 'qreg')
        self.verify_distinct([program[2], program[4]])
def p_unitary_op_1 ( self , program ) : program [ 0 ] = node . Cnot ( [ program [ 2 ] , program [ 4 ] ] ) self . verify_reg ( program [ 2 ] , 'qreg' ) self . verify_reg ( program [ 4 ] , 'qreg' ) self . verify_distinct ( [ program [ 2 ] , program [ 4 ] ] )
unitary_op : CX primary ',' primary
unitary_op : CX primary primary