Returns a list of matrices describing the channel for the given value.
cirq.kraus(
val: Any, default: Any = RaiseTypeErrorIfNotProvided
) -> Union[Tuple[np.ndarray, ...], TDefault]
Used in the notebooks
Used in the tutorials |
---|
These matrices are the terms in the operator sum representation of a quantum channel. If the returned matrices are A0,A1,...,Ar−1, then this describes the channel:
$$
\rho \rightarrow \sum_{k=0}^{r-1} A_k \rho A_k^\dagger
$$
These matrices are required to satisfy the trace preserving condition
$$
\sum_{k=0}^{r-1} A_k^\dagger A_k = I
$$
where I is the identity matrix. The matrices Ak are sometimes called Kraus or noise operators.
Returns | |
---|---|
If val has a _kraus_ method and its result is not NotImplemented,
that result is returned. Otherwise, if val has a _mixture_ method
and its results is not NotImplement a tuple made up of channel
corresponding to that mixture being a probabilistic mixture of unitaries
is returned. Otherwise, if val has a _unitary_ method and
its result is not NotImplemented a tuple made up of that result is
returned. Otherwise, if a default value was specified, the default
value is returned.
|