German
Sprachen
English
Bengali
French
German
Japanese
Korean
Portuguese
Spanish
Tamil

qiskit.opflow.primitive_ops.MatrixOp.permute

MatrixOp.permute(permutation=None)[Quellcode]

Creates a new MatrixOp that acts on the permuted qubits.

Parameter

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].

Rückgabe

A new MatrixOp representing the permuted operator.

Verursacht

OpflowError – if indices do not define a new index for each qubit.

Rückgabetyp

OperatorBase