# classical.py # The classical versions of the twists. The classical version of the twisted orthogonal # group is the hyperoctahedral group H_N, formed by the monomial matrices with entries 1 # and -1. The classical version of the twisted symplectic group is its analogue with # blocks of size 2, namely the group SU_2 wr S_m with N = 2m, formed by the matrices # having exactly one nonzero block of size 2 on each row and column of blocks, with these # nonzero blocks belonging to SU_2. We compute the dimensions of the spaces of fixed # vectors of order 2 and 4 of these groups, as the dimensions of the common fixed spaces # of sets of generators, and we compare them with those of O_N and Sp_N: # O_N : 1, 3 H_N : 1, 4 Sp_N : 1, 3 SU_2 wr S_m : 1, 5 # valid for N >= 4. Since Sp_N has only 3 pairings of 4 points, the group SU_2 wr S_m # with m >= 2 needs 2 more fixed vectors of order 4. import numpy as np def unitary_from(X): # exponential of an anti-Hermitian matrix w, V = np.linalg.eigh(-1j * X) return V @ np.diag(np.exp(1j * w)) @ V.conj().T def J_matrix(N): J = np.zeros((N, N)) for a in range(0, N, 2): J[a + 1, a] = 1 J[a, a + 1] = -1 return J def generic_orthogonal(N, rng): Y = rng.normal(size=(N, N)) return unitary_from(Y - Y.T) def generic_symplectic(N, rng): J = J_matrix(N) Y = rng.normal(size=(N, N)) + 1j * rng.normal(size=(N, N)) Y = Y - Y.conj().T U = unitary_from(Y + J @ Y.conj() @ J.T) assert np.allclose(U, J @ U.conj() @ J.T) return U def orthogonal_group(N, rng): R = np.eye(N); R[0, 0] = -1 return [generic_orthogonal(N, rng), generic_orthogonal(N, rng), R] def symplectic_group(N, rng): return [generic_symplectic(N, rng), generic_symplectic(N, rng)] def hyperoctahedral_group(N, rng): gens = [np.diag([-1.0] + [1.0] * (N - 1))] for a in range(N - 1): S = np.eye(N); S[[a, a + 1]] = S[[a + 1, a]] gens.append(S) return gens def block_group(N, rng): # SU_2 on the first pair, and the permutations of the pairs gens = [] for _ in range(2): U = np.eye(N, dtype=complex) U[:2, :2] = generic_symplectic(2, rng) gens.append(U) for a in range(N // 2 - 1): S = np.eye(N) S[[2 * a, 2 * a + 1, 2 * a + 2, 2 * a + 3]] = S[[2 * a + 2, 2 * a + 3, 2 * a, 2 * a + 1]] gens.append(S) return gens def fixed_dimension(gens, k): N = gens[0].shape[0] rows = [] for g in gens: G = np.array([[1]], dtype=complex) for _ in range(k): G = np.kron(G, g) rows.append(G - np.eye(N ** k)) s = np.linalg.svd(np.vstack(rows), compute_uv=False) return int(np.sum(s < 1e-8)) def main(): rng = np.random.default_rng(1) good = True expected = {'O_N': (1, 3), 'H_N': (1, 4), 'Sp_N': (1, 3), 'SU_2 wr S_m': (1, 5)} groups = {'O_N': orthogonal_group, 'H_N': hyperoctahedral_group, 'Sp_N': symplectic_group, 'SU_2 wr S_m': block_group} for N in (4, 6): for name in groups: gens = groups[name](N, rng) d = (fixed_dimension(gens, 2), fixed_dimension(gens, 4)) print('N = %d , %-12s fixed vectors of order 2 and 4: %d , %d' % (N, name, d[0], d[1])) good = good and d == expected[name] print('all checks passed' if good else 'some checks failed') if __name__ == '__main__': main()