qat.quops.is_completely_positive

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

Tests whether a quantum channel is completely positive or not

Parameters
  • quantum_channel (QuantumChannel) – a quantum operation

  • tol (float, optional) – tolerance on norm. Defaults to 1e-10.

Returns

boolean

Return type

bool

Note

if quantum_channel is in Kraus form, then it is completely positive by construction