qiskit/circuit/quantumcircuit.py
def has_register(self, register):
        """
        Test if this circuit has the register r.

        Args:
            register (Register): a quantum or classical register.

        Returns:
            bool: True if the register is contained in this circuit.
        """
        has_reg = False
        if (isinstance(register, QuantumRegister) and
                register in self.qregs):
            has_reg = True
        elif (isinstance(register, ClassicalRegister) and
              register in self.cregs):
            has_reg = True
        return has_reg
def has_register(self, register):
        has_reg = False
        if (isinstance(register, QuantumRegister) and
                register in self.qregs):
            has_reg = True
        elif (isinstance(register, ClassicalRegister) and
              register in self.cregs):
            has_reg = True
        return has_reg
def has_register ( self , register ) : has_reg = False if ( isinstance ( register , QuantumRegister ) and register in self . qregs ) : has_reg = True elif ( isinstance ( register , ClassicalRegister ) and register in self . cregs ) : has_reg = True return has_reg
Test if this circuit has the register r.

        Args:
            register (Register): a quantum or classical register.

        Returns:
            bool: True if the register is contained in this circuit.
Test if this circuit has the register r .