iqm.benchmarks.compressive_gst.mgst.additional_fns.randHerm#
- iqm.benchmarks.compressive_gst.mgst.additional_fns.randHerm(n: int) ndarray#
Generate random square hermitian matrix.
- Parameters:
n (int) – Matrix dimension
- Returns:
Random hermitian matrix normalized in spectral norm
- Return type:
G
Notes
First a matrix with random complex entries is generated (see randvec function). This matrix is then projected onto the space of hermitian matrices and normalized in spectral norm.