fermionic_site_reorder
fermionic_site_reorder(Operator input) -> bool
Reorders sum or products of creation and annihilation operators in place by site while preserving order on each site.
Parameters
- input: The input Operator to be simplified.
Returns
A boolean indicating if the operator has accrued a phase of -1
Example
var my_prod = Create(3) * Destroy(2) * Create(1)
var phase = fermionic_site_reorder(my_prod)
// phase = true