rand.random_ginibre¶
Generates a Ginibre random matrix.
Functions¶
|
Generate a Ginibre random matrix [1]. |
Module Contents¶
- rand.random_ginibre.random_ginibre(dim_n, dim_m, seed=None)¶
Generate a Ginibre random matrix [1].
Generates a random
dim_n
-by-dim_m
Ginibre matrix.A Ginibre random matrix is a matrix with independent and identically distributed complex standard Gaussian entries.
Ginibre random matrices are used in the construction of Wishart-random POVMs [2].
Examples
Generate a random \(2\)-by-\(2\) Ginibre random matrix.
from toqito.rand import random_ginibre random_ginibre(2, 2)
array([[-0.79018696-0.95943555j, 1.46252621-0.13681132j], [ 1.14849431-0.04082187j, 0.36752005-0.06494054j]])
It is also possible to pass a seed to this function for reproducibility.
from toqito.rand import random_ginibre random_ginibre(2, 2, seed=42)
array([[ 0.21546751-1.37959021j, -0.73537981-0.92077996j], [ 0.53064913+0.09039682j, 0.66507969-0.22361728j]])
References
- Parameters:
dim_n (int) – The number of rows of the Ginibre random matrix.
dim_m (int) – The number of columns of the Ginibre random matrix.
seed (int | None) – A seed used to instantiate numpy’s random number generator.
- Returns:
A
dim_n
-by-dim_m
Ginibre random matrix.- Return type:
numpy.ndarray