Portuguese
Idiomas
English
Bengali
French
German
Japanese
Korean
Portuguese
Spanish
Tamil

qiskit.opflow.primitive_ops.PauliOp.permute

PauliOp.permute(permutation)[código fonte]

Permutes the sequence of Pauli matrices.

Parâmetros

permutation (List[int]) – A list defining where each Pauli should be permuted. The Pauli at index j of the primitive should be permuted to position permutation[j].

Retorno

A new PauliOp representing the permuted operator. For operator (X ^ Y ^ Z) and indices=[1,2,4], it returns (X ^ I ^ Y ^ Z ^ I).

Levanta

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

Tipo de retorno

PauliOp