is_zero

pyquil.paulis.is_zero(pauli_object)[source]

Tests to see if a PauliTerm or PauliSum is zero.

Parameters

pauli_object (Union[PauliTerm, PauliSum]) – Either a PauliTerm or PauliSum

Return type

bool

Returns

True if PauliTerm is zero, False otherwise