qics.quantum.random.choi_operator¶
- qics.quantum.random.choi_operator(nin, nout=None, M=None, iscomplex=False)[source]¶
Generate a random Choi operator \(\mathcal{J}_\mathcal{N}\) representing a quantum channel \(\mathcal{N}\), i.e.,
\[\mathcal{J}_\mathcal{N} = \sum_{i,j}^n \mathcal{N}(| i \rangle\langle j |) \otimes | i \rangle\langle j |,\]uniformly distributed on the Hilbert-Schmidt measure.
- Parameters:
- nin
int Dimension of the input system.
- nout
int, optional Dimension of the output system. The default is
nin.- M
int, optional Dimension used to determine the rank of the random Choi operator. The default is
nout*nin.- iscomplex
bool, optional Whether the Choi operator is real (
False) or complex (True). The default isFalse.
- nin
- Returns:
ndarrayRandom Choi operator corresponding to matrix of size
(nout*nin, nout*nin).
Notes
See [1] for additional details.
[1]Kukulski, Ryszard, et al. “Generating random quantum channels.” Journal of Mathematical Physics 62.6 (2021).