iqm.benchmarks.compressive_gst.mgst.qiskit_interface.get_gate_sequence

iqm.benchmarks.compressive_gst.mgst.qiskit_interface.get_gate_sequence#

iqm.benchmarks.compressive_gst.mgst.qiskit_interface.get_gate_sequence(sequence_number: int, sequence_length: int, gate_set_length: int) ndarray#

Generate a set of random gate sequences.

This function creates a specified number of random gate sequences, each of a given length. The gates are represented by numerical indices corresponding to elements in gate_set. Each sequence is a random combination of these indices.

Parameters:
  • sequence_number (int) – The number of gate sequences to generate.

  • sequence_length (int) – The length of each gate sequence.

  • gate_set_length (int) – The length of the set of gates to be used

Returns:

An array of shape (sequence_number, sequence_length), where each row represents a randomly generated

gate sequence.

Return type:

ndarray