qit.invariant.state_inv¶
- qit.invariant.state_inv(rho: State, k: int, perms: Sequence[Sequence[int]]) complex ¶
Local unitary polynomial invariants of quantum states.
Computes the permutation invariant
for the state , defined as , where permutes all k copies of the i:th subsystem using .- Parameters
rho (State) – quantum state with
n
subsystemsk (int) – order of the invariant,
k >= 1
perms (Sequence[Sequence[int]]) – Permutations.
len(perms) == n
, each element must be a fullk
-permutation (or an empty sequence denoting the identity permutation).
- Returns
invariant
- Return type
complex
Example:
state_inv(rho, 3, [(1, 2, 0), (1, 0, 2)])
This function can be very inefficient for some invariants, since it does no partial traces etc. which might simplify the calculation.
Uses the algorithm in [15].