storage_error#
View source on GitHub
|
Creates several channels each applying the requested pauli error to a single qubit.
qualtran.surface_code.t_factory_utils.storage_error(
kind: str, probabilities: Sequence[float], qubits: Sequence[cirq.Qid]
) -> Sequence[cirq.Operation]
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).
Args
kindThe pauli error to apply, one of ‘Z’ or ‘X’.
probabilitiesThe list probabilities of the channels.
qubitsThe qubits to apply the error to.
View source on GitHub