canonicalized_by_site
canonicalized_by_site(Operator input) -> Operator
Orders the operators in a product of creation and annihilation operators into site canonical order.
Parameters
- input: The input Operator to be simplified.
Returns
The site canonicalized Operator
Example
var my_op = Destroy(3) * Create(3) * Destroy(4)
canonicalized_by_site(my_op) // (Identity() - Create(3)*Destroy(3))*Destroy(4)