scripts are available on the GitHub platform
https://github.com/matrix-toolbox/
in particular
Matlab script BH.m by S. Budishin including
all Butson type matricesMathematica script generic4p.nb by F. Szöllősi
to generate "random" generic \(G_6^{(4)}\) matricesMathematica 6.0
code F6Foray.nb designed by A. Skinner et al.Matlab/Octave
and Mathematica scripts to
calculate defect of unitary matrix