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