27 lines
683 B
Plaintext
27 lines
683 B
Plaintext
---
|
||
title: random_unitary
|
||
description: API reference for qiskit.aqua.utils.random_unitary
|
||
in_page_toc_min_heading_level: 1
|
||
python_api_type: function
|
||
python_api_name: qiskit.aqua.utils.random_unitary
|
||
---
|
||
|
||
# qiskit.aqua.utils.random\_unitary
|
||
|
||
<Function id="qiskit.aqua.utils.random_unitary" isDedicatedPage={true} github="https://github.com/qiskit-community/qiskit-aqua/tree/stable/0.9/qiskit/aqua/utils/random_matrix_generator.py" signature="random_unitary(N)">
|
||
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
|
||
</Function>
|
||
|