qat.quops.metrics.get_diamond_norm

qat.quops.metrics.get_diamond_norm(qchan, eps=1e-06, verbose=False)

Compute the diamond norm (aka completely bounded trace norm) of a quantum channel.

Parameters
  • qchan (QuantumChannel[Kraus|PTM|Choi]) – a quantum channel

  • eps (float, optional) – accuracy on norm computation (if not CP). Defaults to 1e-6.

  • verbose (bool, optional) – for verbose output. Defaults to False

Returns

diamond norm

Return type

float