# conjorbits.py -- complex conjugation and the 10 orbits of bistochastic forms of had16.3: for each representative b, # computes its orbit under the column actions Q of the symmetry group (needs aut.npy, from autgroup.py), now modulo # global phase only, and checks that no symmetry maps b to the complex conjugate of any of the 10 representatives. import numpy as np H=np.loadtxt('had163.txt'); Qs=np.load('aut.npy') reps=np.exp(2j*np.pi*np.loadtxt('had163reps.txt')) def canon(B): t=np.round(((np.angle(B/B[:,:1])/(2*np.pi))%1)*1e6).astype(np.int64)%1000000 return [' '.join(map(str,x)) for x in t] R=[] for b in reps: for it in range(2000): u=H@b; u/=abs(u); b=H.T@u; b/=abs(b) R.append(b) conj=set(canon(np.conj(np.array(R)))) tot=0 for c,b in enumerate(R): QB=np.einsum('qij,j->qi',Qs,b) assert np.abs(np.abs(QB@H.T)-4).max()<1e-9 orb=set(canon(QB)); tot+=len(orb) print(f"class {c}: orbit of size {len(orb)} modulo global phase, conjugates of representatives in it: {len(orb&conj)}",flush=True) print(f"total, modulo global phase only: {tot} forms in 10 orbits; with the conjugate orbits: {2*tot} forms in 20 orbits")