def rzz(self, theta, ctl, tgt):
    'Apply RZZ to circuit.'
    if (isinstance(ctl, QuantumRegister) and isinstance(tgt, QuantumRegister) and (len(ctl) == len(tgt))):
        instructions = InstructionSet()
        for i in range(ctl.size):
            instructions.add(self.rzz(theta, (ctl, i), (tgt, i)))
        return instructions
    self._check_qubit(ctl)
    self._check_qubit(tgt)
    self._check_dups([ctl, tgt])
    return self._attach(RZZGate(theta, ctl, tgt, self))
Apply RZZ to circuit.
def rzz(self, theta, ctl, tgt):
    
    if (isinstance(ctl, QuantumRegister) and isinstance(tgt, QuantumRegister) and (len(ctl) == len(tgt))):
        instructions = InstructionSet()
        for i in range(ctl.size):
            instructions.add(self.rzz(theta, (ctl, i), (tgt, i)))
        return instructions
    self._check_qubit(ctl)
    self._check_qubit(tgt)
    self._check_dups([ctl, tgt])
    return self._attach(RZZGate(theta, ctl, tgt, self))