qiskit/qasm/node/id.py
def real(self, nested_scope=None):
        """Return the correspond floating point number."""
        if not nested_scope or self.name not in nested_scope[-1]:
            raise NodeException("Expected local parameter name: ",
                                "name=%s, line=%s, file=%s" % (
                                    self.name, self.line, self.file))
        else:
            return nested_scope[-1][self.name].real(nested_scope[0:-1])
def real(self, nested_scope=None):
        """Return the correspond floating point number."""
        if not nested_scope or self.name not in nested_scope[-1]:
            raise NodeException("Expected local parameter name: ",
                                "name=%s, line=%s, file=%s" % (
                                    self.name, self.line, self.file))
        else:
            return nested_scope[-1][self.name].real(nested_scope[0:-1])
def real ( self , nested_scope = None ) : if not nested_scope or self . name not in nested_scope [ - 1 ] : raise NodeException ( "Expected local parameter name: " , "name=%s, line=%s, file=%s" % ( self . name , self . line , self . file ) ) else : return nested_scope [ - 1 ] [ self . name ] . real ( nested_scope [ 0 : - 1 ] )
Return the correspond floating point number.
Return the correspond floating point number .