qat.quops.is_trace_preserving

qat.quops.is_trace_preserving(quantum_channel: QuantumChannel, tol: float = 1e-08) bool

Test whether a quantum channel is trace preserving or not.

Parameters
  • quantum_channel (QuantumChannel) – a quantum channel in any format (QuantumChanneKraus, QuantumChannelPTM, etc)

  • tol (float) – tolerance on norm

Returns

true if trace preserving

Return type

bool