This channel applies one of \(4^n\) disjoint possibilities: nothing (the
identity channel) or one of the \(4^n - 1\) pauli gates. The disjoint
probabilities of the non-identity Pauli gates are all the same,
\(p / (4^n - 1)\), and the identity is done with probability 1 - p. The
supplied probability must be a valid probability or else this constructor
will raise a ValueError.
where \(P_i\) are the \(4^n - 1\) Pauli gates (excluding the identity).
Args
p
The probability that one of the Pauli gates is applied. Each of
the Pauli gates is applied independently with probability
\(p / (4^n - 1)\), where \(n\) is n_qubits.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-10-08 UTC."],[],[]]