powered by
Returns a square complex matrix sampled from the Haar random unitary distribution.
randomUnitary(size)
A square complex matrix.
dimension of matrix
m <- 25 # size of matrix (m x m) set.seed(7) U <- randomUnitary(m) # n <- 5 # First n columns A <- U[,1:n]
Run the code above in your browser using DataLab