iqm.benchmarks.compressive_gst.mgst.additional_fns.random_gs_Haar

Contents

iqm.benchmarks.compressive_gst.mgst.additional_fns.random_gs_Haar#

iqm.benchmarks.compressive_gst.mgst.additional_fns.random_gs_Haar(d: int, r: int, rK: int, n_povm: int) tuple[ndarray, ndarray, ndarray, ndarray]#

Generates a random gate set with gates from Haar random unitaries, initial state and POVM.

Parameters:
  • d (int) – Number of gates

  • r (int) – Superoperator dimension of the gates given by the square of the physical dimension

  • rK (int) – Number of Kraus operators per gate (“Kraus rank”)

  • n_povm (int) – Number of POVM-Elements

Returns:

Each subarray along the first axis contains a set of Kraus operators.

The second axis enumerates Kraus operators for a gate specified by the first axis.

X: Array where random CPT superoperators are stacked along the first axis.

Return type:

K

Notes

The Kraus operators are generated from Haar random unitaries, see function randKrausSet_Haar