Physics[Commutator] - the commutator A B - B A
Physics[AntiCommutator] - the anti-commutator A B + B A
|
Calling Sequence
|
|
Commutator(A, B)
AntiCommutator(A, B)
|
|
Description
|
|
|
- The entered function call may return unevaluated.
|
•
|
The %Commutator and %AntiCommutator commands are the inert forms of Commutator and AntiCommutator; that is, they represent the same mathematical operations while displaying the operations unevaluated. To evaluate the operations, use the value or expand commands.
|
•
|
Commutators and AntiCommutators can also be expanded by using the expand or Physics[Expand] command. When the output is expanded, it is normalized and any repeated indices in products of tensors (defined as such by Define) are automatically simplified by the Simplify command.
|
•
|
Activating the inert operation by using value is the same as expanding it by using expand, except when the result of the Commutator is 0 or the result of the AntiCommutator is 2AB. Otherwise, evaluating just replaces the inert % operators by the active ones in the output.
|
•
|
When the Physics package is loaded, two routines for the enhanced display of unevaluated and inert Commutators and AntiCommutators are loaded together, so that Commutators are shown as a "list" of two operands, subscripted with the `-` sign. AntiCommutators are shown also as a list of two operands, subscripted with the `+` sign. In the literature, AntiCommutators are displayed as two operands inside curly brackets { }. This notation is not used in Maple to avoid potential confusion with Maple sets, displayed using curly brackets, where the order of the operators is not fixed.
|
|
|
Examples
|
|
As with the other commands in the Physics package, you can use the inert form, which is the command's name prefixed by the % character.
>
|
|
>
|
|
| (1) |
>
|
|
| (2) |
Note that the display above is obtained by using a `print/Commutator` routine (see print). The actual computational structure above is visible by using the lprint command.
>
|
|
>
|
|
| (3) |
>
|
|
%AntiCommutator(theta[1], theta[2])
| |
At this point, and are just any two commutative symbols, so by expanding or evaluating the Commutator and AntiCommutator above, you get:
>
|
|
| (4) |
>
|
|
| (5) |
Compare these results with the active forms of Commutator and AntiCommutator: (only) the automatic simplifications Commutator(A, B) -> 0 and , when or is commutative, are performed.
>
|
|
| (6) |
>
|
|
| (7) |
Set and theta to be the prefix of noncommutative and anticommutative variables, respectively, and compute the expanded form of and again. In this example, evaluating the operation is different from expanding; they are only equal for the Anticommutator when they result in or 2AB.
>
|
|
| (8) |
>
|
|
| (9) |
>
|
|
| (10) |
>
|
|
| (11) |
>
|
|
| (12) |
Some normalization of noncommutative products is performed before returning.
>
|
|
| (13) |
>
|
|
| (14) |
>
|
|
| (15) |
>
|
|
| (16) |
Here again, the active form recognizes the zero; you can activate the inert form to see this, by using the value command.
>
|
|
| (17) |
Define two quantum operators and a commutator algebra for them.
>
|
|
| (18) |
>
|
|
| (19) |
>
|
|
| (20) |
>
|
|
| (21) |
With few restrictions, Commutator algebras can also be set for powers of quantum operators. Consider two conjugate operators; that is, satisfying:
>
|
|
| (22) |
>
|
|
| (23) |
After setting the algebra as in the input line above, you have:
>
|
|
| (24) |
>
|
|
| (25) |
>
|
|
| (26) |
>
|
|
| (27) |
So the Commutator rule set suffices to compute when the power of the operator is an integer but not when it is a symbol, as in. For these cases, you can set a rule for the power directly that will also work when the exponent is equal to 1.
>
|
|
| (28) |
>
|
|
| (29) |
>
|
|
| (30) |
>
|
|
| (31) |
>
|
|
|
|
See Also
|
|
Physics, Physics conventions, Physics examples, Setup, Simplify, type,algebraic, type,anticommutative, type,commutative, type,noncommutative, value
|
|