{'fraction_non_alphanumeric': 0.03427719821162444, 'fraction_numerical': 0.014157973174366617, 'mean_word_length': 4.739316239316239, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
The algebra of complex 2 × 2 matrices and a general closed Baker–Campbell–Hausdorff formula

We derive a closed formula for the Baker–Campbell–Hausdorff series expansion in the case of complex 2×2 matrices. For arbitrary matrices A and B, and a matrix Z such that exp⁡Z=exp⁡Aexp⁡B, our result expresses Z as a linear combination of A and B, their commutator [A,B], and the identity matrix I. The coefficients in this linear combination are functions of the traces and determinants of A and B, and the trace of their product. The derivation proceeds purely via algebraic manipulations of the given matrices and their products, making use of relations developed here, based on the Cayley–Hamilton theorem, as well as a characterization of the consequences of [A,B] and/or its determinant being zero or otherwise. As a corollary of our main result we also derive a closed formula for the Zassenhaus expansion. We apply our results to several special cases, most notably the parametrization of the product of two SU(2) matrices and a verification of the recent result of Van-Brunt and Visser (2015 J. Phys. A: Math. Theor. 48 225207) for complex 2×2 matrices, in this latter case deriving also the related Zassenhaus formula which turns out to be quite simple. We then show that this simple formula should be valid for all matrices and operators.