qiskit.opflow.primitive_ops.PrimitiveOp.permute¶
- PrimitiveOp.permute(permutation)[source]¶
Permutes the qubits of the operator.
- Paramètres
permutation (List[int]) – A list defining where each qubit should be permuted. The qubit at index j should be permuted to position permutation[j].
- Renvoie
A new OperatorBase containing the permuted operator.
- Lève
OpflowError – if indices do not define a new index for each qubit.
- Type renvoyé