qiskit/unroll/_printerbackend.py
def barrier(self, qubitlists):
        """Barrier instruction.

        qubitlists is a list of lists of (regname, idx) tuples.
        """
        if self.listen:
            if "barrier" not in self.basis:
                self.basis.append("barrier")
            names = []
            for qubitlist in qubitlists:
                if len(qubitlist) == 1:
                    names.append("%s[%d]" % (qubitlist[0][0], qubitlist[0][1]))
                else:
                    names.append("%s" % qubitlist[0][0])
            print("barrier %s;" % ",".join(names))
Barrier instruction.

        qubitlists is a list of lists of (regname, idx) tuples.
        
Barrier instruction.
qubitlists is a list of lists of (regname, idx) tuples.
Barrier instruction . qubitlists is a list of lists of ( regname idx ) tuples .
def barrier(self, qubitlists):
        if self.listen:
            if "barrier" not in self.basis:
                self.basis.append("barrier")
            names = []
            for qubitlist in qubitlists:
                if len(qubitlist) == 1:
                    names.append("%s[%d]" % (qubitlist[0][0], qubitlist[0][1]))
                else:
                    names.append("%s" % qubitlist[0][0])
            print("barrier %s;" % ",".join(names))
def barrier ( self , qubitlists ) : if self . listen : if "barrier" not in self . basis : self . basis . append ( "barrier" ) names = [ ] for qubitlist in qubitlists : if len ( qubitlist ) == 1 : names . append ( "%s[%d]" % ( qubitlist [ 0 ] [ 0 ] , qubitlist [ 0 ] [ 1 ] ) ) else : names . append ( "%s" % qubitlist [ 0 ] [ 0 ] ) print ( "barrier %s;" % "," . join ( names ) )
Barrier instruction.
Barrier instruction .
"""Barrier instruction.

        qubitlists is a list of lists of (regname, idx) tuples.
        """
self
qubitlists