qiskit/converters/ast_to_dag.py
def _process_measure(self, node):
        """Process a measurement node."""
        id0 = self._process_bit_id(node.children[0])
        id1 = self._process_bit_id(node.children[1])
        if len(id0) != len(id1):
            raise QiskitError("internal error: reg size mismatch",
                              "line=%s" % node.line, "file=%s" % node.file)
        for idx, idy in zip(id0, id1):
            self.dag.apply_operation_back(Measure(), [idx], [idy], self.condition)
def _process_measure(self, node):
        """Process a measurement node."""
        id0 = self._process_bit_id(node.children[0])
        id1 = self._process_bit_id(node.children[1])
        if len(id0) != len(id1):
            raise QiskitError("internal error: reg size mismatch",
                              "line=%s" % node.line, "file=%s" % node.file)
        for idx, idy in zip(id0, id1):
            self.dag.apply_operation_back(Measure(), [idx], [idy], self.condition)
def _process_measure ( self , node ) : id0 = self . _process_bit_id ( node . children [ 0 ] ) id1 = self . _process_bit_id ( node . children [ 1 ] ) if len ( id0 ) != len ( id1 ) : raise QiskitError ( "internal error: reg size mismatch" , "line=%s" % node . line , "file=%s" % node . file ) for idx , idy in zip ( id0 , id1 ) : self . dag . apply_operation_back ( Measure ( ) , [ idx ] , [ idy ] , self . condition )
Process a measurement node.
Process a measurement node .