kraus_error#

kraus_error(noise_ops, canonical_kraus=False)[source]#

Return a Kraus quantum error channel.

Parameters:
  • noise_ops (list[matrix]) – Kraus matrices.

  • canonical_kraus (bool) – Convert input Kraus matrices into the canonical Kraus representation (default: False)

Returns:

The quantum error object.

Return type:

QuantumError

Raises:

NoiseError – if error parameters are invalid.