qbraid.interface.random.random_unitary_matrix

random_unitary_matrix(dim)[source]

Create a random (complex) unitary matrix of order dim

Parameters:

dim (int) – integer square matrix dimension

Return type:

ndarray

Returns:

random unitary matrix of shape dim x dim