iqm.benchmarks.compressive_gst.mgst.additional_fns.random_gs

Contents

iqm.benchmarks.compressive_gst.mgst.additional_fns.random_gs#

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

Generates a random gate using the Gaussian unitary ensemble, 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. E: Randomly generated POVM elements stacked along the first axis. rho: Random initial state vector

Return type:

K

Notes

The Kraus operators are generated from random unitaries, see function randKrausSet