openfermion.contextuality.is_contextual

Determine whether a hamiltonian (instance of QubitOperator) is contextual, in the sense of https://arxiv.org/abs/1904.02260

hamiltonian QubitOperator

the hamiltonian whose contextuality is to be evaluated.

boolean indicating whether hamiltonian is contextual or not.