PauliBasisChange.pad_paulis_to_equal_length(pauli_op1, pauli_op2)[source]

If pauli_op1 and pauli_op2 do not act over the same number of qubits, pad identities to the end of the shorter of the two so they are of equal length. Padding is applied to the end of the Paulis. Note that the Terra represents Paulis in big-endian order, so this will appear as padding to the beginning of the Pauli x and z bit arrays.

Paramètres
• pauli_op1 (PauliOp) – A pauli_op to possibly pad.

• pauli_op2 (PauliOp) – A pauli_op to possibly pad.

Type renvoyé

Tuple[PauliOp, PauliOp]

Renvoie

A tuple containing the padded PauliOps.