Pauli.sgn_prod

static Pauli.sgn_prod(p1, p2)[source]

Multiply two Paulis and track the phase.

$P_3 = P_1 otimes P_2$: X*Y

Parameters
Returns

the multiplied pauli complex: the sign of the multiplication, 1, -1, 1j or -1j

Return type

Pauli