qiskit.opflow.list_ops.ListOp.permute¶
- ListOp.permute(permutation)[fuente]¶
Permute the qubits of the operator.
- Parámetros
permutation (
List
[int
]) – A list defining where each qubit should be permuted. The qubit at index j should be permuted to position permutation[j].- Tipo del valor devuelto
- Devuelve
A new ListOp representing the permuted operator.
- Muestra
OpflowError – if indices do not define a new index for each qubit.