qiskit/unroll/_printerbackend.py
def end_gate(self, name, args, qubits, nested_scope=None):
        """End a custom gate.

        name is name string.
        args is list of Node expression objects.
        qubits is list of (regname, idx) tuples.
        nested_scope is a list of dictionaries mapping expression variables
        to Node expression objects in order of increasing nesting depth.
        """
        if name == self.in_gate:
            self.in_gate = ""
            self.listen = True
        if self.listen and self.comments:
            print("// end %s, %s, %s" % (name,
                                         list(map(lambda x:
                                                  str(x.sym(nested_scope)),
                                                  args)),
                                         qubits))
End a custom gate.

        name is name string.
        args is list of Node expression objects.
        qubits is list of (regname, idx) tuples.
        nested_scope is a list of dictionaries mapping expression variables
        to Node expression objects in order of increasing nesting depth.
        
End a custom gate.
name is name string.
args is list of Node expression objects.
qubits is list of (regname, idx) tuples.
nested_scope is a list of dictionaries mapping expression variables
to Node expression objects in order of increasing nesting depth.
End a custom gate . name is name string . args is list of Node expression objects . qubits is list of ( regname idx ) tuples . nested_scope is a list of dictionaries mapping expression variables to Node expression objects in order of increasing nesting depth .
def end_gate(self, name, args, qubits, nested_scope=None):
        if name == self.in_gate:
            self.in_gate = ""
            self.listen = True
        if self.listen and self.comments:
            print("// end %s, %s, %s" % (name,
                                         list(map(lambda x:
                                                  str(x.sym(nested_scope)),
                                                  args)),
                                         qubits))
def end_gate ( self , name , args , qubits , nested_scope = None ) : if name == self . in_gate : self . in_gate = "" self . listen = True if self . listen and self . comments : print ( "// end %s, %s, %s" % ( name , list ( map ( lambda x : str ( x . sym ( nested_scope ) ) , args ) ) , qubits ) )
End a custom gate.
End a custom gate .
"""End a custom gate.

        name is name string.
        args is list of Node expression objects.
        qubits is list of (regname, idx) tuples.
        nested_scope is a list of dictionaries mapping expression variables
        to Node expression objects in order of increasing nesting depth.
        """
self
name
args
qubits
nested_scope