qit.invariant.canonical_inv¶
- qit.invariant.canonical_inv(U: np.array[complex]) np.array[float] ¶
Canonical local invariants of a two-qubit gate.
Computes a vector of three real canonical local invariants for the \(U(4)\) matrix U, normalized to the range \([0,1]\).
- Parameters
U (np.array[complex]) – \(U(4)\) matrix
- Returns
canonical local invariants of U
- Return type
np.array[float]
Uses the algorithm in [10].