combine_kraus_maps

pyquil.noise.combine_kraus_maps(k1, k2)[source]

Generate the Kraus map corresponding to the composition of two maps on the same qubits with k1 being applied to the state after k2.

Parameters
  • k1 (List[ndarray]) – The list of Kraus operators that are applied second.

  • k2 (List[ndarray]) – The list of Kraus operators that are applied first.

Return type

List[ndarray]

Returns

A combinatorially generated list of composed Kraus operators.