Physics[`*`]  generalized product that operates like a commutative, anticommutative, or noncommutative product depending on the parity of its operands
Physics[`^`]  generalized exponentiation

Calling Sequence


a * b * c ...
a ^ b ^ c ...


Parameters


a, b, c, ...



arbitrary algebraic expressions that typically enter products





Description


•

When the Physics package is loaded, a more general product operator, represented by the same symbol *, is loaded. Unlike the default Maple * operator (herein called the commutative product operator), the * operator loaded with Physics does not assume commutativity of its operands and instead automatically operates like a commutative, anticommutative, or noncommutative product, depending on the corresponding commutation properties of its operands.

•

Similarly, a generalized exponentiation operator, ^, is loaded.

•

When computing with quantumstate vectors in Dirac notation, the Physics * operator also represents the tensor product of Bras and Kets, such as in (a quantum operator) or (a Ket of the tensor product of spaces).

•

To set the identifiers for noncommutative and anticommutative variables in the context of the Physics package, see Setup. Also, when using the Standard graphical user interface, you can set the mathematical display so that commutative, anticommutative, and noncommutative objects are displayed in different colors, which can also be customized. To set the display to mathematical notation, enter the command Setup(mathematicalnotation = true). See Setup for details.

2.

The elements of s1 are sorted by using machine ordering (table(symmetric)), resulting in sorted_s1.

4.

Both sorted_s1 and sorted_s2 are normalized by using normal.

5.

A result is built and returned as the normalized form of sorted_s1 times sorted_s2.

•

Remark: to compute the scalar product between Bras, Kets, and quantum operators defined as such by using the Setup command or returned by the Annihilation and Creation commands, use the `.` operator in the Physics package, not the * generalized multiplication operator described in this page.



Examples


>


 (1) 
>


 (2) 
First, set some identifiers to work with anticommutative and noncommutative variables.
>


 (3) 
So below, , and are commutative, the latter contains the anticommutative object , and are of anticommutative type, and is noncommutative. Use delay evaluation quotes to see the product before and after it is normalized.
>


 (4) 
>


 (5) 
Note that instead of using delay evaluation quotes as in the example above, you can also use the inert form of the product function, %*, to represent this product and then "perform the product" when you prefer using the value command: the differentiation and expansion rules for %* are the same as those for *.
>


 (6) 
>


 (7) 
The next example in a nested expression containing commutative, anticommutative, and noncommutative products and a sum. Due to the prefixes chosen, objects beginning with and followed by an integer are anticommutative, and those beginning with are noncommutative. In this example, the symbol appears six times, nested in various ways (note the delay evaluation quotes):
>


 (8) 
A canonical representation for this product with the commutative, anticommutative, and noncommutative operands, sorted according to the itemization in the Description:
>


 (9) 
The Commutator between two noncommutative objects, and :
>


 (10) 
>


 (11) 
The above is the difference between two * products. Applying this difference to an argument distributes the application across the operands of the * products.
>


 (12) 
>


 (13) 
To have, for example, not applied to when applying the product as above, use the Parameters command.
>


 (14) 
>


 (15) 
>


 (16) 
>


 (17) 
Set the Commutator between two quantum operators and to zero, so that and are noncommutative objects that commute between themselves.
>


 (18) 
Their product is not automatically normalized when taking the algebra rules set.
A canonical form would be .
>


 (19) 
>


 (20) 
You can normalize these products by using Simplify directly, which applies various simplifications. Alternatively, in order to avoid further simplifications, use the restricting option, which applies only the algebra rules set.
>


 (21) 
>


 (22) 
>




See Also


`.`, Annihilation, Bra, Creation, diff, evalapply, Inverse, Ket, Parameters, Physics, Physics conventions, Physics examples, Setup, Simplify, types: commutative, anticommutative and noncommutative

