CHROMA
paulitodr.cc
Go to the documentation of this file.
1 /*! \file
2  * \brief Basis rotation matrix from Pauli-Schwinger (Euclidean Sakurai) to Degrand-Rossi (and reverse)
3  */
4 
5 #include "chromabase.h"
6 #include "util/ferm/paulitodr.h"
7 
8 namespace Chroma {
9 
10 //! The Pauli-Schwinger (Euclidean Sakurai) to Degrand-Rossi spin transformation matrix
11 /*!
12  * \ingroup ferm
13  *
14  * Return the similarity transformation matrix from
15  * Euclidean Pauli-Schwinger to Euclidean Degrand-Rossi basis
16  *
17  * \returns The U in Gamma_{Degrand-Rossi} = U Gamma_PS U^dag
18  */
19 
20 SpinMatrixD PauliToDRMat()
21 {
22  /*
23  * The magic basis transf is found from
24  *
25  * NOTE: DR = Degrand-Rossi - the spin basis of QDP
26  *
27  * psi_DR = U psi_Pauli
28  * psibar_DR Gamma_DR psi_DR = psibar_Pauli Gamma_Pauli psi_Pauli
29  *
30  * implies
31  * Gamma_DR = U Gamma_Pauli U^dag
32  *
33  * and the magic formula is
34  *
35  * U = (1/sqrt(2)) | i*sigma_2 -i*sigma_2 |
36  * | i*sigma_2 i*sigma_2 |
37  *
38  * = (1/sqrt(2)) | 0 1 0 -1 |
39  * | -1 0 1 0 |
40  * | 0 1 0 1 |
41  * | -1 0 -1 0 |
42  */
43  /*
44  * NOTE: I do not see some really short combination of
45  * QDP Gamma matrices that can make this beasty,
46  * so I'll just hardwire it...
47  */
48  SpinMatrixD U = zero;
49  RealD foo = RealD(1) / sqrt(RealD(2));
50  ComplexD one = cmplx( foo,RealD(0));
51  ComplexD mone = cmplx(-foo,RealD(0));
52 
53  pokeSpin(U, one, 0, 1);
54  pokeSpin(U, mone, 0, 3);
55  pokeSpin(U, mone, 1, 0);
56  pokeSpin(U, one, 1, 2);
57  pokeSpin(U, one, 2, 1);
58  pokeSpin(U, one, 2, 3);
59  pokeSpin(U, mone, 3, 0);
60  pokeSpin(U, mone, 3, 2);
61 
62  return U;
63 }
64 
65 } // end namespace Chroma
Primary include file for CHROMA library code.
SpinMatrixD PauliToDRMat()
The Pauli-Schwinger (Euclidean Sakurai) to Degrand-Rossi spin transformation matrix.
Definition: paulitodr.cc:20
Asqtad Staggered-Dirac operator.
Definition: klein_gord.cc:10
Double one
Definition: invbicg.cc:105
Double zero
Definition: invbicg.cc:106
Basis rotation matrix from Pauli-Schwinger (Euclidean Sakurai) to Degrand-Rossi (and reverse)
multi1d< LatticeColorMatrix > U