# p12orbits.py -- the orbits of the 15840 bistochastic forms of the Paley matrix P12 over mu_6, found by p12search.py # (folder bistochastic), under the symmetry group (needs aut_p12.npy, from autgroup.py): computes the orbit of the form # of section 4, modulo global phase, and checks whether its complex conjugate belongs to it. import numpy as np H=np.loadtxt('p12.txt'); Qs=np.load('aut_p12.npy') c=np.array([0,0,0,0,0,2,2,2,2,4,0,4]); b=np.exp(1j*np.pi*c/3) assert np.abs(np.abs(H@b)**2-12).max()<1e-9 def canon(B): t=np.round(((np.angle(B/B[:,:1])/(2*np.pi))%1)*6).astype(np.int64)%6 return set(' '.join(map(str,x)) for x in t) orb=canon(np.einsum('qij,j->qi',Qs,b)); conj=canon(np.conj(b)[None,:]) print(f"orbit of the form of section 4: {len(orb)} vectors b in mu_6^12 with b_1 = 1, stabilizer order {len(Qs)//len(orb)}") print(f"complex conjugate in the orbit: {bool(orb&conj)}; the 2 orbits together: {len(orb|canon(np.conj(np.einsum('qij,j->qi',Qs,b))))} vectors")