unitaria.PermuteFactors

class unitaria.PermuteFactors(subspace: Subspace, permutation_map: list[int])[source]

Bases: Node

Operation permuting the factors of a state.

Permutes a vector in the space defined by qubits such that the i-th factor after the operation will be subspace.tensor_factors[permutation_map[i]].

Parameters:
  • subspace – The subspace to permute.

  • permutation_map – The permutation map to apply.