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
matrix U, normalized to the range .- Parameters
U (np.array[complex]) –
matrix- Returns
canonical local invariants of U
- Return type
np.array[float]
Uses the algorithm in [10].