def _draw_regs_sub(self, n_fold, feedline_l=False, feedline_r=False):
    for qreg in self._qreg_dict.values():
        if (n_fold == 0):
            label = (qreg['label'] + ' : $\\left|0\\right\\rangle$')
        else:
            label = qreg['label']
        y = (qreg['y'] - (n_fold * (self._cond['n_lines'] + 1)))
        self.ax.text((- 0.5), y, label, ha='right', va='center', fontsize=self._style.fs, color=self._style.tc, clip_on=True, zorder=PORDER_TEXT)
        self._line([0, y], [self._cond['xmax'], y])
    this_creg_dict = {}
    for creg in self._creg_dict.values():
        if (n_fold == 0):
            label = (creg['label'] + ' :  0 ')
        else:
            label = creg['label']
        y = (creg['y'] - (n_fold * (self._cond['n_lines'] + 1)))
        if (y not in this_creg_dict.keys()):
            this_creg_dict[y] = {'val': 1, 'label': label}
        else:
            this_creg_dict[y]['val'] += 1
    for (y, this_creg) in this_creg_dict.items():
        if (this_creg['val'] > 1):
            self.ax.plot([0.6, 0.7], [(y - 0.1), (y + 0.1)], color=self._style.cc, zorder=PORDER_LINE)
            self.ax.text(0.5, (y + 0.1), str(this_creg['val']), ha='left', va='bottom', fontsize=(0.8 * self._style.fs), color=self._style.tc, clip_on=True, zorder=PORDER_TEXT)
        self.ax.text((- 0.5), y, this_creg['label'], ha='right', va='center', fontsize=self._style.fs, color=self._style.tc, clip_on=True, zorder=PORDER_TEXT)
        self._line([0, y], [self._cond['xmax'], y], lc=self._style.cc, ls=self._style.cline)
    if feedline_r:
        self._linefeed_mark((((self._style.fold + 1) - 0.1), ((- n_fold) * (self._cond['n_lines'] + 1))))
    if feedline_l:
        self._linefeed_mark((0.1, ((- n_fold) * (self._cond['n_lines'] + 1))))
def _draw_regs_sub(self, n_fold, feedline_l=False, feedline_r=False):
    for qreg in self._qreg_dict.values():
        if (n_fold == 0):
            label = (qreg['label'] + ' : $\\left|0\\right\\rangle$')
        else:
            label = qreg['label']
        y = (qreg['y'] - (n_fold * (self._cond['n_lines'] + 1)))
        self.ax.text((- 0.5), y, label, ha='right', va='center', fontsize=self._style.fs, color=self._style.tc, clip_on=True, zorder=PORDER_TEXT)
        self._line([0, y], [self._cond['xmax'], y])
    this_creg_dict = {}
    for creg in self._creg_dict.values():
        if (n_fold == 0):
            label = (creg['label'] + ' :  0 ')
        else:
            label = creg['label']
        y = (creg['y'] - (n_fold * (self._cond['n_lines'] + 1)))
        if (y not in this_creg_dict.keys()):
            this_creg_dict[y] = {'val': 1, 'label': label}
        else:
            this_creg_dict[y]['val'] += 1
    for (y, this_creg) in this_creg_dict.items():
        if (this_creg['val'] > 1):
            self.ax.plot([0.6, 0.7], [(y - 0.1), (y + 0.1)], color=self._style.cc, zorder=PORDER_LINE)
            self.ax.text(0.5, (y + 0.1), str(this_creg['val']), ha='left', va='bottom', fontsize=(0.8 * self._style.fs), color=self._style.tc, clip_on=True, zorder=PORDER_TEXT)
        self.ax.text((- 0.5), y, this_creg['label'], ha='right', va='center', fontsize=self._style.fs, color=self._style.tc, clip_on=True, zorder=PORDER_TEXT)
        self._line([0, y], [self._cond['xmax'], y], lc=self._style.cc, ls=self._style.cline)
    if feedline_r:
        self._linefeed_mark((((self._style.fold + 1) - 0.1), ((- n_fold) * (self._cond['n_lines'] + 1))))
    if feedline_l:
        self._linefeed_mark((0.1, ((- n_fold) * (self._cond['n_lines'] + 1))))