iqm.benchmarks.utils_shadows.CUE

Contents

iqm.benchmarks.utils_shadows.CUE#

iqm.benchmarks.utils_shadows.CUE(random_gen: RandomState, n: int) ndarray#

Prepares single qubit Haar-random unitary (drawn from Circuilar Unitary Ensemble - CUE).

Parameters:
  • random_gen (RandomState) – a random generator.

  • n (int) – the size of the matrix.

Returns:

an n x n CUE matrix

Return type:

np.ndarray