English
Languages
English
Japanese
German
Korean
Portuguese, Brazilian
French
Shortcuts

qiskit.aqua.utils.random_unitary

random_unitary(N)[source]

Generate a random unitary matrix with size NxN.

Parameters

N (int) – the dimension of unitary matrix

Returns

a 2-D matrix with complex data type.

Return type

np.ndarray