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:
- Returns:
K, 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:
Notes
The Kraus operators are generated from random unitaries, see function randKrausSet