def _draw_regs(self):
    for (ii, reg) in enumerate(self._qreg):
        if (len(self._qreg) > 1):
            label = '${}_{{{}}}$'.format(reg.reg.name, reg.index)
        else:
            label = '${}$'.format(reg.reg.name)
        pos = (- ii)
        self._qreg_dict[ii] = {'y': pos, 'label': label, 'index': reg.index, 'group': reg.reg}
        self._cond['n_lines'] += 1
    if self._creg:
        n_creg = self._creg.copy()
        n_creg.pop(0)
        idx = 0
        y_off = (- len(self._qreg))
        for (ii, (reg, nreg)) in enumerate(itertools.zip_longest(self._creg, n_creg)):
            pos = (y_off - idx)
            if self._style.bundle:
                label = '${}$'.format(reg.reg.name)
                self._creg_dict[ii] = {'y': pos, 'label': label, 'index': reg.index, 'group': reg.reg}
                if (not ((not nreg) or (reg.reg != nreg.reg))):
                    continue
            else:
                label = '${}_{{{}}}$'.format(reg.reg.name, reg.index)
                self._creg_dict[ii] = {'y': pos, 'label': label, 'index': reg.index, 'group': reg.reg}
            self._cond['n_lines'] += 1
            idx += 1
def _draw_regs(self):
    for (ii, reg) in enumerate(self._qreg):
        if (len(self._qreg) > 1):
            label = '${}_{{{}}}$'.format(reg.reg.name, reg.index)
        else:
            label = '${}$'.format(reg.reg.name)
        pos = (- ii)
        self._qreg_dict[ii] = {'y': pos, 'label': label, 'index': reg.index, 'group': reg.reg}
        self._cond['n_lines'] += 1
    if self._creg:
        n_creg = self._creg.copy()
        n_creg.pop(0)
        idx = 0
        y_off = (- len(self._qreg))
        for (ii, (reg, nreg)) in enumerate(itertools.zip_longest(self._creg, n_creg)):
            pos = (y_off - idx)
            if self._style.bundle:
                label = '${}$'.format(reg.reg.name)
                self._creg_dict[ii] = {'y': pos, 'label': label, 'index': reg.index, 'group': reg.reg}
                if (not ((not nreg) or (reg.reg != nreg.reg))):
                    continue
            else:
                label = '${}_{{{}}}$'.format(reg.reg.name, reg.index)
                self._creg_dict[ii] = {'y': pos, 'label': label, 'index': reg.index, 'group': reg.reg}
            self._cond['n_lines'] += 1
            idx += 1