Quantum ToolkitFunctionshaar_matrixOn this pagehaar_matrix haar_matrix(integer size) -> ComplexMatrix Generate a square Haar random unitary matrix of a specified size. Parameters size: Specifies the number of columns and rows of the output matrix.