qiskit/dagcircuit/dagnode.py
def op(self):
        """Returns the Instruction object corresponding to the op for the node else None"""
        if 'type' not in self.data_dict or self.data_dict['type'] != 'op':
            raise QiskitError("The node %s is not an op node" % (str(self)))
        return self.data_dict.get('op')
def op(self):
        if 'type' not in self.data_dict or self.data_dict['type'] != 'op':
            raise QiskitError("The node %s is not an op node" % (str(self)))
        return self.data_dict.get('op')
def op ( self ) : if 'type' not in self . data_dict or self . data_dict [ 'type' ] != 'op' : raise QiskitError ( "The node %s is not an op node" % ( str ( self ) ) ) return self . data_dict . get ( 'op' )
Returns the Instruction object corresponding to the op for the node else None
Returns the Instruction object corresponding to the op for the node else None