qiskit/unroll/_printerbackend.py
def u(self, arg, qubit, nested_scope=None):
        """Fundamental single qubit gate.

        arg is 3-tuple of Node expression objects.
        qubit is (regname,idx) tuple.
        nested_scope is a list of dictionaries mapping expression variables
        to Node expression objects in order of increasing nesting depth.
        """
        if self.listen:
            if "U" not in self.basis:
                self.basis.append("U")
            if self.creg is not None:
                print("if(%s==%d) " % (self.creg, self.cval), end="")
            print("U(%s,%s,%s) %s[%d];" % (arg[0].sym(nested_scope),
                                           arg[1].sym(nested_scope),
                                           arg[2].sym(nested_scope),
                                           qubit[0],
                                           qubit[1]))
Fundamental single qubit gate.

        arg is 3-tuple of Node expression objects.
        qubit is (regname,idx) tuple.
        nested_scope is a list of dictionaries mapping expression variables
        to Node expression objects in order of increasing nesting depth.
        
Fundamental single qubit gate.
arg is 3-tuple of Node expression objects.
qubit is (regname,idx) tuple.
nested_scope is a list of dictionaries mapping expression variables
to Node expression objects in order of increasing nesting depth.
Fundamental single qubit gate . arg is 3 - tuple of Node expression objects . qubit is ( regname idx ) tuple . nested_scope is a list of dictionaries mapping expression variables to Node expression objects in order of increasing nesting depth .
def u(self, arg, qubit, nested_scope=None):
        if self.listen:
            if "U" not in self.basis:
                self.basis.append("U")
            if self.creg is not None:
                print("if(%s==%d) " % (self.creg, self.cval), end="")
            print("U(%s,%s,%s) %s[%d];" % (arg[0].sym(nested_scope),
                                           arg[1].sym(nested_scope),
                                           arg[2].sym(nested_scope),
                                           qubit[0],
                                           qubit[1]))
def u ( self , arg , qubit , nested_scope = None ) : if self . listen : if "U" not in self . basis : self . basis . append ( "U" ) if self . creg is not None : print ( "if(%s==%d) " % ( self . creg , self . cval ) , end = "" ) print ( "U(%s,%s,%s) %s[%d];" % ( arg [ 0 ] . sym ( nested_scope ) , arg [ 1 ] . sym ( nested_scope ) , arg [ 2 ] . sym ( nested_scope ) , qubit [ 0 ] , qubit [ 1 ] ) )
Fundamental single qubit gate.
Fundamental single qubit gate .
"""Fundamental single qubit gate.

        arg is 3-tuple of Node expression objects.
        qubit is (regname,idx) tuple.
        nested_scope is a list of dictionaries mapping expression variables
        to Node expression objects in order of increasing nesting depth.
        """
self
arg
qubit
nested_scope