anticommuted
anticommuted(OperatorFermiNamed lhs, OperatorFermiNamed rhs) -> Operator
Calculates the anticommutation of two named fermionic operators. For inputs A,B the function returns {A,B} - BA.
Parameters
- lhs: The left hand side operator.
- rhs: The right hand side operator
Returns
The anticommuted operator
Example
var op1 = Create(3)
var op2 = Destroy(3)
var out = anticommuted(op1, op2) // Identity() - Destroy(3)*Create(3)