Exemple #1
0
    def __init__(self, H, elec, pivot):
        """ Create Green function with Hamiltonian and BTD matrix elements """
        self.H = H

        # Store electrodes (for easy retrieval of the SE)
        # There may be no electrodes
        self.elec = elec

        self.pvt = pivot.pivot()
        self.btd = pivot.btd()

        # Create BTD indices
        self.btd_cum = np.cumsum(self.btd)
        cumbtd = np.append(0, self.btd_cum)

        self.btd_idx = [self.pvt[cumbtd[i]:cumbtd[i + 1]]
                        for i in range(len(self.btd))]

        self._data = PropertyDict()
Exemple #2
0
 def reset(self):
     self._data = PropertyDict()