qiskit.opflow.primitive_ops.PauliSumOp.permute¶
- PauliSumOp.permute(permutation)[소스]¶
Permutes the sequence of
PauliSumOp
.- 매개변수
permutation (List[int]) – A list defining where each Pauli should be permuted. The Pauli at index j of the primitive should be permuted to position permutation[j].
- 반환
A new PauliSumOp representing the permuted operator. For operator (X ^ Y ^ Z) and indices=[1,2,4], it returns (X ^ I ^ Y ^ Z ^ I).
- 예외 발생
OpflowError – if indices do not define a new index for each qubit.
- 반환 형식