Permute
Permute(const List<integer> permutation, const List<integer> sites) -> OperatorPermute
Creates a spin-1/2 OperatorPermute that permutes spins according to a specified permutation.
Parameters
- permutation: Vector defining the permutation of spins (destination indices).
- sites: Vector of site indices where the permutation is applied.