pauli_error#
- pauli_error(noise_ops)[source]#
Return a mixed Pauli quantum error channel.
The input should be a list of pairs
(P[j], p[j])
, whereP[j]
is aPauli
object or string label, andp[j]
is a probability. All probabilities must sum to 1 for the input ops to be valid.- Parameters:
noise_ops (list[pair[Pauli, double]]) – Pauli error terms.
- Returns:
The quantum error object.
- Return type:
- Raises:
NoiseError – If depolarizing probability is less than 0 or greater than 1.