qiskit.opflow.OperatorBase.permute¶
- abstract OperatorBase.permute(permutation)[소스]¶
Permutes the qubits of the operator.
- 매개변수
permutation (
List
[int
]) – A list defining where each qubit should be permuted. The qubit at index j should be permuted to position permutation[j].- 반환 형식
- 반환
A new OperatorBase containing the permuted operator.
- 예외 발생
OpflowError – if indices do not define a new index for each qubit.