def _process_cnot(self, node):
id0 = self._process_bit_id(node.children[<NUM_LIT:0>])<EOL>id1 = self._process_bit_id(node.children[<NUM_LIT:1>])<EOL>if not(len(id0) == len(id1) or len(id0) == <NUM_LIT:1> or len(id1) == <NUM_LIT:1>):<EOL><INDENT>raise QiskitError("<STR_LIT>",<EOL>"<STR_LIT>" % node.line, "<STR_LIT>" % node.file)<EOL><DEDENT>maxidx = max([len(id0), len(id1)])<EOL>for idx in range(maxidx):<EOL><INDENT>if len(id0) > <NUM_LIT:1> and len(id1) > <NUM_LIT:1>:<EOL><INDENT>self.dag.apply_operation_back(CXBase(), [id0[idx], id1[idx]], [], self.condition)<EOL><DEDENT>elif len(id0) > <NUM_LIT:1>:<EOL><INDENT>self.dag.apply_operation_back(CXBase(), [id0[idx], id1[<NUM_LIT:0>]], [], self.condition)<EOL><DEDENT>else:<EOL><INDENT>self.dag.apply_operation_back(CXBase(), [id0[<NUM_LIT:0>], id1[idx]], [], self.condition)<EOL><DEDENT><DEDENT>
Process a CNOT gate node.