mixed_unitary_error#
- mixed_unitary_error(noise_ops)[source]#
Return a mixed unitary quantum error channel.
The input should be a list of pairs
(U[j], p[j])
, whereU[j]
is a unitary matrix andp[j]
is a probability. All probabilities must sum to 1 for the input ops to be valid.- Parameters:
noise_ops (list[pair[matrix, double]]) – unitary error matrices.
- Returns:
The quantum error object.
- Return type:
- Raises:
NoiseError – if error parameters are invalid.