(************** Content-type: application/mathematica ************** Mathematica-Compatible Notebook This notebook can be used with any Mathematica-compatible application, such as Mathematica, MathReader or Publicon. The data for the notebook starts with the line containing stars above. To get the notebook into a Mathematica-compatible application, do one of the following: * Save the data starting with the line of stars above into a file with a name ending in .nb, then open the file inside the application; * Copy the data starting with the line of stars above to the clipboard, then use the Paste menu command inside the application. Data for notebooks contains only printable 7-bit ASCII and can be sent directly in email or through ftp in text mode. Newlines can be CR, LF or CRLF (Unix, Macintosh or MS-DOS style). NOTE: If you modify the data for this notebook not in a Mathematica- compatible application, you must delete the line below containing the word CacheID, otherwise Mathematica-compatible applications may try to use invalid cache data. For more information on notebooks and Mathematica-compatible applications, contact Wolfram Research: web: http://www.wolfram.com email: info@wolfram.com phone: +1-217-398-0700 (U.S.) Notebook reader applications are available free of charge from Wolfram Research. *******************************************************************) (*CacheID: 232*) (*NotebookFileLineBreakTest NotebookFileLineBreakTest*) (*NotebookOptionsPosition[ 8715, 319]*) (*NotebookOutlinePosition[ 9343, 341]*) (* CellTagsIndexPosition[ 9299, 337]*) (*WindowFrame->Normal*) Notebook[{ Cell[CellGroupData[{ Cell["Unitarize", "Title"], Cell[BoxData[ \(<< Unitarize`\)], "Input"], Cell[CellGroupData[{ Cell["Spherical Polygon Inequalities", "Section"], Cell["Check the sperical polygon inequalities on various values", "Text"], Cell[CellGroupData[{ Cell[BoxData[ \(PolygonInequalities[1/3, 1/3, 1/3]\)], "Input"], Cell[BoxData[ \(True\)], "Output"] }, Open ]], Cell[CellGroupData[{ Cell[BoxData[ \(PolygonInequalities[1/3, 1/3, 1/2]\)], "Input"], Cell[BoxData[ \(False\)], "Output"] }, Open ]], Cell[CellGroupData[{ Cell[BoxData[ \(PolygonInequalities[{1/8, 1/9, 1/10, 1/11, 1/12}]\)], "Input"], Cell[BoxData[ \(True\)], "Output"] }, Open ]], Cell["An example with tolerance", "Text"], Cell[CellGroupData[{ Cell[BoxData[ \(PolygonInequalities[{1/3, 1/3, 1/3 + 10^\(-6\)}, Tolerance \[Rule] 10^\(-6\)]\)], "Input"], Cell[BoxData[ \(True\)], "Output"] }, Open ]], Cell["Check strict equality", "Text"], Cell[CellGroupData[{ Cell[BoxData[{ \(PolygonInequalities[{1/3, 1/3, 1/4}, CheckStrict \[Rule] True]\), "\[IndentingNewLine]", \(PolygonInequalities[{1/3, 1/3, 1/3}, CheckStrict \[Rule] True]\), "\[IndentingNewLine]", \(PolygonInequalities[{1/3, 1/3, 1/2}, CheckStrict \[Rule] True]\)}], "Input"], Cell[BoxData[ \(Strict\)], "Output"], Cell[BoxData[ \(Static\)], "Output"], Cell[BoxData[ \(Fail\)], "Output"] }, Open ]], Cell["Print a message telling which inequality fails", "Text"], Cell[CellGroupData[{ Cell[BoxData[ \(PolygonInequalities[{1/3, 1/3, 1/2}, Verbose \[Rule] True]\)], "Input"], Cell[BoxData[ \(PolygonInequalities::"fail" \(\(:\)\(\ \)\) "Values failed the spherical polygon inequality \!\(\"+\\[Nu]1+\\[Nu]2+\ \\[Nu]3 \\[LessSlantEqual] 1\"\)."\)], "Message"], Cell[BoxData[ \(False\)], "Output"] }, Open ]] }, Open ]], Cell[CellGroupData[{ Cell["Unitarization", "Section"], Cell["Functions to construct arbitrary matrices in SL2(C) and SU2", "Text"], Cell[BoxData[{ \(\(randomInt[] := Random[Integer, {\(-10\), 10}];\)\), "\[IndentingNewLine]", \(\(randomCpx[] := randomInt[] + I\ randomInt[];\)\), "\[IndentingNewLine]", \(randomSL2[] := Block[{P, x}, \[IndentingNewLine]P = {{randomCpx[], randomCpx[]}, {randomCpx[], x}}; \[IndentingNewLine]P = P /. \(Solve[Det[P] \[Equal] 1, x]\)[\([1]\)]]\), "\[IndentingNewLine]", \(randomSU2[] := Block[{a, b, P}, \[IndentingNewLine]a = randomCpx[]; b = randomCpx[]; \[IndentingNewLine]P = {{a, b}, {\(-Conjugate[b]\), Conjugate[a]}}; \[IndentingNewLine]P/ Sqrt[Det[P]]\[IndentingNewLine]]\)}], "Input"], Cell["\<\ Construct two simultanously unitarizable matrices M1, M2 by \ simultaneously conjugating two matrices L1, L2 in SU2 by a matrix P in \ SL2(C).\ \>", "Text"], Cell[CellGroupData[{ Cell[BoxData[{ \(P = randomSL2[]\), "\[IndentingNewLine]", \(L1 = randomSU2[]\), "\[IndentingNewLine]", \(L2 = randomSU2[]\)}], "Input"], Cell[BoxData[ \({{\(-7\) - 10\ \[ImaginaryI], 2 - 8\ \[ImaginaryI]}, {\(-10\) + 6\ \[ImaginaryI], \(-\(1123\/149\)\) - \(354\ \ \[ImaginaryI]\)\/149}}\)], "Output"], Cell[BoxData[ \({{\(-\(\(4 - 9\ \[ImaginaryI]\)\/\@165\)\), \(-\(\(8 - 2\ \[ImaginaryI]\)\/\@165\)\)}, {\(8 + 2\ \ \[ImaginaryI]\)\/\@165, \(-\(\(4 + 9\ \[ImaginaryI]\)\/\@165\)\)}}\)], "Output"], Cell[BoxData[ \({{\(2 - 8\ \[ImaginaryI]\)\/\@113, \(-\(\(6 - 3\ \[ImaginaryI]\)\/\@113\)\)}, {\(6 + 3\ \ \[ImaginaryI]\)\/\@113, \(2 + 8\ \[ImaginaryI]\)\/\@113}}\)], "Output"] }, Open ]], Cell[CellGroupData[{ Cell[BoxData[{ \(M1 = P . L1 . Inverse[P] // Simplify\), "\[IndentingNewLine]", \(M2 = P . L2 . Inverse[P] // Simplify\)}], "Input"], Cell[BoxData[ \({{\(-\(\(132272\/149 - \(162885\ \[ImaginaryI]\)\/149\)\/\@165\)\), \ \(1192 + 846\ \[ImaginaryI]\)\/\@165}, {\(22112044\/22201 + \(20293038\ \ \[ImaginaryI]\)\/22201\)\/\@165, \((26216\/149 - \(32577\ \ \[ImaginaryI]\)\/149)\)\ \@\(5\/33\)}}\)], "Output"], Cell[BoxData[ \({{\(306476\/149 - \(39780\ \[ImaginaryI]\)\/149\)\/\@113, \(-\(\(426 + 2125\ \[ImaginaryI]\)\/\@113\)\)}, {\(-\(\(2661582\/22201 + \ \(43905305\ \[ImaginaryI]\)\/22201\)\/\@113\)\), \(-\(\(305880\/149 - \(39780\ \ \[ImaginaryI]\)\/149\)\/\@113\)\)}}\)], "Output"] }, Open ]], Cell["The unitarizer", "Text"], Cell[CellGroupData[{ Cell[BoxData[ \(T = \(QRDecomposition[Inverse[P]]\)[\([2]\)] // Simplify\)], "Input"], Cell[BoxData[ \({{\@\(29569\/149\), \(-\(\(2076 + 30850\ \[ImaginaryI]\)\/\@4405781\)\)}, {0, \ \@\(149\/29569\)}}\)], "Output"] }, Open ]], Cell["Check whether M1 and M2 are simultaneously unitarizable", "Text"], Cell[CellGroupData[{ Cell[BoxData[ \(Unitarizable[M1, M2]\)], "Input"], Cell[BoxData[ \(True\)], "Output"] }, Open ]], Cell["Compute the upper triangular unitarizer Q", "Text"], Cell[CellGroupData[{ Cell[BoxData[ \(Q = Unitarizer[M1, M2]\)], "Input"], Cell[BoxData[ \({{\@\(29569\/149\), \(-\(\(2076 + 30850\ \[ImaginaryI]\)\/\@4405781\)\)}, {0, \ \@\(149\/29569\)}}\)], "Output"] }, Open ]], Cell[CellGroupData[{ Cell[BoxData[ \(Q \[Equal] T\)], "Input"], Cell[BoxData[ \(True\)], "Output"] }, Open ]], Cell["Verify that Q is a unitarizer", "Text"], Cell[CellGroupData[{ Cell[BoxData[{ \(N1 = Q . M1 . Inverse[Q] // Simplify\), "\[IndentingNewLine]", \(N2 = Q . M2 . Inverse[Q] // Simplify\)}], "Input"], Cell[BoxData[ \({{\(-\(\(4 + \(299503\ \[ImaginaryI]\)\/29569\)\/\@165\)\), \ \(-\(\(22112044\/4405781 - \(20293038\ \ \[ImaginaryI]\)\/4405781\)\/\@165\)\)}, {\(22112044\/4405781 + \(20293038\ \ \[ImaginaryI]\)\/4405781\)\/\@165, \(-\(\(4 - \(299503\ \ \[ImaginaryI]\)\/29569\)\/\@165\)\)}}\)], "Output"], Cell[BoxData[ \({{\(2 - \(90300\ \[ImaginaryI]\)\/29569\)\/\@113, \(2661582\/4405781 - \ \(43905305\ \[ImaginaryI]\)\/4405781\)\/\@113}, {\(-\(\(2661582\/4405781 + \ \(43905305\ \[ImaginaryI]\)\/4405781\)\/\@113\)\), \(2 + \(90300\ \ \[ImaginaryI]\)\/29569\)\/\@113}}\)], "Output"] }, Open ]], Cell[CellGroupData[{ Cell[BoxData[{ \(SU2[N1]\), "\[IndentingNewLine]", \(SU2[N2]\)}], "Input"], Cell[BoxData[ \(True\)], "Output"], Cell[BoxData[ \(True\)], "Output"] }, Open ]], Cell["A numerical example with tolerence", "Text"], Cell[CellGroupData[{ Cell[BoxData[ \(Qn = Unitarizer[N[M1], N[M2], Tolerance \[Rule] 10^\(-10\)]\)], "Input"], Cell[BoxData[ \({{14.087216347779238`, \(-0.9890446460141868`\) - 14.697508347559685`\ \[ImaginaryI]}, {0, 0.07098634501752676`}}\)], "Output"] }, Open ]], Cell[CellGroupData[{ Cell[BoxData[ \(Chop[Qn - N[Q]] \[Equal] {{0, 0}, {0, 0}}\)], "Input"], Cell[BoxData[ \(True\)], "Output"] }, Open ]] }, Open ]] }, Open ]] }, FrontEndVersion->"4.1 for X", ScreenRectangle->{{0, 1024}, {0, 768}}, WindowSize->{520, 600}, WindowMargins->{{Automatic, -1}, {Automatic, 0}} ] (******************************************************************* Cached data follows. If you edit this Notebook file directly, not using Mathematica, you must remove the line containing CacheID at the top of the file. The cache data will then be recreated when you save this file from within Mathematica. *******************************************************************) (*CellTagsOutline CellTagsIndex->{} *) (*CellTagsIndex CellTagsIndex->{} *) (*NotebookFileOutline Notebook[{ Cell[CellGroupData[{ Cell[1727, 52, 26, 0, 117, "Title"], Cell[1756, 54, 46, 1, 27, "Input"], Cell[CellGroupData[{ Cell[1827, 59, 49, 0, 60, "Section"], Cell[1879, 61, 73, 0, 32, "Text"], Cell[CellGroupData[{ Cell[1977, 65, 67, 1, 27, "Input"], Cell[2047, 68, 38, 1, 27, "Output"] }, Open ]], Cell[CellGroupData[{ Cell[2122, 74, 67, 1, 27, "Input"], Cell[2192, 77, 39, 1, 27, "Output"] }, Open ]], Cell[CellGroupData[{ Cell[2268, 83, 82, 1, 27, "Input"], Cell[2353, 86, 38, 1, 27, "Output"] }, Open ]], Cell[2406, 90, 41, 0, 32, "Text"], Cell[CellGroupData[{ Cell[2472, 94, 117, 2, 43, "Input"], Cell[2592, 98, 38, 1, 27, "Output"] }, Open ]], Cell[2645, 102, 37, 0, 32, "Text"], Cell[CellGroupData[{ Cell[2707, 106, 310, 6, 59, "Input"], Cell[3020, 114, 40, 1, 27, "Output"], Cell[3063, 117, 40, 1, 27, "Output"], Cell[3106, 120, 38, 1, 27, "Output"] }, Open ]], Cell[3159, 124, 62, 0, 32, "Text"], Cell[CellGroupData[{ Cell[3246, 128, 91, 1, 27, "Input"], Cell[3340, 131, 193, 3, 39, "Message"], Cell[3536, 136, 39, 1, 27, "Output"] }, Open ]] }, Open ]], Cell[CellGroupData[{ Cell[3624, 143, 32, 0, 60, "Section"], Cell[3659, 145, 75, 0, 32, "Text"], Cell[3737, 147, 731, 15, 171, "Input"], Cell[4471, 164, 166, 4, 50, "Text"], Cell[CellGroupData[{ Cell[4662, 172, 150, 3, 59, "Input"], Cell[4815, 177, 188, 4, 44, "Output"], Cell[5006, 183, 233, 4, 48, "Output"], Cell[5242, 189, 198, 3, 48, "Output"] }, Open ]], Cell[CellGroupData[{ Cell[5477, 197, 141, 2, 43, "Input"], Cell[5621, 201, 276, 4, 106, "Output"], Cell[5900, 207, 300, 4, 106, "Output"] }, Open ]], Cell[6215, 214, 30, 0, 32, "Text"], Cell[CellGroupData[{ Cell[6270, 218, 89, 1, 27, "Input"], Cell[6362, 221, 149, 3, 54, "Output"] }, Open ]], Cell[6526, 227, 71, 0, 32, "Text"], Cell[CellGroupData[{ Cell[6622, 231, 53, 1, 27, "Input"], Cell[6678, 234, 38, 1, 27, "Output"] }, Open ]], Cell[6731, 238, 57, 0, 32, "Text"], Cell[CellGroupData[{ Cell[6813, 242, 55, 1, 27, "Input"], Cell[6871, 245, 149, 3, 54, "Output"] }, Open ]], Cell[CellGroupData[{ Cell[7057, 253, 45, 1, 27, "Input"], Cell[7105, 256, 38, 1, 27, "Output"] }, Open ]], Cell[7158, 260, 45, 0, 32, "Text"], Cell[CellGroupData[{ Cell[7228, 264, 141, 2, 43, "Input"], Cell[7372, 268, 309, 5, 106, "Output"], Cell[7684, 275, 285, 4, 106, "Output"] }, Open ]], Cell[CellGroupData[{ Cell[8006, 284, 83, 2, 43, "Input"], Cell[8092, 288, 38, 1, 27, "Output"], Cell[8133, 291, 38, 1, 27, "Output"] }, Open ]], Cell[8186, 295, 50, 0, 32, "Text"], Cell[CellGroupData[{ Cell[8261, 299, 92, 1, 27, "Input"], Cell[8356, 302, 167, 3, 27, "Output"] }, Open ]], Cell[CellGroupData[{ Cell[8560, 310, 74, 1, 27, "Input"], Cell[8637, 313, 38, 1, 27, "Output"] }, Open ]] }, Open ]] }, Open ]] } ] *) (******************************************************************* End of Mathematica Notebook file. *******************************************************************)