Skip to content

Commit

Permalink
add extracteps[]
Browse files Browse the repository at this point in the history
  • Loading branch information
rokzitko committed Apr 19, 2022
1 parent ae79fad commit 2cb9f92
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sneg.m
Original file line number Diff line number Diff line change
Expand Up @@ -1462,6 +1462,9 @@ of operator H in the given basis (in the creation operator representation).
supercommutator[a___] := superkomutator[a];
superanticommutator[a___] := superantikomutator[a];

(* Other helper functions *)
extracteps[a_, b_, H_] := anticommutator[a, commutator[H, conj[b]]] // Expand;

(* (Manual) normal ordering *)
SetAttributes[normalorder, Listable];
normalorder[a_] := a - vev[a];
Expand Down

0 comments on commit 2cb9f92

Please sign in to comment.