Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Generate terms in the Baker–Campbell–Hausdorff expansion
ResourceFunction["BakerCampbellHausdorffTerms"][{op1,op2,…,opm},n] generates the order-n term of the Baker-Campbell-Hausdorff expansion of operators {op1,op2,…,opm}. | |
ResourceFunction["BakerCampbellHausdorffTerms"][{op1,op2,…,opm},n,alg] generates the order-n term of the Baker-Campbell-Hausdorff expansion of operators {op1,op2,…,opm}, where alg can be a NonCommutativeAlgebra object, {Dot,n},Dot,Composition,TensorProduct or NonCommutativeMultiply. |
| "CommutatorForm" | False | when True, it will hold the commutator form, otherwise it will compute the commutation. |
For example, for two operators, the commutator form follows the formula ![]()
where
is iterative j commutation
Order-1 of Baker-Campbell-Hausdorff formula for two operators:
| In[1]:= |
| Out[1]= |
Order-2 of Baker-Campbell-Hausdorff formula for two operators:
| In[2]:= |
| Out[2]= |
Show the formula in the commutator form:
| In[3]:= |
| Out[3]= |
Release the commutator form and show the expanded formula:
| In[4]:= |
| Out[4]= |
Order-3 of Baker-Campbell-Hausdorff formula for two operators:
| In[5]:= |
| Out[5]= |
Show the formula in the commutator form:
| In[6]:= |
| Out[6]= |
Verify explicitly the two above results are the same:
| In[7]:= | ![]() |
| Out[7]= |
Show the final result is the same as
:
| In[8]:= | ![]() |
| Out[8]= |
Order-4 of Baker-Campbell-Hausdorff formula for two operators:
| In[9]:= |
| Out[9]= |
| In[10]:= |
| Out[10]= |
Verify explicitly the two above results are the same:
| In[11]:= | ![]() |
| Out[11]= |
Show the final result is the same as
:
| In[12]:= | ![]() |
| Out[12]= |
| Out[13]= |
Order-2 of Baker-Campbell-Hausdorff formula for three symbolic matrices:
| In[14]:= |
| Out[14]= |
| In[15]:= |
| Out[15]= |
Order-3 of Baker-Campbell-Hausdorff formula for three operators with Composition as the action:
| In[16]:= |
| Out[16]= | ![]() |
Order-3 of Baker-Campbell-Hausdorff formula with NonCommutativeMultiply as the action between operators:
| In[17]:= |
| Out[17]= |
Show order-3 of Baker-Campbell-Hausdorff formula, for four operators:
| In[18]:= |
| Out[18]= | ![]() |
Show a few terms of Baker-Campbell-Hausdorff formula 𝒵=Log(ⅇX1ⅇX2…ⅇXn) with three non-commutative operators Xj:
| In[19]:= | ![]() |
| Out[19]= | ![]() |
Show the commutator form of 𝒵=Log(ⅇX1ⅇX2):
| In[20]:= | ![]() |
| Out[20]= | ![]() |
Show order-3 of Baker-Campbell-Hausdorff formula for two operators by holding the commutator form:
| In[21]:= |
| Out[21]= |
Show order-2 of Baker-Campbell-Hausdorff formula for four symbolic matrices by holding the commutator form:
| In[22]:= |
| Out[22]= |
Wolfram Language 13.0 (December 2021) or above
This work is licensed under a Creative Commons Attribution 4.0 International License