unitaria.PermuteFactors¶
- class unitaria.PermuteFactors(subspace: Subspace, permutation_map: list[int])[source]¶
Bases:
NodeOperation permuting the factors of a state.
Permutes a vector in the space defined by
qubitssuch that the i-th factor after the operation will besubspace.tensor_factors[permutation_map[i]].- Parameters:
subspace – The subspace to permute.
permutation_map – The permutation map to apply.