snegbosonoperators

◼ snegbosonoperators[a,b,c] declares a, b, and c to be bosonic operators which obey canonical commutation relations.

◼ By convention, the first index of the operator denotes the type of the operator (creation versus annihlation operator, see also CR and AN). If PrettyOutput is enabled, creation operators following this convention will be displayed with daggers.

◼ For operator c tagged with snegbosonoperators, operatorQ[c]=True and bosonQ[c]=True.

◼ Operators have NHoldAll attribute.

◼ See also: snegfermionoperators, snegmajoranaoperators, bosonQ, operatorQ, cmt, snegOrderedQ, nc, conj, vev, zeroonvac.

Further examples

Load sneg

<< sneg`sneg`;

Let a and be a bosonic operator

snegbosonoperators[a]

Pretty printing of operators

a[CR]
a[AN]
a[CR, k]
a[AN, k]

List of all defined bosonic operators is stored in listbosonoperators.

listbosonoperators

NHoldAll attribute prevents N from acting on operator indexes.

N[Sqrt[2] a[CR]]