iqm.benchmarks.compressive_gst.mgst.additional_fns.random_len_seq

Contents

iqm.benchmarks.compressive_gst.mgst.additional_fns.random_len_seq#

iqm.benchmarks.compressive_gst.mgst.additional_fns.random_len_seq(d: int, min_l: int, max_l: int, N: int) ndarray#

Generate random gate sequence instructions.

These contain sequences of different lengths, the lengths are drawn uniformly at random from (min_l, …, max_l).

Parameters:
  • d (int) – Number of gates

  • min_l (int) – Minimum sequence length

  • max_l (int) – Maximum sequence length

  • N (int) – Number of random sequences

Returns:

2D array where each row contains the gate indices of a gate sequence

Return type:

J