append_kraus_to_gate

pyquil.noise.append_kraus_to_gate(kraus_ops, gate_matrix)[source]

Follow a gate gate_matrix by a Kraus map described by kraus_ops.

Parameters:
  • kraus_ops (Sequence[ndarray]) – The Kraus operators.
  • gate_matrix (ndarray) – The unitary gate.
Return type:

List[ndarray]

Returns:

A list of transformed Kraus operators.