|
12345678910111213141516171819202122232425262728293031 |
- from numpy import *
- import json
- #json.load(open("anders_
-
-
- #i = matrix(eye(2, dtype=complex))
- #h = matrix([[1, 1], [1, -1]], dtype=complex) / sqrt(2)
- #p = matrix([[1, 0], [0, 1j]], dtype=complex)
-
- #s_set = [i, p, p*p, p*p*p]
- #s_names = ["i", "p", "pp", "ppp"]
-
- #c_set = [i, h, h*p, h*p*p, h*p*p*p, h*p*p*h]
- #c_names = ["i", "h", "hp", "hpp", "hppp", "hpph"]
-
- #names = []
- #matrices = []
- #for s, s_name in zip(s_set, s_names):
- #for c, c_name in zip(c_set, c_names):
- #names.append(s_name+c_name)
- #matrices.append(s*c)
-
- #print " ".join(names)
- #print len(names)
-
- #for m in matrices:
- # print (m/abs(amax(m))).round(0).reshape(4)
- #print average(abs(array((m/abs(amax(m))).round(0).reshape(4).tolist()[0])))
-
-
-
|