qit.invariant.gate_leakage_inv

qit.invariant.gate_leakage_inv(U: np.array[complex], dim: Sequence[int], Z=None, W=None) np.array[float]

Local degrees of freedom leaked by a unitary gate.

Parameters
  • U (np.array[complex]) – unitary gate

  • dim (Sequence[int]) – dimension vector

Returns

cosines of the principal angles between

Return type

np.array[float]

TODO FIXME

See [11].