def METHOD_NAME(self, n, backends):
    n_vec = int_to_vec(n, backends, len(self._oplist))
    extended_vec = np.zeros(max(self._opmap) + 1, dtype=int)
    cnt = 0
    for allocation in n_vec:
        extended_pos = list(
            set([self._opmap[i] for i in self.get_indices(self._oplist[cnt])]))
        try:
            extended_vec[extended_pos] = allocation
        except IndexError:
            print("extended_vec size = ", extended_vec.size, ", extended_pos = ",
                  extended_pos)
        cnt += 1
    extended_n = int(''.join(str(i) for i in extended_vec[::-1]), 2)
    return extended_n