# fourthroots20.py -- which bistochastic forms over Z_4 of the 3 real Hadamard matrices of order 20 come from the twists # along a cyclic subgroup Z_10, as in section 6. We count the vectors b in Z_4^20 (4-th roots of unity), with b_1 = 1, # whose row sums Hb all lie in (4+2i)Z_4. By Proposition 3.4 and its converse for cyclic subgroups, such a b comes # from a twist along Z_10 when it is fixed, up to a scalar eta, by the column action Q of a symmetry generating Z_10, # whose permutation has 2 cycles of length 10. Upper bound: all the symmetries (aut_had20_k.npy, from autgroup.py) # whose permutation has 2 cycles of length 10. Lower bound: the conjugates of the elements of order 10, modulo -1, of # the centrally regular subgroups found by cocyclicodd.py (R_had20_k.npy), which come from actual cocyclic structures. # Q b = eta b is solved by propagation along the 2 cycles, and the row sums are tested in exact Gaussian integers. import numpy as np, itertools N=20; I=np.eye(N,dtype=np.int8) def qmat(g): Q=np.zeros((N,N),np.int8) for j in range(N): c=int(g[j]); Q[c%N,j]=1 if c