iqm.benchmarks.compressive_gst.mgst.additional_fns.randKrausSet_Haar#
- iqm.benchmarks.compressive_gst.mgst.additional_fns.randKrausSet_Haar(d: int, r: int, rK: int) ndarray#
Generates random set of Kraus operators.
- Parameters:
- 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.
- Return type:
K
Notes
- Let pdim be the physical dimension. Then a set of Kraus operators is generated by taking the first
pdim columns of a random unitary of size rK*pdim. The random unitary is generated according to the Haar measure.