[KeldyshGF-svncheckins] [svn commit /var/www/svn/KeldyshGF] r271 - trunk/kgf/exact_diagonalization

svn at fysik.dtu.dk svn at fysik.dtu.dk
Fri Nov 16 15:16:09 CET 2012


Author: strange
Date: 2012-11-16 15:16:09 +0100 (Fri, 16 Nov 2012)
New Revision: 271

Removed:
   trunk/kgf/exact_diagonalization/test.py
Log:
didada

Deleted: trunk/kgf/exact_diagonalization/test.py
===================================================================
--- trunk/kgf/exact_diagonalization/test.py	2012-11-16 14:13:43 UTC (rev 270)
+++ trunk/kgf/exact_diagonalization/test.py	2012-11-16 14:16:09 UTC (rev 271)
@@ -1,14 +0,0 @@
-from kgf.Tools import dots
-import numpy as np
-from numpy import linalg as la
-from exactd3 import ExactDiag
-
-calc = ExactDiag(2)
-indices = calc.get_Npart_subspace(2)
-Sz = calc.get_Sz().take(indices,axis=0).take(indices, axis=1)
-S2 = calc.get_S2().take(indices,axis=0).take(indices, axis=1)
-
-w2, v2 = la.eigh(S2)
-x = dots(v2.conj().T, Sz, v2)
-print 'Sz:', x.diagonal()
-print 'S2:', w2



More information about the KeldyshGF-svncheckins mailing list