storage_error#

Creates several channels each applying the requested pauli error to a single qubit.

Each returned operation is a channel that applies the requested error with probability probabilities[i] to the ith qubit.

The ith qubit gets transformed as

\[ \rho_i \xrightarrow (1 - p_i) \rho_i + p_i E \rho_i E^\dagger \]

where \(E\) is the requested error (one of X or Z).

kind

The pauli error to apply, one of ‘Z’ or ‘X’.

probabilities

The list probabilities of the channels.

qubits

The qubits to apply the error to.

ValueError

if kind is not ‘Z’ or ‘X’.