diff --git a/src/Combinatorics/Matroids/quantum_automorphism_groups.jl b/src/Combinatorics/Matroids/quantum_automorphism_groups.jl index 08aadb3d513c..eb956afb8f70 100644 --- a/src/Combinatorics/Matroids/quantum_automorphism_groups.jl +++ b/src/Combinatorics/Matroids/quantum_automorphism_groups.jl @@ -143,7 +143,7 @@ function quantum_automorphism_group( SN = quantum_symmetric_group(n) A = base_ring(SN) - u = permutedims(reshape(gens(A),(n, n)),[2, 1]) + u = permutedims(reshape(gens(A),(n, n))) new_relations = elem_type(A)[prod(gen -> u[gen[1], gen[2]], relation; init=one(A)) for relation in relation_indices] return ideal(vcat(gens(SN), new_relations)) @@ -170,7 +170,7 @@ function quantum_automorphism_group(G::Graph{Undirected}) SN = quantum_symmetric_group(n) A = base_ring(SN) - u = permutedims(reshape(gens(A),(n, n)),[2, 1]) + u = permutedims(reshape(gens(A),(n, n))) nonedges = Tuple{Int,Int}[(i, j) for i in 1:n for j in i:n if !has_edge(G,i,j)] diff --git a/test/Combinatorics/Matroids/Matroids.jl b/test/Combinatorics/Matroids/Matroids.jl index 5cd0f76521dc..751f25ae374e 100644 --- a/test/Combinatorics/Matroids/Matroids.jl +++ b/test/Combinatorics/Matroids/Matroids.jl @@ -368,7 +368,7 @@ S4 = quantum_symmetric_group(n) @test length(gens(S4)) == _cnt(n) A = base_ring(S4) - u = permutedims(reshape(gens(A),(n,n)),[2,1]) + u = permutedims(reshape(gens(A),(n,n))) @test u[2,3]*u[2,2] in gens(S4) @test u[1,1]*u[1,1] - u[1,1] in gens(S4) @test sum(u[2,n] for n in 1:4)-1 in gens(S4) @@ -380,7 +380,7 @@ @test length(gens(qAut)) == _cnt(M) + _cnt(n) A = base_ring(qAut) - u = permutedims(reshape(gens(A),(n,n)),[2,1]) + u = permutedims(reshape(gens(A),(n,n))) @test u[2,3]*u[2,2] in gens(S4) @test u[2,2]*u[2,2] - u[2,2] in gens(S4) @@ -391,7 +391,7 @@ #Test of quantum_automorphism_group for circuits of uniform_matroid qAut1 = quantum_automorphism_group(M,:circuits) A = base_ring(qAut1) - u = permutedims(reshape(gens(A),(n,n)),[2,1]) + u = permutedims(reshape(gens(A),(n,n))) @test length(gens(qAut1)) == 11256 @test u[2,3]*u[2,2] in gens(qAut1)