iqm.benchmarks.compressive_gst.mgst.additional_fns.randU

Contents

iqm.benchmarks.compressive_gst.mgst.additional_fns.randU#

iqm.benchmarks.compressive_gst.mgst.additional_fns.randU(n: int, a: float = 1) ndarray#

Generates random unitary from a random hermitian generator.

Parameters:
  • n (int) – Matrix dimension of the unitary

  • a (float) – Parameter to control the norm of the hermitian generator

Returns:

Matrix exponential of random hermitian matrix times the imaginary unit.

Return type:

U