Parametrization of (special) unitary matrices, with python packages numpy and tensorflow.
Script translated by Tamás Kriváchy and Flavien Hirsch from matlab files found at the following link on 30.09.2022. https://www.mathworks.com/matlabcentral/fileexchange/30990-composite-parameterization-of-unitary-groups
Which is based on the works
Ch.Spengler, M.Huber, B.C.Hiesmayr 'A composite parameterization of unitary groups, density matrices and subspaces' arXiv:1004.5252 // J. Phys. A: Math. Theor. 43, 385306 (2010); https://doi.org/10.1088/1751-8113/43/38/385306
Ch.Spengler, M.Huber, B.C.Hiesmayr 'Composite parameterization and Haar measure for all unitary and special unitary groups' arXiv:1103.3408 // J. Math. Phys. 53, 013501 (2012); https://doi.org/10.1063/1.3672064
Please cite original work(s) when using the script!!