tebd.py 文件源码

python
阅读 23 收藏 0 点赞 0 评论 0

项目:tensor_networks 作者: alewis 项目源码 文件源码
def __newgammaD(self, theta, l):
        """ Apply Eqns. 22-24 in Vidal 2003 to update gamma^D 
            (gamma of the next qbit).
        """
        rhoDK = self.__rhoDK(theta, self.coefs[l-1].lam)    
        #diagonalize
        idx = self.chi * self.hdim
        rhoDKflat = rhoDK.reshape([idx, idx]) 
        evals, evecs = la.eigh(rhoDKflat) #note rho is a density matrix and thus
                                          #hermitian
        evals = evals[:self.chi]
        evecs = evecs[:,:self.chi]
        return evecs
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号